ztechno_core 0.0.135 → 0.0.136

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.
@@ -881,7 +881,7 @@ class InvoiceService {
881
881
  const tableTop = doc.y;
882
882
  const col1 = 50; // Description
883
883
  const col2 = 280; // VAT %
884
- const col3 = 330; // Qty
884
+ const col3 = hideProductPrice ? 480 : 330; // Qty (wider spacing when price cols hidden)
885
885
  const col4 = 390; // Unit price (excl. VAT)
886
886
  const col5 = 480; // Total Ex. VAT
887
887
  doc.fontSize(9).font('Helvetica-Bold');
@@ -955,7 +955,7 @@ class InvoiceService {
955
955
  P.size(9);
956
956
  doc.text(item.description, col1, P.y, { width: 225 });
957
957
  doc.text(`${vatRate.toFixed(0)}%`, col2, P.y);
958
- doc.text(String(item.quantity), col3, P.y);
958
+ doc.text(`X ${item.quantity}`, col3, P.y);
959
959
  if (!hideProductPrice) {
960
960
  doc.text(this.formatMoney(Number(item.unit_price), invoice.currency), col4, P.y);
961
961
  doc.text(this.formatMoney(lineSubtotal, invoice.currency), col5, P.y);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztechno_core",
3
- "version": "0.0.135",
3
+ "version": "0.0.136",
4
4
  "description": "Core files for ztechno framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",