2020-01-15 12:07:33 +00:00
|
|
|
<vn-crud-model auto-load="true"
|
|
|
|
vn-id="model"
|
2021-03-30 08:28:44 +00:00
|
|
|
url="Items/getWasteByItem"
|
2021-04-06 11:46:38 +00:00
|
|
|
params="$ctrl.$params"
|
2020-01-16 12:39:32 +00:00
|
|
|
data="details">
|
2020-01-15 12:07:33 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-data-viewer model="model">
|
2021-04-06 11:46:38 +00:00
|
|
|
<vn-card class="vn-w-md">
|
2020-01-16 12:39:32 +00:00
|
|
|
<section ng-repeat="detail in details" class="vn-pa-md">
|
|
|
|
<vn-horizontal class="header">
|
2021-04-07 08:47:31 +00:00
|
|
|
<h5>{{detail.family}} ({{detail.buyer}})</h5>
|
2020-01-16 12:39:32 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-table>
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2021-04-06 11:46:38 +00:00
|
|
|
<vn-th shrink>Item</vn-th>
|
2020-01-21 08:17:55 +00:00
|
|
|
<vn-th number>Percentage</vn-th>
|
2020-01-16 12:39:32 +00:00
|
|
|
<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">
|
2021-04-06 11:46:38 +00:00
|
|
|
<vn-td shrink>
|
|
|
|
<span
|
|
|
|
ng-click="descriptor.show($event, waste.itemFk)"
|
|
|
|
class="link">
|
|
|
|
{{::waste.itemFk}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2020-01-21 08:17:55 +00:00
|
|
|
<vn-td number>{{::(waste.percentage / 100) | percentage: 2}}</vn-td>
|
2020-01-16 12:39:32 +00:00
|
|
|
<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>
|
2020-01-15 12:07:33 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
2021-04-06 11:46:38 +00:00
|
|
|
<vn-item-descriptor-popover
|
|
|
|
vn-id="descriptor">
|
|
|
|
</vn-item-descriptor-popover>
|