rabin 3 éve
szülő
commit
067f2d7ca0
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app/cash/lib/Set.php

+ 1 - 1
app/cash/lib/Set.php

@@ -102,7 +102,7 @@ class Set
         if ($data) {
         if ($data) {
             Dever::db($table)->update(array('where_id' => $id, 'status' => 2));
             Dever::db($table)->update(array('where_id' => $id, 'status' => 2));
 
 
-            if ($type == 'shop_sell') {
+            if ($type == 'shop_sell' && $data['cash'] > 0) {
                 $card = Dever::db('cash/order')->getCardAll(array('start'=>$data['start'],'end'=>$data['end'],'pay_type'=>2,'status'=>2,'type'=>1,'type_id'=>$data['shop_id'],'state'=>1));
                 $card = Dever::db('cash/order')->getCardAll(array('start'=>$data['start'],'end'=>$data['end'],'pay_type'=>2,'status'=>2,'type'=>1,'type_id'=>$data['shop_id'],'state'=>1));
                 $shop = Dever::db('shop/info')->find($data['shop_id']);
                 $shop = Dever::db('shop/info')->find($data['shop_id']);
                 if ($card && $card['cash'] > 0) {
                 if ($card && $card['cash'] > 0) {