Commit 2dab6b04 by 朱继来

调整

parent d172f01a
Showing with 11 additions and 1 deletions
...@@ -316,6 +316,10 @@ class QuoteModel extends Model ...@@ -316,6 +316,10 @@ class QuoteModel extends Model
$quote_info['brand_name'] = $brand[0]['brand_name']; $quote_info['brand_name'] = $brand[0]['brand_name'];
unset($quote_info['brand_s']); unset($quote_info['brand_s']);
if ($quote_info['currency'] == 2) { // 美元时,含税单价为0
$quote_info['price_rmb'] = 0;
}
$params = []; $params = [];
$params['spu_name'] = strtoupper($quote_info['goods_name']); $params['spu_name'] = strtoupper($quote_info['goods_name']);
$params['brand_name'] = $quote_info['brand_name']; $params['brand_name'] = $quote_info['brand_name'];
...@@ -402,8 +406,14 @@ class QuoteModel extends Model ...@@ -402,8 +406,14 @@ class QuoteModel extends Model
$ApiController = new ApiController; $ApiController = new ApiController;
foreach ($excel as &$v) { foreach ($excel as &$v) {
if ($v['currency'] == 'RMB') {
$v['currency'] = 1;
} else {
$v['currency'] = 2;
$v['price_rmb'] = 0; // 美元时,含税单价为0
}
$v['quote_sn'] = $ApiController->createSn($this, 'quote_sn', 'B'); $v['quote_sn'] = $ApiController->createSn($this, 'quote_sn', 'B');
$v['currency'] = $v['currency'] == 'RMB' ? 1 : 2;
$v['inquiry_id'] = $input['inquiry_id']; $v['inquiry_id'] = $input['inquiry_id'];
$v['inquiry_sn'] = $input['inquiry_sn']; $v['inquiry_sn'] = $input['inquiry_sn'];
$v['inquiry_items_id'] = $input['inquiry_items_id']; $v['inquiry_items_id'] = $input['inquiry_items_id'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment