Browse Source

采购单

shish 3 years ago
parent
commit
c2068a7628
1 changed files with 2 additions and 3 deletions
  1. 2 3
      biz-ghs/stat/classes/StatSaleClass.php

+ 2 - 3
biz-ghs/stat/classes/StatSaleClass.php

@@ -46,9 +46,8 @@ class StatSaleClass extends BaseClass
         $stockOut = StatStockOutClass::getSum($where);
 
         //采购入库
-        //$cg = StatCgClass::getSum($where);
         $cgWhere = ['mainId' => $mainId, 'status' => 4];
-        $cgWhere['addTime'] = ['between', [$currentStartTime, $currentEndTime]];
+        $cgWhere['entryTime'] = ['between', [$currentStartTime, $currentEndTime]];
         $cgList = PurchaseOrderClass::getAllByCondition($cgWhere, null, '*');
         $cg = 0;
         if (!empty($cgList)) {
@@ -140,7 +139,7 @@ class StatSaleClass extends BaseClass
             ['name' => '美团手续费', 'id' => 'mtFee', 'amount' => floatval($lsServiceFee)],
             ['name' => '采购', 'id' => 'cg', 'amount' => floatval($cg)],
             ['name' => '调拨入库', 'id' => 'allot', 'amount' => floatval($stockIn)],
-            ['name' => '员工工资', 'id'=>'salary', 'amount' => floatval($salary)],
+            ['name' => '员工工资', 'id' => 'salary', 'amount' => floatval($salary)],
         ];
         if (!empty($expendAmount)) {
             foreach ($expendAmount as $it) {