Skip to content

Commit

Permalink
Fixed negative rounding amounts not showing
Browse files Browse the repository at this point in the history
- Updated UblWriter class

> Closes #44
  • Loading branch information
josemmo committed Sep 9, 2023
1 parent db6e3ce commit 2e578a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Writers/UblWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ private function addDocumentTotalsNode(UXML $parent, InvoiceTotals $totals) {
if ($totals->paidAmount > 0) {
$totalsMatrix['cbc:PrepaidAmount'] = $totals->paidAmount;
}
if ($totals->roundingAmount > 0) {
if ($totals->roundingAmount != 0) {
$totalsMatrix['cbc:PayableRoundingAmount'] = $totals->roundingAmount;
}
$totalsMatrix['cbc:PayableAmount'] = $totals->payableAmount;
Expand Down

0 comments on commit 2e578a3

Please sign in to comment.