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

197 lines
8.6 KiB
HTML
Raw Normal View History

<vn-crud-model
vn-id="buysModel"
2022-05-09 12:44:30 +00:00
url="Entries/{{$ctrl.entry.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"
2022-10-26 10:48:48 +00:00
value="{{$ctrl.entryData.reference}}">
</vn-label-value>
<vn-label-value label="Invoice number"
value="{{$ctrl.entryData.invoiceNumber}}">
2020-02-04 08:34:31 +00:00
</vn-label-value>
</vn-one>
<vn-one>
2021-10-18 12:00:59 +00:00
<vn-label-value label="Reference">
2023-01-30 14:28:47 +00:00
<span
2021-10-18 12:00:59 +00:00
ng-click="travelDescriptor.show($event, $ctrl.entryData.travel.id)"
class="link">
{{$ctrl.entryData.travel.ref}}
</span>
</vn-label-value>
<vn-label-value label="Agency"
value="{{$ctrl.entryData.travel.agency.name}}">
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>
<vn-check
label="Delivered"
ng-model="$ctrl.entryData.travel.isDelivered"
disabled="true">
</vn-check>
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-check
label="Received"
ng-model="$ctrl.entryData.travel.isReceived"
disabled="true">
</vn-check>
2020-02-04 08:34:31 +00:00
</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"
2022-07-01 07:53:44 +00:00
ng-model="$ctrl.entryData.isExcludedFromAvailable"
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>
2023-09-22 08:59:48 +00:00
<th translate center field="packagingFk">Package</th>
2020-09-09 09:39:18 +00:00
<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>
2023-01-30 14:28:47 +00:00
<th translate center expand field="price">PVP</th>
2020-09-09 09:39:18 +00:00
</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>
2023-09-22 08:59:48 +00:00
<td center title="{{::line.packagingFk | dashIfEmpty}}">{{::line.packagingFk | dashIfEmpty}}</td>
2020-09-09 09:39:18 +00:00
<td center title="{{::line.weight}}">{{::line.weight}}</td>
<td center>
2023-01-30 14:28:47 +00:00
<vn-chip class="transparent" translate-attr="line.groupingMode == 2 ? {title: 'Minimun amount'} : {title: 'Packing'}" ng-class="{'message': line.groupingMode == 2}">
<span>{{::line.packing | dashIfEmpty}}</span>
2020-09-09 09:39:18 +00:00
</vn-chip>
</td>
<td center>
2023-01-30 14:28:47 +00:00
<vn-chip class="transparent" translate-attr="line.groupingMode == 1 ? {title: 'Minimun amount'} : {title: 'Grouping'}" ng-class="{'message': line.groupingMode == 1}">
<span>{{::line.grouping | dashIfEmpty}}</span>
2020-09-09 09:39:18 +00:00
</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>
2023-01-30 14:28:47 +00:00
<td center title="Grouping / Packing">{{::line.price2 | currency: 'EUR':2 | dashIfEmpty}} / {{::line.price3 | currency: 'EUR':2 | dashIfEmpty}}</td>
2020-09-09 09:39:18 +00:00
</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}}
2020-09-09 09:39:18 +00:00
</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">
<div>
<vn-one title="{{::line.item.concept}}">{{::line.item.name}}</vn-one>
<vn-one ng-if="::line.item.subName">
<h3 title="{{::line.item.subName}}">{{::line.item.subName}}</h3>
</vn-one>
</div>
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>
2023-01-30 14:28:47 +00:00
<vn-travel-descriptor-popover
2021-10-18 12:00:59 +00:00
vn-id="travelDescriptor">
</vn-travel-descriptor-popover>
2020-09-09 09:39:18 +00:00