makeapps-transformer 1.0.10 → 1.0.11

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.
@@ -17,6 +17,9 @@ function generateSzczegoly(faVat) {
17
17
  const P_6Scope = generateP_6Scope((_b = faVat.OkresFa) === null || _b === void 0 ? void 0 : _b.P_6_Od, (_c = faVat.OkresFa) === null || _c === void 0 ? void 0 : _c.P_6_Do);
18
18
  const cenyLabel1 = [];
19
19
  const cenyLabel2 = [];
20
+ if (faVat.KodWaluty) {
21
+ cenyLabel2.push((0, PDF_functions_1.createLabelText)('Kod waluty: ', faVat.KodWaluty));
22
+ }
20
23
  if (!(faWiersze.length > 0 || zamowieniaWiersze.length > 0)) {
21
24
  const Any_P_11 = (0, PDF_functions_1.hasColumnsValue)('P_11', faWiersze) || (0, PDF_functions_1.hasColumnsValue)('P_11', zamowieniaWiersze);
22
25
  if (Any_P_11) {
@@ -25,7 +28,6 @@ function generateSzczegoly(faVat) {
25
28
  else {
26
29
  cenyLabel1.push((0, PDF_functions_1.createLabelText)('Faktura wystawiona w cenach: ', 'brutto'));
27
30
  }
28
- cenyLabel2.push((0, PDF_functions_1.createLabelText)('Kod waluty: ', faVat.KodWaluty));
29
31
  }
30
32
  const P_12_XIILabel = [];
31
33
  if ((0, PDF_functions_1.hasColumnsValue)('P_12_XII', faWiersze) || (0, PDF_functions_1.hasColumnsValue)('P_12_XII', zamowieniaWiersze)) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "makeapps-transformer",
3
3
  "main": "dist/index.js",
4
4
  "types": "dist/index.d.ts",
5
- "version": "1.0.10",
5
+ "version": "1.0.11",
6
6
  "scripts": {
7
7
  "build": "tsc"
8
8
  },
@@ -32,7 +32,11 @@ export function generateSzczegoly(faVat: Fa): Content[] {
32
32
  const cenyLabel1: Content[] = [];
33
33
  const cenyLabel2: Content[] = [];
34
34
 
35
- if (!(faWiersze.length > 0 || zamowieniaWiersze.length > 0)) {
35
+ if (faVat.KodWaluty) {
36
+ cenyLabel2.push(createLabelText('Kod waluty: ', faVat.KodWaluty));
37
+ }
38
+
39
+ if (!(faWiersze.length > 0 || zamowieniaWiersze.length > 0)) {
36
40
  const Any_P_11 = hasColumnsValue('P_11', faWiersze) || hasColumnsValue('P_11', zamowieniaWiersze);
37
41
 
38
42
  if (Any_P_11) {
@@ -40,7 +44,7 @@ export function generateSzczegoly(faVat: Fa): Content[] {
40
44
  } else {
41
45
  cenyLabel1.push(createLabelText('Faktura wystawiona w cenach: ', 'brutto'));
42
46
  }
43
- cenyLabel2.push(createLabelText('Kod waluty: ', faVat.KodWaluty));
47
+ // cenyLabel2.push(createLabelText('Kod waluty: ', faVat.KodWaluty));
44
48
  }
45
49
 
46
50
  const P_12_XIILabel: Content[] = [];