You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2011/10/12 10:34:56 UTC
svn commit: r1182259 - in /ofbiz/trunk/applications/product:
config/ProductErrorUiLabels.xml webapp/facility/facility/PickMoveStock.ftl
widget/facility/CommonScreens.xml widget/facility/FacilityScreens.xml
Author: jleroux
Date: Wed Oct 12 08:34:56 2011
New Revision: 1182259
URL: http://svn.apache.org/viewvc?rev=1182259&view=rev
Log:
Fixes "Stock Move: Error when attempting to select a From Stock location" https://issues.apache.org/jira/browse/OFBIZ-4465 reported by Alan Barker
It was simply a matter of replacing & by & in PickMoveStock.ftl.
I also improved by checking if the product was already selected
Modified:
ofbiz/trunk/applications/product/config/ProductErrorUiLabels.xml
ofbiz/trunk/applications/product/webapp/facility/facility/PickMoveStock.ftl
ofbiz/trunk/applications/product/widget/facility/CommonScreens.xml
ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml
Modified: ofbiz/trunk/applications/product/config/ProductErrorUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/config/ProductErrorUiLabels.xml?rev=1182259&r1=1182258&r2=1182259&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/config/ProductErrorUiLabels.xml (original)
+++ ofbiz/trunk/applications/product/config/ProductErrorUiLabels.xml Wed Oct 12 08:34:56 2011
@@ -148,9 +148,14 @@
</property>
<property key="ProductNotInAnyLocation">
<value xml:lang="en">This Product is not in any Location</value>
+ <value xml:lang="fr">Ce produit ne se trouve en aucun emplacement</value>
<value xml:lang="zh">è¿ä¸ªäº§åä¸å¨ä»»ä½å°æ¹</value>
<value xml:lang="zh_TW">éåç¢åä¸å¨ä»»ä½å°æ¹</value>
</property>
+ <property key="ProductFieldEmpty">
+ <value xml:lang="en">Please, fill the product field before</value>
+ <value xml:lang="fr">Sélectionnez le produit d'abord</value>
+ </property>
<property key="ProductNumberOfOrdersMustNotBeEmptyToPrintPickSheet">
<value xml:lang="en">The number of orders must not be empty. Please re-enter to print pick sheet.</value>
</property>
Modified: ofbiz/trunk/applications/product/webapp/facility/facility/PickMoveStock.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/facility/PickMoveStock.ftl?rev=1182259&r1=1182258&r2=1182259&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/facility/PickMoveStock.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/facility/facility/PickMoveStock.ftl Wed Oct 12 08:34:56 2011
@@ -16,13 +16,16 @@ KIND, either express or implied. See th
specific language governing permissions and limitations
under the License.
-->
-
<script language="JavaScript" type="text/javascript">
function quicklookup(func, locationelement, facilityelement, productelement) {
var productId = productelement.value;
+ if (productId.length == 0) {
+ alert("${StringUtil.wrapString(uiLabelMap.ProductFieldEmpty)}");
+ return;
+ }
var facilityId = facilityelement.value;
- var request = "LookupProductInventoryLocation?productId=" + productId + "&facilityId=" + facilityId;
+ var request = "LookupProductInventoryLocation?productId=" + productId + "&facilityId=" + facilityId;
window[func](locationelement, request);
}
</script>
Modified: ofbiz/trunk/applications/product/widget/facility/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/facility/CommonScreens.xml?rev=1182259&r1=1182258&r2=1182259&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/widget/facility/CommonScreens.xml (original)
+++ ofbiz/trunk/applications/product/widget/facility/CommonScreens.xml Wed Oct 12 08:34:56 2011
@@ -25,6 +25,7 @@ under the License.
<actions>
<!-- base/top/specific map first, then more common map added for shared labels -->
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
+ <property-map resource="ProductErrorUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
Modified: ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml?rev=1182259&r1=1182258&r2=1182259&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml (original)
+++ ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml Wed Oct 12 08:34:56 2011
@@ -1281,6 +1281,7 @@ under the License.
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
+ <property-map resource="ProductErrorUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="layoutSettings.companyName" from-field="uiLabelMap.FacilityCompanyName" global="true"/>