diff --git a/application/admin/controller/Order.php b/application/admin/controller/Order.php index feb48f5..40bcb34 100755 --- a/application/admin/controller/Order.php +++ b/application/admin/controller/Order.php @@ -244,6 +244,7 @@ class Order extends Backend "warehouse_id" => $row->warehouse_id, "order_amount" => $value['price'], "pay_amount" => $value['price'], + "actual_amount" => $value['price'], "coupon_price" => 0, "coupon_id" => 0, "status" => 3, diff --git a/application/admin/controller/Warehouse.php b/application/admin/controller/Warehouse.php index efe4ba9..778e186 100755 --- a/application/admin/controller/Warehouse.php +++ b/application/admin/controller/Warehouse.php @@ -54,7 +54,7 @@ class Warehouse extends Backend if (time() > strtotime($v['end'])) { $v['show_status'] = 1; - $info = Expend::where('date', date("Y-m-d"))->find(); + $info = Expend::where('date', date("Y-m-d"))->where('is_delete', 0)->find(); if ($info) { if ($info['status'] == 0) { $v['show_status'] = 2; @@ -138,7 +138,7 @@ class Warehouse extends Backend if (!$row) $this->error(__('No Results were found')); if ($this->request->isPost()){ - $info = Expend::where('date', date("Y-m-d"))->find(); + $info = Expend::where('date', date("Y-m-d"))->where('is_delete', 0)->find(); if ($info) { $this->error(__('今日订单汇算已生成过了')); } diff --git a/application/admin/view/user/user/edit.html b/application/admin/view/user/user/edit.html index cb51b0b..b36ee6b 100755 --- a/application/admin/view/user/user/edit.html +++ b/application/admin/view/user/user/edit.html @@ -64,12 +64,12 @@ -