File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
ury/ury/doctype/ury_order Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,6 @@ def sync_order(
107
107
if (
108
108
last_invoice
109
109
and frappe .db .get_value ("POS Invoice" , last_invoice , "invoice_printed" ) == 1
110
- and not cashier
111
110
):
112
111
frappe .msgprint (
113
112
title = "Invoice Already Billed" ,
@@ -140,7 +139,7 @@ def sync_order(
140
139
lastModifiedTime = datetime .strptime (
141
140
lastModifiedTime , "%Y-%m-%d %H:%M:%S"
142
141
)
143
- if lastModifiedTime != last_modified_time :
142
+ if lastModifiedTime != last_modified_time and not cashier :
144
143
frappe .msgprint (
145
144
title = "Order has been modified" ,
146
145
indicator = "red" ,
@@ -150,7 +149,7 @@ def sync_order(
150
149
)
151
150
return {"status" : "Failure" }
152
151
else :
153
- if invoice .name and invoice .invoice_printed == 0 :
152
+ if invoice .name and invoice .invoice_printed == 0 and table :
154
153
frappe .msgprint (
155
154
title = "Table occupied " ,
156
155
indicator = "red" ,
You can’t perform that action at this time.
0 commit comments