[ofbiz-plugins] branch release17.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 release17.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 release17.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


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

commit 571fb3ae72e8fea02ef639aad4bb5f2f1c594a47
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">