fix lessee subjectType
This commit is contained in:
parent
f275cebc40
commit
5ea97faf42
@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user