Skip to content

Commit

Permalink
NTR: fix refund net
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Apr 29, 2024
1 parent bd34be2 commit b74edb3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ export default class RefundItemService {
if (item.refundQuantity > 0 && item.refundQuantity + item.refunded === item.shopware.quantity) {
refundTaxAmount += item.shopware.tax.totalToPerItemRoundingDiff;
}
const promotionTaxValuePerQty = item.shopware.promotion.taxValue / item.shopware.promotion.quantity;

let promotionTaxValue = 0;
if (item.refundTax) {
if (item.refundTax && item.shopware.promotion.taxValue > 0) {
const promotionTaxValuePerQty = item.shopware.promotion.taxValue / item.shopware.promotion.quantity;
promotionTaxValue = promotionTaxValuePerQty * item.refundQuantity;
}

Expand Down

0 comments on commit b74edb3

Please sign in to comment.