Estimated Delivery date in Service Catalog Item

erikagupta
Giga Contributor

Hi All,

I am working on Fuji release. I have multiple Service Catalog requests using the same workflow but each having their own different delivery times. I wanted to make use of 'Delivery Date' field on the Catalog item form, but somehow the Estimated delivery date on the order status screen is not showing according to what is selected in delivery date field for catalog item. It seems to pick up this calculation from what is specified in workflow attached. Has any one been lucky with this kind of issue? Please help !

1 ACCEPTED SOLUTION

erikagupta
Giga Contributor

Hi Mani, Pradeep,



Thanks for your responses. I am sure this will work, however, i found a another workaround, i found an out-of-box script "Calculate Request Item Due Date" on the Requested Item table which was inactive earlier. This script on making active did exactly what i wanted. the script adds the days given in the delivery_time field to the current date and updates the due_date on the table. The Estimated delivery date on the order status screen is actually displaying this due_date field on the sc_req_item table. This seems to work for me i guess!!!!


View solution in original post

11 REPLIES 11

Hi Pradeep,



I would like to use this script but I want know if it would be valid for different catalog items. I have several catalog items with different delivery dates, but I am using one workflow. Your help is greatly appreciated.



Thanks!


Yes paradise623. We recently implemented this and it worked for us. Thanks to manikorada and pradeepksharma


erikagupta
Giga Contributor

Hi Mani, Pradeep,



Thanks for your responses. I am sure this will work, however, i found a another workaround, i found an out-of-box script "Calculate Request Item Due Date" on the Requested Item table which was inactive earlier. This script on making active did exactly what i wanted. the script adds the days given in the delivery_time field to the current date and updates the due_date on the table. The Estimated delivery date on the order status screen is actually displaying this due_date field on the sc_req_item table. This seems to work for me i guess!!!!


crao
Kilo Contributor

Hi Erika,



I activated the script but the order screen   still displays the   delivery time in the workflow as opposed to the delivery time of the catalog item. Did you make any additional changes apart from this to get   it to work. Can you please help.



Thanks,


Chetana


I also had to modify the cart layout by creating a copy of sc_order_item_wf_delivery and then modifying it as shown



${gs.getMessage('catalog_delivery_time')}


$</td>


</tr>


</j:if>


<j:if test="${sc_cat_item.u_no_delivery_time == false}">


<tr>


<td id="sc_delivery_time_label_cell">${gs.getMessage('catalog_delivery_time')}




${sc_cat_item.delivery_time.getDisplayValue()}



Regards,



Kent Harwell