minir fix
This commit is contained in:
parent
bdea338ce7
commit
86a12afa1c
11
app/main.py
11
app/main.py
|
@ -1094,7 +1094,6 @@ class AppWindow(FrontWindow):
|
|||
if not data:
|
||||
return
|
||||
for i in range(copies):
|
||||
continue
|
||||
msg = self.receipt_sale.print_sale(data, type_doc, open_box)
|
||||
if isinstance(msg, dict) and msg.get('error'):
|
||||
self.dialog('print_error', extra_message=msg['error'])
|
||||
|
@ -1991,12 +1990,12 @@ class AppWindow(FrontWindow):
|
|||
('create_date', '>=', delta),
|
||||
('state', 'in', ['quotation', 'confirmed']),
|
||||
('shop', '=', shop_id),
|
||||
], [
|
||||
], [
|
||||
('state', '=', 'processing'),
|
||||
('invoice.state', '=', 'draft'),
|
||||
('invoice.type', '=', 'out'),
|
||||
('shop', '=', shop_id),
|
||||
]]]
|
||||
]]]
|
||||
elif self.type_pos_user in ('order', 'salesman'):
|
||||
dom = [
|
||||
('shop', '=', shop_id),
|
||||
|
@ -2019,11 +2018,11 @@ class AppWindow(FrontWindow):
|
|||
('shop', '=', shop_id),
|
||||
('create_date', '>=', delta),
|
||||
]
|
||||
|
||||
|
||||
if _type == 'cash':
|
||||
dom.extend([
|
||||
('payment_term', '=', self.default_payment_term['id']),
|
||||
('reservation', '!=', True)
|
||||
('payment_term', '=', self.default_payment_term['id']),
|
||||
('reservation', '!=', True)
|
||||
])
|
||||
elif _type == 'credit':
|
||||
dom.extend([
|
||||
|
|
Loading…
Reference in New Issue