|
|
|
@ -1359,6 +1359,11 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
$scope.customerTaxFree = function (customerTaxFree) {
|
|
|
|
|
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/customer_tax_free', {customer_tax_free: customerTaxFree}).then(function (resp) {
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
$scope.settleHours = [{value: undefined, label: 'Default(24:00, GMT+10)'}];
|
|
|
|
|
for (var h = 24; h > 0; h--) {
|
|
|
|
|
$scope.settleHours.push({value: h, label: ('00' + h).substr(-2) + ':00, ' + $scope.partner.timezone});
|
|
|
|
@ -2485,6 +2490,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
app.controller('managerClearingDetailCtrl', ['$scope', 'detail', function ($scope, detail) {
|
|
|
|
|
$scope.ctrl = {channel: null};
|
|
|
|
|
$scope.report = detail.data;
|
|
|
|
|
$scope.report.total_charge = Decimal.add($scope.report.total_charge,$scope.report.tax_amount).toFixed(2);
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
app.controller('productCtrl', ['$scope', '$http', '$uibModal', 'commonDialog', '$state', 'Upload', 'industryMap', function ($scope, $http, $uibModal, commonDialog, $state, Upload, industryMap) {
|
|
|
|
|