You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2014/11/22 13:39:59 UTC
svn commit: r1641055 - in /ofbiz/branches/release13.07/applications:
order/config/OrderErrorUiLabels.xml
product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml
Author: ashish
Date: Sat Nov 22 12:39:59 2014
New Revision: 1641055
URL: http://svn.apache.org/r1641055
Log:
Applied bug fix from trunk r1618411.(Anil forgot to commit it in R13.07)
Log Message: [OFBIZ-4459] call to Quickshipdrop should be make on approved orders. Thanks to Kiran Gawde and ofbiz.us team for contributions.
Modified:
ofbiz/branches/release13.07/applications/order/config/OrderErrorUiLabels.xml
ofbiz/branches/release13.07/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml
Modified: ofbiz/branches/release13.07/applications/order/config/OrderErrorUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/order/config/OrderErrorUiLabels.xml?rev=1641055&r1=1641054&r2=1641055&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/order/config/OrderErrorUiLabels.xml (original)
+++ ofbiz/branches/release13.07/applications/order/config/OrderErrorUiLabels.xml Sat Nov 22 12:39:59 2014
@@ -35,6 +35,9 @@
<value xml:lang="zh">å¿
须为éå®è®¢åéæ©ä¸ä¸ªäº§ååºéºã </value>
<value xml:lang="zh_TW">å¿
é çºé·å®è¨å®é¸æä¸åç¢ååºéªã </value>
</property>
+ <property key="OrderApproveOrderBeforeQuickDropShip">
+ <value xml:lang="en">Order must be approved before complete drop shipment.</value>
+ </property>
<property key="OrderAnAlternateGwpProductIdWasInPlaceButWasEitherNotValidOrIsNoLongerInStockForId">
<value xml:lang="de">Ein alternative Gratisbeigabe ist vorhanden, aber entweder nicht mehr gültig oder nicht mehr auf Lager : ${alternateGwpProductId}</value>
<value xml:lang="en">An alternateGwpProductId was in place, but was either not valid or is no longer in stock for ID : ${alternateGwpProductId}</value>
Modified: ofbiz/branches/release13.07/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml?rev=1641055&r1=1641054&r2=1641055&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml (original)
+++ ofbiz/branches/release13.07/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml Sat Nov 22 12:39:59 2014
@@ -1339,6 +1339,13 @@ under the License.
</simple-method>
<simple-method method-name="quickDropShipOrder" short-description="Create and complete a drop shipment for a ship group">
+ <entity-one entity-name="OrderHeader" value-field="orderHeader"/>
+ <if-compare field="orderHeader.statusId" operator="equals" value="ORDER_CREATED">
+ <add-error>
+ <fail-property resource="OrderErrorUiLabels" property="OrderApproveOrderBeforeQuickDropShip"/>
+ </add-error>
+ <check-errors/>
+ </if-compare>
<set from-field="parameters.orderId" field="shipmentContext.primaryOrderId"/>
<set from-field="parameters.shipGroupSeqId" field="shipmentContext.primaryShipGroupSeqId"/>
<set value="PURCH_SHIP_CREATED" field="shipmentContext.statusId"/>