2020-03-13 19:33:12 +00:00
|
|
|
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-auto-search
|
2020-03-13 19:33:12 +00:00
|
|
|
model="model">
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-auto-search>
|
2023-03-02 10:33:55 +00:00
|
|
|
<vn-travel-search-panel
|
|
|
|
model="model">
|
|
|
|
</vn-travel-search-panel>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
2019-12-20 06:55:00 +00:00
|
|
|
class="vn-mb-xl vn-w-xl">
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-card>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="ref">Reference</vn-th>
|
2022-07-13 12:36:03 +00:00
|
|
|
<vn-th field="agencyModeFk">Agency</vn-th>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-th field="warehouseOutFk">Warehouse Out</vn-th>
|
2021-02-16 14:50:48 +00:00
|
|
|
<vn-th field="shipped" center shrink-date>Shipped</vn-th>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-th field="isDelivered" center>Delivered</vn-th>
|
|
|
|
<vn-th field="warehouseInFk">Warehouse In</vn-th>
|
2021-02-16 14:50:48 +00:00
|
|
|
<vn-th field="landed" center shrink-date>Landed</vn-th>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-th field="isReceived" center>Received</vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2023-03-02 10:33:55 +00:00
|
|
|
<a ng-repeat="travel in model.data"
|
2019-11-10 10:08:44 +00:00
|
|
|
class="clickable vn-tr search-result"
|
|
|
|
ui-sref="travel.card.summary({id: {{::travel.id}}})">
|
2020-11-13 12:04:22 +00:00
|
|
|
<vn-td>{{::travel.ref}}</vn-td>
|
|
|
|
<vn-td>{{::travel.agencyModeName}}</vn-td>
|
|
|
|
<vn-td>{{::travel.warehouseOutName}}</vn-td>
|
2021-02-16 14:40:20 +00:00
|
|
|
<vn-td center shrink-date>
|
2020-11-13 12:04:22 +00:00
|
|
|
<span class="chip {{$ctrl.compareDate(travel.shipped)}}">
|
|
|
|
{{::travel.shipped | date:'dd/MM/yyyy'}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td center><vn-check ng-model="travel.isDelivered" disabled="true"></vn-check></vn-td>
|
2019-12-20 06:55:00 +00:00
|
|
|
<vn-td expand>{{::travel.warehouseInName}}</vn-td>
|
2021-02-16 14:40:20 +00:00
|
|
|
<vn-td center shrink-date>
|
2020-11-13 12:04:22 +00:00
|
|
|
<span class="chip {{$ctrl.compareDate(travel.landed)}}">
|
|
|
|
{{::travel.landed | date:'dd/MM/yyyy'}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-td center><vn-check ng-model="travel.isReceived" disabled="true"></vn-check></vn-td>
|
2020-03-10 13:09:26 +00:00
|
|
|
<vn-td shrink>
|
|
|
|
<vn-horizontal class="buttons">
|
|
|
|
<vn-icon-button
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-click-stop="clone.show(travel)"
|
2020-03-10 13:09:26 +00:00
|
|
|
vn-tooltip="Clone"
|
|
|
|
icon="icon-clone">
|
|
|
|
</vn-icon-button>
|
2023-03-02 10:33:55 +00:00
|
|
|
<vn-icon-button
|
2021-01-04 09:54:46 +00:00
|
|
|
vn-anchor="::{state: 'entry.create', params: {travelFk: travel.id}}"
|
|
|
|
vn-tooltip="Add entry"
|
|
|
|
icon="icon-ticket">
|
|
|
|
</vn-icon-button>
|
2020-03-10 13:09:26 +00:00
|
|
|
<vn-icon-button
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-click-stop="$ctrl.preview(travel)"
|
2020-03-10 13:09:26 +00:00
|
|
|
vn-tooltip="Preview"
|
2020-11-24 07:22:54 +00:00
|
|
|
icon="preview">
|
2020-03-10 13:09:26 +00:00
|
|
|
</vn-icon-button>
|
|
|
|
</vn-horizontal>
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-td>
|
|
|
|
</a>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-data-viewer>
|
2019-12-20 06:55:00 +00:00
|
|
|
</vn-card>
|
2019-10-26 23:30:01 +00:00
|
|
|
<vn-popup vn-id="summary">
|
|
|
|
<vn-travel-summary
|
|
|
|
travel="$ctrl.travelSelected">
|
|
|
|
</vn-travel-summary>
|
|
|
|
</vn-popup>
|
2019-12-09 11:15:19 +00:00
|
|
|
<a ui-sref="travel.create"
|
|
|
|
vn-tooltip="New travel"
|
|
|
|
vn-bind="+"
|
|
|
|
vn-acl="buyer"
|
|
|
|
fixed-bottom-right>
|
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|
2023-03-02 10:33:55 +00:00
|
|
|
<vn-confirm
|
2020-03-10 13:09:26 +00:00
|
|
|
vn-id="clone"
|
2020-03-16 17:33:49 +00:00
|
|
|
on-accept="$ctrl.onCloneAccept($data)"
|
2020-03-10 13:09:26 +00:00
|
|
|
question="Do you want to clone this travel?"
|
|
|
|
message="All it's properties will be copied">
|
2020-11-13 12:04:22 +00:00
|
|
|
</vn-confirm>
|
|
|
|
<vn-contextmenu vn-id="contextmenu" targets="['vn-data-viewer']" model="model"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
|
|
|
<slot-menu>
|
|
|
|
<vn-item translate
|
2021-03-03 11:21:04 +00:00
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.filterBySelection()">
|
2020-11-13 12:04:22 +00:00
|
|
|
Filter by selection
|
|
|
|
</vn-item>
|
2023-03-02 10:33:55 +00:00
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
2021-03-03 11:21:04 +00:00
|
|
|
ng-click="contextmenu.excludeSelection()">
|
2020-11-13 12:04:22 +00:00
|
|
|
Exclude selection
|
|
|
|
</vn-item>
|
2023-03-02 10:33:55 +00:00
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
2021-03-03 11:21:04 +00:00
|
|
|
ng-click="contextmenu.removeFilter()">
|
2020-11-13 12:04:22 +00:00
|
|
|
Remove filter
|
|
|
|
</vn-item>
|
2023-03-02 10:33:55 +00:00
|
|
|
<vn-item translate
|
2021-03-03 11:21:04 +00:00
|
|
|
ng-click="contextmenu.removeAllFilters()" >
|
2020-11-13 12:04:22 +00:00
|
|
|
Remove all filters
|
|
|
|
</vn-item>
|
2023-03-02 10:33:55 +00:00
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isActionAllowed()"
|
2021-03-03 11:21:04 +00:00
|
|
|
ng-click="contextmenu.copyValue()">
|
2021-02-11 14:06:41 +00:00
|
|
|
Copy value
|
|
|
|
</vn-item>
|
2020-11-13 12:04:22 +00:00
|
|
|
</slot-menu>
|
2023-03-02 10:33:55 +00:00
|
|
|
</vn-contextmenu>
|