|
@@ -56,12 +56,7 @@ class PurchaseService extends BaseService
|
|
|
$purchaseId = $respond->id ?? 0;
|
|
$purchaseId = $respond->id ?? 0;
|
|
|
$shopAdminId = $data['shopAdminId'] ?? 0;
|
|
$shopAdminId = $data['shopAdminId'] ?? 0;
|
|
|
$shopAdminName = $data['shopAdminName'] ?? '';
|
|
$shopAdminName = $data['shopAdminName'] ?? '';
|
|
|
- //客户采购时选了自取,则供货商的销售单就是自取
|
|
|
|
|
- $sendType = OrderClass::SEND_TYPE_UNKNOWN;
|
|
|
|
|
- $getType = $data['getType'] ?? PurchaseClass::GET_TYPE_SELF_GET;
|
|
|
|
|
- if ($getType == PurchaseClass::GET_TYPE_SELF_GET) {
|
|
|
|
|
- $sendType = OrderClass::SEND_TYPE_NO;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ $sendType = $data['sendType'] ?? 1;
|
|
|
$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;
|