rabin 2 years ago
parent
commit
5c73d4fc34
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/shop/lib/Sell.php

+ 3 - 1
app/shop/lib/Sell.php

@@ -897,8 +897,10 @@ class Sell
                         $data['discount_id'] = $role['id'];
                         $data['list'][$k]['discount_cash'] = round(($data['list'][$k]['price'] - $discount_cash) * $n, 2);
                         $data['discount_cash'] += $data['list'][$k]['discount_cash'];
+                        $data['price'] += $discount_cash * $n;
+                    } else {
+                        $data['price'] += $data['list'][$k]['price'] * $n;
                     }
-                    $data['price'] += $discount_cash * $n;
                 } else {
                     $data['price'] += $data['list'][$k]['price'] * $n;
                 }