Skip to content

Commit

Permalink
Merge pull request #45 from josemmo/develop
Browse files Browse the repository at this point in the history
Fixed negative rounding amounts not showing
  • Loading branch information
josemmo committed Oct 3, 2023
2 parents a36c507 + 2e578a3 commit fb31898
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 fb31898

Please sign in to comment.