merge release/calc-91_elt_osago_lessee

This commit is contained in:
Chika 2022-06-03 10:03:48 +03:00
parent a77c4a7938
commit b8bde29036

View File

@ -124,6 +124,14 @@ export default function (this: ICalculationStore, company: IAccount) {
opfSpecified: true,
};
const inn = this.getValue('INNForCalc').toString();
const osagoRow = this.getTableRowValues(
'tableInsurance',
rows => rows.findIndex(x => x?.key === 'osago'),
'value',
);
return {
preparams: {
kladr,
@ -160,6 +168,16 @@ export default function (this: ICalculationStore, company: IAccount) {
kbm: '3',
},
],
lessee: {
inn,
SubjectType: 1,
SubjectTypeSpecified: true,
},
insurer: {
SubjectType: 1,
SubjectTypeSpecified: true,
INN: osagoRow?.insured === 100_000_000 ? inn : '9724016636',
},
},
};
}