Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmTakeaway-WDM
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
shangshang.dai
fmTakeaway-WDM
Commits
1fce268e
Commit
1fce268e
authored
Jul 03, 2018
by
戴尚尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
套餐明细做标识以便门店区分
parent
9a455eae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
fmPrinter/fmPrinter.cpp
+4
-2
No files found.
fmPrinter/fmPrinter.cpp
View file @
1fce268e
...
@@ -70,11 +70,12 @@ QString FmPrinter::_GetPrintData(OrderObject *pData)
...
@@ -70,11 +70,12 @@ QString FmPrinter::_GetPrintData(OrderObject *pData)
{
{
if
(
!
pObj
->
sub_products
.
isEmpty
()
)
if
(
!
pObj
->
sub_products
.
isEmpty
()
)
{
{
str_comd_list
.
append
(
QString
(
pObj
->
name
+
"#"
));
str_comd_list
.
append
(
QString
(
">>>>>>#"
));
str_comd_list
.
append
(
QString
(
"[套餐名]"
+
pObj
->
name
+
"#"
));
foreach
(
ProductObject
*
sun_pObj
,
pObj
->
sub_products
)
foreach
(
ProductObject
*
sun_pObj
,
pObj
->
sub_products
)
{
{
QString
name
,
price
;
QString
name
,
price
;
name
=
sun_pObj
->
name
;
name
=
"[子品]"
+
sun_pObj
->
name
;
price
=
QString
(
"%1 x%2 %3"
).
arg
(
_Penny2Dollar
(
sun_pObj
->
price
)).
arg
(
sun_pObj
->
productAmount
)
price
=
QString
(
"%1 x%2 %3"
).
arg
(
_Penny2Dollar
(
sun_pObj
->
price
)).
arg
(
sun_pObj
->
productAmount
)
.
arg
(
_Penny2Dollar
(
sun_pObj
->
price
*
sun_pObj
->
productAmount
));
.
arg
(
_Penny2Dollar
(
sun_pObj
->
price
*
sun_pObj
->
productAmount
));
...
@@ -82,6 +83,7 @@ QString FmPrinter::_GetPrintData(OrderObject *pData)
...
@@ -82,6 +83,7 @@ QString FmPrinter::_GetPrintData(OrderObject *pData)
productCount
+=
sun_pObj
->
productAmount
;
productCount
+=
sun_pObj
->
productAmount
;
}
}
str_comd_list
.
append
(
QString
(
">>>>>>#"
));
}
else
}
else
{
{
QString
name
,
price
;
QString
name
,
price
;
...
...
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