minor fix auth

This commit is contained in:
Wilson gomez sanchez 2021-01-13 12:53:05 -05:00
parent 022a2d038e
commit aab8f17530

View file

@ -208,6 +208,8 @@ class Sale(metaclass=PoolMeta):
authorization_id = sale.shop.pos_authorization.id
elif sale.invoice_type == 'M' and sale.shop.manual_authorization:
authorization_id = sale.shop.manual_authorization.id
elif sale.invoice_type == 'C' and sale.shop.computer_authorization:
authorization_id = sale.shop.computer_authorization.id
elif sale.invoice_type in ['1', '2', '3'] and sale.shop.electronic_authorization:
authorization_id = sale.shop.electronic_authorization.id
elif sale.shop.debit_note_electronic_authorization and sale.invoice_type == '92':