Fix: Initilialise $amount_ttc_diff to fix PhanUndeclaredVariableAssignOp

This commit is contained in:
MDW 2024-03-18 12:19:28 +01:00
parent 884cc5bd55
commit ef6b594001
No known key found for this signature in database

View file

@ -1573,6 +1573,7 @@ if (empty($reshook)) {
$TTotalByTva[$line->tva_tx] += $line->total_ttc;
}
$amount_ttc_diff = 0.;
foreach ($TTotalByTva as $tva => &$total) {
$coef = $total / $srcobject->total_ttc; // Calc coef
$am = $amount * $coef;