Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||
View Issue Details | |||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0018773 | Openbravo ERP | Z. Others | public | 2011-10-13 17:18 | 2011-11-04 11:08 | ||||||||
Reporter | mirurita | ||||||||||||
Assigned To | gorkaion | ||||||||||||
Priority | normal | Severity | major | 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 | |||||||||||||
Web browser | |||||||||||||
Modules | Core | ||||||||||||
Support ticket | |||||||||||||
Regression level | |||||||||||||
Regression date | |||||||||||||
Regression introduced in release | |||||||||||||
Regression introduced by commit | |||||||||||||
Triggers an Emergency Pack | No | ||||||||||||
Summary | 0018773: Violated constraint fin_finacc_paymentmethod_un when you try to migrate a multicurrency debt payment (Settlement step) | ||||||||||||
Description | In Settlement step if the process tries to migrate a multicurrency debt payment it creates specific payment method and associates to the financial account. As the flush() is not done, when checking if the payment method already exists in the financial account the query returns false and tries to insert again. "Entity: FinancialMgmtDebtPayment. Entidad: Operon. Información de registro: false - GL-LOHMANN - Lohmann Precision Die Cutting, LCC - P - -2073.32000 - 14-09-2010 Entity: FinancialMgmtDebtPayment. Entidad: Operon. Información de registro: false - GL-LOHMANN - Lohmann Precision Die Cutting, LCC - P - -2073.32000 - 14-09-2010 Entity: FinancialMgmtDebtPayment. Entidad: Operon. Información de registro: false - GL-LOHMANN - Lohmann Precision Die Cutting, LCC - P - -2073.32000 - 14-09-2010 ERROR: duplicate key value violates unique constraint "fin_finacc_paymentmethod_un" org.openbravo.erputil.aprmigrationtool.utility.MigrationException: ERROR: duplicate key value violates unique constraint "fin_finacc_paymentmethod_un" at org.openbravo.erputil.aprmigrationtool.entity.MigrateSettlementPayments.migrateClient(MigrateSettlementPayments.java:83) at org.openbravo.erputil.aprmigrationtool.entity.Entity.migrate(Entity.java:97) at org.openbravo.erputil.aprmigrationtool.entity.MigrationTool.migrationProcess(MigrationTool.java:91) at org.openbravo.erputil.aprmigrationtool.ad_forms.MigrationTool.process(MigrationTool.java:177) at org.openbravo.erputil.aprmigrationtool.ad_forms.MigrationTool.doPost(MigrationTool.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225) at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:429) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:81) at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46) at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:103) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:429) at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:384) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1665) at java.lang.Thread.run(Thread.java:662) | ||||||||||||
Steps To Reproduce | 1) Create a multicurrency debt payment in 2.50 without APR 2) Install migration tool 3) Launch migration process | ||||||||||||
Proposed Solution | org.openbravo.erputil.aprmigrationtool.entity.MigrateSettlementPayments after the following line OBDal.getInstance().save(multicurrencyPaymentMethod); insert OBDal.getInstance().flush(); and in the line 344, after OBDal.getInstance().save(accountPay); insert again OBDal.getInstance().flush(); | ||||||||||||
Additional Information | |||||||||||||
Tags | No tags attached. | ||||||||||||
Relationships |
| ||||||||||||
Attached Files | |||||||||||||
Issue History | |||||||||||||
Date Modified | Username | Field | Change | ||||||||||
2011-10-13 17:18 | mirurita | New Issue | |||||||||||
2011-10-13 17:18 | mirurita | Assigned To | => gorkaion | ||||||||||
2011-10-13 17:18 | mirurita | Modules | => Core | ||||||||||
2011-10-13 17:18 | mirurita | Resolution time | => 1321311600 | ||||||||||
2011-10-17 10:35 | jonalegriaesarte | Note Added: 0041845 | |||||||||||
2011-10-17 10:35 | jonalegriaesarte | Severity | critical => major | ||||||||||
2011-10-17 10:35 | jonalegriaesarte | Description Updated | bug_revision_view_page.php?rev_id=2817#r2817 | ||||||||||
2011-10-27 15:55 | hgbot | Checkin | |||||||||||
2011-10-27 15:55 | hgbot | Note Added: 0042155 | |||||||||||
2011-10-27 15:55 | hgbot | Status | new => resolved | ||||||||||
2011-10-27 15:55 | hgbot | Resolution | open => fixed | ||||||||||
2011-10-27 15:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/mods/org.openbravo.erputil.aprmigrationtool/rev/760dfdd1c99909c9f3c825a21da94c69e5829137 [^] | ||||||||||
2011-11-04 11:08 | mirurita | Note Added: 0042522 | |||||||||||
2011-11-04 11:08 | mirurita | Status | resolved => closed | ||||||||||
2011-12-02 16:58 | dalsasua | Relationship added | related to 0019237 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|