Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0023605 | Openbravo ERP | Z. Others | public | 2013-04-22 12:48 | 2013-06-20 02:07 |
|
Reporter | maite | |
Assigned To | jecharri | |
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | OBPS |
Web browser | |
Modules | Advanced Payables and Receivables Mngmt |
Support ticket | 20499 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0023605: Error matching business partner when importing bank statement, under some circumstances |
Description | When no Business Partner object exist with same name as Bank Stetament Line Business Partner Name, but other Business Partners object with part of Business Partner Name exists, import is not done correctly. |
Steps To Reproduce | 1. Import Bank Statement and realize that Business Partner Name and Business Partner object don't match in just imported Bank Statement Line
Problem is in method "closest" in "FIN_BankStatetementImport.java". Variable "targetBusinessPartner" is loaded with first BP in list and "distance" variable is calculated for it. If no other Business Partner of the list fits "partnername" with lower distance, "targetBusinessPartner" is returned. Problem is that "targetBusinessPartner" could also NO FITS "partnername". |
Proposed Solution | line
int bpDistance = StringUtils.getLevenshteinDistance(partnername, bp.getName().toLowerCase());
should be substituted by
int bpDistance = StringUtils.getLevenshteinDistance(parsedPartnername, bp.getName().toLowerCase()); |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2013-04-22 12:48 | maite | New Issue | |
2013-04-22 12:48 | maite | Assigned To | => dmiguelez |
2013-04-22 12:48 | maite | Modules | => Advanced Payables and Receivables Mngmt |
2013-04-22 12:48 | maite | OBNetwork customer | => Yes |
2013-04-22 12:48 | maite | Support ticket | => 20499 |
2013-04-22 12:48 | maite | Triggers an Emergency Pack | => No |
2013-04-22 12:48 | maite | Issue Monitored: networkb | |
2013-04-22 19:21 | dmiguelez | Assigned To | dmiguelez => jonalegriaesarte |
2013-05-27 16:18 | jonalegriaesarte | Assigned To | jonalegriaesarte => jecharri |
2013-05-28 18:21 | jecharri | Assigned To | jecharri => dmiguelez |
2013-05-28 18:21 | jecharri | Type | defect => design defect |
2013-05-28 18:21 | jecharri | Target Version | 3.0MP24 => |
2013-06-05 17:13 | maite | Assigned To | dmiguelez => jecharri |
2013-06-05 17:13 | maite | Proposed Solution updated | |
2013-06-05 17:16 | hgbot | Checkin | |
2013-06-05 17:16 | hgbot | Note Added: 0059195 | |
2013-06-05 17:16 | hgbot | Status | new => resolved |
2013-06-05 17:16 | hgbot | Resolution | open => fixed |
2013-06-05 17:16 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/bd57b3663eec32e8fb0833e7f35d203c133425fe [^] |
2013-06-05 17:39 | maite | Note Added: 0059197 | |
2013-06-05 17:39 | maite | Status | resolved => closed |
2013-06-20 02:07 | hudsonbot | Checkin | |
2013-06-20 02:07 | hudsonbot | Note Added: 0059544 | |