|
From: <sv...@cy...> - 2016-02-24 15:45:34
|
Author: rlaucik
Date: 2016-02-24 16:45:21 +0100 (Wed, 24 Feb 2016)
New Revision: 8616
Log:
added product EAN code into edit and listing
Modified:
trunk/xuladmin/xpi-source-22/chrome/chromeFiles/content/addons/a910/product_cat_list.xbl
trunk/xuladmin/xpi-source-22/chrome/chromeFiles/content/addons/a910/product_edit.xbl
Modified: trunk/xuladmin/xpi-source-22/chrome/chromeFiles/content/addons/a910/product_cat_list.xbl
===================================================================
--- trunk/xuladmin/xpi-source-22/chrome/chromeFiles/content/addons/a910/product_cat_list.xbl 2016-02-23 16:47:49 UTC (rev 8615)
+++ trunk/xuladmin/xpi-source-22/chrome/chromeFiles/content/addons/a910/product_cat_list.xbl 2016-02-24 15:45:21 UTC (rev 8616)
@@ -722,6 +722,14 @@
_onclick="document.getBindingParent(this).fnc_sort(this)"
hidden="false"
persist="hidden ordinal"/>
+
+ <xul:treecol
+ id="list_col-EAN" IDanon="list_col-EAN"
+ width="100px"
+ label="&variable.product_EAN;"
+ _onclick="document.getBindingParent(this).fnc_sort(this)"
+ hidden="true"
+ persist="hidden ordinal"/>
<xul:treecol
Modified: trunk/xuladmin/xpi-source-22/chrome/chromeFiles/content/addons/a910/product_edit.xbl
===================================================================
--- trunk/xuladmin/xpi-source-22/chrome/chromeFiles/content/addons/a910/product_edit.xbl 2016-02-23 16:47:49 UTC (rev 8615)
+++ trunk/xuladmin/xpi-source-22/chrome/chromeFiles/content/addons/a910/product_edit.xbl 2016-02-24 15:45:21 UTC (rev 8616)
@@ -186,9 +186,17 @@
</xul:hbox>
<xul:hbox flex="1" align="center">
<xul:textbox style="font-family:monospace;text-align:right;" maxlength="20" size="20" IDdata="product_number" value=""/>
-
</xul:hbox>
</xul:row>
+
+ <xul:row align="center">
+ <xul:hbox flex="1" align="center">
+ <xul:label class="bold" value="&variable.product_EAN;:"/>
+ </xul:hbox>
+ <xul:hbox flex="1" align="center">
+ <xul:textbox style="font-family:monospace;text-align:right;" maxlength="20" size="20" IDdata="EAN" value=""/>
+ </xul:hbox>
+ </xul:row>
<xul:row align="center">
<xul:hbox flex="1" align="center">
@@ -859,6 +867,7 @@
this.fnc_set('name_label',body.response.name_label);
this.fnc_set('keywords',body.response.keywords);
this.fnc_set('product_number',body.response.product_number);
+ this.fnc_set('EAN',body.response.EAN);
this.fnc_set('price',body.response.price);
this.fnc_set('price_previous',body.response.price_previous);
this.fnc_set('VAT',body.response.VAT);
@@ -1226,6 +1235,7 @@
'product.ID': this.load_param.ID,
'product.ID_entity': this.load_param.ID_entity,
'product.product_number': this.fnc_get('product_number'),
+ 'product.EAN': this.fnc_get('EAN'),
'product.price': this.fnc_get('price'),
'product.price_previous': this.fnc_get('price_previous'),
'product.price_max': this.fnc_get('price_max'),
|