diff --git a/client/src/modules/stock/entry/entry.html b/client/src/modules/stock/entry/entry.html index 310834eea4..ee14cd0803 100644 --- a/client/src/modules/stock/entry/entry.html +++ b/client/src/modules/stock/entry/entry.html @@ -59,11 +59,11 @@ FORM.LABELS.DESCRIPTION -
-
-
+ ng-maxlength="StockCtrl.maxLength"> + +
+
+
diff --git a/client/src/modules/stock/exit/exit.html b/client/src/modules/stock/exit/exit.html index d438e1ef6c..9da59a088c 100644 --- a/client/src/modules/stock/exit/exit.html +++ b/client/src/modules/stock/exit/exit.html @@ -79,8 +79,7 @@ name="description" ng-model="StockCtrl.movement.description" placeholder="{{ 'FORM.PLACEHOLDERS.DESCRIPTION' | translate }}" - ng-maxlength="StockCtrl.maxLength" - required> + ng-maxlength="StockCtrl.maxLength">
diff --git a/client/src/modules/stock/inventories/registry.html b/client/src/modules/stock/inventories/registry.html index 61b4258526..993ebb7a91 100644 --- a/client/src/modules/stock/inventories/registry.html +++ b/client/src/modules/stock/inventories/registry.html @@ -34,12 +34,12 @@
  • - + DOWNLOADS.PDF
  • - + DOWNLOADS.CSV
  • diff --git a/client/src/modules/stock/inventories/registry.js b/client/src/modules/stock/inventories/registry.js index 2be845911b..e74e33f15b 100644 --- a/client/src/modules/stock/inventories/registry.js +++ b/client/src/modules/stock/inventories/registry.js @@ -250,6 +250,17 @@ function StockInventoriesController( vm.latestViewFilters = stockInventoryFilters.formatView(); } + vm.exportTo = (renderer) => { + const filterOpts = stockInventoryFilters.formatHTTP(); + const defaultOpts = { + renderer, + lang : Languages.key, + }; + const options = angular.merge(defaultOpts, filterOpts); + // return serialized options + return $httpParamSerializer(options); + }; + vm.downloadExcel = () => { const filterOpts = stockInventoryFilters.formatHTTP(); const defaultOpts = {