fix bonuses #2

This commit is contained in:
vchikalkin 2020-11-16 12:13:19 +03:00
parent d6675b6ee4
commit 760066dd84

View File

@ -489,7 +489,7 @@ export const prepareCalculationData = ({
if (evo_coefficient) {
preparedValues.ratBonus =
evo_coefficient.evo_sot_coefficient || 0 * (preparedValues.rats || 0);
(evo_coefficient.evo_sot_coefficient || 0) * (preparedValues.rats || 0);
}
}
@ -512,8 +512,8 @@ export const prepareCalculationData = ({
if (evo_coefficient) {
preparedValues.nsibBonus =
evo_coefficient.evo_sot_coefficient ||
0 * (preparedValues.nsibBrutto || 0);
(evo_coefficient.evo_sot_coefficient || 0) *
(preparedValues.nsibBrutto || 0);
}
}
@ -536,8 +536,8 @@ export const prepareCalculationData = ({
if (evo_coefficient) {
preparedValues.nsBonus =
evo_coefficient.evo_sot_coefficient ||
0 * insuranceNSRow?.insCost?.value;
(evo_coefficient.evo_sot_coefficient || 0) *
insuranceNSRow?.insCost?.value;
}
}