Commit 9bfec93c by hcy001

1

parent 1004af55
Showing with 10 additions and 10 deletions
...@@ -171,16 +171,16 @@ class InquiryItemsReportModel extends Model ...@@ -171,16 +171,16 @@ class InquiryItemsReportModel extends Model
} }
$price_rmb = $price_origin = $sale_price; $price_rmb = $price_origin = $sale_price;
if ($mainCurrency == 1 && $currency != $mainCurrency ){ #询价币种人民币 // if ($mainCurrency == 1 && $currency != $mainCurrency ){ #询价币种人民币
$rate1 = $CommonModel->getRate($currency); #获取汇率 // $rate1 = $CommonModel->getRate($currency); #获取汇率
$price_rmb = round($sale_price*$rate1,6); // $price_rmb = round($sale_price*$rate1,6);
} // }
if ($mainCurrency >1 && $currency != $mainCurrency ){ #询价单其他币种转人民币 // if ($mainCurrency >1 && $currency != $mainCurrency ){ #询价单其他币种转人民币
$rate2 = $CommonModel->getRate($currency); #转人民币汇率 // $rate2 = $CommonModel->getRate($currency); #转人民币汇率
$rate3 = $CommonModel->getRate($mainCurrency); #获取汇率 // $rate3 = $CommonModel->getRate($mainCurrency); #获取汇率
$salePrice = $sale_price*$rate2; // $salePrice = $sale_price*$rate2;
$price_origin = round($salePrice/$rate3,6); // $price_origin = round($salePrice/$rate3,6);
} // }
$temp = [ $temp = [
"currency"=>$mainCurrency, "currency"=>$mainCurrency,
......
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