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
5778e1a4
Commit
5778e1a4
authored
Apr 26, 2017
by
ss.dai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1:修复入账服务费数值误传问题
parent
1b338b66
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
fmPlugin/fmPlugin.cpp
+2
-2
fmTakeaway/Control/flowControl.cpp
+11
-4
takeaway.pro.user
+1
-1
No files found.
fmPlugin/fmPlugin.cpp
View file @
5778e1a4
...
...
@@ -354,10 +354,10 @@ QByteArray FmPlugin::_GetOrderEntryData(const OrderObject *orderObject)
QString
serviceFee
;
if
(
orderObject
->
channel
==
"jdwm"
)
{
serviceFee
=
_Penny2Dollar
((
orderObject
->
product_fee
-
orderObject
->
dis_shop_fee
)
*
0.08
);
serviceFee
=
QString
::
number
(
_Penny2Dollar
((
orderObject
->
product_fee
-
orderObject
->
dis_shop_fee
)
*
0.08
),
'f'
,
2
);
}
else
{
serviceFee
=
_Penny2Dollar
(
orderObject
->
service_fee
);
serviceFee
=
QString
::
number
(
_Penny2Dollar
(
orderObject
->
service_fee
),
'f'
,
2
);
}
rObj
.
insert
(
"senderCode"
,
m_storeId
);
...
...
fmTakeaway/Control/flowControl.cpp
View file @
5778e1a4
...
...
@@ -260,15 +260,22 @@ bool FlowControl::_PullOrder()
{
QLOG_INFO
()
<<
QString
(
"will entry %1"
).
arg
(
orderObject
->
order_id
);
QTimer
::
singleShot
(
1000
*
60
*
120
,
[
orderObject
](){
QString
error
;
if
(
FmPlugin
::
GetInstance
().
DoOrderEntry
(
orderObject
,
""
,
""
,
""
,
""
,
error
))
if
(
orderObject
->
status
==
6
||
orderObject
->
status
==
200
)
{
QLOG_INFO
()
<<
QString
(
"_PullOrder DoOrderEntry successful %1"
).
arg
(
orderObject
->
order_id
);
QString
error
;
if
(
FmPlugin
::
GetInstance
().
DoOrderEntry
(
orderObject
,
""
,
""
,
""
,
""
,
error
))
{
QLOG_INFO
()
<<
QString
(
"_PullOrder DoOrderEntry successful %1"
).
arg
(
orderObject
->
order_id
);
}
else
{
QLOG_INFO
()
<<
QString
(
"_PullOrder DoOrderEntry failed %1 %2"
).
arg
(
orderObject
->
order_id
,
error
);
}
}
else
{
QLOG_INFO
()
<<
QString
(
"
_PullOrder DoOrderEntry failed %1 %2"
).
arg
(
orderObject
->
order_id
,
error
);
QLOG_INFO
()
<<
QString
(
"
cancle entry %1"
).
arg
(
orderObject
->
order_id
);
}
});
}
else
{
QLOG_INFO
()
<<
QString
(
"销售单数据有误 %1"
).
arg
(
orderObject
->
order_id
);
...
...
takeaway.pro.user
View file @
5778e1a4
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.0.0, 2017-04-2
1T16:05:36
. -->
<!-- Written by QtCreator 4.0.0, 2017-04-2
6T10:13:09
. -->
<qtcreator>
<data>
<variable>
EnvironmentId
</variable>
...
...
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