2020-01-15 12:07:33 +00:00
|
|
|
<vn-crud-model auto-load="true"
|
|
|
|
vn-id="model"
|
2020-01-16 12:39:32 +00:00
|
|
|
url="Items/getWasteDetail"
|
|
|
|
data="details">
|
2020-01-15 12:07:33 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-data-viewer model="model">
|
|
|
|
<vn-card>
|
2020-01-16 12:39:32 +00:00
|
|
|
<section ng-repeat="detail in details" class="vn-pa-md">
|
|
|
|
<vn-horizontal class="header">
|
|
|
|
<h5><span translate>{{detail.buyer}}</span></h5>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-table>
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2020-01-21 08:17:55 +00:00
|
|
|
<vn-th class="waste-family">Family</vn-th>
|
|
|
|
<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">
|
2020-01-21 08:17:55 +00:00
|
|
|
<vn-td class="waste-family">{{::waste.family}}</vn-td>
|
|
|
|
<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>
|