Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
php_frq_api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9bfec93c
authored
Apr 08, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
1004af55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
app/Model/InquiryItemsReportModel.php
app/Model/InquiryItemsReportModel.php
View file @
9bfec93c
...
...
@@ -171,16 +171,16 @@ class InquiryItemsReportModel extends Model
}
$price_rmb
=
$price_origin
=
$sale_price
;
if
(
$mainCurrency
==
1
&&
$currency
!=
$mainCurrency
){
#询价币种人民币
$rate1
=
$CommonModel
->
getRate
(
$currency
);
#获取汇率
$price_rmb
=
round
(
$sale_price
*
$rate1
,
6
);
}
if
(
$mainCurrency
>
1
&&
$currency
!=
$mainCurrency
){
#询价单其他币种转人民币
$rate2
=
$CommonModel
->
getRate
(
$currency
);
#转人民币汇率
$rate3
=
$CommonModel
->
getRate
(
$mainCurrency
);
#获取汇率
$salePrice
=
$sale_price
*
$rate2
;
$price_origin
=
round
(
$salePrice
/
$rate3
,
6
);
}
//
if ($mainCurrency == 1 && $currency != $mainCurrency ){ #询价币种人民币
//
$rate1 = $CommonModel->getRate($currency); #获取汇率
//
$price_rmb = round($sale_price*$rate1,6);
//
}
//
if ($mainCurrency >1 && $currency != $mainCurrency ){ #询价单其他币种转人民币
//
$rate2 = $CommonModel->getRate($currency); #转人民币汇率
//
$rate3 = $CommonModel->getRate($mainCurrency); #获取汇率
//
$salePrice = $sale_price*$rate2;
//
$price_origin = round($salePrice/$rate3,6);
//
}
$temp
=
[
"currency"
=>
$mainCurrency
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment