chore(): 1.0.0

This commit is contained in:
Michał Chudy
2026-01-30 20:06:43 +01:00
parent 5fb5a624b8
commit f48680a65f
51 changed files with 506 additions and 285 deletions

View File

@@ -109,18 +109,21 @@ export function generatePlatnosc(platnosc: Platnosc | undefined): Content {
table.push(tableZaplataCzesciowa.content);
}
table.push(
generateTwoColumns(
generujRachunekBankowy(
getTable(platnosc.RachunekBankowy as Record<string, FP>[]),
'Numer rachunku bankowego'
),
generujRachunekBankowy(
getTable(platnosc.RachunekBankowyFaktora as Record<string, FP>[]),
'Numer rachunku bankowego faktora'
)
)
const rachunekBankowy: Content[][] = getTable(platnosc.RachunekBankowy as Record<string, FP>[]).map(
(rachunek) => generujRachunekBankowy([rachunek], 'Numer rachunku bankowego')
);
const rachunekBankowyFaktora: Content[][] = getTable(
platnosc.RachunekBankowyFaktora as Record<string, FP>[]
).map((rachunek) => generujRachunekBankowy([rachunek], 'Numer rachunku bankowego faktora'));
const rachunkiBankowe: Content[][] = [...rachunekBankowy, ...rachunekBankowyFaktora];
if (rachunkiBankowe.length > 0) {
rachunkiBankowe.forEach((rachunek, index) => {
if (index % 2 === 0) {
table.push(generateTwoColumns(rachunek, rachunkiBankowe[index + 1] ?? []));
}
});
}
if (platnosc.Skonto) {
table.push(createHeader('Skonto', [0, 0]));