minor fix
This commit is contained in:
parent
418ad7c600
commit
9e620bfa35
|
@ -1637,8 +1637,7 @@ class AppWindow(FrontWindow):
|
|||
def action_send_order(self, sale_id=None, reversion=False, init_view=True):
|
||||
if self.model_sale_lines.rowCount() == 0:
|
||||
return
|
||||
if not self.device['shop']['order_copies'] and self.enviroment != 'restaurant':
|
||||
return
|
||||
|
||||
res = self.dialog_order.exec_()
|
||||
if res == DIALOG_REPLY_NO:
|
||||
return False
|
||||
|
@ -1649,8 +1648,10 @@ class AppWindow(FrontWindow):
|
|||
kind = 'command'
|
||||
if not sale_id and self._sale['id']:
|
||||
sale_id = self._sale['id']
|
||||
|
||||
result = self._print_order(sale_id, kind)
|
||||
if not self.device['shop']['order_copies'] and self.enviroment != 'restaurant':
|
||||
result = True
|
||||
else:
|
||||
result = self._print_order(sale_id, kind)
|
||||
if result:
|
||||
self.dialog('order_successfully', widgets=[self.order_number])
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue