2019-10-18 07:53:30 +00:00
|
|
|
<vn-crud-model vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="ClaimDms"
|
2019-10-18 07:53:30 +00:00
|
|
|
data="photos">
|
2019-09-26 09:41:56 +00:00
|
|
|
</vn-crud-model>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-card class="summary">
|
2019-10-18 07:53:30 +00:00
|
|
|
<h5>{{::$ctrl.summary.claim.id}} - {{::$ctrl.summary.claim.client.name}}</h5>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-one>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Created"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.summary.claim.created | date: 'dd/MM/yyyy'}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="State"
|
2019-01-20 15:47:04 +00:00
|
|
|
value="{{$ctrl.summary.claim.claimState.description}}">
|
|
|
|
</vn-label-value>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Salesperson"
|
2020-09-15 17:43:07 +00:00
|
|
|
value="{{$ctrl.summary.claim.client.salesPersonUser.name}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Attended by"
|
2019-01-31 13:14:39 +00:00
|
|
|
value="{{$ctrl.summary.claim.worker.user.nickname}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<vn-textarea
|
|
|
|
vn-three
|
|
|
|
disabled="true"
|
|
|
|
label="Observation"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.claim.observation">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-textarea>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
2019-10-18 19:36:30 +00:00
|
|
|
<vn-range
|
2019-01-20 15:47:04 +00:00
|
|
|
vn-one
|
|
|
|
disabled="true"
|
|
|
|
label="Responsability"
|
2019-10-18 19:36:30 +00:00
|
|
|
min-label="Company"
|
|
|
|
max-label="Sales/Client"
|
|
|
|
ng-model="$ctrl.summary.claim.responsibility"
|
2019-01-20 15:47:04 +00:00
|
|
|
max="5"
|
|
|
|
min="1"
|
|
|
|
step="1"
|
2020-10-26 11:16:57 +00:00
|
|
|
vn-acl="claimManager">
|
2019-10-18 19:36:30 +00:00
|
|
|
</vn-range>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-auto>
|
|
|
|
<h4 translate>Detail</h4>
|
2019-10-18 07:53:30 +00:00
|
|
|
<vn-data-viewer data="::$ctrl.summary.salesClaimed">
|
|
|
|
<vn-table>
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th number>Item</vn-th>
|
|
|
|
<vn-th>Landed</vn-th>
|
|
|
|
<vn-th number>Quantity</vn-th>
|
|
|
|
<vn-th number>Claimed</vn-th>
|
|
|
|
<vn-th>Description</vn-th>
|
|
|
|
<vn-th number>Price</vn-th>
|
|
|
|
<vn-th number>Disc.</vn-th>
|
|
|
|
<vn-th number>Total</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="saleClaimed in $ctrl.summary.salesClaimed">
|
|
|
|
<vn-td number>
|
|
|
|
<span
|
2020-05-08 17:56:39 +00:00
|
|
|
ng-click="itemDescriptor.show($event, saleClaimed.sale.itemFk, saleClaimed.sale.id)"
|
2019-10-18 07:53:30 +00:00
|
|
|
class="link">
|
|
|
|
{{::saleClaimed.sale.itemFk | zeroFill:6}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-10-18 23:18:25 +00:00
|
|
|
<vn-td>{{::saleClaimed.sale.ticket.landed | date: 'dd/MM/yyyy'}}</vn-td>
|
2019-10-18 07:53:30 +00:00
|
|
|
<vn-td number>{{::saleClaimed.sale.quantity}}</vn-td>
|
|
|
|
<vn-td number>{{::saleClaimed.quantity}}</vn-td>
|
|
|
|
<vn-td expand>{{::saleClaimed.sale.concept}}</vn-td>
|
|
|
|
<vn-td number>{{::saleClaimed.sale.price | currency: 'EUR':2}}</vn-td>
|
|
|
|
<vn-td number>{{::saleClaimed.sale.discount}} %</vn-td>
|
|
|
|
<vn-td number>
|
|
|
|
{{saleClaimed.sale.quantity * saleClaimed.sale.price *
|
|
|
|
((100 - saleClaimed.sale.discount) / 100) | currency: 'EUR':2}}
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-data-viewer>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-auto>
|
2019-09-26 09:41:56 +00:00
|
|
|
<vn-auto ng-if="photos.length > 0">
|
|
|
|
<h4 translate>Photos</h4>
|
|
|
|
<vn-horizontal class="photo-list">
|
|
|
|
<section class="photo" ng-repeat="photo in photos">
|
2019-10-01 08:35:27 +00:00
|
|
|
<section class="image" on-error-src
|
2020-06-12 12:28:29 +00:00
|
|
|
ng-style="{'background': 'url(' + $ctrl.getImagePath(photo.dmsFk) + ')'}"
|
|
|
|
zoom-image="{{$ctrl.getImagePath(photo.dmsFk)}}">
|
2019-09-26 09:41:56 +00:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-auto>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-auto>
|
|
|
|
<h4 translate>Development</h4>
|
2019-10-18 07:53:30 +00:00
|
|
|
<vn-data-viewer data="::$ctrl.summary.developments">
|
|
|
|
<vn-table>
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th>Reason</vn-th>
|
|
|
|
<vn-th>Result</vn-th>
|
|
|
|
<vn-th>Responsible</vn-th>
|
|
|
|
<vn-th>Worker</vn-th>
|
|
|
|
<vn-th>Redelivery</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="development in $ctrl.summary.developments">
|
|
|
|
<vn-td>{{::development.claimReason.description}}</vn-td>
|
|
|
|
<vn-td>{{::development.claimResult.description}}</vn-td>
|
|
|
|
<vn-td>{{::development.claimResponsible.description}}</vn-td>
|
|
|
|
<vn-td expand>
|
|
|
|
<span
|
|
|
|
class="link"
|
2020-04-25 09:50:04 +00:00
|
|
|
ng-click="workerDescriptor.show($event, development.workerFk)">
|
2019-10-18 07:53:30 +00:00
|
|
|
{{::development.worker.user.nickname}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::development.claimRedelivery.description}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-data-viewer>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-auto>
|
|
|
|
<vn-auto>
|
|
|
|
<h4 translate>Action</h4>
|
2019-10-18 07:53:30 +00:00
|
|
|
<vn-data-viewer data="::$ctrl.summary.actions">
|
|
|
|
<vn-table>
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th number>Item</vn-th>
|
|
|
|
<vn-th number>Ticket</vn-th>
|
|
|
|
<vn-th>Destination</vn-th>
|
|
|
|
<vn-th number>Landed</vn-th>
|
|
|
|
<vn-th number>Quantity</vn-th>
|
|
|
|
<vn-th>Description</vn-th>
|
|
|
|
<vn-th number>Price</vn-th>
|
|
|
|
<vn-th number>Disc.</vn-th>
|
|
|
|
<vn-th number>Total</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="action in $ctrl.summary.actions">
|
|
|
|
<vn-td number>
|
|
|
|
<span
|
2020-05-08 17:56:39 +00:00
|
|
|
ng-click="itemDescriptor.show($event, action.sale.itemFk, action.sale.id)"
|
2019-10-18 07:53:30 +00:00
|
|
|
class="link">
|
|
|
|
{{::action.sale.itemFk | zeroFill:6}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td number>
|
|
|
|
<span
|
2020-04-25 09:50:04 +00:00
|
|
|
ng-click="ticketDescriptor.show($event, action.sale.ticket.id)"
|
2019-10-18 07:53:30 +00:00
|
|
|
class="link">
|
|
|
|
{{::action.sale.ticket.id | zeroFill:6}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td expand>{{::action.claimBeggining.description}}</vn-td>
|
2019-10-18 23:18:25 +00:00
|
|
|
<vn-td number>{{::action.sale.ticket.landed | date: 'dd/MM/yyyy'}}</vn-td>
|
2019-10-18 07:53:30 +00:00
|
|
|
<vn-td number>{{::action.sale.quantity}}</vn-td>
|
|
|
|
<vn-td expand>{{::action.sale.concept}}</vn-td>
|
|
|
|
<vn-td number>{{::action.sale.price}}</vn-td>
|
|
|
|
<vn-td number>{{::action.sale.discount}} %</vn-td>
|
|
|
|
<vn-td number>
|
|
|
|
{{action.sale.quantity * action.sale.price *
|
|
|
|
((100 - action.sale.discount) / 100) | currency: 'EUR':2}}
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-data-viewer>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-auto>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-item-descriptor-popover
|
2019-05-07 09:32:35 +00:00
|
|
|
vn-id="itemDescriptor">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-item-descriptor-popover>
|
|
|
|
<vn-worker-descriptor-popover
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-id="workerDescriptor">
|
2019-02-21 06:46:27 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
|
|
|
<vn-ticket-descriptor-popover
|
|
|
|
vn-id="ticketDescriptor">
|
|
|
|
</vn-ticket-descriptor-popover>
|