Merge pull request #1027 from shreesh-webkul/gli-2099

Fixed: cart rule does not show under available coupons when cart rule is created from refund request
This commit is contained in:
Rohit Jain
2024-05-14 20:52:07 +05:30
committed by GitHub

View File

@@ -493,7 +493,7 @@ class AdminOrderRefundRequestsController extends ModuleAdminController
$cartrule->date_from = date('Y-m-d H:i:s', $now);
$cartrule->date_to = date('Y-m-d H:i:s', $now + (3600 * 24 * 365.25)); /* 1 year */
$cartrule->active = 1;
$cartrule->highlight = 1;
$cartrule->reduction_amount = $totalRefundedAmount;
$cartrule->reduction_tax = true;
$cartrule->minimum_amount_currency = $objOrder->id_currency;