Merge branch 'development'
This commit is contained in:
commit
601bfb6d4d
@ -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',
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user