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:
parent
0d9cf07035
commit
b12aae4a99
@ -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++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user