Merge branch 'development'

This commit is contained in:
Chika 2022-06-03 10:05:22 +03:00
commit 601bfb6d4d

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',
},
},
};
}