mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
add invoice matching on basis of Supplier number field of invoice
This commit is contained in:
@@ -193,6 +193,10 @@ class banking_import_transaction(orm.Model):
|
||||
iname = invoice.name.upper()
|
||||
if iname in ref or iname in msg:
|
||||
return True
|
||||
if invoice.supplier_invoice_number and len(invoice.supplier_invoice_number) > 2:
|
||||
supp_ref = invoice.supplier_invoice_number.upper()
|
||||
if supp_ref in ref or supp_ref in msg:
|
||||
return True
|
||||
elif invoice.type.startswith('out_'):
|
||||
# External id's possible and likely
|
||||
inum = invoice.number.upper()
|
||||
|
||||
Reference in New Issue
Block a user