fix: apply osago from quote

This commit is contained in:
vchikalkin 2021-07-13 11:53:05 +03:00
parent c3d36fbd5e
commit 85455b7319

View File

@ -545,13 +545,12 @@ const loadKpReaction: IReactionEffect = calculationStore => ({
if (!isNil(quoteValue)) row[rowFieldName] = quoteValue;
});
//fix with Serega
row['evo_id_elt_osago'] = quote.evo_id_elt_osago
? parseInt(quote.evo_id_elt_osago)
: undefined;
if (quote.evo_id_elt_osago) {
row['evo_id_elt_osago'] = parseInt(quote.evo_id_elt_osago);
}
if (
Object.keys(mapQuoteToELTOsago).length ===
Object.keys(mapQuoteToELTOsago).length + 1 ===
Object.keys(row).length
) {
ELTStore.addToCompanyRes('osago', osagoIndex, row);