Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0018752 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 09. Financial management | minor | always | 2011-10-11 13:10 | 2011-12-02 11:47 | |||
Reporter | mirurita | View Status | public | |||||
Assigned To | ioritzCia | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | pi | Fixed in SCM revision | b92d77dfa7d3 | |||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Advanced Payables and Receivables Mngmt | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0018752: FIN_AddPayment - savePayment method not managing properly exceptions | |||||||
Description | org.openbravo.advpaymentmngt.process.FIN_AddPayment savePayment method not managing properly exceptions. it should raise the exception to be caught by caller method. | |||||||
Steps To Reproduce | 1) Modify APRM_FIN_PMT_CHECK_TRG adding a raise exception at the beginning RAISE EXCEPTION '%', '@20501@'; --OBTG:-20000-- 2) Create a new sales invoice and complete 3) Click on Add Payment In button 4) On the popup click on OK button Realize that the message shown is a generic message (it provides useless information to the user) and if you raise the exception using the message search key (i.e. @20501@) the exception is not translated. | |||||||
Proposed Solution | catch the flush event OBDal.getInstance().flush(); when calling this method you should manage then catch the exception this method can return. (for example in AddPaymentFromInvoice.) | |||||||
Tags | No tags attached. | |||||||
Attached Files | Exception - savePayment.png [^] (79,880 bytes) 2011-10-11 13:10
proposed_solution_TBD.diff [^] (5,165 bytes) 2011-10-11 16:10 [Show Content] | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0043140) hgbot (developer) 2011-11-24 10:34 |
Repository: erp/devel/pi Changeset: b92d77dfa7d39d9611bfc69d359d98baf4847bc8 Author: Ioritz Cia <ioritz.cia <at> openbravo.com> Date: Mon Nov 21 09:38:04 2011 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/b92d77dfa7d39d9611bfc69d359d98baf4847bc8 [^] Fixes issue 18752: FIN_AddPayment - savePayment method not managing properly exceptions. --- M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.java M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java --- |
(0043155) ioritzCia (developer) 2011-11-24 13:23 |
Test Plan: - Follow the steps to reproduce. - Try to launch on purpose other exceptions inside that try block as Null Pointer Exceptions or other type. See that it handles properly the ones that it has to and that the shows the message of the ones that does not have to handle. |
(0043433) hudsonbot (developer) 2011-11-30 12:29 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/01809c7b3135 [^] Maturity status: Test |
(0043692) mirurita (developer) 2011-12-02 11:47 |
Verified on revision 14787:d63e0b9b9bcc |
Issue History | |||
Date Modified | Username | Field | Change |
2011-10-11 13:10 | mirurita | New Issue | |
2011-10-11 13:10 | mirurita | Assigned To | => jonalegriaesarte |
2011-10-11 13:10 | mirurita | File Added: Exception - savePayment.png | |
2011-10-11 13:10 | mirurita | Modules | => Advanced Payables and Receivables Mngmt |
2011-10-11 13:10 | mirurita | Resolution time | => 1324335600 |
2011-10-11 16:10 | mirurita | File Added: proposed_solution_TBD.diff | |
2011-11-10 13:07 | jonalegriaesarte | Assigned To | jonalegriaesarte => ioritzCia |
2011-11-22 12:34 | ioritzCia | Status | new => scheduled |
2011-11-22 12:34 | ioritzCia | fix_in_branch | => pi |
2011-11-24 10:34 | hgbot | Checkin | |
2011-11-24 10:34 | hgbot | Note Added: 0043140 | |
2011-11-24 10:34 | hgbot | Status | scheduled => resolved |
2011-11-24 10:34 | hgbot | Resolution | open => fixed |
2011-11-24 10:34 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/b92d77dfa7d39d9611bfc69d359d98baf4847bc8 [^] |
2011-11-24 13:23 | ioritzCia | Note Added: 0043155 | |
2011-11-30 12:29 | hudsonbot | Checkin | |
2011-11-30 12:29 | hudsonbot | Note Added: 0043433 | |
2011-12-02 11:47 | mirurita | Note Added: 0043692 | |
2011-12-02 11:47 | mirurita | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |