При загрузке КП заполнять поле "Лизинг без КАСКО" (SelectLeasingWithoutKasko) записью из связанных с quote addproducttype (по аналогии с НСИБ)

This commit is contained in:
vchikalkin 2022-09-22 17:32:30 +03:00
parent 7ac869b552
commit 4a11f56f87

View File

@ -4,7 +4,7 @@ import { resetIns } from 'client/Containers/Calculation/Components/ELT/lib/reset
import { numberElementsProps } from 'client/Containers/Calculation/Elements/props/common';
import {
getTitle,
getValueName,
getValueName
} from 'client/Containers/Calculation/Elements/tools';
import { ElementsNames } from 'client/Containers/Calculation/types/elements';
import { openNotification } from 'client/Elements/Notification';
@ -14,7 +14,7 @@ import {
mainOptionsForQuoteQuery,
quoteQuery,
secondaryOptionsForQuoteQuery,
singleOptionsForQuoteQuery,
singleOptionsForQuoteQuery
} from 'core/services/CrmService/graphql/query/quote';
import { TOptionizedEntity } from 'core/services/CrmService/types/common';
import {
@ -23,7 +23,7 @@ import {
IEvoGraph,
IEvoRewardCondition,
IEvoTown,
IQuote,
IQuote
} from 'core/services/CrmService/types/entities';
import { currentISODate } from 'core/tools/date';
import { NIL } from 'core/tools/uuid';
@ -40,6 +40,7 @@ const map_add_product_types_to_values = {
tracker: 100000003,
telematic: 100000004,
fuelCard: 100000005,
leasingWithoutKasko: 100000007,
};
const tablePaymentsStatuses = (graphType, seasonType, leasingPeriod) => {