ELT: numCalc -> string
This commit is contained in:
parent
3e705d643e
commit
530cdbf018
@ -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,
|
||||
|
||||
@ -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(),
|
||||
|
||||
@ -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
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user