[ 
https://issues.apache.org/jira/browse/OFBIZ-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deepesh Kapoor updated OFBIZ-2220:
----------------------------------

    Attachment: order.patch

Here is the patch for adding new field for "Cancel Back Orders Date", like 
others for OrderItem and showing it on Purchase Order PDF.

To test this patch follow these steps:

1. Start creating a new purchase order, the field for providing "cancel back 
order date" is provided right below the existing fields ship before & ship 
after date.
2. The order view page will reflect the added "cancel back order date".
3. If the assigned cancel back order date is passed for any order, than the 
scheduled service (midnight daily) makes sure that it gets canceled.
To test this we can : 
 a. Create a new PO.
 b. Assign it a cancel back order date which is already passed.
 c. Check the behavior of the service by explicitly running it through webtools.
4. The PO PDF reflects the cancel back order date for all those orders which 
are assigned this date. This can be tested by generating PDF from order view 
page.
 

> Add new field for "Cancel Back Orders Date", like others for OrderItem. Show 
> these on Purchase order PDF.
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2220
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2220
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: order
>    Affects Versions: SVN trunk
>            Reporter: Pranay Pandey
>            Priority: Minor
>             Fix For: SVN trunk
>
>
> There should be one field "cancelBackOrdersDate" associated with order items 
> which will help to cancel those orders which have crossed this date.
> *Implementation Notes:*
> Add new field for cancelBackOrdersDate", like others for OrderItem. Show on 
> Purchase Order PDF.
> Add a service to look at all purchase orders with the field set and if the 
> date is in the past then it should cancel those orders; the service should 
> run on a schedule, once per day.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to