UPO 4.3, fixes for invoices

This commit is contained in:
Michał Chudy
2026-01-16 08:35:43 +01:00
parent 1912b5b48d
commit 5fb5a624b8
64 changed files with 1044 additions and 1444 deletions

View File

@@ -5,6 +5,7 @@ import {
formatText,
generateColumns,
getTable,
getValue,
hasValue,
verticalSpacing,
} from '../../../shared/PDF-functions';
@@ -169,6 +170,19 @@ export function generateDostawy(noweSrodkiTransportu: NoweSrodkiTransportu): Con
} else if (anyP22D) {
value.push('Dostawa dotyczy statków powietrznych, o których mowa w art. 2 pkt 10 lit. c ustawy');
}
const transportProperties = [
getValue(item.P_22BMK),
getValue(item.P_22BMD),
getValue(item.P_22BK),
getValue(item.P_22BNR),
getValue(item.P_22BRP),
].filter((prop) => !!prop);
if (transportProperties.length) {
value.push(transportProperties.join(', '));
}
if (item.DetailsString?._text) {
value.push(item.DetailsString._text);
}