[ofbiz-plugins] branch release18.12 updated: Fixed: Error when initialize billFromParty from groovy context in loadSalesOrderItemFact service

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

[ofbiz-plugins] branch release18.12 updated: Fixed: Error when initialize billFromParty from groovy context in loadSalesOrderItemFact service

nmalin
This is an automated email from the ASF dual-hosted git repository.

nmalin pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/release18.12 by this push:
     new 6296ab4  Fixed: Error when initialize billFromParty from groovy context in loadSalesOrderItemFact service
6296ab4 is described below

commit 6296ab40782fa56fb29f0e9b766da1dfb49fbe71
Author: Nicolas Malin <[hidden email]>
AuthorDate: Thu Feb 6 13:03:18 2020 +0100

    Fixed: Error when initialize billFromParty from groovy context in loadSalesOrderItemFact service
   
    After the conversion from bsh to groovy, the script that resolve
    billFromParty need to propage the value on context Map to be available
    on minilang context
---
 bi/minilang/FactServices.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bi/minilang/FactServices.xml b/bi/minilang/FactServices.xml
index 408b93c..13a72be 100644
--- a/bi/minilang/FactServices.xml
+++ b/bi/minilang/FactServices.xml
@@ -358,7 +358,7 @@ under the License.
                 import org.apache.ofbiz.order.order.OrderReadHelper
 
                 orderReadHelper = new OrderReadHelper(orderHeader)
-                billFromParty = orderReadHelper.getBillFromParty()
+                context.billFromParty = orderReadHelper.getBillFromParty()
             </script>
             <set field="partyAccountingPreferencesCallMap.organizationPartyId" from-field="billFromParty.partyId"/>
             <call-service service-name="getPartyAccountingPreferences" in-map-name="partyAccountingPreferencesCallMap">