add invoice matching on basis of Supplier number field of invoice

This commit is contained in:
Ruchir Shukla
2013-08-23 15:32:07 +05:30
parent 158b6f6127
commit 27b04d3aaa

View File

@@ -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:
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()