Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0027830 | Openbravo ERP | 07. Sales management | public | 2014-10-10 12:16 | 2014-12-30 23:24 |
|
Reporter | caristu | |
Assigned To | reinaldoguerra | |
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | 3.0PR15Q1 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | pramakrishnan |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 31589 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0027830: It is not possible to extend the AddPaymentOrderInvoicesTransformer class |
Description | In add payment button, Order Invoices grid the table is an hql query table. It's modularity is provided by a java class called AddPaymentOrderInvoicesTransformer.
Currently is not possible to extend the behavior for this class because almost all of it's methods are private, which makes them uninheritable. This methods should be protected to allow the class override.
Attached is the patch. |
Steps To Reproduce | In descripion |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | AddPaymentOrderInvoicesTransformer.diff (4,182) 2014-10-10 12:26 https://issues.openbravo.com/file_download.php?file_id=7343&type=bug
InheritanceExampleClass.java (287) 2014-11-04 00:39 https://issues.openbravo.com/file_download.php?file_id=7466&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2014-10-10 12:16 | caristu | New Issue | |
2014-10-10 12:16 | caristu | Assigned To | => dmiguelez |
2014-10-10 12:16 | caristu | OBNetwork customer | => No |
2014-10-10 12:16 | caristu | Modules | => Core |
2014-10-10 12:16 | caristu | Support ticket | => 31589 |
2014-10-10 12:16 | caristu | Resolution time | => 1419289200 |
2014-10-10 12:16 | caristu | Triggers an Emergency Pack | => No |
2014-10-10 12:16 | caristu | Issue Monitored: networkb | |
2014-10-10 12:16 | caristu | Assigned To | dmiguelez => AtulOpenbravo |
2014-10-10 12:17 | caristu | OBNetwork customer | No => Yes |
2014-10-10 12:18 | caristu | version | => pi |
2014-10-10 12:26 | caristu | Description Updated | bug_revision_view_page.php?rev_id=6767#r6767 |
2014-10-10 12:26 | caristu | File Added: AddPaymentOrderInvoicesTransformer.diff | |
2014-10-17 01:00 | eintelau | Issue Monitored: eintelau | |
2014-10-30 19:47 | reinaldoguerra | Assigned To | AtulOpenbravo => reinaldoguerra |
2014-10-30 19:47 | reinaldoguerra | Status | new => scheduled |
2014-11-04 00:39 | reinaldoguerra | Note Added: 0071385 | |
2014-11-04 00:39 | reinaldoguerra | File Added: InheritanceExampleClass.java | |
2014-11-17 11:33 | hgbot | Checkin | |
2014-11-17 11:33 | hgbot | Note Added: 0071688 | |
2014-11-17 11:33 | hgbot | Status | scheduled => resolved |
2014-11-17 11:33 | hgbot | Resolution | open => fixed |
2014-11-17 11:33 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/76051fc26377cbeb89ba8b4bff5eb28f97880656 [^] |
2014-11-17 17:14 | pramakrishnan | Review Assigned To | => pramakrishnan |
2014-11-17 17:14 | pramakrishnan | Note Added: 0071716 | |
2014-11-17 17:14 | pramakrishnan | Status | resolved => closed |
2014-12-30 23:24 | hudsonbot | Checkin | |
2014-12-30 23:24 | hudsonbot | Note Added: 0073061 | |
Notes |
|
|
Test plan used:
Attached is an example class which represents the extendable behavior of the AddPaymentOrderInvoicesTransformer class. In this case the method getSelectClause is extended. |
|
|
(0071688)
|
hgbot
|
2014-11-17 11:33
|
|
Repository: erp/devel/pi
Changeset: 76051fc26377cbeb89ba8b4bff5eb28f97880656
Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
Date: Thu Oct 30 13:07:36 2014 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/76051fc26377cbeb89ba8b4bff5eb28f97880656 [^]
Fixed bug 27830: Extending methods in class AddPaymentOrderInvoicesTransformer
Methods in class AddPaymentOrderInvoicesTransformer are changed to protected instead of private, making extendable the behavior of the mentioned class.
Now it is possible to create a subclass of AddPaymentOrderInvoicesTransformer class and get access to its methods.
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/hqlinjections/AddPaymentOrderInvoicesTransformer.java
---
|
|
|
|
Code Review + Testing - OK. |
|
|
|
|