mirror of
https://bitbucket.org/presik/trytonpsk-sale_pos.git
synced 2023-12-14 07:13:02 +01:00
minor fix auth
This commit is contained in:
parent
022a2d038e
commit
aab8f17530
2
sale.py
2
sale.py
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue