ELT: numCalc -> string

This commit is contained in:
vchikalkin 2024-03-26 12:08:30 +03:00
parent 3e705d643e
commit 530cdbf018
5 changed files with 5 additions and 8 deletions

View File

@ -101,7 +101,7 @@ export const Osago = observer(() => {
$tables.elt.osago.setRow({
key,
message: error || message,
numCalc,
numCalc: `${numCalc}`,
skCalcId,
status: error ? 'error' : null,
sum: premiumSum,

View File

@ -274,7 +274,7 @@ export const RowSchema = z.object({
message: z.string().nullable(),
metodCalc: z.union([z.literal('CRM'), z.literal('ELT')]),
name: z.string(),
numCalc: z.number().or(z.string()),
numCalc: z.string(),
requestId: z.string(),
skCalcId: z.string(),
status: z.string().nullable(),

View File

@ -263,7 +263,6 @@ query GetQuoteData($quoteId: Uuid!) {
evo_transactioncurrencyid
evo_equip_price
evo_coefficien_bonus_reducttion
evo_my_osago
}
}

File diff suppressed because one or more lines are too long

View File

@ -22,9 +22,7 @@ export async function getKPData({ quote }: GetQuoteInputData): Promise<GetQuoteP
if (quote?.evo_osago_accountid && quote?.evo_id_elt_osago && quote?.evo_osago_price) {
elt.osago = {
key: quote?.evo_osago_accountid,
numCalc: quote.evo_my_osago
? quote?.evo_id_elt_osago
: Number.parseInt(quote?.evo_id_elt_osago, 10),
numCalc: quote?.evo_id_elt_osago,
sum: quote?.evo_osago_price,
};
}