Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0032459 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
design defect | [Openbravo ERP] 09. Financial management | minor | N/A | 2016-03-11 11:29 | 2016-03-11 11:34 | |||||||
Reporter | alostale | View Status | public | |||||||||
Assigned To | Triage Omni OMS | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
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 | Core | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0032459: Invoice processing cannot be easily invoked programmatically | |||||||||||
Description | Invoice completion process (implemented by org.openbravo.advpaymentmngt.ad_actionbutton.ProcessInvoice) cannot be easily programmatically invoked. | |||||||||||
Steps To Reproduce | A real use case: A customer wants to directly invoke from UI invoice processing without displaying the intermediate popup asking for action for the document because in their flow there is always a single option there. Additionally to processing, they want to do extra actions afterwards but always when the button is clicked. Implementation: The problem can be solved by implementing a Process Definition which doesn't show any UI, invokes a Java handler which does the processing and the extra required steps. In order to implement the processing part, it is required to get a servlet instance in order to call the post method on it, which is an overhead in terms of code clarity as well as stack. See attached example. | |||||||||||
Proposed Solution | -A new class should be created for Invoice processing, with the only responsibility of doing the process -Servlet should be just an entry point which finally invokes this new class Having this in place invoices could be processed without the need of the Servlet, by just using the new class. | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | CompleteInvoice.java [^] (3,897 bytes) 2016-03-11 11:34 | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Issue History | |||
Date Modified | Username | Field | Change |
2016-03-11 11:29 | alostale | New Issue | |
2016-03-11 11:29 | alostale | Assigned To | => Triage Finance |
2016-03-11 11:29 | alostale | Modules | => Core |
2016-03-11 11:29 | alostale | Triggers an Emergency Pack | => No |
2016-03-11 11:34 | alostale | File Added: CompleteInvoice.java |
Copyright © 2000 - 2009 MantisBT Group |