[ofbiz-framework] branch trunk updated: Improved: Improvement in Purchases by Product Report(OFBIZ-11733)

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

[ofbiz-framework] branch trunk updated: Improved: Improvement in Purchases by Product Report(OFBIZ-11733)

Pawan Verma-2
This is an automated email from the ASF dual-hosted git repository.

pawan pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 30ee142  Improved: Improvement in Purchases by Product Report(OFBIZ-11733)
30ee142 is described below

commit 30ee1428648327ec7ef0dc6ce9ff79e378bf2e37
Author: Pawan Verma <[hidden email]>
AuthorDate: Tue Jun 2 16:57:29 2020 +0530

    Improved: Improvement in Purchases by Product Report(OFBIZ-11733)
   
    The status description should be used in report instead of OFBiz ID.
   
    Thanks: Chandan Khandelwal for your contribution.
---
 applications/order/template/reports/OrderPurchaseReportProduct.fo.ftl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/applications/order/template/reports/OrderPurchaseReportProduct.fo.ftl b/applications/order/template/reports/OrderPurchaseReportProduct.fo.ftl
index edf3a9a..6ea2940 100644
--- a/applications/order/template/reports/OrderPurchaseReportProduct.fo.ftl
+++ b/applications/order/template/reports/OrderPurchaseReportProduct.fo.ftl
@@ -79,6 +79,7 @@ under the License.
                 <fo:table-body>
                     <#assign rowColor = "white">
                     <#list orderPurchaseProductSummaryList as orderPurchaseProductSummary>
+                        <#assign statusItem = delegator.findOne("StatusItem", {"statusId" : orderPurchaseProductSummary.statusId}, false)!/>
                         <fo:table-row>
                             <#if showProductStore>
                                 <fo:table-cell padding="2pt" background-color="${rowColor}">
@@ -97,7 +98,7 @@ under the License.
                             </#if>
                             <#if showStatus>
                                 <fo:table-cell padding="2pt" background-color="${rowColor}">
-                                    <fo:block>${orderPurchaseProductSummary.statusId!}</fo:block>
+                                    <fo:block>${statusItem.description!}</fo:block>
                                 </fo:table-cell>
                             </#if>
                             <fo:table-cell padding="2pt" background-color="${rowColor}">