FIX amount of payment deleted in unalterable log (for old record must

look the log of creation to know amount).
This commit is contained in:
Laurent Destailleur 2021-07-13 14:26:32 +02:00
parent 0d9cf07035
commit b12aae4a99

View File

@ -118,6 +118,8 @@ class InterfaceActionsBlockedLog extends DolibarrTriggers
foreach ($object->amounts as $amount) {
$amounts += price2num($amount);
}
} elseif (!empty($object->amount)) {
$amounts = $object->amount;
}
} elseif (strpos($action, 'PAYMENT') !== false && !in_array($action, array('PAYMENT_ADD_TO_BANK'))) {
$qualified++;