makeapps-transformer 1.0.5 → 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
|
}
|
|
@@ -87,7 +87,7 @@ function generateWiersze(faVat) {
|
|
|
87
87
|
const ceny = (0, PDF_functions_1.formatText)(`Faktura wystawiona w cenach ${content.fieldsWithValue.includes('P_11') ? 'netto' : 'brutto'} w walucie ${(_c = faVat.KodWaluty) === null || _c === void 0 ? void 0 : _c._text}`, [common_enum_1.default.Label, common_enum_1.default.MarginBottom8]);
|
|
88
88
|
const p_15 = (0, PDF_functions_1.getValue)(faVat.P_15);
|
|
89
89
|
let opis = '';
|
|
90
|
-
if (rodzajFaktury == const_1.TRodzajFaktury.ROZ
|
|
90
|
+
if (rodzajFaktury == const_1.TRodzajFaktury.ROZ) {
|
|
91
91
|
opis = {
|
|
92
92
|
stack: (0, PDF_functions_1.createLabelTextArray)([
|
|
93
93
|
{ value: 'Kwota pozostała do zapłaty: ', formatTyp: common_enum_1.default.LabelGreater },
|
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
|
}
|
|
@@ -73,7 +73,7 @@ export function generateWiersze(faVat: Fa): Content {
|
|
|
73
73
|
const p_15 = getValue(faVat.P_15);
|
|
74
74
|
let opis: Content = '';
|
|
75
75
|
|
|
76
|
-
if (rodzajFaktury == TRodzajFaktury.ROZ
|
|
76
|
+
if (rodzajFaktury == TRodzajFaktury.ROZ) {
|
|
77
77
|
opis = {
|
|
78
78
|
stack: createLabelTextArray([
|
|
79
79
|
{ value: 'Kwota pozostała do zapłaty: ', formatTyp: FormatTyp.LabelGreater },
|