Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032459
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] 09. Financial managementminorN/A2016-03-11 11:292016-03-11 11:34
ReporteralostaleView Statuspublic 
Assigned ToTriage Omni OMS 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0032459: Invoice processing cannot be easily invoked programmatically

DescriptionInvoice completion process (implemented by org.openbravo.advpaymentmngt.ad_actionbutton.ProcessInvoice) cannot be easily programmatically invoked.

Steps To ReproduceA 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.
TagsNo tags attached.
Attached Files? file icon CompleteInvoice.java [^] (3,897 bytes) 2016-03-11 11:34

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- 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
Powered by Mantis Bugtracker