lesse subject type

This commit is contained in:
Chika 2021-06-18 15:02:03 +03:00
parent af0d37e446
commit f275cebc40

View File

@ -34,6 +34,11 @@ const mapCategory = {
100000004: 'E1',
};
const mapInfuranceToLesseSubjectType = {
100000000: '1',
100000001: '2',
};
const getSpecified = value => !isNull(value);
export default function (this: ICalculationStore) {
@ -111,6 +116,13 @@ export default function (this: ICalculationStore) {
const INN = `${this.getValue('INNForCalc')}`;
const infuranceOPF = this.getValue('infuranceOPF');
const lesseSubjectType = get(
mapInfuranceToLesseSubjectType,
infuranceOPF,
'0',
);
return {
preparams: {
kladr,
@ -172,7 +184,7 @@ export default function (this: ICalculationStore) {
SubjectTypeSpecified: true,
},
Lessee: {
SubjectType: 1,
SubjectType: lesseSubjectType,
SubjectTypeSpecified: true,
INN,
},