| 1234567891011121314151617181920212223242526 |
- <?php
- namespace ghs\controllers;
- use biz\ghs\classes\GhsClass;
- use bizGhs\order\classes\PurchaseOrderClass;
- use bizGhs\order\services\PurchaseOrderService;
- use common\components\util;
- use Yii;
- class PurchaseController extends BaseController
- {
- //待结款明细 ssh 2021.1.26
- public function actionDebtList()
- {
- $id = Yii::$app->request->get('id', 0);
- $info = GhsClass::getGhsInfo($id);
- GhsClass::valid($info, $this->shopId);
- $where = ['ghsId' => $id, 'debt' => PurchaseOrderClass::DEBT_YES];
- $respond = PurchaseOrderService::getDebtList($where);
- $respond['ghsInfo'] = $info;
- util::success($respond);
- }
- }
|