makeapps-transformer 1.0.6 → 1.0.7
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.
|
@@ -24,11 +24,12 @@ function generatePodmiot2(podmiot2) {
|
|
|
24
24
|
}
|
|
25
25
|
if (podmiot2.DaneKontaktowe || podmiot2.NrKlienta) {
|
|
26
26
|
result.push((0, PDF_functions_1.formatText)('Dane kontaktowe', [common_enum_1.default.Label, common_enum_1.default.LabelMargin]), ...(0, PodmiotDaneKontaktowe_1.generateDaneKontaktowe)((_a = podmiot2.DaneKontaktowe) !== null && _a !== void 0 ? _a : []), (0, PDF_functions_1.createLabelText)('Numer klienta: ', podmiot2.NrKlienta));
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
}
|
|
28
|
+
if (podmiot2.JST) {
|
|
29
|
+
result.push((0, PDF_functions_1.createLabelText)('Faktura dotyczy jednostki podrzędnej JST: ', ((_b = podmiot2.JST) === null || _b === void 0 ? void 0 : _b._text) === '1' ? 'TAK' : 'NIE', common_enum_1.default.Default, { marginTop: 8 }));
|
|
30
|
+
}
|
|
31
|
+
if (podmiot2.GV) {
|
|
32
|
+
result.push((0, PDF_functions_1.createLabelText)('Faktura dotyczy członka grupy GV: ', ((_c = podmiot2.GV) === null || _c === void 0 ? void 0 : _c._text) === '1' ? 'TAK' : 'NIE', common_enum_1.default.Default, podmiot2.JST ? {} : { marginTop: 8 }));
|
|
32
33
|
}
|
|
33
34
|
return result;
|
|
34
35
|
}
|
package/package.json
CHANGED
|
@@ -37,19 +37,24 @@ export function generatePodmiot2(podmiot2: Podmiot2): Content[] {
|
|
|
37
37
|
...generateDaneKontaktowe(podmiot2.DaneKontaktowe ?? []),
|
|
38
38
|
createLabelText('Numer klienta: ', podmiot2.NrKlienta)
|
|
39
39
|
);
|
|
40
|
+
}
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
if (daneKontaktowe.length) {
|
|
44
|
-
createLabelText(
|
|
42
|
+
if (podmiot2.JST) {
|
|
43
|
+
result.push(createLabelText(
|
|
45
44
|
'Faktura dotyczy jednostki podrzędnej JST: ',
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
daneKontaktowe[0].GV?._text === '1' ? 'TAK' : 'NIE'
|
|
51
|
-
);
|
|
45
|
+
podmiot2.JST?._text === '1' ? 'TAK' : 'NIE',
|
|
46
|
+
FormatTyp.Default,
|
|
47
|
+
{ marginTop: 8 }
|
|
48
|
+
));
|
|
52
49
|
}
|
|
53
|
-
|
|
50
|
+
if (podmiot2.GV) {
|
|
51
|
+
result.push(createLabelText(
|
|
52
|
+
'Faktura dotyczy członka grupy GV: ',
|
|
53
|
+
podmiot2.GV?._text === '1' ? 'TAK' : 'NIE',
|
|
54
|
+
FormatTyp.Default,
|
|
55
|
+
podmiot2.JST ? {} : { marginTop: 8 }
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
54
59
|
return result;
|
|
55
60
|
}
|