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

105 lines
4.1 KiB
HTML
Raw Normal View History

<vn-crud-model
vn-id="model"
url="InvoiceIns/unbilledTickets"
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>
</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="ticket in model.data">
<td>{{ticket.company | dashIfEmpty}}</td>
<td>{{ticket.country | dashIfEmpty}}</td>
<td>{{ticket.clientId | dashIfEmpty}}</td>
<td>{{ticket.clientSocialName | dashIfEmpty}}</td>
<td>{{ticket.amount | currency: 'EUR':2 | dashIfEmpty}}</td>
<td>{{ticket.taxableBase | dashIfEmpty}}</td>
<td>{{ticket.ticketFk | dashIfEmpty}}</td>
<td center>
<vn-check
disabled="true"
ng-model="ticket.isActive">
</vn-check>
</td>
<td center>
<vn-check
disabled="true"
ng-model="ticket.hasToInvoice">
</vn-check>
</td>
<td center>
<vn-check
disabled="true"
ng-model="ticket.isTaxDataChecked">
</vn-check>
</td>
<td>{{ticket.comercialId | dashIfEmpty}}</td>
<td>{{ticket.comercialName | dashIfEmpty}}</td>
</tr>
</tbody>
</table>
</slot-table>
</smart-table>
</vn-card>