shish 1 anno fa
parent
commit
12f48cc925
1 ha cambiato i file con 1 aggiunte e 8 eliminazioni
  1. 1 8
      app-hd/controllers/ConsoleController.php

+ 1 - 8
app-hd/controllers/ConsoleController.php

@@ -19,13 +19,6 @@ class ConsoleController extends BaseController
     //总览
     public function actionStat()
     {
-        $where = ['mainId' => $this->mainId, 'debt' => 1]; // 重新赋值
-        $pfDebt = OrderClass::sum($where, 'remainDebtPrice'); // 总赊账
-        $pfDebt = $pfDebt === null ? 0 : $pfDebt;
-        $lsDebt = \bizHd\order\classes\OrderClass::sum(['mainId' => $this->mainId, 'debt' => 1], 'remainDebtPrice');
-        $lsDebt = $lsDebt === null ? 0 : $lsDebt;
-        $totalDebt = bcadd($pfDebt, $lsDebt, 2);
-
         $itemList = ItemClass::getAllByCondition(['mainId' => $this->mainId], null, 'id,stock,cost', null, true);
         $totalItemNum = 0;
         $totalCost = 0;
@@ -48,7 +41,7 @@ class ConsoleController extends BaseController
             ['name' => "花束", "url" => '/admin/stat/stock', 'value' => 10, 'type' => 1],
             ['name' => "花材", "url" => '/admin/stat/stock', 'value' => $totalItemNum, 'type' => 1],
             ['name' => "库存值", "url" => '/admin/stat/stock', 'value' => $totalItemNum, 'type' => 1],
-            ['name' => "总赊账", "url" => '/admin/home/member', 'value' => $totalDebt, 'type' => 4],
+            ['name' => "总赊账", "url" => '/admin/home/member', 'value' => 0, 'type' => 4],
             ['name' => "总客户", "url" => '/admin/home/member', 'value' => $totalCustom, 'type' => 4],
             ['name' => "订单", "url" => '/admin/home/order', 'value' => $totalOrder, 'type' => 4],
         ];