diff --git a/app/assets/javascripts/controllers/admin/invoices.js.erb b/app/assets/javascripts/controllers/admin/invoices.js.erb index e4a3fe1b8..aab7f9fc0 100644 --- a/app/assets/javascripts/controllers/admin/invoices.js.erb +++ b/app/assets/javascripts/controllers/admin/invoices.js.erb @@ -301,11 +301,15 @@ Application.Controllers.controller('InvoicesController', ['$scope', '$state', 'I }, active () { return $scope.invoice.VAT.active; + }, + history () { + return Setting.get({ name: 'invoice_VAT-rate', history: true }).$promise; } }, - controller: ['$scope', '$uibModalInstance', 'rate', 'active', function ($scope, $uibModalInstance, rate, active) { + controller: ['$scope', '$uibModalInstance', 'rate', 'active', 'history', function ($scope, $uibModalInstance, rate, active, history) { $scope.rate = rate; $scope.isSelected = active; + $scope.history = history.setting.history; $scope.ok = function () { $uibModalInstance.close({ rate: $scope.rate, active: $scope.isSelected }); }; return $scope.cancel = function () { $uibModalInstance.dismiss('cancel'); }; diff --git a/app/assets/templates/admin/invoices/index.html.erb b/app/assets/templates/admin/invoices/index.html.erb index 1f5288635..78baf8b7e 100644 --- a/app/assets/templates/admin/invoices/index.html.erb +++ b/app/assets/templates/admin/invoices/index.html.erb @@ -384,6 +384,26 @@ + +
{{ 'invoices.VAT_rate' }} | +{{ 'invoices.changed_at' }} | +{{ 'invoices.changed_by' }} | +
---|---|---|
{{value.value}} % | +{{value.created_at | amDateFormat:'L LT'}} | +{{value.user.name}} | +