Skip to content

Commit

Permalink
Fixed:Unable to add discount coupon of 100% on order detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitwebkul committed Jun 1, 2024
1 parent d97c22d commit 9ba776a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/admin/AdminOrdersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2107,7 +2107,7 @@ public function postProcess()
switch (Tools::getValue('discount_type')) {
// Percent type
case 1:
if ($discount_value < 100) {
if ($discount_value <= 100) {
if (isset($order_invoice)) {
$cart_rules[$order_invoice->id]['value_tax_incl'] = Tools::ps_round($order_invoice->total_paid_tax_incl * $discount_value / 100, 2);
$cart_rules[$order_invoice->id]['value_tax_excl'] = Tools::ps_round($order_invoice->total_paid_tax_excl * $discount_value / 100, 2);
Expand Down

0 comments on commit 9ba776a

Please sign in to comment.