Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_vip
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
xiaojing.zhang
fmp_vip
Commits
84c508d0
Commit
84c508d0
authored
Jun 19, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修复支付总金额等错误。
parent
d0440f70
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
task/taskpay.cpp
+5
-2
No files found.
task/taskpay.cpp
View file @
84c508d0
...
@@ -74,6 +74,7 @@ void TaskPay::packagePOSRsp()
...
@@ -74,6 +74,7 @@ void TaskPay::packagePOSRsp()
p
.
push_back
(
PosProps
.
StatusCode
);
p
.
push_back
(
PosProps
.
StatusCode
);
p
.
push_back
(
PosProps
.
Msg
);
p
.
push_back
(
PosProps
.
Msg
);
p
.
push_back
(
PosProps
.
Fm_id
);
p
.
push_back
(
PosProps
.
Fm_id
);
p
.
push_back
(
PosProps
.
Fm_transId
);
foreach
(
QString
prop
,
p
)
{
foreach
(
QString
prop
,
p
)
{
posRspJsonObj
[
prop
]
=
getServerJsonValue
(
prop
);
posRspJsonObj
[
prop
]
=
getServerJsonValue
(
prop
);
}
}
...
@@ -97,7 +98,7 @@ void TaskPay::packagePOSRsp()
...
@@ -97,7 +98,7 @@ void TaskPay::packagePOSRsp()
pay_ids
.
append
(
pay_id
);
pay_ids
.
append
(
pay_id
);
total_amount
+=
scoreAmount
;
total_amount
+=
scoreAmount
;
int
couponAmount
;
int
couponAmount
=
0
;
foreach
(
auto
coupon
,
getServerJsonValue
(
PosProps
.
Coupons
).
toArray
())
{
foreach
(
auto
coupon
,
getServerJsonValue
(
PosProps
.
Coupons
).
toArray
())
{
QJsonObject
cp
=
coupon
.
toObject
();
QJsonObject
cp
=
coupon
.
toObject
();
pay_id
[
PosProps
.
Pay_id
]
=
"20003"
;
pay_id
[
PosProps
.
Pay_id
]
=
"20003"
;
...
@@ -109,9 +110,11 @@ void TaskPay::packagePOSRsp()
...
@@ -109,9 +110,11 @@ void TaskPay::packagePOSRsp()
couponAmount
+=
disAmount
;
couponAmount
+=
disAmount
;
}
}
total_amount
+=
couponAmount
;
total_amount
+=
couponAmount
;
posRspJsonObj
[
PosProps
.
Pay_id
]
=
pay_ids
;
posRspJsonObj
[
PosProps
.
Pay_id
s
]
=
pay_ids
;
posRspJsonObj
[
PosProps
.
Paid_total_amount
]
=
total_amount
;
posRspJsonObj
[
PosProps
.
Paid_total_amount
]
=
total_amount
;
posRspJsonObj
[
"invoice_amount"
]
=
total_amount
;
posRspJsonObj
[
"discount_amount"
]
=
0
;
posRspJsonObj
[
"forward"
]
=
posReqJsonObj
[
"forward"
];
posRspJsonObj
[
"forward"
]
=
posReqJsonObj
[
"forward"
];
}
}
...
...
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