Core - Fix accountancy write social contribution in bookkeeping (Need for FEC format)

This commit is contained in:
Alexandre SPANGARO 2019-11-16 07:51:38 +01:00
parent 7e52c70321
commit 3937b45c5f

View File

@ -632,7 +632,9 @@ if (! $error && $action == 'writebookkeeping') {
$bookkeeping->subledger_account = '';
$bookkeeping->subledger_label = '';
$bookkeeping->numero_compte = $k;
$bookkeeping->label_compte = $objmid->labelc;
$accountingaccount->fetch(null, $k, true);
$bookkeeping->label_compte = $accountingaccount->label;
} elseif ($tabtype[$key] == 'payment_vat') {
$bookkeeping->subledger_account = '';
$bookkeeping->subledger_label = '';