Skip to content

Commit

Permalink
Merge pull request #8 from BrunoScorzafave/issue-4018
Browse files Browse the repository at this point in the history
#4018 Removed discount duplicate and added negative attribute to the discount value
  • Loading branch information
carinadues committed Feb 2, 2022
2 parents 6a9e3a7 + 086d6ec commit d055c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Resolver/Invoice/InvoiceItems.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ protected function formatDiscountDetails(OrderInterface $associatedOrder, Invoic
$discounts = [];
} else {
$discounts[] = [
'label' => $associatedOrder->getDiscountDescription() ?? __('Discount'),
'label' => $associatedOrder->getDiscountDescription(),
'amount' => [
'value' => abs($invoiceItem->getDiscountAmount()) ?? 0,
'currency' => $associatedOrder->getOrderCurrencyCode()
Expand Down

0 comments on commit d055c19

Please sign in to comment.