ztechno_core 0.0.120 → 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.
@@ -798,22 +798,21 @@ class InvoiceService {
798
798
  .dashedRule(370, 560)
799
799
  .skip(8);
800
800
  P.bold().size(9);
801
- P.text('Geschatte Subsidie', 50, {}, 12);
801
+ P.text('Geschatte Subsidie', 50, { width: 300 }, 12);
802
802
  P.normal().size(9);
803
803
  for (const item of subsidyItems) {
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(`− ${this.formatMoney(Math.abs(subsidyAmount), invoice.currency)}`, col5, P.y);
807
+ doc.text(`- ${this.formatMoney(Math.abs(subsidyAmount), invoice.currency)}`, col5, P.y);
808
808
  P.skip(14);
809
809
  }
810
- P.rule(370, 560).skip(8);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztechno_core",
3
- "version": "0.0.120",
3
+ "version": "0.0.122",
4
4
  "description": "Core files for ztechno framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",