47 lines
1.8 KiB
HTML
47 lines
1.8 KiB
HTML
<vn-crud-model auto-load="true"
|
|
vn-id="model"
|
|
url="Items/getWasteByItem"
|
|
params="$ctrl.$params"
|
|
data="details">
|
|
</vn-crud-model>
|
|
<vn-data-viewer model="model">
|
|
<vn-card class="vn-w-md">
|
|
<section ng-repeat="detail in details" class="vn-pa-md">
|
|
<vn-horizontal class="header">
|
|
<h5>
|
|
<a ui-sref="item.waste.index">
|
|
< <span translate>Back</span>
|
|
</a>
|
|
- <span>{{detail.family}} ({{detail.buyer}})</span>
|
|
</h5>
|
|
</vn-horizontal>
|
|
<vn-table>
|
|
<vn-thead>
|
|
<vn-tr>
|
|
<vn-th shrink>Item</vn-th>
|
|
<vn-th number>Percentage</vn-th>
|
|
<vn-th number>Dwindle</vn-th>
|
|
<vn-th number>Total</vn-th>
|
|
</vn-tr>
|
|
</vn-thead>
|
|
<vn-tbody>
|
|
<vn-tr ng-repeat="waste in detail.lines">
|
|
<vn-td shrink>
|
|
<span
|
|
ng-click="descriptor.show($event, waste.itemFk)"
|
|
class="link">
|
|
{{::waste.itemFk}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td number>{{::(waste.percentage / 100) | percentage: 2}}</vn-td>
|
|
<vn-td number>{{::waste.dwindle | currency: 'EUR'}}</vn-td>
|
|
<vn-td number>{{::waste.total | currency: 'EUR'}}</vn-td>
|
|
</vn-tr>
|
|
</vn-tbody>
|
|
</vn-table>
|
|
</section>
|
|
</vn-card>
|
|
</vn-data-viewer>
|
|
<vn-item-descriptor-popover
|
|
vn-id="descriptor">
|
|
</vn-item-descriptor-popover> |