2
0
forked from Wavyzz/dolibarr

Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate

This commit is contained in:
MDW
2024-03-23 01:13:10 +01:00
parent df9794393a
commit 46ee9889b5

View File

@@ -243,7 +243,7 @@ if ($event->type == 'payout.created') {
$typeto = 'VIR';
if (!$error) {
$bank_line_id_from = $accountfrom->addline($dateo, $typefrom, $label, -1 * price2num($amount), '', '', $user);
$bank_line_id_from = $accountfrom->addline($dateo, $typefrom, $label, -1 * (float) price2num($amount), '', '', $user);
}
if (!($bank_line_id_from > 0)) {
$error++;