Author: jleroux
Date: Thu Oct 17 14:27:42 2019
New Revision: 1868555
URL:
http://svn.apache.org/viewvc?rev=1868555&view=revLog:
"Applied fix from trunk for revision: 1868553"
------------------------------------------------------------------------
r1868553 | jleroux | 2019-10-17 16:26:42 +0200 (jeu. 17 oct. 2019) | 14 lignes
Fixed: FTL error for purchase order with Bulk Item Type
(OFBIZ-11252)
Steps to regenerate:
1. Login into the ordermgr application and click on Order Entry tab
2. Create PO with any supplier
3. Fill details and click on Continue
4. Now select Product Category with Item type Bulk and add the description and
Click on add to order
5. Finalize order with Finalize Order button
6. Add Term type, ship group option, etc details and create Order.
7. Scroll down to Order Items section and See the FTL error on the screen.
Thanks: Devanshu Vyas
------------------------------------------------------------------------
Modified:
ofbiz/ofbiz-framework/branches/release17.12/ (props changed)
ofbiz/ofbiz-framework/branches/release17.12/applications/order/template/order/OrderItems.ftl
Propchange: ofbiz/ofbiz-framework/branches/release17.12/
------------------------------------------------------------------------------
Merged /ofbiz/ofbiz-framework/trunk:r1868553
Modified: ofbiz/ofbiz-framework/branches/release17.12/applications/order/template/order/OrderItems.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release17.12/applications/order/template/order/OrderItems.ftl?rev=1868555&r1=1868554&r2=1868555&view=diff==============================================================================
--- ofbiz/ofbiz-framework/branches/release17.12/applications/order/template/order/OrderItems.ftl (original)
+++ ofbiz/ofbiz-framework/branches/release17.12/applications/order/template/order/OrderItems.ftl Thu Oct 17 14:27:42 2019
@@ -236,7 +236,7 @@ under the License.
</#if>
</#list>
</#if>
- <#if "SERVICE" == product.productTypeId && "ITEM_COMPLETED" == currentItemStatus.statusId>
+ <#if product?has_content && product.productTypeId?has_content && "SERVICE" == product.productTypeId && "ITEM_COMPLETED" == currentItemStatus.statusId>
<#assign shippedQuantity = orderItem.quantity?default(0)/>
<#assign totalReceived = orderItem.quantity?default(0)>
</#if>