forked from Wavyzz/dolibarr
Fix warning
This commit is contained in:
@@ -367,7 +367,7 @@ if ($modecompta == 'BOOKKEEPING') {
|
||||
$cpts = $AccCat->getCptsCat(0, $tmppredefinedgroupwhere);
|
||||
|
||||
foreach ($cpts as $j => $cpt) {
|
||||
$return = $AccCat->getSumDebitCredit($cpt['account_number'], $date_start, $date_end, $cpt['dc']);
|
||||
$return = $AccCat->getSumDebitCredit($cpt['account_number'], $date_start, $date_end, (empty($cpt['dc']) ? 0 : $cpt['dc']));
|
||||
if ($return < 0) {
|
||||
setEventMessages(null, $AccCat->errors, 'errors');
|
||||
$resultN = 0;
|
||||
|
||||
Reference in New Issue
Block a user