[JIRA] Closed: (OFBIZ-695) auto-cancel date hard coded

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Closed: (OFBIZ-695) auto-cancel date hard coded

JIRA jira@ofbiz.org
     [ http://jira.undersunconsulting.com/browse/OFBIZ-695?page=all ]
     
Jacopo Cappellato closed OFBIZ-695:
-----------------------------------

    Resolution: Duplicate

http://issues.apache.org/jira/browse/OFBIZ-234

> auto-cancel date hard coded
> ---------------------------
>
>          Key: OFBIZ-695
>          URL: http://jira.undersunconsulting.com/browse/OFBIZ-695
>      Project: [OFBiz] Open For Business
>         Type: Bug
>   Components: product
>     Versions: SVN
>     Reporter: Si Chen
>     Assignee: Jira Administrator
>     Priority: Minor
>      Fix For: SVN

>
>
> It seems from a report by David Welton that the auto-cancel date is hard coded?
> In the code I was hacking at, I found '30' hard coded: near line 433
> (give or take some because of my patch)
> applications/product/src/org/ofbiz/product/inventory/InventoryServices.java
>                         // need to know if nextShipDate is more then
> 30 days after promised
>                         Calendar sCal = Calendar.getInstance();
>                         sCal.setTimeInMillis(actualPromiseDate.getTime());
>                         sCal.add(Calendar.DAY_OF_YEAR, 30);
>                         Timestamp farPastPromised = new
> Timestamp(sCal.getTimeInMillis());

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.undersunconsulting.com/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira