salix/modules/invoiceIn/front/unbilled-clients/index.html

111 lines
4.3 KiB
HTML

<vn-crud-model
vn-id="model"
url="InvoiceIns/unbilledClients"
auto-load="true"
params="$ctrl.params">
</vn-crud-model>
<vn-portal slot="topbar">
</vn-portal>
<vn-card>
<smart-table
model="model"
options="$ctrl.smartTableOptions"
expr-builder="$ctrl.exprBuilder(param, value)">
<slot-actions>
<vn-date-picker
vn-one
label="From"
ng-model="$ctrl.params.from"
on-change="model.refresh()">
</vn-date-picker>
<vn-date-picker
vn-one
label="To"
ng-model="$ctrl.params.to"
on-change="model.refresh()">
</vn-date-picker>
<vn-button
disabled="model._orgData.length == 0"
icon="download"
ng-click="$ctrl.downloadCSV()"
vn-tooltip="Download as CSV">
</vn-button>
</slot-actions>
<slot-table>
<table>
<thead>
<tr>
<th field="company">
<span translate>Company</span>
</th>
<th field="country">
<span translate>Country</span>
</th>
<th field="clientId">
<span translate>Id Client</span>
</th>
<th field="clientSocialName">
<span translate>Client</span>
</th>
<th field="amount">
<span translate>Amount</span>
</th>
<th field="taxableBase">
<span translate>Base</span>
</th>
<th field="ticketFk">
<span translate>Id Ticket</span>
</th>
<th field="isActive" center>
<span translate>Active</span>
</th>
<th field="hasToInvoice" center>
<span translate>Has To Invoice</span>
</th>
<th field="isTaxDataChecked" center>
<span translate>Verified data</span>
</th>
<th field="comercialId">
<span translate>Id Comercial</span>
</th>
<th field="comercialName">
<span translate>Comercial</span>
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="client in model.data">
<td>{{client.company | dashIfEmpty}}</td>
<td>{{client.country | dashIfEmpty}}</td>
<td>{{client.clientId | dashIfEmpty}}</td>
<td>{{client.clientSocialName | dashIfEmpty}}</td>
<td>{{client.amount | currency: 'EUR':2 | dashIfEmpty}}</td>
<td>{{client.taxableBase | dashIfEmpty}}</td>
<td>{{client.ticketFk | dashIfEmpty}}</td>
<td center>
<vn-check
disabled="true"
ng-model="client.isActive">
</vn-check>
</td>
<td center>
<vn-check
disabled="true"
ng-model="client.hasToInvoice">
</vn-check>
</td>
<td center>
<vn-check
disabled="true"
ng-model="client.isTaxDataChecked">
</vn-check>
</td>
<td>{{client.comercialId | dashIfEmpty}}</td>
<td>{{client.comercialName | dashIfEmpty}}</td>
</tr>
</tbody>
</table>
</slot-table>
</smart-table>
</vn-card>