Browse Source

优惠类型

shish 5 năm trước cách đây
mục cha
commit
13289398ac
2 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 3 2
      biz-ghs/order/services/OrderService.php
  2. 2 0
      common/components/dict.php

+ 3 - 2
biz-ghs/order/services/OrderService.php

@@ -195,7 +195,7 @@ class OrderService extends BaseService
     //欠款记录 ssh 2021.2.4
     public static function getDebtOrderList($where)
     {
-        $list = OrderClass::getAllList(['id', 'orderSn','realPrice', 'actPrice', 'addTime'], $where, 'addTime DESC');
+        $list = OrderClass::getAllList(['id', 'orderSn', 'realPrice', 'actPrice', 'addTime'], $where, 'addTime DESC');
         $respond['list'] = $list;
         return $respond;
     }
@@ -459,7 +459,8 @@ class OrderService extends BaseService
             }
             if (isset($order->discountType) && $order->discountType == dict::getDict('discountType', 'usePtCoupon')) {
                 //客户使用优惠券增加的余额
-                ShopClass::customKdUseCouponAddBalance($shop, $order, $capitalType);
+                $theCapital = dict::getDict('capitalType', 'usePtCoupon', 'id');
+                ShopClass::customKdUseCouponAddBalance($shop, $order, $theCapital);
             }
         }
 

+ 2 - 0
common/components/dict.php

@@ -140,6 +140,7 @@ class dict
             'ghsCheckOut' => ['id' => 26, 'name' => 'ghsCheckOut'],
             //供货商入库
             'ghsCheckIn' => ['id' => 27, 'name' => 'ghsCheckIn'],
+            'usePtCoupon' => ['id' => 30, 'name' => 'usePtCoupon'],
         ],
         "capitalTypeList" => [//流水类型的对应链接,后台收支明细查看时跳转的链接
             0 => ['link' => '/capital/order-detail', 'name' => '网店', 'orderLink' => '/order/detail', 'id' => 0,],
@@ -155,6 +156,7 @@ class dict
             12 => ['link' => '/capital/purchase-detail', 'name' => '培训报名', 'orderLink' => '', 'id' => 12,],
             20 => ['link' => '', 'name' => '采购结算', 'orderLink' => '', 'id' => 20,],
             25 => ['link' => '', 'name' => '采购', 'orderLink' => '', 'id' => 25,],
+            30 => ['link' => '', 'name' => '使用平台优惠券', 'orderLink' => '', 'id' => 30,],
         ],
 
         //用户来源