PATH:
home
/
letacommog
/
letaweb
/
scripts
/
editor
/
ecommerce
/
configuration
/
tax
define([], function() { return function($scope, communication, popup_tax_class,$dialog) { $scope.gridInstance={}; $scope.add = function() { popup_tax_class.open().result.then(function(data) { communication.removeList('taxClass'); $scope.gridInstance.instance.reloadData(); }); } $scope.delete = function() { var rows = $scope.gridInstance.selections; if(rows.length > 0) { $dialog.confirm({ title:'', message:window.t('LBL_DELETE_ITEMS_CONFIRM_MESSAGE') }).result.then(function() { communication.api('deleteTaxClasses', {ids:rows},'ecommerce.configuration.tax').then(function() { communication.removeList('taxClass'); $scope.gridInstance.instance.reloadData(); }); }); } } $scope.RowButtonClickHandler = { edit : function(id) { communication.api('getFormData',{name:'taxClass', id:id}).then(function(data) { popup_tax_class.open( { data:data }).result.then(function(data) { communication.removeList('taxClass'); $scope.gridInstance.instance.reloadData(); }); }) } }; } });
[+]
..
[-] tax_class.js
[edit]
[-] edit.js
[edit]
[-] tax_rate.js
[edit]