2018-07-04 06:50:34 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Items/getDiary"
|
2018-09-18 11:34:11 +00:00
|
|
|
filter="$ctrl.filter"
|
2019-02-10 21:52:35 +00:00
|
|
|
data="sales"
|
|
|
|
auto-load="false">
|
2018-07-04 06:50:34 +00:00
|
|
|
</vn-crud-model>
|
2018-06-04 07:48:32 +00:00
|
|
|
<vn-vertical>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-card class="vn-pa-lg vn-w-md">
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-vertical>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-focus
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Warehouses"
|
2019-02-10 21:52:35 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
initial-data="$ctrl.warehouseFk"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.warehouseFk"
|
2019-02-10 21:52:35 +00:00
|
|
|
label="Select warehouse">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2019-04-01 06:42:19 +00:00
|
|
|
<vn-th expand>Date</vn-th>
|
2019-11-11 12:51:30 +00:00
|
|
|
<vn-th number order="DESC">Id</vn-th>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-th>State</vn-th>
|
|
|
|
<vn-th>Reference</vn-th>
|
|
|
|
<vn-th>Client</vn-th>
|
|
|
|
<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="::{
|
|
|
|
'isIn': sale.in,
|
|
|
|
'balanceNegative': sale.balance < 0}"
|
|
|
|
ng-repeat="sale in sales"
|
|
|
|
vn-repeat-last
|
|
|
|
on-last="$ctrl.scrollToLine()">
|
2019-04-01 06:42:19 +00:00
|
|
|
<vn-td expand>
|
2019-02-15 15:04:24 +00:00
|
|
|
<span class="chip"
|
|
|
|
ng-class="::{warning: $ctrl.isToday(sale.date)}">
|
2019-10-18 23:18:25 +00:00
|
|
|
{{::sale.date | date:'dd/MM/yyyy' }}
|
2019-02-10 21:52:35 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td number>
|
2019-09-10 06:47:46 +00:00
|
|
|
<span class="chip"
|
2019-02-10 21:52:35 +00:00
|
|
|
ng-class="::{link: sale.isTicket}"
|
|
|
|
ng-click="$ctrl.showDescriptor($event, sale)"
|
2019-09-10 06:47:46 +00:00
|
|
|
name="origin">
|
2019-02-10 21:52:35 +00:00
|
|
|
{{::sale.origin | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::sale.stateName | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td>{{::sale.reference | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td class="truncate">
|
|
|
|
<span
|
|
|
|
ng-class="::{link: sale.isTicket}"
|
|
|
|
ng-click="$ctrl.showClientDescriptor($event, sale)">
|
|
|
|
{{::sale.name | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td number class="in">{{::sale.in | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td number>{{::sale.out | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td number class="balance">
|
|
|
|
<span class="chip balanceSpan">
|
|
|
|
{{::sale.balance | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-vertical>
|
2018-06-04 07:48:32 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-vertical>
|
2018-09-04 09:49:00 +00:00
|
|
|
<vn-ticket-descriptor-popover
|
|
|
|
vn-id="descriptor">
|
|
|
|
</vn-ticket-descriptor-popover>
|
|
|
|
<vn-client-descriptor-popover
|
|
|
|
vn-id="clientDescriptor">
|
2019-09-05 11:06:40 +00:00
|
|
|
</vn-client-descriptor-popover>
|
|
|
|
|
|
|
|
<vn-scroll-up></vn-scroll-up>
|