ztechno_core 0.0.121 → 0.0.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -804,16 +804,15 @@ class InvoiceService {
|
|
|
804
804
|
const subsidyAmount = Number(item.total_inc_vat ?? 0); // negative
|
|
805
805
|
subsidyTotal += subsidyAmount;
|
|
806
806
|
doc.text(item.description, col1, P.y, { width: 400 });
|
|
807
|
-
doc.text(
|
|
807
|
+
doc.text(`- ${this.formatMoney(Math.abs(subsidyAmount), invoice.currency)}`, col5, P.y);
|
|
808
808
|
P.skip(14);
|
|
809
809
|
}
|
|
810
|
-
P.
|
|
810
|
+
P.dashedRule(370, 560).skip(8);
|
|
811
811
|
}
|
|
812
812
|
const grandTotal = serviceTotalIncVat + subsidyTotal; // subsidyTotal is negative
|
|
813
813
|
if (subsidyItems.length > 0) {
|
|
814
|
-
P.bold();
|
|
815
|
-
P.row('Totale Investering incl. Subsidie:', 280, this.formatMoney(grandTotal, invoice.currency), col5, 20);
|
|
816
814
|
P.normal();
|
|
815
|
+
P.row('Totale Investering incl. Subsidie:', 280, this.formatMoney(grandTotal, invoice.currency), col5, 20);
|
|
817
816
|
} else {
|
|
818
817
|
P.bold();
|
|
819
818
|
P.row('Totaal incl. BTW:', 370, this.formatMoney(grandTotal, invoice.currency), col5, 20);
|