fix lessee subjectType

This commit is contained in:
Chika 2021-06-18 15:05:32 +03:00
parent f275cebc40
commit 5ea97faf42

View File

@ -35,8 +35,8 @@ const mapCategory = {
};
const mapInfuranceToLesseSubjectType = {
100000000: '1',
100000001: '2',
100000000: 1,
100000001: 2,
};
const getSpecified = value => !isNull(value);
@ -117,11 +117,7 @@ export default function (this: ICalculationStore) {
const INN = `${this.getValue('INNForCalc')}`;
const infuranceOPF = this.getValue('infuranceOPF');
const lesseSubjectType = get(
mapInfuranceToLesseSubjectType,
infuranceOPF,
'0',
);
const lesseSubjectType = get(mapInfuranceToLesseSubjectType, infuranceOPF, 0);
return {
preparams: {