rabin пре 3 година
родитељ
комит
d2aa1162ad
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      app/shop/lib/Refund.php

+ 4 - 0
app/shop/lib/Refund.php

@@ -171,6 +171,10 @@ class Refund
                         }
                     }
 
+                    if (isset($info['record_cash']) && $info['record_cash']) {
+                        $info['total_price'] = $info['total_price'] - $info['record_cash'];
+                    }
+
                     if (isset($info['discount_cash']) && $info['discount_cash']) {
                         $info['total_price'] = $info['total_price'] - $info['discount_cash'];
                     }