Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmtakeout
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
李定达
fmtakeout
Commits
ecee19aa
Commit
ecee19aa
authored
Sep 03, 2018
by
李定达
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修复退单自动打印小票的bug
parent
71ab590e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
takeout/control/ordergetwork.cpp
+2
-0
takeout/model/posorderpool.cpp
+14
-14
No files found.
takeout/control/ordergetwork.cpp
View file @
ecee19aa
...
...
@@ -427,6 +427,8 @@ bool OrderGetWork::loginToServer(QString &error)
QString
tcptoken
;
SetStoreInfoToConfig
();
if
(
OrderGetDataProcess
::
getToken
(
recvjson
,
tcptoken
))
POSTEVENTTYPE
(
PosEvent
::
s_token_change
,
tcptoken
,
QString
);
...
...
takeout/model/posorderpool.cpp
View file @
ecee19aa
...
...
@@ -207,14 +207,14 @@ bool PosOrderPool::TryInsertOrder(OrderObject order)
INITORDERINFO
(
order
,
info
);
QLOG_
INFO
()
<<
"%%%%%%%%%%%%%%%%%%%%%%%%%%%"
<<
info
.
order_id
<<
info
.
order_refund
<<
info
.
order_last_refund
;
QLOG_
INFO
()
<<
"%%%%%%%%%%%%%%%%%%%%%%%%%%%"
<<
info
.
order_id
<<
info
.
order_status
<<
info
.
order_last_status
;
QLOG_
DEBUG
()
<<
"%%%%%%%%%%%%%%%%%%%%%%%%%%%"
<<
info
.
order_id
<<
info
.
order_refund
<<
info
.
order_last_refund
;
QLOG_
DEBUG
()
<<
"%%%%%%%%%%%%%%%%%%%%%%%%%%%"
<<
info
.
order_id
<<
info
.
order_status
<<
info
.
order_last_status
;
s_order_pool
.
insert
(
order
.
order_id
,
info
);
DEFAULTPOSTEVENT
(
PosEvent
::
s_change_order
,
order
.
order_id
);
if
(
order
.
status
==
FirmOrder
)
if
(
order
.
status
==
FirmOrder
&&
order
.
refund_status
==
DefaultOrder
)
{
QVariantMap
map
;
...
...
@@ -232,14 +232,14 @@ bool PosOrderPool::TryInsertOrder(OrderObject order)
Order_Info
info
;
QLOG_
INFO
()
<<
"$$$$$$$$$$$$$$$$$$$$$$$$$$$"
<<
info
.
order_id
<<
info
.
order_refund
<<
info
.
order_last_refund
;
QLOG_
INFO
()
<<
"$$$$$$$$$$$$$$$$$$$$$$$$$$$"
<<
info
.
order_id
<<
info
.
order_status
<<
info
.
order_last_status
;
QLOG_
DEBUG
()
<<
"$$$$$$$$$$$$$$$$$$$$$$$$$$$"
<<
info
.
order_id
<<
info
.
order_refund
<<
info
.
order_last_refund
;
QLOG_
DEBUG
()
<<
"$$$$$$$$$$$$$$$$$$$$$$$$$$$"
<<
info
.
order_id
<<
info
.
order_status
<<
info
.
order_last_status
;
UPDATEORDERINFO
(
oldinfo
,
order
,
info
);
QLOG_
INFO
()
<<
"@@@@@@@@@@@@@@@@@@@@@@@@@@@"
<<
info
.
order_id
<<
info
.
order_refund
<<
info
.
order_last_refund
;
QLOG_
INFO
()
<<
"@@@@@@@@@@@@@@@@@@@@@@@@@@@"
<<
info
.
order_id
<<
info
.
order_status
<<
info
.
order_last_status
;
QLOG_
DEBUG
()
<<
"@@@@@@@@@@@@@@@@@@@@@@@@@@@"
<<
info
.
order_id
<<
info
.
order_refund
<<
info
.
order_last_refund
;
QLOG_
DEBUG
()
<<
"@@@@@@@@@@@@@@@@@@@@@@@@@@@"
<<
info
.
order_id
<<
info
.
order_status
<<
info
.
order_last_status
;
if
(
oldinfo
.
order_status
!=
order
.
status
||
oldinfo
.
order_refund
!=
order
.
refund_status
)
...
...
@@ -248,7 +248,7 @@ bool PosOrderPool::TryInsertOrder(OrderObject order)
DEFAULTPOSTEVENT
(
PosEvent
::
s_change_order
,
order
.
order_id
);
if
(
order
.
status
==
FirmOrder
&&
info
.
order_print_status
==
0
)
if
(
order
.
status
==
FirmOrder
&&
order
.
refund_status
==
DefaultOrder
&&
info
.
order_print_status
==
0
)
{
QVariantMap
map
;
...
...
@@ -292,9 +292,9 @@ bool PosOrderPool::TryChangeOrderStatus(QString key, int order_status, int refun
info
.
order_data
.
refund_status
=
refundstatus
;
}
// QLOG_INFO
() << "+++++++++++++++++++++++++++" << info.order_refund << info.order_last_refund;
// QLOG_INFO
() << "+++++++++++++++++++++++++++" << info.order_status << info.order_last_status;
// QLOG_INFO
() << "+++++++++++++++++++++++++++" << order_status << refundstatus;
QLOG_DEBUG
()
<<
"+++++++++++++++++++++++++++"
<<
info
.
order_refund
<<
info
.
order_last_refund
;
QLOG_DEBUG
()
<<
"+++++++++++++++++++++++++++"
<<
info
.
order_status
<<
info
.
order_last_status
;
QLOG_DEBUG
()
<<
"+++++++++++++++++++++++++++"
<<
order_status
<<
refundstatus
;
info
.
order_change_time
=
QDateTime
::
currentDateTime
().
toTime_t
();
...
...
@@ -302,7 +302,7 @@ bool PosOrderPool::TryChangeOrderStatus(QString key, int order_status, int refun
DEFAULTPOSTEVENT
(
PosEvent
::
s_change_order
,
key
);
if
(
info
.
order_status
==
FirmOrder
&&
info
.
order_print_status
==
0
)
if
(
info
.
order_status
==
FirmOrder
&&
info
.
order_refund
==
DefaultOrder
&&
info
.
order_print_status
==
0
)
{
QVariantMap
map
;
...
...
@@ -373,7 +373,7 @@ bool PosOrderPool::GetOrderObject(QString key, OrderObject &order, int &last_sta
GetOrderStatusAndLastStatus
(
info
,
status
,
last_status
);
QLOG_
WARN
()
<<
"####################"
<<
info
.
order_id
<<
"order status : "
<<
status
<<
"; last status : "
<<
last_status
;
QLOG_
DEBUG
()
<<
"####################"
<<
info
.
order_id
<<
"order status : "
<<
status
<<
"; last status : "
<<
last_status
;
order
=
info
.
order_data
;
order
.
status
=
status
;
...
...
@@ -392,7 +392,7 @@ bool PosOrderPool::GetOrderStatus(QString key, int &status, int &last_status)
GetOrderStatusAndLastStatus
(
info
,
status
,
last_status
);
QLOG_
WARN
()
<<
"###############order status : "
<<
status
<<
"; last status : "
<<
last_status
;
QLOG_
DEBUG
()
<<
"###############order status : "
<<
status
<<
"; last status : "
<<
last_status
;
return
true
;
}
...
...
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