mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-25 02:41:26 +01:00
Fix: Initialise $amount_ttc_diff to fix PhanUndeclaredVariableAssignOp
This commit is contained in:
@@ -1172,6 +1172,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;
|
||||
|
||||
Reference in New Issue
Block a user