Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
B
Byodv2
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dio Maulana
Byodv2
Commits
ceb6da1c
Commit
ceb6da1c
authored
Oct 21, 2022
by
Jasa Digital
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perbaikan untuk history order
parent
c9417de6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
api.dart
lib/api/api.dart
+7
-2
mq.dart
lib/helper/mq.dart
+1
-1
No files found.
lib/api/api.dart
View file @
ceb6da1c
...
...
@@ -195,8 +195,10 @@ class Api {
}
if
(
jsonObject
[
'data'
][
'type_order'
]
==
typeOrderDelivery
)
{
setIsCustomerDelivery
(
true
);
}
else
{
}
else
if
(
jsonObject
[
'data'
][
'type_order'
]
==
typeOrderPickup
)
{
setIsCustomerDelivery
(
false
);
}
else
{
setIsDeliveryPickup
(
false
);
}
setIsNewOrder
(
false
);
return
responseByodBranchExist
;
...
...
@@ -1019,10 +1021,13 @@ class Api {
"rdm_staff_courier_mobile"
:
jsonObject
[
'data'
][
'rdm_staff_courier_mobile'
]
??
""
,
};
if
(
jsonObject
[
'data'
][
'type'
]
==
typeOrderDelivery
)
{
setIsCustomerDelivery
(
true
);
}
else
{
}
else
if
(
jsonObject
[
'data'
][
'type'
]
==
typeOrderPickup
)
{
setIsCustomerDelivery
(
false
);
}
else
{
setIsDeliveryPickup
(
false
);
}
bill
.
add
(
Bill
.
createBill
(
i
));
// billDetail.add(BillDetail.createBillDetail(orderDetail[d]));
...
...
lib/helper/mq.dart
View file @
ceb6da1c
...
...
@@ -55,7 +55,7 @@ Future<int> runMqTT(BuildContext context) async {
}
if
(
mqClient
.
connectionStatus
!.
state
==
MqttConnectionState
.
connected
)
{
if
(
debug
)
{
logd
(
'CHECK CONNECTION'
,
'CONNECTED'
);
logd
(
'CHECK CONNECTION'
,
'CONNECTED
AND SUBS
$queueTopic
'
);
}
}
else
{
/// Use status here rather than state if you also want the broker return code.
...
...
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