salix/modules/entry/front/summary/index.html

181 lines
8.1 KiB
HTML
Raw Normal View History

<vn-crud-model
vn-id="buysModel"
url="Entries/{{$ctrl.$params.id}}/getBuys"
limit="5"
data="buys"
auto-load="true">
</vn-crud-model>
2020-02-04 08:34:31 +00:00
<vn-card class="summary">
2020-11-23 12:41:51 +00:00
<h5>
<a ng-if="::$ctrl.entryData.id"
vn-tooltip="Go to the entry"
ui-sref="entry.card.summary({id: {{::$ctrl.entryData.id}}})"
name="goToSummary">
<vn-icon-button icon="launch"></vn-icon-button>
</a>
<span> #{{$ctrl.entryData.id}} - {{$ctrl.entryData.supplier.nickname}}</span>
</h5>
2020-02-04 08:34:31 +00:00
<vn-horizontal>
<vn-one>
2021-04-28 08:32:24 +00:00
<vn-label-value label="Commission"
2020-02-21 11:48:34 +00:00
value="{{$ctrl.entryData.commission}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
2021-04-28 08:32:24 +00:00
<vn-label-value label="Currency"
2020-02-21 11:48:34 +00:00
value="{{$ctrl.entryData.currency.name}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
2021-04-28 08:32:24 +00:00
<vn-label-value label="Company"
2020-02-21 11:48:34 +00:00
value="{{$ctrl.entryData.company.code}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
2021-04-28 08:32:24 +00:00
<vn-label-value label="Reference"
2020-02-21 11:48:34 +00:00
value="{{$ctrl.entryData.ref}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
2021-04-28 08:32:24 +00:00
<vn-label-value label="Notes"
2020-02-21 11:48:34 +00:00
value="{{$ctrl.entryData.notes}}">
2021-04-28 08:32:24 +00:00
</vn-label-value>
2020-02-04 08:34:31 +00:00
</vn-one>
<vn-one>
2020-09-09 09:39:18 +00:00
<vn-label-value label="Agency">
2021-04-28 08:32:24 +00:00
<span
2020-09-09 09:39:18 +00:00
ng-click="travelDescriptor.show($event, $ctrl.entry.travel.agencyFk)"
class="link">
{{$ctrl.entryData.travel.agency.name}}
</span>
2020-02-04 08:34:31 +00:00
</vn-label-value>
2021-04-28 08:32:24 +00:00
<vn-label-value label="Shipped"
2020-02-21 11:48:34 +00:00
value="{{$ctrl.entryData.travel.shipped | date: 'dd/MM/yyyy'}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
2021-04-28 08:32:24 +00:00
<vn-label-value label="Warehouse Out"
2020-02-21 11:48:34 +00:00
value="{{$ctrl.entryData.travel.warehouseOut.name}}">
</vn-label-value>
2021-04-28 08:32:24 +00:00
<vn-label-value label="Landed"
2020-02-21 11:48:34 +00:00
value="{{$ctrl.entryData.travel.landed | date: 'dd/MM/yyyy'}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
2021-04-28 08:32:24 +00:00
<vn-label-value label="Warehouse In"
2020-02-21 11:48:34 +00:00
value="{{$ctrl.entryData.travel.warehouseIn.name}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
</vn-one>
2020-02-21 11:48:34 +00:00
<vn-one>
<vn-vertical>
<vn-check
2021-04-28 08:32:24 +00:00
label="Ordered"
ng-model="$ctrl.entryData.isOrdered"
2020-02-21 11:48:34 +00:00
disabled="true">
</vn-check>
<vn-check
2021-04-28 08:32:24 +00:00
label="Confirmed"
ng-model="$ctrl.entryData.isConfirmed"
2020-02-21 11:48:34 +00:00
disabled="true">
</vn-check>
<vn-check
2021-04-28 08:32:24 +00:00
label="Booked"
ng-model="$ctrl.entryData.isBooked"
2020-02-21 11:48:34 +00:00
disabled="true">
</vn-check>
<vn-check
2021-04-28 08:32:24 +00:00
label="Raid"
ng-model="$ctrl.entryData.isRaid"
2020-02-21 11:48:34 +00:00
disabled="true">
</vn-check>
<vn-check
2021-04-28 08:32:24 +00:00
label="Inventory"
ng-model="$ctrl.entryData.isInventory"
2020-02-21 11:48:34 +00:00
disabled="true">
</vn-check>
</vn-vertical>
</vn-one>
2020-02-04 08:34:31 +00:00
</vn-horizontal>
2020-09-09 09:39:18 +00:00
<vn-horizontal>
<vn-auto name="buys">
<h4 translate>Buys</h4>
<table class="vn-table">
<thead>
<tr>
<th translate center field="quantity">Quantity</th>
<th translate center field="sticker">Stickers</th>
<th translate center field="packageFk">Package</th>
<th translate center field="weight">Weight</th>
<th translate center field="packing">Packing</th>
<th translate center field="grouping">Grouping</th>
<th translate center field="buyingValue">Buying value</th>
<th translate center field="price3">Import</th>
<th translate center expand field="price2">Grouping price</th>
<th translate center expand field="price3">Packing price</th>
</tr>
</thead>
<tbody ng-repeat="line in buys">
2020-09-09 09:39:18 +00:00
<tr>
<td center title="{{::line.quantity}}">{{::line.quantity}}</td>
<td center title="{{::line.stickers | dashIfEmpty}}">{{::line.stickers | dashIfEmpty}}</td>
<td center title="{{::line.packageFk | dashIfEmpty}}">{{::line.packageFk | dashIfEmpty}}</td>
<td center title="{{::line.weight}}">{{::line.weight}}</td>
<td center>
<vn-chip class="transparent" translate-attr="line.groupingMode == 2 ? {title: 'Minimun amount'} : {title: 'Packing'}" ng-class="{'message': line.groupingMode == 2}">
2020-09-09 09:39:18 +00:00
<span translate>{{::line.packing | dashIfEmpty}}</span>
</vn-chip>
</td>
<td center>
<vn-chip class="transparent" translate-attr="line.groupingMode == 1 ? {title: 'Minimun amount'} : {title: 'Grouping'}" ng-class="{'message': line.groupingMode == 1}">
2020-09-09 09:39:18 +00:00
<span translate>{{::line.grouping | dashIfEmpty}}</span>
</vn-chip>
</vn-td>
<td center title="{{::line.buyingValue | currency: 'EUR':2}}">{{::line.buyingValue | currency: 'EUR':2}}</td>
<td center title="{{::line.quantity * line.buyingValue | currency: 'EUR':2}}">{{::line.quantity * line.buyingValue | currency: 'EUR':2}}</td>
<td center title="{{::line.price2 | currency: 'EUR':2}}">{{::line.price2 | currency: 'EUR':2}}</td>
<td center title="{{::line.price3 | currency: 'EUR':2}}">{{::line.price3 | currency: 'EUR':2}}</td>
</tr>
<tr class="dark-row">
<td shrink>
<span
translate-attr="{title: 'Item type'}">
{{::line.item.itemType.code}}
</span>
</td>
<td shrink>
<span
ng-click="itemDescriptor.show($event, line.item.id)"
class="link">
{{::line.item.id | zeroFill:6}}
</span>
</td>
<td number shrink>
<span
translate-attr="{title: 'Item size'}">
{{::line.item.size}}
</span>
</td>
<td center>
<span
translate-attr="{title: 'Minimum price'}">
{{::line.item.minPrice | currency: 'EUR':2}}
</span>
</td>
2021-01-28 14:10:47 +00:00
<td vn-fetched-tags colspan="6">
<vn-one title="{{::line.item.name}}">{{::line.item.name}}</vn-one>
2020-09-09 09:39:18 +00:00
<vn-fetched-tags
2021-01-28 14:10:47 +00:00
max-length="6"
2020-09-09 09:39:18 +00:00
item="::line.item"
2021-01-28 14:10:47 +00:00
tabindex="-1">
2020-09-09 09:39:18 +00:00
</vn-fetched-tags>
</td>
</tr>
2020-10-15 12:40:41 +00:00
<tr class="empty-row">
<td colspan="10"></td>
</tr>
2020-09-09 09:39:18 +00:00
</tbody>
</table>
<vn-pagination
model="buysModel"
class="vn-pt-xs">
</vn-pagination>
2020-09-09 09:39:18 +00:00
</vn-auto>
</vn-horizontal>
2020-02-04 08:34:31 +00:00
</vn-card>
2020-09-09 09:39:18 +00:00
<vn-item-descriptor-popover
vn-id="item-descriptor"
warehouse-fk="$ctrl.vnConfig.warehouseFk">
2020-09-09 09:39:18 +00:00
</vn-item-descriptor-popover>
<vn-travel-descriptor-popover
vn-id="travel-descriptor">
2020-09-09 09:39:18 +00:00
</vn-travel-descriptor-popover>