← Back to team overview

banking-addons-team team mailing list archive

lp:~ruchir.shukla/banking-addons/banking-addons-supplier-invoice-number into lp:banking-addons

 

Ruchir Shukla(BizzAppDev) has proposed merging lp:~ruchir.shukla/banking-addons/banking-addons-supplier-invoice-number into lp:banking-addons.

Requested reviews:
  Banking Addons Core Editors (banking-addons-team)

For more details, see:
https://code.launchpad.net/~ruchir.shukla/banking-addons/banking-addons-supplier-invoice-number/+merge/181771

Provide a facility for Matching Supplier Invoice based on supplier invoice number provided in invoice in supplier_invoice_number field. 
-- 
https://code.launchpad.net/~ruchir.shukla/banking-addons/banking-addons-supplier-invoice-number/+merge/181771
Your team Banking Addons Core Editors is requested to review the proposed merge of lp:~ruchir.shukla/banking-addons/banking-addons-supplier-invoice-number into lp:banking-addons.
=== modified file 'account_banking/banking_import_transaction.py'
--- account_banking/banking_import_transaction.py	2013-08-12 09:20:35 +0000
+++ account_banking/banking_import_transaction.py	2013-08-23 10:19:16 +0000
@@ -193,6 +193,10 @@
                     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()


Follow ups