Fix: Initilialise $amount_ttc_diff to fix PhanUndeclaredVariableAssignOp
This commit is contained in:
parent
884cc5bd55
commit
ef6b594001
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue