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

169 lines
7.7 KiB
HTML
Raw Normal View History

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>
2020-02-21 11:48:34 +00:00
<vn-label-value label="Commission"
value="{{$ctrl.entryData.commission}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
2020-02-21 11:48:34 +00:00
<vn-label-value label="Currency"
value="{{$ctrl.entryData.currency.name}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
2020-02-21 11:48:34 +00:00
<vn-label-value label="Company"
value="{{$ctrl.entryData.company.code}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
2020-02-21 11:48:34 +00:00
<vn-label-value label="Reference"
value="{{$ctrl.entryData.ref}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
2020-02-21 11:48:34 +00:00
<vn-label-value label="Notes"
value="{{$ctrl.entryData.notes}}">
</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">
<span
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>
2020-02-21 11:48:34 +00:00
<vn-label-value label="Shipped"
value="{{$ctrl.entryData.travel.shipped | date: 'dd/MM/yyyy'}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
2020-02-21 11:48:34 +00:00
<vn-label-value label="Warehouse Out"
value="{{$ctrl.entryData.travel.warehouseOut.name}}">
</vn-label-value>
<vn-label-value label="Landed"
value="{{$ctrl.entryData.travel.landed | date: 'dd/MM/yyyy'}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
2020-02-21 11:48:34 +00:00
<vn-label-value label="Warehouse In"
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
label="Ordered"
ng-model="$ctrl.entryData.isOrdered"
2020-02-21 11:48:34 +00:00
disabled="true">
</vn-check>
<vn-check
label="Confirmed"
ng-model="$ctrl.entryData.isConfirmed"
2020-02-21 11:48:34 +00:00
disabled="true">
</vn-check>
<vn-check
label="Booked"
ng-model="$ctrl.entryData.isBooked"
2020-02-21 11:48:34 +00:00
disabled="true">
</vn-check>
<vn-check
label="Raid"
ng-model="$ctrl.entryData.isRaid"
2020-02-21 11:48:34 +00:00
disabled="true">
</vn-check>
<vn-check
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 $ctrl.buys">
<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 translate-attr="line.groupingMode == 2 ? {title: 'Minimun amount'} : {title: 'Packing'}" ng-class="{'message': line.groupingMode == 2}">
<span translate>{{::line.packing | dashIfEmpty}}</span>
</vn-chip>
</td>
<td center>
<vn-chip translate-attr="line.groupingMode == 1 ? {title: 'Minimun amount'} : {title: 'Grouping'}" ng-class="{'message': line.groupingMode == 1}">
<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-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="itemDescriptor">
</vn-item-descriptor-popover>
<vn-travel-descriptor-popover
vn-id="travelDescriptor">
</vn-travel-descriptor-popover>