UPO 4.3, fixes for invoices
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user