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:
|
if sale['invoice_type'] == 'P' and limit_uvt and sale['untaxed_amount'] > limit_uvt:
|
||||||
return self.dialog('base_uvt_pos')
|
return self.dialog('base_uvt_pos')
|
||||||
if environment == 'restaurant':
|
if environment == 'restaurant':
|
||||||
if self.print_order and not self.check_all_commanded():
|
if self.print_order:
|
||||||
self.action_send_order()
|
self.print_no_commanded()
|
||||||
if not sale.get('consumer') and sale['kind'] == 'delivery':
|
if not sale.get('consumer') and sale['kind'] == 'delivery':
|
||||||
self.action_consumer()
|
self.action_consumer()
|
||||||
return
|
return
|
||||||
|
@ -1151,8 +1151,8 @@ class AppWindow(FrontWindow):
|
||||||
if not self.validate_payment_term():
|
if not self.validate_payment_term():
|
||||||
return
|
return
|
||||||
if self.environment == 'restaurant':
|
if self.environment == 'restaurant':
|
||||||
if not self.print_no_commanded():
|
# if not self.print_no_commanded():
|
||||||
return
|
# return
|
||||||
res = self.check_delivery_party()
|
res = self.check_delivery_party()
|
||||||
if not res:
|
if not res:
|
||||||
return
|
return
|
||||||
|
@ -3275,7 +3275,7 @@ class AppWindow(FrontWindow):
|
||||||
return self.dialog('dont_delete_product')
|
return self.dialog('dont_delete_product')
|
||||||
# if not removed_item:
|
# if not removed_item:
|
||||||
removed_item = self.table_sale_lines.delete_item(ignore_focus=True)
|
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)
|
self.print_command(sale, removed_item)
|
||||||
if note:
|
if note:
|
||||||
self.SaleLine.write([removed_item['id']], {'note': note})
|
self.SaleLine.write([removed_item['id']], {'note': note})
|
||||||
|
|
|
@ -87,7 +87,7 @@ class ManageTables(QGridLayout):
|
||||||
|
|
||||||
def activate_method(self, table_id):
|
def activate_method(self, table_id):
|
||||||
button = self.buttons[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)
|
res = self.parent.action_assign_table(table_id, button.name)
|
||||||
if res['to_add']:
|
if res['to_add']:
|
||||||
button.set_data(res['to_add'])
|
button.set_data(res['to_add'])
|
||||||
|
|
Loading…
Reference in New Issue