|
|
|
@ -22,9 +22,7 @@ define(['angular', 'decimal', 'uiBootstrap', 'uiRouter', 'angularEcharts'], func
|
|
|
|
|
})
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('clientSurchargeAccountCtrl', ['$scope', '$http','$state','$filter', 'commonDialog','partner','$uibModal', function ($scope, $http,$state,$filter, commonDialog, partner,$uibModal) {
|
|
|
|
|
|
|
|
|
|
$scope.partner = angular.copy(partner.data);
|
|
|
|
|
|
|
|
|
|
$scope.getBalance = function () {
|
|
|
|
|
$scope.surcharge = {};
|
|
|
|
|
if ($scope.partner.surcharge_mode != undefined && $scope.partner.surcharge_mode == "distributed") {
|
|
|
|
@ -49,6 +47,24 @@ define(['angular', 'decimal', 'uiBootstrap', 'uiRouter', 'angularEcharts'], func
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
$scope.getDetailByMonths();
|
|
|
|
|
$scope.surchargeAccountDetail = function (client_moniker,mon) {
|
|
|
|
|
$uibModal.open({
|
|
|
|
|
templateUrl: '/static/payment/surchargeaccount/templates/client_surcharge_account_dialog.html',
|
|
|
|
|
controller: 'accountDetailCtrl',
|
|
|
|
|
size: 'lg',
|
|
|
|
|
resolve: {
|
|
|
|
|
client_moniker: function () {
|
|
|
|
|
return client_moniker;
|
|
|
|
|
},
|
|
|
|
|
month: function () {
|
|
|
|
|
return mon;
|
|
|
|
|
},
|
|
|
|
|
transactions: ['$http', function ($http) {
|
|
|
|
|
return $http.get('/client/partner_info/' + client_moniker + '/account/transactions/date?date=' + mon);
|
|
|
|
|
}]
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('surchargeAccountMonthCtrl', ['$scope', '$http', '$filter', '$timeout', '$uibModal', 'commonDialog', 'chartParser','$sce',
|
|
|
|
|
function ($scope, $http, $filter, $timeout, $uibModal, commonDialog, chartParser, $sce) {
|
|
|
|
|