rabin há 3 anos atrás
pai
commit
047ea1be2b
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      app/shop/lib/Refund.php

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

@@ -256,6 +256,12 @@ class Refund
                     }
                 }
 
+                if (!$data['refund_cash']) {
+                    $data['refund_cash'] = 0;
+                }
+                if (isset($data['refund_p_cash']) && !$data['refund_p_cash']) {
+                    $data['refund_p_cash'] = 0;
+                }
                 $update = array();
                 $update['where_id'] = $data['id'];
                 $update['refund_cash'] = $data['refund_cash'] + $cash + $re_cash;