Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmPOS
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
fmPOS
Commits
454a4b3b
Commit
454a4b3b
authored
Sep 17, 2018
by
gujin.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改商品券所对应的字段名
parent
4e8b65c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
fmp_redeem/fmp_redeem.cpp
+2
-1
No files found.
fmp_redeem/fmp_redeem.cpp
View file @
454a4b3b
...
@@ -266,6 +266,7 @@ QJsonObject FMPRedeem::ShowForUnConsum(QJsonObject json)
...
@@ -266,6 +266,7 @@ QJsonObject FMPRedeem::ShowForUnConsum(QJsonObject json)
QString
ebcode
=
codeInfo
[
"ebcode"
].
toString
();
QString
ebcode
=
codeInfo
[
"ebcode"
].
toString
();
QString
time_name
=
QString
::
fromLocal8Bit
(
"有效期至: "
).
append
(
vdata
);
QString
time_name
=
QString
::
fromLocal8Bit
(
"有效期至: "
).
append
(
vdata
);
int
couponType
=
json
[
"couponType"
].
toInt
();
int
couponType
=
json
[
"couponType"
].
toInt
();
_products_info
=
codeInfo
[
"products"
].
toArray
();
if
(
ConsumptionDialog
::
ShowForUnConsum
(
act_name
,
code_name
,
time_name
,
coupon
))
if
(
ConsumptionDialog
::
ShowForUnConsum
(
act_name
,
code_name
,
time_name
,
coupon
))
{
{
...
@@ -292,7 +293,7 @@ QJsonObject FMPRedeem::ShowForUnConsum(QJsonObject json)
...
@@ -292,7 +293,7 @@ QJsonObject FMPRedeem::ShowForUnConsum(QJsonObject json)
QJsonObject
product
;
QJsonObject
product
;
product
.
insert
(
"seq"
,
1
);
product
.
insert
(
"seq"
,
1
);
product
.
insert
(
"pid"
,
_products_info
[
i
].
toObject
()[
"pid"
]);
product
.
insert
(
"pid"
,
_products_info
[
i
].
toObject
()[
"pid"
]);
product
.
insert
(
"consume_num"
,
_products_info
[
i
].
toObject
()[
"
consume_num
"
]);
product
.
insert
(
"consume_num"
,
_products_info
[
i
].
toObject
()[
"
number
"
]);
products
.
append
(
product
);
products
.
append
(
product
);
}
}
...
...
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