fix: discount percent calculation #101

Merged
irfan merged 1 commits from development into production 2024-09-21 18:10:34 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -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, {