Skip to content

Commit

Permalink
Apply channel name to discount label
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin-Magmodules committed Nov 18, 2024
1 parent a8b3f6f commit b7fc265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Service/Order/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function execute(ChannableOrderData $orderData): OrderInterface

if (isset($orderData['price']['discount']) && !empty((float)$orderData['price']['discount'])) {
$discountAmount = abs((float)$orderData['price']['discount']);
$order->setDiscountDescription(__('Channable discount'));
$order->setDiscountDescription($orderData['channel_name']);
$order->setBaseDiscountAmount($discountAmount * -1);
$order->setDiscountAmount($discountAmount * -1);
$order->setGrandTotal($order->getGrandTotal() - $discountAmount);
Expand Down

0 comments on commit b7fc265

Please sign in to comment.