salix/modules/item/front/last-entries/index.html

139 lines
6.1 KiB
HTML
Raw Normal View History

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>
<vn-card class="vn-w-md vn-pa-md">
2023-02-10 07:46:54 +00:00
<vn-horizontal>
<vn-date-picker class="vn-pa-xs"
vn-one
label="Since"
2023-02-10 07:46:54 +00:00
vn-one
label="Since"
ng-model="$ctrl.dateFrom">
</vn-date-picker>
<vn-date-picker class="vn-pa-xs"
2023-02-10 07:46:54 +00:00
vn-one
label="To"
ng-model="$ctrl.dateTo">
</vn-date-picker>
</vn-horizontal>
2020-10-06 06:52:11 +00:00
</vn-card>
2020-08-31 13:03:00 +00:00
<vn-data-viewer
model="model"
class="vn-mb-xl vn-w-xl vn-pa-md">
<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-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>
2021-08-15 06:35:14 +00:00
<vn-th field="landed">Landed</vn-th>
2019-02-10 21:52:35 +00:00
<vn-th number>Entry</vn-th>
2023-02-10 07:46:54 +00:00
<vn-th vn-tooltip="Grouping / Packing" expand>PVP</vn-th>
2019-02-10 21:52:35 +00:00
<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>
2023-02-10 07:46:54 +00:00
<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>
2020-10-06 06:52:11 +00:00
<vn-td title="{{::entry.warehouse| dashIfEmpty}}">{{::entry.warehouse| dashIfEmpty}}</vn-td>
2021-08-15 06:35:14 +00:00
<vn-td shrink-datetime>{{::entry.landed | date:'dd/MM/yyyy HH:mm'}}</vn-td>
<vn-td shrink>
<span
vn-click-stop="entryDescriptor.show($event, entry.entryFk)"
class="link">
{{::entry.entryFk | dashIfEmpty}}
</span>
</vn-td>
2023-02-10 07:46:54 +00:00
<vn-td title="Grouping / Packing">
{{::entry.price2 | currency: 'EUR':2 | dashIfEmpty}} / {{::entry.price3 | currency: 'EUR':2 | dashIfEmpty}}
</vn-td>
2019-02-10 21:52:35 +00:00
<vn-td number class="expendable">{{entry.stickers | dashIfEmpty}}</vn-td>
<vn-td number>
2023-02-10 07:46:54 +00:00
<vn-chip translate-attr="{title: 'Packing'}" ng-class="{'message': entry.groupingMode == 2}">
<span>{{::entry.packing | dashIfEmpty}}</span>
2019-12-23 07:05:58 +00:00
</vn-chip>
2019-02-10 21:52:35 +00:00
</vn-td>
<vn-td number>
2023-02-10 07:46:54 +00:00
<vn-chip translate-attr="{title: 'Grouping'}" ng-class="{'message': entry.groupingMode == 1}">
<span>{{::entry.grouping | dashIfEmpty}}</span>
2019-12-23 07:05:58 +00:00
</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>
2023-02-10 07:46:54 +00:00
<vn-td number
class="expendable">
<span
vn-tooltip="
2023-03-16 08:03:16 +00:00
{{::$ctrl.$t('Cost')}}: {{::entry.buyingValue | currency: 'EUR':3 | dashIfEmpty}}<br>
{{::$ctrl.$t('Package')}}: {{::entry.packageValue | currency: 'EUR':3 | dashIfEmpty}}<br>
{{::$ctrl.$t('Freight')}}: {{::entry.freightValue | currency: 'EUR':3 | dashIfEmpty}}<br>
{{::$ctrl.$t('Comission')}}: {{::entry.comissionValue | currency: 'EUR':3 | dashIfEmpty}}">
2023-01-30 14:28:47 +00:00
{{::entry.cost | currency: 'EUR':2 | dashIfEmpty}}
</span>
2021-03-24 12:54:29 +00:00
</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>
2020-10-06 06:52:11 +00:00
<vn-td class="expendable" title="{{::entry.supplier | dashIfEmpty}}">{{::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-entry-descriptor-popover
vn-id="entryDescriptor">
</vn-entry-descriptor-popover>
2020-08-31 13:03:00 +00:00
<vn-contextmenu vn-id="contextmenu" targets="['vn-data-viewer']" model="model"
expr-builder="$ctrl.exprBuilder(param, value)">
<slot-menu>
<vn-item translate
2021-03-03 11:21:04 +00:00
ng-if="contextmenu.isFilterAllowed()"
ng-click="contextmenu.filterBySelection()">
2020-08-31 13:03:00 +00:00
Filter by selection
</vn-item>
2023-02-10 07:46:54 +00:00
<vn-item translate
ng-if="contextmenu.isFilterAllowed()"
2021-03-03 11:21:04 +00:00
ng-click="contextmenu.excludeSelection()">
2020-08-31 13:03:00 +00:00
Exclude selection
</vn-item>
2023-02-10 07:46:54 +00:00
<vn-item translate
ng-if="contextmenu.isFilterAllowed()"
2021-03-03 11:21:04 +00:00
ng-click="contextmenu.removeFilter()">
2020-08-31 13:03:00 +00:00
Remove filter
</vn-item>
2023-02-10 07:46:54 +00:00
<vn-item translate
2021-03-03 11:21:04 +00:00
ng-click="contextmenu.removeAllFilters()">
2020-08-31 13:03:00 +00:00
Remove all filters
</vn-item>
2023-02-10 07:46:54 +00:00
<vn-item translate
ng-if="contextmenu.isActionAllowed()"
2021-03-03 11:21:04 +00:00
ng-click="contextmenu.copyValue()">
2021-02-11 14:06:41 +00:00
Copy value
</vn-item>
2020-08-31 13:03:00 +00:00
</slot-menu>
2023-02-10 07:46:54 +00:00
</vn-contextmenu>