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

Proposed by Ruchir Shukla(BizzAppDev)
Status: Merged
Merged at revision: 185
Proposed branch: lp:~ruchir.shukla/banking-addons/banking-addons-supplier-invoice-number
Merge into: lp:banking-addons
Diff against target: 14 lines (+4/-0)
1 file modified
account_banking/banking_import_transaction.py (+4/-0)
To merge this branch: bzr merge lp:~ruchir.shukla/banking-addons/banking-addons-supplier-invoice-number
Reviewer Review Type Date Requested Status
Stefan Rijnhart (Opener) Approve
Ruchir Shukla(BizzAppDev) (community) Needs Resubmitting
Pedro Manuel Baeza code review, no test Approve
Review via email: mp+181771@code.launchpad.net

Description of the change

Provide a facility for Matching Supplier Invoice based on supplier invoice number provided in invoice in supplier_invoice_number field.

To post a comment you must log in.
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

LGTM

review: Approve (code review, no test)
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Thanks. Please add a check on the length of the value to be larger than 2 like is done on other field values, to prevent a large number of false positives.

review: Needs Fixing
185. By Ruchir Shukla(BizzAppDev)

add condition for grater than 2 len

Revision history for this message
Ruchir Shukla(BizzAppDev) (ruchir.shukla) wrote :

> Thanks. Please add a check on the length of the value to be larger than 2
> like is done on other field values, to prevent a large number of false
> positives.
Changes are done as requested .

review: Needs Resubmitting
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_banking/banking_import_transaction.py'
2--- account_banking/banking_import_transaction.py 2013-08-12 09:20:35 +0000
3+++ account_banking/banking_import_transaction.py 2013-08-24 11:00:40 +0000
4@@ -193,6 +193,10 @@
5 iname = invoice.name.upper()
6 if iname in ref or iname in msg:
7 return True
8+ if invoice.supplier_invoice_number and len(invoice.supplier_invoice_number) > 2:
9+ supp_ref = invoice.supplier_invoice_number.upper()
10+ if supp_ref in ref or supp_ref in msg:
11+ return True
12 elif invoice.type.startswith('out_'):
13 # External id's possible and likely
14 inum = invoice.number.upper()

Subscribers

People subscribed via source and target branches

to status/vote changes: