shish 2 gadi atpakaļ
vecāks
revīzija
66b156fd9d
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      app-pt/controllers/RenewController.php

+ 4 - 0
app-pt/controllers/RenewController.php

@@ -19,7 +19,11 @@ class RenewController extends BaseController
         if ($status > -1) {
         if ($status > -1) {
             $where['status'] = $status;
             $where['status'] = $status;
         }
         }
+
+        $amount = RenewClass::sum(['status' => 1], 'actPrice');
+
         $list = RenewClass::getRenewList($where);
         $list = RenewClass::getRenewList($where);
+        $list['totalAmount'] = $amount;
         util::success($list);
         util::success($list);
     }
     }