minor fix

This commit is contained in:
wilsongomez 2022-06-07 10:17:36 -05:00
parent 577c813cb0
commit 418ad7c600
1 changed files with 2 additions and 0 deletions

View File

@ -1637,6 +1637,8 @@ 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