|
@@ -422,6 +422,9 @@ if ($action == 'writebookkeeping') {
|
|
|
if ($k == getDolGlobalString('ACCOUNTING_ACCOUNT_CUSTOMER_DEPOSIT')) {
|
|
|
$bookkeeping->subledger_account = $tabcompany[$key]['code_compta'];
|
|
|
$bookkeeping->subledger_label = $tabcompany[$key]['name'];
|
|
|
+ } else {
|
|
|
+ $bookkeeping->subledger_account = '';
|
|
|
+ $bookkeeping->subledger_label = '';
|
|
|
}
|
|
|
} else {
|
|
|
$bookkeeping->subledger_account = '';
|