2018-07-16 07:28:32 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2020-08-31 13:03:00 +00:00
|
|
|
url="Items/lastEntriesFilter"
|
2018-07-16 07:28:32 +00:00
|
|
|
filter="::$ctrl.filter"
|
2019-02-10 21:52:35 +00:00
|
|
|
data="entries"
|
2020-08-31 13:03:00 +00:00
|
|
|
auto-load="true"
|
|
|
|
order="landed DESC, buyFk DESC"
|
|
|
|
limit="20">
|
2018-07-16 07:28:32 +00:00
|
|
|
</vn-crud-model>
|
2020-08-31 13:03:00 +00:00
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
|
|
|
class="vn-mb-xl vn-w-xl">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-06-20 09:39:29 +00:00
|
|
|
<vn-vertical>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="Since"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.date">
|
2019-02-10 21:52:35 +00:00
|
|
|
</vn-date-picker>
|
|
|
|
<!--datepicker-->
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th vn-tooltip="Ignored" center>Ig</vn-th>
|
2020-08-31 13:03:00 +00:00
|
|
|
<vn-th field="warehouseFk">Warehouse</vn-th>
|
|
|
|
<vn-th field="landed">Landed</vn-th>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-th number>Entry</vn-th>
|
|
|
|
<vn-th number vn-tooltip="Price Per Unit">P.P.U</vn-th>
|
|
|
|
<vn-th number vn-tooltip="Price Per Package">P.P.P</vn-th>
|
|
|
|
<vn-th number class="expendable">Label</vn-th>
|
|
|
|
<vn-th number>Packing</vn-th>
|
|
|
|
<vn-th number>Grouping</vn-th>
|
|
|
|
<vn-th number class="expendable">Stems</vn-th>
|
2020-08-31 13:03:00 +00:00
|
|
|
<vn-th field="quantity" number>Quantity</vn-th>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-th number class="expendable">Cost</vn-th>
|
2020-05-21 13:26:00 +00:00
|
|
|
<vn-th number>Kg.</vn-th>
|
2020-08-31 13:03:00 +00:00
|
|
|
<vn-th field="packageFk" number>Cube</vn-th>
|
|
|
|
<vn-th field="supplierFk" class="expendable">Provider</vn-th>
|
2019-02-10 21:52:35 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="entry in entries">
|
|
|
|
<vn-td center>
|
|
|
|
<vn-check
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="entry.isIgnored"
|
2019-02-10 21:52:35 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
2019-12-23 07:05:58 +00:00
|
|
|
<vn-td>{{::entry.warehouse| dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td>{{::entry.landed | date:'dd/MM/yyyy HH:mm'}}</vn-td>
|
|
|
|
<vn-td number>{{::entry.entryFk | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td number>{{::entry.price2 | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td number>{{::entry.price3 | dashIfEmpty}}</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td number class="expendable">{{entry.stickers | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td number>
|
2019-12-23 07:05:58 +00:00
|
|
|
<vn-chip translate-attr="{title: 'Packing'}" ng-class="{'message': entry.groupingMode == 2}">
|
|
|
|
<span translate>{{::entry.packing | dashIfEmpty}}</span>
|
|
|
|
</vn-chip>
|
2019-02-10 21:52:35 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td number>
|
2019-12-23 07:05:58 +00:00
|
|
|
<vn-chip translate-attr="{title: 'Grouping'}" ng-class="{'message': entry.groupingMode == 1}">
|
|
|
|
<span translate>{{::entry.grouping | dashIfEmpty}}</span>
|
|
|
|
</vn-chip>
|
2019-02-10 21:52:35 +00:00
|
|
|
</vn-td>
|
2019-12-23 07:05:58 +00:00
|
|
|
<vn-td number class="expendable">{{::entry.stems | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td number>{{::entry.quantity}}</vn-td>
|
|
|
|
<vn-td number class="expendable">{{::entry.buyingValue | dashIfEmpty}}</vn-td>
|
2020-05-21 13:26:00 +00:00
|
|
|
<vn-td number>{{::entry.weight | dashIfEmpty}}</vn-td>
|
2019-12-23 07:05:58 +00:00
|
|
|
<vn-td number>{{::entry.packageFk | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td class="expendable">{{::entry.supplier | dashIfEmpty}}</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2018-06-20 09:39:29 +00:00
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
2020-08-31 13:03:00 +00:00
|
|
|
</vn-data-viewer>
|
|
|
|
|
|
|
|
<vn-contextmenu vn-id="contextmenu" targets="['vn-data-viewer']" model="model"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
|
|
|
<slot-menu>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.filterBySelection()">
|
|
|
|
Filter by selection
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.excludeSelection()">
|
|
|
|
Exclude selection
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.removeFilter()" >
|
|
|
|
Remove filter
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-click="contextmenu.removeAllFilters()" >
|
|
|
|
Remove all filters
|
|
|
|
</vn-item>
|
|
|
|
</slot-menu>
|
|
|
|
</vn-contextmenu>
|