2019-01-20 15:47:04 +00:00
|
|
|
<vn-card class="summary">
|
|
|
|
<h5>{{$ctrl.summary.claim.id}} - {{$ctrl.summary.claim.client.name}}</h5>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-one>
|
|
|
|
<vn-label-value label="Created"
|
|
|
|
value="{{$ctrl.summary.claim.created | dateTime: 'dd/MM/yyyy'}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="State"
|
|
|
|
value="{{$ctrl.summary.claim.claimState.description}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Salesperson"
|
2019-01-31 13:14:39 +00:00
|
|
|
value="{{$ctrl.summary.claim.client.salesPerson.user.nickname}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<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"
|
|
|
|
model="$ctrl.summary.claim.observation">
|
|
|
|
</vn-textarea>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<vn-input-range
|
|
|
|
vn-one
|
|
|
|
disabled="true"
|
|
|
|
label="Responsability"
|
|
|
|
value="$ctrl.summary.claim.responsibility"
|
|
|
|
max="5"
|
|
|
|
min="1"
|
|
|
|
step="1"
|
|
|
|
vn-acl="salesAssistant">
|
|
|
|
</vn-input-range>
|
|
|
|
</vn-one>
|
|
|
|
<vn-auto>
|
|
|
|
<h4 translate>Detail</h4>
|
2019-01-27 23:26:01 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th number>Id</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
|
2019-02-15 11:39:21 +00:00
|
|
|
ng-click="$ctrl.showItemDescriptor($event, saleClaimed.sale.itemFk)"
|
2019-02-10 21:52:35 +00:00
|
|
|
class="link">
|
|
|
|
{{saleClaimed.sale.itemFk | zeroFill:6}}
|
2019-01-27 23:26:01 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{saleClaimed.sale.ticket.landed | dateTime: 'dd/MM/yyyy'}}</vn-td>
|
|
|
|
<vn-td number>{{saleClaimed.sale.quantity}}</vn-td>
|
|
|
|
<vn-td number>{{saleClaimed.quantity}}</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td expand>{{saleClaimed.sale.concept}}</vn-td>
|
2019-01-31 10:44:03 +00:00
|
|
|
<vn-td number>{{saleClaimed.sale.price | currency: 'EUR':2}}</vn-td>
|
2019-01-27 23:26:01 +00:00
|
|
|
<vn-td number>{{saleClaimed.sale.discount}} %</vn-td>
|
|
|
|
<vn-td number>
|
2019-02-10 21:52:35 +00:00
|
|
|
{{saleClaimed.sale.quantity * saleClaimed.sale.price *
|
|
|
|
((100 - saleClaimed.sale.discount) / 100) | currency: 'EUR':2}}
|
2019-01-27 23:26:01 +00:00
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-auto>
|
|
|
|
<vn-auto>
|
|
|
|
<h4 translate>Development</h4>
|
2019-01-27 23:26:01 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<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>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, development.worker.user.id)">
|
|
|
|
{{::development.worker.user.nickname}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-01-27 23:26:01 +00:00
|
|
|
<vn-td>{{development.claimRedelivery.description}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-auto>
|
|
|
|
<vn-auto>
|
|
|
|
<h4 translate>Action</h4>
|
2019-01-27 23:26:01 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th number>Id</vn-th>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-th>Destination</vn-th>
|
2019-01-27 23:26:01 +00:00
|
|
|
<vn-th number>Landed</vn-th>
|
|
|
|
<vn-th number>Quantity</vn-th>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-th>Description</vn-th>
|
2019-01-27 23:26:01 +00:00
|
|
|
<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
|
2019-02-15 11:39:21 +00:00
|
|
|
ng-click="$ctrl.showItemDescriptor($event, action.sale.itemFk)"
|
2019-02-10 21:52:35 +00:00
|
|
|
class="link">
|
|
|
|
{{action.sale.itemFk | zeroFill:6}}
|
2019-01-27 23:26:01 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td number>{{action.sale.id}}</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td expand>{{action.claimBeggining.description}}</vn-td>
|
2019-01-27 23:26:01 +00:00
|
|
|
<vn-td number>{{action.sale.ticket.landed | dateTime: 'dd/MM/yyyy'}}</vn-td>
|
|
|
|
<vn-td number>{{action.sale.quantity}}</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td expand>{{action.sale.concept}}</vn-td>
|
2019-01-27 23:26:01 +00:00
|
|
|
<vn-td number>{{action.sale.price}}</vn-td>
|
|
|
|
<vn-td number>{{action.sale.discount}} %</vn-td>
|
|
|
|
<vn-td number>
|
2019-02-10 21:52:35 +00:00
|
|
|
{{action.sale.quantity * action.sale.price *
|
|
|
|
((100 - action.sale.discount) / 100) | currency: 'EUR':2}}
|
2019-01-27 23:26:01 +00:00
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-auto>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-item-descriptor-popover
|
2019-02-15 11:39:21 +00:00
|
|
|
vn-id="itemDescriptor"
|
2019-01-20 15:47:04 +00:00
|
|
|
quicklinks="$ctrl.quicklinks">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-item-descriptor-popover>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor"
|
2019-02-19 14:09:50 +00:00
|
|
|
user-id="$ctrl.selectedWorker">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-worker-descriptor-popover>
|