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

jleroux 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 d5c336e  Fixed: Error on quick ship complete order (OFBIZ-12185)
d5c336e is described below

commit d5c336ed3a8c54de243bca22ac51c6196242b7f6
Author: Jacques Le Roux <[email protected]>
AuthorDate: Sun Feb 21 14:13:56 2021 +0100

    Fixed: Error on quick ship complete order (OFBIZ-12185)
    
    When we try to quick ship entire order from the Order Manager, the following
    error is thrown (in some cases, specifically when we have added a telecom 
number
    for the customer
    
    This was broken by OFBIZ-11462
    
    Thanks: Priya Sharma
---
 applications/product/groovyScripts/shipment/ShipmentServices.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/applications/product/groovyScripts/shipment/ShipmentServices.groovy 
b/applications/product/groovyScripts/shipment/ShipmentServices.groovy
index bd7e71a..4634415 100644
--- a/applications/product/groovyScripts/shipment/ShipmentServices.groovy
+++ b/applications/product/groovyScripts/shipment/ShipmentServices.groovy
@@ -303,7 +303,7 @@ def setShipmentSettingsFromPrimaryOrder() {
         List destTelecomOrdercontactMechs = 
EntityUtil.filterByAnd(orderContactMechs,
                 [contactMechPurposeTypeId: "PHONE_SHIPPING"])
         if (destTelecomOrdercontactMechs) {
-            shipment.destinationTeelcomNumberId = 
destTelecomOrdercontactMechs[0].contactMechId
+            shipment.destinationTelecomNumberId = 
destTelecomOrdercontactMechs[0].contactMechId
         } else {
             // use the first unexpired phone number of the shipment partyIdTo
             GenericValue phoneNumber = from("PartyAndTelecomNumber")

Reply via email to