- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2015 04:40 AM
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 !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2015 02:01 AM
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!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2015 09:05 AM
Erika,
The Delivery Date field on the Catalog Item is legacy field and not used. If you would like to make use of this, then if you are using new Cart Layouts, change the UI macro 'sc_order_item_wf_delivery' to :
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<j:set var="jvar_wf" value="${jvar_cat_item.getWorkflow();}" />
<j:set var="jvar_dp" value="${jvar_cat_item.getDeliveryPlan();}" />
<j:if test="${!empty(jvar_wf)}">
<g:evaluate var="jvar_delivery_time" jelly="true" expression="new Workflow().getEstimatedDeliveryTime(jelly.jvar_wf);" />
</j:if>
<j:if test="${empty(jvar_wf)}">
<j:if test="${!empty(jvar_dp)}">
<j:set var="jvar_delivery_time" value="${jvar_cat_item.getDeliveryPlanEstimatedDeliveryTime()}" />
</j:if>
</j:if>
<j:if test="${jvar_sc_delivery_time == 'true' and !empty(jvar_delivery_time)}">
<tr>
<td id="sc_delivery_time_label_cell"><strong>${gs.getMessage('catalog_delivery_time')}</strong></td>
<td id="sc_delivery_time_cell">${jvar_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"><strong>${gs.getMessage('catalog_delivery_time')}</strong></td>
<td id="sc_delivery_time_cell">${sc_cat_item.delivery_time.getDisplayValue()}</td>
</tr>
</j:if>
</j:jelly>
Now have the delivery time of your Workflow as '0'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2016 12:26 PM
Hi Mani,
This was helpful, but I'm trying to figure out how to make a similar change in "sc_cart_view_column_delivery_time". Using ${sc_cat_item.delivery_time.getDisplayValue()} doesn't work there and I can't find anything to help me with using "jvar_cat_item". Would you be able to provide any help?
Thanks,
Kent Harwell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2016 06:26 PM
Hi Kent,
Did you find a solution? I am facing the exact same issue.
Thanks,
Chetana

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2015 09:31 AM
Hi Erika,
Just to add to Mani's response. Don't change the existing UI Macro and instead create the new UI Macro and then update the Macro field to the one you have created on the cart layouts.
This way you don't modify the OOB UI Macro and hence it will be not be skipped during the upgrade process.