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

134 lines
5.1 KiB
HTML
Raw Normal View History

<vn-crud-model
vn-id="model"
2023-03-16 08:35:00 +00:00
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
2023-03-10 11:49:20 +00:00
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>
2023-03-16 08:47:58 +00:00
<th field="isActive">
<span translate>Active</span>
</th>
2023-03-16 08:47:58 +00:00
<th field="hasToInvoice">
<span translate>Has To Invoice</span>
</th>
2023-03-16 08:47:58 +00:00
<th field="isTaxDataChecked">
<span translate>Verified data</span>
</th>
<th field="comercialName">
<span translate>Comercial</span>
</th>
</tr>
</thead>
<tbody>
2023-03-16 08:35:00 +00:00
<tr ng-repeat="client in model.data">
<td>{{client.company | dashIfEmpty}}</td>
<td>{{client.country | dashIfEmpty}}</td>
2023-03-16 08:47:58 +00:00
<td>
<vn-span
class="link"
ng-click="clientDescriptor.show($event, client.clientId)">
{{::client.clientId | dashIfEmpty}}
</vn-span>
</td>
2023-03-16 08:35:00 +00:00
<td>{{client.clientSocialName | dashIfEmpty}}</td>
<td>{{client.amount | currency: 'EUR':2 | dashIfEmpty}}</td>
<td>{{client.taxableBase | dashIfEmpty}}</td>
2023-03-16 08:47:58 +00:00
<td>
<vn-span
class="link"
ng-click="ticketDescriptor.show($event, client.ticketFk)">
{{::client.ticketFk | dashIfEmpty}}
</vn-span>
</td>
<td>
<vn-check
disabled="true"
2023-03-16 08:35:00 +00:00
ng-model="client.isActive">
</vn-check>
</td>
2023-03-16 08:47:58 +00:00
<td>
<vn-check
disabled="true"
2023-03-16 08:35:00 +00:00
ng-model="client.hasToInvoice">
</vn-check>
</td>
2023-03-16 08:47:58 +00:00
<td>
<vn-check
disabled="true"
2023-03-16 08:35:00 +00:00
ng-model="client.isTaxDataChecked">
</vn-check>
</td>
2023-03-16 08:47:58 +00:00
<td>
<vn-span
class="link"
ng-click="workerDescriptor.show($event, client.comercialId)">
{{::client.comercialName | dashIfEmpty}}
</vn-span>
</td>
</tr>
</tbody>
</table>
</slot-table>
</smart-table>
</vn-card>
2023-03-16 08:47:58 +00:00
<vn-ticket-descriptor-popover
vn-id="ticket-descriptor">
</vn-ticket-descriptor-popover>
<vn-client-descriptor-popover
vn-id="client-descriptor">
</vn-client-descriptor-popover>
<vn-worker-descriptor-popover
vn-id="worker-descriptor">
</vn-worker-descriptor-popover>