Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FMVip_LXJ
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhenfei.zhang
FMVip_LXJ
Commits
244cf599
Commit
244cf599
authored
Jul 20, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 结算接口中同一种支付方式可能出现正负值,负值是找零。
parent
4da0b670
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
FMVip_LXJ/task/taskfinal.cpp
+4
-4
No files found.
FMVip_LXJ/task/taskfinal.cpp
View file @
244cf599
...
...
@@ -29,11 +29,11 @@ void TaskFinal::packageServerReq()
QJsonObject
pay_ob
=
pay_v
.
toObject
();
QString
type
=
pay_ob
[
PosProps
.
Pay_id
].
toString
();
if
(
type
==
"01"
)
{
cashAmount
=
pay_ob
[
PosProps
.
Paid_total_amount
].
toInt
();
cashAmount
+
=
pay_ob
[
PosProps
.
Paid_total_amount
].
toInt
();
}
else
if
(
type
==
"20"
)
{
codeAmount
=
pay_ob
[
PosProps
.
Paid_total_amount
].
toInt
();
codeAmount
+
=
pay_ob
[
PosProps
.
Paid_total_amount
].
toInt
();
}
else
if
(
type
==
"20002"
)
{
// 积分,暂无
scoreAmount
=
pay_ob
[
PosProps
.
Paid_total_amount
].
toInt
();
scoreAmount
+
=
pay_ob
[
PosProps
.
Paid_total_amount
].
toInt
();
}
else
if
(
type
==
"21"
)
{
// 代金券
coupons
.
append
(
pay_ob
[
PosProps
.
Coupon_code
].
toString
());
}
else
if
(
type
==
"10"
||
type
==
"11"
||
type
==
"12"
)
{
...
...
@@ -49,7 +49,7 @@ void TaskFinal::packageServerReq()
}
}
else
{
qDebug
()
<<
QString
(
"未知的Pay Type: %1"
).
arg
(
type
);
thirdAmount
=
pay_ob
[
PosProps
.
Paid_total_amount
].
toInt
();
thirdAmount
+
=
pay_ob
[
PosProps
.
Paid_total_amount
].
toInt
();
}
}
trans
[
ServerProps
(
PosProps
.
Coupons
)]
=
coupons
;
...
...
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