Fix difference calculation to match user examples
- Changed difference calculation from (debits - credits) to (credits - debits) - Now matches user examples where credit difference uses 4455100 - Should eliminate the unwanted 4456700 line in credit scenarios - 4455100 and 4456700 will never appear together now
This commit is contained in:
parent
34b9864a4e
commit
ad4fbc17a5
@ -2062,7 +2062,7 @@ class DeclarationTVA_PDF
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$difference = $total_debits - $total_credits;
|
$difference = $total_credits - $total_debits;
|
||||||
|
|
||||||
// If difference is very small (less than 0.01), no balancing entry needed
|
// If difference is very small (less than 0.01), no balancing entry needed
|
||||||
if (abs($difference) < 0.01) {
|
if (abs($difference) < 0.01) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user