Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0020093 | Openbravo ERP | 09. Financial management | public | 2012-03-22 18:25 | 2012-04-17 05:31 |
Reporter | dalsasua | ||||
Assigned To | naiaramartinez | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 20 | OS Version | Ubuntu 10.10 | |
Product Version | 3.0MP8.1 | ||||
Target Version | Fixed in Version | 3.0MP11 | |||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | No | ||||
Web browser | |||||
Modules | Advanced Payables and Receivables Mngmt | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0020093: Message not clear when processing a payment for financial account without the chosen payment method | ||||
Description | Message not clear when processing a payment for financial account without the chosen payment method | ||||
Steps To Reproduce | 1. Go to Financial Account Banco de España - Cuenta 1 2. Go to Payment Method tab and create a new one: "Al Contado". 3. Go to Payment In window, create a new one, and choose F&B España - Región Norte, 334.32 amount, Al contado Payment Method and EUR-Banco de España-Cuenta 1 For Deposit To field. Save. 4. Go back to Payment Method tab of Financial Account Banco de España - Cuenta 1, and delete the "Al Contado" payment method created in step 2. 5. Go to Payment In created in step 3, and click on Add Details. 6. Set Transaction Type to Orders or Invoices and activate Show payments in for alternative payment methods. 7. Choose the first payment for 334.32, and click on Process and Ok. 8. Realize that an error "Index: 0, Size: 0" is shown. This message has nothing to do with the actual error. | ||||
Proposed Solution | Fin_PaymentPorcess servlet, in line 221 says: if (dao.isAutomatedExecutionPayment(payment.getAccount(), payment.getPaymentMethod(), payment.isReceipt())) { (...) this call to isAutomatedExecutionPayment function executes this code: FinAccPaymentMethod finAccPaymentMethod = getFinancialAccountPaymentMethod(account, paymentMethod); and this call to getFinancialAccountPaymentMethod executes a query, assuming that the result set will be of 1 row, at least, as the return statement says: return obc.list().get(0); Several possibilities can be followed in order to fix this: 1.- Before calling to isAutomatedExecutionPayment, check whether there exists that payment method for that financial account or not. 2.- Catch the exception in Fin_PaymentProcess and show a correct message. 3.- Throw a concrete exception in isAutomatedExecutionPayment or getFinancialAccountPaymentMethod | ||||
Additional Information | |||||
Tags | VMA-Reviewed | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-03-22 18:25 | dalsasua | New Issue | |||
2012-03-22 18:25 | dalsasua | Assigned To | => vmromanos | ||
2012-03-22 18:25 | dalsasua | Modules | => Core | ||
2012-03-22 18:25 | dalsasua | OBNetwork customer | => No | ||
2012-03-22 18:26 | dalsasua | Issue Monitored: gregor1com | |||
2012-03-23 12:08 | dalsasua | Assigned To | vmromanos => dalsasua | ||
2012-03-23 12:08 | dalsasua | Status | new => scheduled | ||
2012-03-23 12:08 | dalsasua | fix_in_branch | => pi | ||
2012-03-23 12:09 | dalsasua | Modules | Core => Advanced Payables and Receivables Mngmt | ||
2012-03-23 12:09 | dalsasua | fix_in_branch | pi => | ||
2012-03-26 14:22 | dalsasua | Priority | immediate => urgent | ||
2012-03-26 14:22 | dalsasua | Severity | critical => major | ||
2012-03-30 13:44 | dalsasua | Assigned To | dalsasua => vmromanos | ||
2012-04-11 11:32 | vmromanos | Tag Attached: VMA-Reviewed | |||
2012-04-11 12:38 | naiaramartinez | Assigned To | vmromanos => naiaramartinez | ||
2012-04-11 12:41 | naiaramartinez | Note Added: 0047481 | |||
2012-04-13 09:36 | hgbot | Checkin | |||
2012-04-13 09:36 | hgbot | Note Added: 0047548 | |||
2012-04-13 09:36 | hgbot | Status | scheduled => resolved | ||
2012-04-13 09:36 | hgbot | Resolution | open => fixed | ||
2012-04-13 09:36 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/e8c1e6c5054d59054ea198a880493dda2a30dc6f [^] | ||
2012-04-13 09:36 | vmromanos | Note Added: 0047549 | |||
2012-04-13 09:36 | vmromanos | Status | resolved => closed | ||
2012-04-13 09:36 | vmromanos | Fixed in Version | => 3.0MP11 | ||
2012-04-17 05:31 | hudsonbot | Checkin | |||
2012-04-17 05:31 | hudsonbot | Note Added: 0047647 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|