[
https://issues.apache.org/jira/browse/OFBIZ-3298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sharan Foga updated OFBIZ-3298:
-------------------------------
Sprint: Bug Crush Event - 21/2/2015
> AP Invoice : Event handling of user actions by friendly error messages.
> -----------------------------------------------------------------------
>
> Key: OFBIZ-3298
> URL: https://issues.apache.org/jira/browse/OFBIZ-3298
> Project: OFBiz
> Issue Type: Improvement
> Components: accounting
> Reporter: Sumit Pandit
> Priority: Minor
>
> Enhance AP FindInvoice screen by writing new validation services with
> following business rules -
> # On selection of an action from drop down above search results
> ## On change of value in action drop down (or selection of select all
> checkbox) call a service. The service will verify that if selected action
> can be performed on selected items from list. If service find item(s) that is
> not eligible for selected action then collect enough information on all
> invalid selections and return. On Server add a service corresponding to each
> service called on actions from actions list. Name of request/service should
> be build by adding suffix "IsCallValid" to request/service name.
> ## On Select an Action. Write services in OOTB which activate on performing
> of following operations
> ### If option "Issue Check" is selected, Validate following rules,
> #### All Invoice must be in ready status.
> #### All Invoice's outstanding amount must be greater then zero.
> #### Prepare and return list of all invoiceIds which are not eligible.
> #### Highlight invalid invoice Id rows.
> ### If option "Print Invoice" selected
> #### No validation check required.
> ### If any option for invoice status change is selected, Validate following
> rules,
> #### Check statusValidChange for all invoices
> #### Prepare and return list of all invoiceIds which are invalid status
> change.
> #### Highlight invalid invoice Id rows.
> ## UI should display nicely formatted error message to user. UI should take
> appropriate action to highlight items from list that are not eligible, e.g
> Browser should change background of list item to "warning style".
> # On selection of select all checkbox
> ## Get value of selected action and call appropriate validation service
> accordingly (rules are defined above).
> # On selection of any checkbox from invoice rows.
> ## It will work same as "Select All" action. Send selected invoice id in form
> of List.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)