Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FmTakeaway
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
Commits
6289091c
Commit
6289091c
authored
May 23, 2017
by
ss.dai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 1:小票取消优惠价
parent
77a92ab3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
16 deletions
+6
-16
fmPlugin/fmPlugin.cpp
+1
-0
fmPrinter/fmPrinter.cpp
+2
-13
fmTakeaway/Control/flowControl.cpp
+1
-1
run/config.ini
+2
-2
No files found.
fmPlugin/fmPlugin.cpp
View file @
6289091c
...
...
@@ -124,6 +124,7 @@ bool FmPlugin::DoOrderEntry(const OrderObject *orderObject, const QString &cashi
qRequset
.
setUrl
(
url
);
qRequset
.
setRawHeader
(
"Content-Type"
,
"application/json;charset=utf-8"
);
qRequset
.
setRawHeader
(
"Accept"
,
"application/json;charset=utf-8"
);
error
=
_GetOrderEntryData
(
orderObject
);
QNetworkReply
*
reply
=
manger
.
post
(
qRequset
,
_GetOrderEntryData
(
orderObject
));
QEventLoop
eventLoop
;
QObject
::
connect
(
&
manger
,
SIGNAL
(
networkAccessibleChanged
(
QNetworkAccessManager
::
NetworkAccessibility
)),
&
eventLoop
,
SLOT
(
quit
()));
...
...
fmPrinter/fmPrinter.cpp
View file @
6289091c
...
...
@@ -86,20 +86,9 @@ QString FmPrinter::_GetPrintData(OrderObject *pData)
// }
// else
// {
if
(
!
pData
->
channel
.
compare
(
"eleme"
))
{
// 该商品应收的钱
float
ys_fee
=
pData
->
proList
[
i
]
->
price
*
pData
->
proList
[
i
]
->
productAmount
;
// 该商品实际收到的钱
float
ss_fee
=
ys_fee
*
(
1
-
(
(
float
)
pData
->
dis_shop_fee
)
/
pData
->
product_fee
);
price
=
QString
(
"%1 x%2 %3 优惠价 %4"
).
arg
(
_Penny2Dollar
(
pData
->
proList
[
i
]
->
price
)).
arg
(
pData
->
proList
[
i
]
->
productAmount
)
.
arg
(
_Penny2Dollar
(
pData
->
proList
[
i
]
->
price
*
pData
->
proList
[
i
]
->
productAmount
)).
arg
(
_Penny2Dollar
(
ss_fee
));
}
else
{
price
=
QString
(
"%1 x%2 %3"
).
arg
(
_Penny2Dollar
(
pData
->
proList
[
i
]
->
price
)).
arg
(
pData
->
proList
[
i
]
->
productAmount
)
price
=
QString
(
"%1 x%2 %3"
).
arg
(
_Penny2Dollar
(
pData
->
proList
[
i
]
->
price
)).
arg
(
pData
->
proList
[
i
]
->
productAmount
)
.
arg
(
_Penny2Dollar
(
pData
->
proList
[
i
]
->
price
*
pData
->
proList
[
i
]
->
productAmount
));
}
str_comd_list
.
append
(
QString
(
name
+
"$"
+
price
+
"$"
));
// }
...
...
fmTakeaway/Control/flowControl.cpp
View file @
6289091c
...
...
@@ -258,7 +258,7 @@ bool FlowControl::_PullOrder()
{
if
(
FmPlugin
::
GetInstance
().
DoOrderEntry
(
orderObject
,
""
,
""
,
""
,
""
,
error
))
{
QLOG_INFO
()
<<
QString
(
"_PullOrder DoOrderEntry successful %1
"
).
arg
(
orderObject
->
order_id
);
QLOG_INFO
()
<<
QString
(
"_PullOrder DoOrderEntry successful %1
%2"
).
arg
(
orderObject
->
order_id
).
arg
(
error
);
this
->
_ReportBillEntryResult
(
orderObject
->
order_id
,
1
,
QString
(
"成功"
));
break
;
}
else
...
...
run/config.ini
View file @
6289091c
...
...
@@ -6,4 +6,4 @@ url1=http://123.207.193.166/api
port
=
34953
[HdServer]
url
=
http://122.224.171.126:8980/h4rest-server/rest/h5rest-server/core/wholesaleservice/wholesale
\ No newline at end of file
url
=
http://101.71.13.138:7782/h4rest2/rest/h5rest-server/core/wholesaleservice/wholesale
\ No newline at end of file
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