Browse Source

Merge branch 'master' of ssh://git.dever.cc:10022/dever-product/churen

rabin 3 years ago
parent
commit
fefae485e1
2 changed files with 6 additions and 1 deletions
  1. 1 0
      app/shop/database/buy_order.php
  2. 5 1
      app/shop/lib/Record.php

+ 1 - 0
app/shop/database/buy_order.php

@@ -436,6 +436,7 @@ $struct = array
         'default'   => '',
         'match'     => 'is_numeric',
         'desc'      => '',
+        'search'    => 'date',
     ),
 
     'operdate'     => array

+ 5 - 1
app/shop/lib/Record.php

@@ -40,7 +40,11 @@ class Record
     	$ids = Dever::db('shop/record')->insert($where);
 
         $update['where_id'] = $shop_id;
-        $update['set_price'] = $yue;
+        if ($type == 3 || $type == 8){
+            $update['set_price'] = $price;
+        } elseif ($type == 4){
+            $update['set_price'] = -1*$price;
+        }
         Dever::db('shop/info')->upCash($update);
     	return $ids;
     }