Merge pull request 'fix: discount percent calculation' (#101) from development into production
Reviewed-on: #101pull/113/head 1.1.0-production.2
commit
92bf8fc342
|
@ -165,7 +165,7 @@ export function mappingRevertTransaction(data, type) {
|
|||
const discountPercent =
|
||||
discount_value && +discount_value > 0
|
||||
? +discount_value / +payment_sub_total
|
||||
: discount_percentage ?? 0 / 100;
|
||||
: (discount_percentage ?? 0) / 100;
|
||||
const discountValue = payment_sub_total * discountPercent;
|
||||
|
||||
Object.assign(data, {
|
||||
|
|
Loading…
Reference in New Issue