salix/modules/invoiceOut/front/global-invoicing/index.html

104 lines
3.4 KiB
HTML
Raw Normal View History

2023-01-26 08:25:52 +00:00
<vn-card class="vn-w-lg vn-ma-md">
2023-01-24 11:40:43 +00:00
<h5 ng-if="$ctrl.packageInvoicing" translate text-center class="vn-pa-md">{{'Calculating packages to invoice...'}}</h5>
<vn-vertical ng-if="$ctrl.clients.length" text-center class="vn-pa-md">
2023-01-24 11:40:43 +00:00
<h5 translate>Invoicing</h5>
<div>
{{'Current client id' | translate}}: {{$ctrl.currentClientId}}
2023-01-24 11:40:43 +00:00
</div>
2023-01-25 07:27:39 +00:00
<h6>
{{($ctrl.percentage / 100) | percentage: 0}} ({{$ctrl.currentClient}} {{'of' | translate}} {{$ctrl.clients.length}})
2023-01-25 07:27:39 +00:00
</h6>
2023-01-24 11:40:43 +00:00
</vn-vertical>
</vn-card>
2022-12-27 12:50:10 +00:00
<vn-card class="vn-w-lg">
<vn-table ng-if="data.length">
<vn-thead>
<vn-tr>
<vn-th field="clientId" number>Client id</vn-th>
<vn-th field="nickname">Nickname</vn-th>
<vn-th field="addressId" number>Address id</vn-th>
<vn-th field="street" expand>Street</vn-th>
2023-01-26 08:25:52 +00:00
<vn-th field="error" expand>Error</vn-th>
2022-12-27 12:50:10 +00:00
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr
ng-repeat="client in data">
<vn-td number>
2022-12-27 12:50:10 +00:00
<span
vn-click-stop="clientDescriptor.show($event, client.id)"
class="link">
{{::client.id}}
</span>
</vn-td>
<vn-td>
{{::client.address.nickname}}
2022-12-27 12:50:10 +00:00
</vn-td>
<vn-td number>
{{::client.address.id}}
</vn-td>
<vn-td expand>
{{::client.address.street}}
</vn-td>
2023-01-26 08:25:52 +00:00
<vn-td expand>
2022-12-27 12:50:10 +00:00
<vn-spinner
ng-if="client.status == 'waiting'"
enable="true">
</vn-spinner>
2023-01-26 08:25:52 +00:00
{{::client.error}}
2022-12-27 12:50:10 +00:00
</vn-td>
</vn-tr>
</vn-tbody>
</vn-table>
</vn-card>
2022-12-27 11:21:04 +00:00
<vn-side-menu side="right">
<vn-crud-model
auto-load="true"
url="InvoiceOutSerials"
data="invoiceOutSerials"
order="code">
</vn-crud-model>
<vn-crud-model
auto-load="true"
url="Companies"
data="companies"
order="code">
</vn-crud-model>
<form class="vn-pa-md">
<vn-vertical>
<vn-date-picker
vn-one
label="Invoice date"
ng-model="$ctrl.invoice.invoiceDate">
</vn-date-picker>
<vn-date-picker
vn-one
label="Max date"
ng-model="$ctrl.invoice.maxShipped">
</vn-date-picker>
<vn-autocomplete
url="Companies"
label="Company"
show-field="code"
value-field="id"
ng-model="$ctrl.invoice.companyFk">
</vn-autocomplete>
2023-01-17 09:46:16 +00:00
<vn-autocomplete
url="Printers"
label="Printer"
show-field="name"
value-field="id"
where="{isLabeler: false}"
ng-model="$ctrl.invoice.printerFk">
</vn-autocomplete>
2023-01-25 09:14:37 +00:00
<vn-submit vn-id="invoiceButton" ng-click="$ctrl.makeInvoice()" label="Invoice out"></vn-submit>
2023-01-17 09:46:16 +00:00
</vn-vertical>
2022-12-27 11:21:04 +00:00
</form>
</vn-side-menu>
<vn-client-descriptor-popover
vn-id="clientDescriptor">
</vn-client-descriptor-popover>