fix build config & fixes for invoice FA1/FA2/FA3
This commit is contained in:
@@ -14,15 +14,20 @@ import FormatTyp from '../../../shared/enums/common.enum';
|
||||
import { FormContentState } from '../../../shared/types/additional-data.types';
|
||||
|
||||
export function generateDodatkoweInformacje(faVat: Fa): Content[] {
|
||||
const tpLabel1: Content[] = [];
|
||||
const tpLabel2: Content[] = [];
|
||||
const tpLabel: Content[] = [];
|
||||
|
||||
if (getValue(faVat.TP) === '1') {
|
||||
tpLabel1.push(
|
||||
tpLabel.push(
|
||||
formatText('- Istniejące powiązania między nabywcą a dokonującym dostawy towarów lub usługodawcą')
|
||||
);
|
||||
tpLabel2.push(formatText('- Faktura, o której mowa w art. 109 ust. 3d ustawy'));
|
||||
}
|
||||
|
||||
const fpLabel: Content[] = [];
|
||||
|
||||
if (getValue(faVat.FP) === '1') {
|
||||
fpLabel.push(formatText('- Faktura, o której mowa w art. 109 ust. 3d ustawy'));
|
||||
}
|
||||
|
||||
const zwrotAkcyzyLabel: Content[] = [];
|
||||
|
||||
if (getValue(faVat.ZwrotAkcyzy) === '1') {
|
||||
@@ -33,7 +38,7 @@ export function generateDodatkoweInformacje(faVat: Fa): Content[] {
|
||||
);
|
||||
}
|
||||
|
||||
const labels: Content[][] = [tpLabel1, tpLabel2, zwrotAkcyzyLabel].filter(
|
||||
const labels: Content[][] = [tpLabel, fpLabel, zwrotAkcyzyLabel].filter(
|
||||
(el: Content[]): boolean => el.length > 0
|
||||
);
|
||||
const table: Content[] = [
|
||||
|
||||
Reference in New Issue
Block a user