2020-09-22 14:20:47 +02:00
|
|
|
<div class="custom-invoice">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h3 class="modal-title" translate>{{ 'app.admin.invoices.VAT' }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="enableVAT" class="control-label" translate>{{ 'app.admin.invoices.enable_VAT' }}</label>
|
2022-01-12 15:17:08 +01:00
|
|
|
<switch id="enableVAT"
|
|
|
|
checked="isSelected"
|
|
|
|
on-change="enableVATChanged"
|
|
|
|
classname="form-control m-l-sm">
|
|
|
|
</switch>
|
2020-09-22 14:20:47 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" ng-show="isSelected">
|
|
|
|
<label for="vatRate" class="control-label" translate>{{ 'app.admin.invoices.VAT_rate' }}</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon">% </span>
|
|
|
|
<input id="vatRate" type="number" ng-model="rate" class="form-control" min="0" max="100"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-24 17:50:57 +01:00
|
|
|
<uib-alert type="warning" ng-show="isSelected">
|
|
|
|
<p class="text-sm">
|
|
|
|
<i class="fa fa-warning"></i>
|
|
|
|
<span>{{ 'app.admin.invoices.VAT_notice' | translate }}</span>
|
|
|
|
</p>
|
|
|
|
</uib-alert>
|
2020-09-22 14:20:47 +02:00
|
|
|
|
|
|
|
<div class="m-t-lg">
|
|
|
|
<h4 translate>{{ 'app.admin.invoices.VAT_history' }}</h4>
|
|
|
|
<table class="table scrollable-3-cols">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th translate>{{ 'app.admin.invoices.VAT_rate' }}</th>
|
|
|
|
<th translate>{{ 'app.admin.invoices.changed_at' }}</th>
|
|
|
|
<th translate>{{ 'app.admin.invoices.changed_by' }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="value in history | orderBy:'-date'">
|
|
|
|
<td>
|
|
|
|
<span class="no-user-label" ng-show="value.enabled === false" translate>{{'app.admin.invoices.VAT_disabled'}}</span>
|
|
|
|
<span class="no-user-label" ng-show="value.enabled === true" translate>{{'app.admin.invoices.VAT_enabled'}}</span>
|
|
|
|
<span ng-show="value.rate">{{value.rate}}</span>
|
|
|
|
</td>
|
|
|
|
<td>{{value.date | amDateFormat:'L LT'}}</td>
|
|
|
|
<td>{{value.user.name}}<span class="no-user-label" ng-hide="value.user" translate>{{ 'app.admin.invoices.deleted_user' }}</span></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2022-01-17 12:38:53 +01:00
|
|
|
<button class="btn btn-warning pull-left" ng-click="editMultiVAT()" ng-show="isSelected" translate>{{ 'app.admin.invoices.edit_multi_VAT_button' }}</button>
|
2020-09-22 14:20:47 +02:00
|
|
|
<button class="btn btn-warning" ng-click="ok()" translate>{{ 'app.shared.buttons.confirm' }}</button>
|
|
|
|
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'app.shared.buttons.cancel' }}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|