salix/client/item/src/last-entries/index.html

68 lines
3.7 KiB
HTML
Raw Normal View History

2018-06-20 09:39:29 +00:00
<vn-vertical>
<vn-card pad-large>
<vn-vertical>
<vn-title>Last entries</vn-title>
<vn-horizontal>
<vn-date-picker
vn-one
label="Since"
model="$ctrl.entriesDate"
ini-options="{dateFormat: 'd-m-Y'}">
</vn-date-picker>
<!--datepicker-->
</vn-horizontal>
<table class="vn-grid">
<thead>
<tr>
<th number vn-tooltip="Ignored">Ig</th>
<th number translate>Warehouse</th>
<th number translate>Landed</th>
<th number translate>Entry</th>
<th number vn-tooltip="Price Per Unit">P.P.U</th>
<th number vn-tooltip="Price Per Package">P.P.P</th>
<th number class="expendable" translate>Label</th>
<th number>Packing</th>
<th number>Grouping</th>
<th number class="expendable" translate>Stems</th>
<th number translate>Quantity</th>
<th number class="expendable" translate>Cost</th>
<th number translate>Cube</th>
<th number class="expendable" translate>Provider</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="entries in $ctrl.entries">
<td number>
<vn-check
field="entries.isIgnored"
disabled="true">
</vn-check>
</td>
<td number>{{entries.warehouse| dashIfEmpty}}</td>
<td number>{{entries.landed | date:'dd/MM/yyyy HH:mm'}}</td>
<td number>{{entries.entryFk | dashIfEmpty}}</td>
<td number>{{entries.price2 | dashIfEmpty}}</td>
<td number>{{entries.price3 | dashIfEmpty}}</td>
<td number class="expendable">{{entries.stickers | dashIfEmpty}}</td>
<td number>
<div ng-class="{'round': entries.groupingMode == 2}">{{entries.packing | dashIfEmpty}}</div>
</td>
<td number>
<div ng-class="{'round': entries.groupingMode == 1}">{{entries.grouping | dashIfEmpty}}</div>
</td>
<td number class="expendable">{{entries.stems | dashIfEmpty}}</td>
<td number>{{entries.quantity}}</td>
<td number class="expendable">{{entries.buyingValue | dashIfEmpty}}</td>
<td number>{{entries.packageFk | dashIfEmpty}}</td>
<td number class="expendable">{{entries.supplier | dashIfEmpty}}</td>
</tr>
<tr ng-if="$ctrl.entries.length === 0" class="list list-element">
<td colspan="14" style="text-align: center" translate>No results</td>
</tr>
</tbody>
</table>
</vn-vertical>
</vn-card>
<vn-paging margin-large-top vn-one index="$ctrl.entries" total="$ctrl.entries.count"></vn-paging>
</vn-vertical>