2018-07-04 06:50:34 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="item/api/Items/getDiary"
|
|
|
|
filter="::$ctrl.filter"
|
|
|
|
data="sales"
|
|
|
|
auto-load="false">
|
|
|
|
</vn-crud-model>
|
2018-06-04 07:48:32 +00:00
|
|
|
<vn-vertical>
|
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-title>Item diary</vn-title>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-focus
|
|
|
|
url="/item/api/Warehouses"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2018-07-04 06:50:34 +00:00
|
|
|
initial-data="$ctrl.filter.where.warehouseFk"
|
|
|
|
field="$ctrl.filter.where.warehouseFk"
|
|
|
|
label="Select warehouse" on-change="$ctrl.onChange(value)">
|
2018-06-04 07:48:32 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2018-07-04 06:50:34 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th>Date</vn-th>
|
2018-07-09 07:37:38 +00:00
|
|
|
<vn-th number>Id</vn-th>
|
|
|
|
<vn-th>State</vn-th>
|
|
|
|
<vn-th>Reference</vn-th>
|
|
|
|
<vn-th>Worker</vn-th>
|
2018-07-04 06:50:34 +00:00
|
|
|
<vn-th number>In</vn-th>
|
|
|
|
<vn-th number>Out</vn-th>
|
|
|
|
<vn-th number>Balance</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-class="{'warning': $ctrl.isToday(sale.date)}"
|
|
|
|
ng-repeat="sale in sales" vn-repeat-last on-last="$ctrl.scrollToActive()">
|
|
|
|
<vn-td>{{::sale.date | date:'dd/MM/yyyy HH:mm' }}</vn-td>
|
|
|
|
<vn-td number>{{::sale.origin | dashIfEmpty}}</vn-td>
|
2018-07-09 07:37:38 +00:00
|
|
|
<vn-td>{{::sale.stateName | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td>{{::sale.reference | dashIfEmpty}}</vn-td>
|
2018-07-04 06:50:34 +00:00
|
|
|
<vn-td>{{sale.name | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td number>{{::sale.in | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td number>{{::sale.out | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td number><span class="balance">{{::sale.balance | dashIfEmpty}}</span></vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
<vn-empty-rows ng-if="model.data.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
</vn-table>
|
2018-06-04 07:48:32 +00:00
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
</vn-vertical>
|