diff --git a/forms/ecomerce/catalog/catalog.js b/forms/ecomerce/catalog/catalog.js index dd8e67c7..71aa2a21 100644 --- a/forms/ecomerce/catalog/catalog.js +++ b/forms/ecomerce/catalog/catalog.js @@ -17,10 +17,6 @@ Hedera.Catalog = new Class({ } } - ,refreshColors() { - this.$.colors.lazyRefresh(); - } - ,onBasketCheck: function(isOk) { if (isOk) this.loadUi(); @@ -258,7 +254,7 @@ Hedera.Catalog = new Class({ this.onEraseClick(); this.$.card.row = form.row; - this.$.cardLot.value = form.$.id; + this.$.cardLot.assign({item: form.$.id}); this.$.cardPopup.show(event.currentTarget); } @@ -296,7 +292,7 @@ Hedera.Catalog = new Class({ const params = { warehouse: warehouse, - item: this.$.cardLot.value, + item: this.$.cardLot.$.item, amount: amount } sql += query.render(params); @@ -307,7 +303,7 @@ Hedera.Catalog = new Class({ var itemName = this.$.card.get('item'); Htk.Toast.showMessage( - sprintf(_('Added%dOf%s'), amountSum, itemName)); + Vn.Value.sprintf(_('Added%dOf%s'), amountSum, itemName)); } this.$.cardPopup.hide(); diff --git a/forms/ecomerce/catalog/ui.xml b/forms/ecomerce/catalog/ui.xml index ea0ed4aa..7a209c51 100644 --- a/forms/ecomerce/catalog/ui.xml +++ b/forms/ecomerce/catalog/ui.xml @@ -266,7 +266,7 @@ placeholder="_Color" form="params" column="color" - on-mousedown="this.refreshColors()"> + on-mousedown="$.colors.lazyRefresh()">