2020-02-07 12:38:32 +00:00
|
|
|
<vn-crud-model
|
|
|
|
url="TicketUpdateActions"
|
|
|
|
data="ticketUpdateActions"
|
|
|
|
auto-load="true">
|
|
|
|
</vn-crud-model>
|
2019-11-14 14:24:08 +00:00
|
|
|
<vn-card class="vn-w-lg">
|
|
|
|
<vn-table>
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th number>Item</vn-th>
|
2020-09-09 13:49:59 +00:00
|
|
|
<vn-th class="align-center">Description</vn-th>
|
2022-01-28 08:15:41 +00:00
|
|
|
<vn-th ng-if="$ctrl.ticket.sale.haveDifferences" number>Movable</vn-th>
|
2019-11-14 14:24:08 +00:00
|
|
|
<vn-th number>Quantity</vn-th>
|
|
|
|
<vn-th number>Price (PPU)</vn-th>
|
2020-02-26 12:18:29 +00:00
|
|
|
<vn-th number>New (PPU)</vn-th>
|
|
|
|
<vn-th number>Difference</vn-th>
|
2019-11-14 14:24:08 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="sale in $ctrl.ticket.sale.items track by sale.id">
|
2022-02-09 14:01:02 +00:00
|
|
|
<vn-td number>
|
|
|
|
<span
|
|
|
|
title="{{::sale.item.name}}"
|
|
|
|
vn-click-stop="itemDescriptor.show($event, sale.itemFk, sale.id)"
|
|
|
|
class="link">
|
2023-02-17 10:19:35 +00:00
|
|
|
{{::sale.itemFk}}
|
2022-02-09 14:01:02 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2021-09-23 15:19:47 +00:00
|
|
|
<vn-td vn-fetched-tags>
|
|
|
|
<div>
|
|
|
|
<vn-one title="{{::sale.item.name}}">{{::sale.item.name}}</vn-one>
|
|
|
|
<vn-one ng-if="::sale.item.subName">
|
|
|
|
<h3 title="{{::sale.item.subName}}">{{::sale.item.subName}}</h3>
|
|
|
|
</vn-one>
|
|
|
|
</div>
|
2019-11-14 14:24:08 +00:00
|
|
|
<vn-fetched-tags
|
|
|
|
max-length="6"
|
|
|
|
item="::sale.item"
|
2021-01-28 14:10:47 +00:00
|
|
|
tabindex="-1">
|
2019-11-14 14:24:08 +00:00
|
|
|
</vn-fetched-tags>
|
|
|
|
</vn-td>
|
2022-01-28 08:15:41 +00:00
|
|
|
<vn-td ng-if="$ctrl.ticket.sale.haveDifferences" number>
|
2023-02-08 09:54:21 +00:00
|
|
|
<span
|
2021-12-15 13:45:45 +00:00
|
|
|
class="chip"
|
2022-01-26 07:54:48 +00:00
|
|
|
ng-class="{'alert': sale.quantity>sale.movable}">
|
|
|
|
{{::sale.movable}}
|
2021-12-15 13:45:45 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-11-14 14:24:08 +00:00
|
|
|
<vn-td number>{{::sale.quantity}}</vn-td>
|
|
|
|
<vn-td number>{{::sale.price | currency: 'EUR': 2}}</vn-td>
|
|
|
|
<vn-td number>{{::sale.component.newPrice | currency: 'EUR': 2}}</vn-td>
|
|
|
|
<vn-td number>{{::sale.component.difference | currency: 'EUR': 2}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
<vn-tfoot>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-td></vn-td>
|
|
|
|
<vn-td></vn-td>
|
|
|
|
<vn-td></vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tfoot>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
2020-07-16 05:43:07 +00:00
|
|
|
<vn-side-menu side="right">
|
|
|
|
<div class="vn-pa-md">
|
2020-09-09 13:49:59 +00:00
|
|
|
<div class="totalBox align-left">
|
2023-02-08 09:54:21 +00:00
|
|
|
<h6 class="align-center" translate>Total</h6>
|
2020-07-16 05:43:07 +00:00
|
|
|
<div> <vn-label translate>Price</vn-label> {{$ctrl.totalPrice | currency: 'EUR': 2}} </div>
|
|
|
|
<div> <vn-label translate>New price</vn-label> {{$ctrl.totalNewPrice | currency: 'EUR': 2}} </div>
|
|
|
|
<div> <vn-label translate>Difference</vn-label> {{$ctrl.totalPriceDifference | currency: 'EUR': 2}} </div>
|
|
|
|
</div>
|
|
|
|
<vn-card ng-show="::$ctrl.totalPriceDifference">
|
2020-09-09 13:49:59 +00:00
|
|
|
<div class="totalBox align-left" >
|
2023-02-08 09:54:21 +00:00
|
|
|
<h6 class="align-center" translate>Charge difference to</h6>
|
2020-07-16 05:43:07 +00:00
|
|
|
<div ng-repeat="action in ticketUpdateActions">
|
|
|
|
<vn-radio
|
|
|
|
ng-model="$ctrl.ticket.option"
|
|
|
|
label="{{::action.description}}"
|
|
|
|
val={{::action.id}}>
|
|
|
|
</vn-radio>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn-card>
|
2021-12-15 13:45:45 +00:00
|
|
|
<div class="totalBox align-left" ng-show="::$ctrl.haveNegatives">
|
2023-02-08 09:54:21 +00:00
|
|
|
<vn-check
|
2021-12-15 13:45:45 +00:00
|
|
|
ng-model="$ctrl.ticket.withoutNegatives"
|
2022-02-01 06:21:34 +00:00
|
|
|
label="Create without negatives"
|
2021-12-21 19:58:58 +00:00
|
|
|
info="Clone this ticket with the changes and only sales availables">
|
2021-12-15 13:45:45 +00:00
|
|
|
</vn-check>
|
|
|
|
</div>
|
2020-07-16 05:43:07 +00:00
|
|
|
</div>
|
|
|
|
</vn-side-menu>
|
2022-02-09 14:01:02 +00:00
|
|
|
<vn-item-descriptor-popover
|
|
|
|
vn-id="item-descriptor"
|
|
|
|
warehouse-fk="$ctrl.ticket.warehouseFk"
|
|
|
|
ticket-fk="$ctrl.ticket.id">
|
|
|
|
</vn-item-descriptor-popover>
|
2023-02-08 09:54:21 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="negativesConfirm"
|
|
|
|
on-accept="$ctrl.onConfirmAccept()"
|
|
|
|
question="Negatives are going to be generated, are you sure you want to advance all the lines?"
|
|
|
|
message="Edit basic data">
|
|
|
|
</vn-confirm>
|
2020-07-16 05:43:07 +00:00
|
|
|
|