|
|
@@ -153,9 +153,6 @@ class PurchaseOrderClass extends BaseClass
|
|
|
|
|
|
}
|
|
|
|
|
|
- //当天和当月支出统计
|
|
|
- StatOutClass::updateOrInsert($order['sjId'], $order['shopId'], $order['orderPrice']);
|
|
|
-
|
|
|
//门店支出增加
|
|
|
$shop = ShopClass::getLockById($shopId);
|
|
|
if (empty($shop)) {
|
|
|
@@ -166,6 +163,9 @@ class PurchaseOrderClass extends BaseClass
|
|
|
$shop->totalExpend = $currentTotalExpend;
|
|
|
$shop->save();
|
|
|
|
|
|
+ //当天和当月支出统计
|
|
|
+ StatOutClass::updateOrInsert($shop, $order['orderPrice']);
|
|
|
+
|
|
|
//支出流水
|
|
|
$payWay = dict::getDict('payWay', 'unknown');
|
|
|
$capitalType = dict::getDict('capitalType', 'ghsPurchase', 'id');
|