shish пре 5 година
родитељ
комит
fbb45083f5
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      biz-hd/purchase/services/PurchaseService.php

+ 2 - 0
biz-hd/purchase/services/PurchaseService.php

@@ -59,6 +59,7 @@ class PurchaseService extends BaseService
         $couponId = $data['couponId'] ?? 0;
         $couponId = $data['couponId'] ?? 0;
         $discountType = $respond->discountType ?? dict::getDict('discountType', 'noDiscount');
         $discountType = $respond->discountType ?? dict::getDict('discountType', 'noDiscount');
         $discountAmount = $respond->discountAmount ?? 0;
         $discountAmount = $respond->discountAmount ?? 0;
+        $remark = $data['remark'] ?? '';
         $arr = [
         $arr = [
             'product' => $product,
             'product' => $product,
             'sjId' => $currentSjId,
             'sjId' => $currentSjId,
@@ -84,6 +85,7 @@ class PurchaseService extends BaseService
             'couponId' => $couponId,
             'couponId' => $couponId,
             'discountType' => $discountType,
             'discountType' => $discountType,
             'discountAmount' => $discountAmount,
             'discountAmount' => $discountAmount,
+            'remark' => $remark,
         ];
         ];
         $result = OrderClass::addOrder($arr);
         $result = OrderClass::addOrder($arr);
         $saleId = $result['id'] ?? 0;
         $saleId = $result['id'] ?? 0;