minor fix
This commit is contained in:
parent
144e1fada1
commit
2eee6781d5
10
app/main.py
10
app/main.py
|
@ -1133,8 +1133,8 @@ class AppWindow(FrontWindow):
|
|||
if sale['invoice_type'] == 'P' and limit_uvt and sale['untaxed_amount'] > limit_uvt:
|
||||
return self.dialog('base_uvt_pos')
|
||||
if environment == 'restaurant':
|
||||
if self.print_order and not self.check_all_commanded():
|
||||
self.action_send_order()
|
||||
if self.print_order:
|
||||
self.print_no_commanded()
|
||||
if not sale.get('consumer') and sale['kind'] == 'delivery':
|
||||
self.action_consumer()
|
||||
return
|
||||
|
@ -1151,8 +1151,8 @@ class AppWindow(FrontWindow):
|
|||
if not self.validate_payment_term():
|
||||
return
|
||||
if self.environment == 'restaurant':
|
||||
if not self.print_no_commanded():
|
||||
return
|
||||
# if not self.print_no_commanded():
|
||||
# return
|
||||
res = self.check_delivery_party()
|
||||
if not res:
|
||||
return
|
||||
|
@ -3275,7 +3275,7 @@ class AppWindow(FrontWindow):
|
|||
return self.dialog('dont_delete_product')
|
||||
# if not removed_item:
|
||||
removed_item = self.table_sale_lines.delete_item(ignore_focus=True)
|
||||
if self.environment == 'restaurant' and self.print_order:
|
||||
if self.environment == 'restaurant' and self.print_order and order_sended:
|
||||
self.print_command(sale, removed_item)
|
||||
if note:
|
||||
self.SaleLine.write([removed_item['id']], {'note': note})
|
||||
|
|
|
@ -87,7 +87,7 @@ class ManageTables(QGridLayout):
|
|||
|
||||
def activate_method(self, table_id):
|
||||
button = self.buttons[table_id]
|
||||
if self.parent._sale and button.state == 'available':
|
||||
if self.parent.sale_id and button.state == 'available':
|
||||
res = self.parent.action_assign_table(table_id, button.name)
|
||||
if res['to_add']:
|
||||
button.set_data(res['to_add'])
|
||||
|
|
Loading…
Reference in New Issue