Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into dev
This commit is contained in:
commit
b78447bdd7
|
@ -530,13 +530,13 @@ export default {
|
||||||
header: 'vn-claim-summary > vn-card > div > h5',
|
header: 'vn-claim-summary > vn-card > div > h5',
|
||||||
state: 'vn-claim-summary vn-label-value[label="State"] > section > span',
|
state: 'vn-claim-summary vn-label-value[label="State"] > section > span',
|
||||||
observation: 'vn-claim-summary vn-textarea[ng-model="$ctrl.summary.claim.observation"] textarea',
|
observation: 'vn-claim-summary vn-textarea[ng-model="$ctrl.summary.claim.observation"] textarea',
|
||||||
firstSaleItemId: 'vn-claim-summary vn-horizontal > vn-auto:nth-child(4) > vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(1) > span',
|
firstSaleItemId: 'vn-claim-summary vn-horizontal > vn-auto:nth-child(4) vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(1) > span',
|
||||||
firstSaleDescriptorImage: '.vn-popover.shown vn-item-descriptor img',
|
firstSaleDescriptorImage: '.vn-popover.shown vn-item-descriptor img',
|
||||||
itemDescriptorPopover: '.vn-popover.shown vn-item-descriptor',
|
itemDescriptorPopover: '.vn-popover.shown vn-item-descriptor',
|
||||||
itemDescriptorPopoverItemDiaryButton: '.vn-popover.shown vn-item-descriptor a[href="#!/item/2/diary"]',
|
itemDescriptorPopoverItemDiaryButton: '.vn-popover.shown vn-item-descriptor a[href="#!/item/2/diary"]',
|
||||||
firstDevelopmentWorker: 'vn-claim-summary vn-horizontal > vn-auto:nth-child(5) > vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(4) > span',
|
firstDevelopmentWorker: 'vn-claim-summary vn-horizontal > vn-auto:nth-child(5) vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(4) > span',
|
||||||
firstDevelopmentWorkerGoToClientButton: '.vn-popover.shown vn-worker-descriptor div.quicklinks > a[href="#!/client/21/summary"]',
|
firstDevelopmentWorkerGoToClientButton: '.vn-popover.shown vn-worker-descriptor div.quicklinks > a[href="#!/client/21/summary"]',
|
||||||
firstActionTicketId: 'vn-claim-summary > vn-card > div > vn-horizontal > vn-auto:nth-child(6) > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > span',
|
firstActionTicketId: 'vn-claim-summary > vn-card > div > vn-horizontal > vn-auto:nth-child(6) vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > span',
|
||||||
firstActionTicketDescriptor: '.vn-popover.shown vn-ticket-descriptor'
|
firstActionTicketDescriptor: '.vn-popover.shown vn-ticket-descriptor'
|
||||||
},
|
},
|
||||||
claimBasicData: {
|
claimBasicData: {
|
||||||
|
|
|
@ -1,84 +1,84 @@
|
||||||
<vn-crud-model
|
<vn-crud-model vn-id="model"
|
||||||
auto-load="false"
|
auto-load="true"
|
||||||
vn-id="model"
|
|
||||||
url="claim/api/ClaimBeginnings"
|
url="claim/api/ClaimBeginnings"
|
||||||
filter="$ctrl.filter"
|
filter="$ctrl.filter"
|
||||||
data="$ctrl.salesClaimed"
|
data="$ctrl.salesClaimed"
|
||||||
on-data-change="$ctrl.calculateTotals()">
|
on-data-change="$ctrl.calculateTotals()">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
<vn-vertical>
|
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-mb-md vn-pa-lg vn-w-lg" style="text-align: right"
|
||||||
<vn-vertical>
|
ng-if="$ctrl.salesClaimed.length > 0">
|
||||||
<vn-horizontal>
|
<vn-label-value label="Total"
|
||||||
<div class="totalBox">
|
value="{{$ctrl.paidTotal | currency: 'EUR':2}}">
|
||||||
<vn-label-value label="Total"
|
</vn-label-value>
|
||||||
value="{{$ctrl.paidTotal | currency: 'EUR':2}}">
|
<vn-label-value label="Total claimed"
|
||||||
</vn-label-value>
|
value="{{$ctrl.claimedTotal | currency: 'EUR':2}}">
|
||||||
<vn-label-value label="Total claimed"
|
</vn-label-value>
|
||||||
value="{{$ctrl.claimedTotal | currency: 'EUR':2}}">
|
</vn-card>
|
||||||
</vn-label-value>
|
|
||||||
</div>
|
<vn-card class="vn-pa-lg">
|
||||||
</vn-horizontal>
|
<vn-data-viewer model="model">
|
||||||
<vn-table model="model">
|
<vn-table model="model">
|
||||||
<vn-thead>
|
<vn-thead>
|
||||||
<vn-tr>
|
<vn-tr>
|
||||||
<vn-th center>Landed</vn-th>
|
<vn-th center>Landed</vn-th>
|
||||||
<vn-th number>Quantity</vn-th>
|
<vn-th number>Quantity</vn-th>
|
||||||
<vn-th>Claimed</vn-th>
|
<vn-th>Claimed</vn-th>
|
||||||
<vn-th>Description</vn-th>
|
<vn-th>Description</vn-th>
|
||||||
<vn-th number>Price</vn-th>
|
<vn-th number>Price</vn-th>
|
||||||
<vn-th number>Disc.</vn-th>
|
<vn-th number>Disc.</vn-th>
|
||||||
<vn-th number>Total</vn-th>
|
<vn-th number>Total</vn-th>
|
||||||
<vn-th></vn-th>
|
<vn-th></vn-th>
|
||||||
</vn-tr>
|
</vn-tr>
|
||||||
</vn-thead>
|
</vn-thead>
|
||||||
<vn-tbody>
|
<vn-tbody>
|
||||||
<vn-tr ng-repeat="saleClaimed in $ctrl.salesClaimed" vn-repeat-last>
|
<vn-tr ng-repeat="saleClaimed in $ctrl.salesClaimed" vn-repeat-last>
|
||||||
<vn-td center>{{::saleClaimed.sale.ticket.landed | dateTime:'dd/MM/yyyy'}}</vn-td>
|
<vn-td center>{{::saleClaimed.sale.ticket.landed | dateTime:'dd/MM/yyyy'}}</vn-td>
|
||||||
<vn-td number>{{::saleClaimed.sale.quantity}}</vn-td>
|
<vn-td number>{{::saleClaimed.sale.quantity}}</vn-td>
|
||||||
<vn-td>
|
<vn-td>
|
||||||
<vn-input-number
|
<vn-input-number
|
||||||
vn-focus min="0"
|
vn-focus min="0"
|
||||||
step="1"
|
step="1"
|
||||||
ng-model="saleClaimed.quantity"
|
ng-model="saleClaimed.quantity"
|
||||||
on-change="$ctrl.setClaimedQuantity(saleClaimed.id, saleClaimed.quantity)">
|
on-change="$ctrl.setClaimedQuantity(saleClaimed.id, saleClaimed.quantity)">
|
||||||
</vn-input-number>
|
</vn-input-number>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td expand title="{{::saleClaimed.sale.concept}}">
|
<vn-td expand title="{{::saleClaimed.sale.concept}}">
|
||||||
<span
|
<span
|
||||||
class="link"
|
class="link"
|
||||||
ng-click="$ctrl.showItemDescriptor($event, saleClaimed.sale.itemFk)">
|
ng-click="$ctrl.showItemDescriptor($event, saleClaimed.sale.itemFk)">
|
||||||
{{::saleClaimed.sale.concept}}
|
{{::saleClaimed.sale.concept}}
|
||||||
</span>
|
</span>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td number>{{::saleClaimed.sale.price | currency: 'EUR':2}}</vn-td>
|
<vn-td number>{{::saleClaimed.sale.price | currency: 'EUR':2}}</vn-td>
|
||||||
<vn-td number>
|
<vn-td number>
|
||||||
<span class="link"
|
<span class="link"
|
||||||
vn-tooltip="Edit discount"
|
vn-tooltip="Edit discount"
|
||||||
ng-click="$ctrl.showEditPopover($event, saleClaimed)">
|
ng-click="$ctrl.showEditPopover($event, saleClaimed)">
|
||||||
{{::saleClaimed.sale.discount}} %
|
{{::saleClaimed.sale.discount}} %
|
||||||
</span>
|
</span>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td number>
|
<vn-td number>
|
||||||
{{::$ctrl.getSaleTotal(saleClaimed.sale) | currency: 'EUR':2}}
|
{{::$ctrl.getSaleTotal(saleClaimed.sale) | currency: 'EUR':2}}
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td shrink>
|
<vn-td shrink>
|
||||||
<vn-icon-button
|
<vn-icon-button
|
||||||
vn-tooltip="Remove sale"
|
vn-tooltip="Remove sale"
|
||||||
icon="delete"
|
icon="delete"
|
||||||
ng-click="$ctrl.deleteClaimedSale($index)"
|
ng-click="$ctrl.deleteClaimedSale($index)"
|
||||||
tabindex="-1">
|
tabindex="-1">
|
||||||
</vn-icon-button>
|
</vn-icon-button>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
</vn-tr>
|
</vn-tr>
|
||||||
</vn-tbody>
|
</vn-tbody>
|
||||||
</vn-table>
|
</vn-table>
|
||||||
</vn-vertical>
|
</vn-data-viewer>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
<a ng-click="$ctrl.openAddSalesDialog()" vn-tooltip="Add sale item" vn-bind="+" fixed-bottom-right>
|
|
||||||
<vn-float-button icon="add"></vn-float-button>
|
<a ng-click="$ctrl.openAddSalesDialog()" vn-tooltip="Add sale item" vn-bind="+" fixed-bottom-right>
|
||||||
</a>
|
<vn-float-button icon="add"></vn-float-button>
|
||||||
</vn-vertical>
|
</a>
|
||||||
|
|
||||||
<!-- Add Lines Dialog -->
|
<!-- Add Lines Dialog -->
|
||||||
<vn-dialog vn-id="add-sales" class="modal-form">
|
<vn-dialog vn-id="add-sales" class="modal-form">
|
||||||
<tpl-body>
|
<tpl-body>
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
<vn-crud-model
|
<vn-crud-model vn-id="model"
|
||||||
url="/api/ClaimDms"
|
url="/api/ClaimDms"
|
||||||
where="{claimFk: $ctrl.$stateParams.id}"
|
data="photos">
|
||||||
data="photos"
|
|
||||||
auto-load="true">
|
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
<vn-card class="summary">
|
<vn-card class="summary">
|
||||||
<h5>{{$ctrl.summary.claim.id}} - {{$ctrl.summary.claim.client.name}}</h5>
|
<h5>{{::$ctrl.summary.claim.id}} - {{::$ctrl.summary.claim.client.name}}</h5>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-one>
|
<vn-one>
|
||||||
<vn-label-value label="Created"
|
<vn-label-value label="Created"
|
||||||
|
@ -43,41 +41,43 @@
|
||||||
</vn-one>
|
</vn-one>
|
||||||
<vn-auto>
|
<vn-auto>
|
||||||
<h4 translate>Detail</h4>
|
<h4 translate>Detail</h4>
|
||||||
<vn-table model="model">
|
<vn-data-viewer data="::$ctrl.summary.salesClaimed">
|
||||||
<vn-thead>
|
<vn-table>
|
||||||
<vn-tr>
|
<vn-thead>
|
||||||
<vn-th number>Item</vn-th>
|
<vn-tr>
|
||||||
<vn-th>Landed</vn-th>
|
<vn-th number>Item</vn-th>
|
||||||
<vn-th number>Quantity</vn-th>
|
<vn-th>Landed</vn-th>
|
||||||
<vn-th number>Claimed</vn-th>
|
<vn-th number>Quantity</vn-th>
|
||||||
<vn-th>Description</vn-th>
|
<vn-th number>Claimed</vn-th>
|
||||||
<vn-th number>Price</vn-th>
|
<vn-th>Description</vn-th>
|
||||||
<vn-th number>Disc.</vn-th>
|
<vn-th number>Price</vn-th>
|
||||||
<vn-th number>Total</vn-th>
|
<vn-th number>Disc.</vn-th>
|
||||||
</vn-tr>
|
<vn-th number>Total</vn-th>
|
||||||
</vn-thead>
|
</vn-tr>
|
||||||
<vn-tbody>
|
</vn-thead>
|
||||||
<vn-tr ng-repeat="saleClaimed in $ctrl.summary.salesClaimed">
|
<vn-tbody>
|
||||||
<vn-td number>
|
<vn-tr ng-repeat="saleClaimed in $ctrl.summary.salesClaimed">
|
||||||
<span
|
<vn-td number>
|
||||||
ng-click="$ctrl.showItemDescriptor($event, saleClaimed.sale.itemFk)"
|
<span
|
||||||
class="link">
|
ng-click="$ctrl.showItemDescriptor($event, saleClaimed.sale.itemFk)"
|
||||||
{{saleClaimed.sale.itemFk | zeroFill:6}}
|
class="link">
|
||||||
</span>
|
{{::saleClaimed.sale.itemFk | zeroFill:6}}
|
||||||
</vn-td>
|
</span>
|
||||||
<vn-td>{{saleClaimed.sale.ticket.landed | dateTime: 'dd/MM/yyyy'}}</vn-td>
|
</vn-td>
|
||||||
<vn-td number>{{saleClaimed.sale.quantity}}</vn-td>
|
<vn-td>{{::saleClaimed.sale.ticket.landed | dateTime: 'dd/MM/yyyy'}}</vn-td>
|
||||||
<vn-td number>{{saleClaimed.quantity}}</vn-td>
|
<vn-td number>{{::saleClaimed.sale.quantity}}</vn-td>
|
||||||
<vn-td expand>{{saleClaimed.sale.concept}}</vn-td>
|
<vn-td number>{{::saleClaimed.quantity}}</vn-td>
|
||||||
<vn-td number>{{saleClaimed.sale.price | currency: 'EUR':2}}</vn-td>
|
<vn-td expand>{{::saleClaimed.sale.concept}}</vn-td>
|
||||||
<vn-td number>{{saleClaimed.sale.discount}} %</vn-td>
|
<vn-td number>{{::saleClaimed.sale.price | currency: 'EUR':2}}</vn-td>
|
||||||
<vn-td number>
|
<vn-td number>{{::saleClaimed.sale.discount}} %</vn-td>
|
||||||
{{saleClaimed.sale.quantity * saleClaimed.sale.price *
|
<vn-td number>
|
||||||
((100 - saleClaimed.sale.discount) / 100) | currency: 'EUR':2}}
|
{{saleClaimed.sale.quantity * saleClaimed.sale.price *
|
||||||
</vn-td>
|
((100 - saleClaimed.sale.discount) / 100) | currency: 'EUR':2}}
|
||||||
</vn-tr>
|
</vn-td>
|
||||||
</vn-tbody>
|
</vn-tr>
|
||||||
</vn-table>
|
</vn-tbody>
|
||||||
|
</vn-table>
|
||||||
|
</vn-data-viewer>
|
||||||
</vn-auto>
|
</vn-auto>
|
||||||
<vn-auto ng-if="photos.length > 0">
|
<vn-auto ng-if="photos.length > 0">
|
||||||
<h4 translate>Photos</h4>
|
<h4 translate>Photos</h4>
|
||||||
|
@ -92,78 +92,82 @@
|
||||||
</vn-auto>
|
</vn-auto>
|
||||||
<vn-auto>
|
<vn-auto>
|
||||||
<h4 translate>Development</h4>
|
<h4 translate>Development</h4>
|
||||||
<vn-table model="model">
|
<vn-data-viewer data="::$ctrl.summary.developments">
|
||||||
<vn-thead>
|
<vn-table>
|
||||||
<vn-tr>
|
<vn-thead>
|
||||||
<vn-th>Reason</vn-th>
|
<vn-tr>
|
||||||
<vn-th>Result</vn-th>
|
<vn-th>Reason</vn-th>
|
||||||
<vn-th>Responsible</vn-th>
|
<vn-th>Result</vn-th>
|
||||||
<vn-th>Worker</vn-th>
|
<vn-th>Responsible</vn-th>
|
||||||
<vn-th>Redelivery</vn-th>
|
<vn-th>Worker</vn-th>
|
||||||
</vn-tr>
|
<vn-th>Redelivery</vn-th>
|
||||||
</vn-thead>
|
</vn-tr>
|
||||||
<vn-tbody>
|
</vn-thead>
|
||||||
<vn-tr ng-repeat="development in $ctrl.summary.developments">
|
<vn-tbody>
|
||||||
<vn-td>{{development.claimReason.description}}</vn-td>
|
<vn-tr ng-repeat="development in $ctrl.summary.developments">
|
||||||
<vn-td>{{development.claimResult.description}}</vn-td>
|
<vn-td>{{::development.claimReason.description}}</vn-td>
|
||||||
<vn-td>{{development.claimResponsible.description}}</vn-td>
|
<vn-td>{{::development.claimResult.description}}</vn-td>
|
||||||
<vn-td expand>
|
<vn-td>{{::development.claimResponsible.description}}</vn-td>
|
||||||
<span
|
<vn-td expand>
|
||||||
class="link"
|
<span
|
||||||
ng-click="$ctrl.showWorkerDescriptor($event, development.workerFk)">
|
class="link"
|
||||||
{{::development.worker.user.nickname}}
|
ng-click="$ctrl.showWorkerDescriptor($event, development.workerFk)">
|
||||||
</span>
|
{{::development.worker.user.nickname}}
|
||||||
</vn-td>
|
</span>
|
||||||
<vn-td>{{development.claimRedelivery.description}}</vn-td>
|
</vn-td>
|
||||||
</vn-tr>
|
<vn-td>{{::development.claimRedelivery.description}}</vn-td>
|
||||||
</vn-tbody>
|
</vn-tr>
|
||||||
</vn-table>
|
</vn-tbody>
|
||||||
|
</vn-table>
|
||||||
|
</vn-data-viewer>
|
||||||
</vn-auto>
|
</vn-auto>
|
||||||
<vn-auto>
|
<vn-auto>
|
||||||
<h4 translate>Action</h4>
|
<h4 translate>Action</h4>
|
||||||
<vn-table model="model">
|
<vn-data-viewer data="::$ctrl.summary.actions">
|
||||||
<vn-thead>
|
<vn-table>
|
||||||
<vn-tr>
|
<vn-thead>
|
||||||
<vn-th number>Item</vn-th>
|
<vn-tr>
|
||||||
<vn-th number>Ticket</vn-th>
|
<vn-th number>Item</vn-th>
|
||||||
<vn-th>Destination</vn-th>
|
<vn-th number>Ticket</vn-th>
|
||||||
<vn-th number>Landed</vn-th>
|
<vn-th>Destination</vn-th>
|
||||||
<vn-th number>Quantity</vn-th>
|
<vn-th number>Landed</vn-th>
|
||||||
<vn-th>Description</vn-th>
|
<vn-th number>Quantity</vn-th>
|
||||||
<vn-th number>Price</vn-th>
|
<vn-th>Description</vn-th>
|
||||||
<vn-th number>Disc.</vn-th>
|
<vn-th number>Price</vn-th>
|
||||||
<vn-th number>Total</vn-th>
|
<vn-th number>Disc.</vn-th>
|
||||||
</vn-tr>
|
<vn-th number>Total</vn-th>
|
||||||
</vn-thead>
|
</vn-tr>
|
||||||
<vn-tbody>
|
</vn-thead>
|
||||||
<vn-tr ng-repeat="action in $ctrl.summary.actions">
|
<vn-tbody>
|
||||||
<vn-td number>
|
<vn-tr ng-repeat="action in $ctrl.summary.actions">
|
||||||
<span
|
<vn-td number>
|
||||||
ng-click="$ctrl.showItemDescriptor($event, action.sale.itemFk)"
|
<span
|
||||||
class="link">
|
ng-click="$ctrl.showItemDescriptor($event, action.sale.itemFk)"
|
||||||
{{action.sale.itemFk | zeroFill:6}}
|
class="link">
|
||||||
</span>
|
{{::action.sale.itemFk | zeroFill:6}}
|
||||||
</vn-td>
|
</span>
|
||||||
<vn-td number>
|
</vn-td>
|
||||||
<span
|
<vn-td number>
|
||||||
ng-click="$ctrl.showTicketDescriptor($event, action.sale.ticket.id)"
|
<span
|
||||||
class="link">
|
ng-click="$ctrl.showTicketDescriptor($event, action.sale.ticket.id)"
|
||||||
{{action.sale.ticket.id | zeroFill:6}}
|
class="link">
|
||||||
</span>
|
{{::action.sale.ticket.id | zeroFill:6}}
|
||||||
</vn-td>
|
</span>
|
||||||
<vn-td expand>{{action.claimBeggining.description}}</vn-td>
|
</vn-td>
|
||||||
<vn-td number>{{action.sale.ticket.landed | dateTime: 'dd/MM/yyyy'}}</vn-td>
|
<vn-td expand>{{::action.claimBeggining.description}}</vn-td>
|
||||||
<vn-td number>{{action.sale.quantity}}</vn-td>
|
<vn-td number>{{::action.sale.ticket.landed | dateTime: 'dd/MM/yyyy'}}</vn-td>
|
||||||
<vn-td expand>{{action.sale.concept}}</vn-td>
|
<vn-td number>{{::action.sale.quantity}}</vn-td>
|
||||||
<vn-td number>{{action.sale.price}}</vn-td>
|
<vn-td expand>{{::action.sale.concept}}</vn-td>
|
||||||
<vn-td number>{{action.sale.discount}} %</vn-td>
|
<vn-td number>{{::action.sale.price}}</vn-td>
|
||||||
<vn-td number>
|
<vn-td number>{{::action.sale.discount}} %</vn-td>
|
||||||
{{action.sale.quantity * action.sale.price *
|
<vn-td number>
|
||||||
((100 - action.sale.discount) / 100) | currency: 'EUR':2}}
|
{{action.sale.quantity * action.sale.price *
|
||||||
</vn-td>
|
((100 - action.sale.discount) / 100) | currency: 'EUR':2}}
|
||||||
</vn-tr>
|
</vn-td>
|
||||||
</vn-tbody>
|
</vn-tr>
|
||||||
</vn-table>
|
</vn-tbody>
|
||||||
|
</vn-table>
|
||||||
|
</vn-data-viewer>
|
||||||
</vn-auto>
|
</vn-auto>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
|
|
|
@ -9,6 +9,26 @@ class Controller {
|
||||||
this.accessToken = vnToken.token;
|
this.accessToken = vnToken.token;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get claim() {
|
||||||
|
return this._claim;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
set claim(value) {
|
||||||
|
this._claim = value;
|
||||||
|
|
||||||
|
// Get DMS on summary load
|
||||||
|
/* if (value)
|
||||||
|
this.$.$applyAsync(() => this.loadDms()); */
|
||||||
|
}
|
||||||
|
|
||||||
|
loadDms() {
|
||||||
|
this.$.model.where = {
|
||||||
|
claimFk: this.claim.id
|
||||||
|
};
|
||||||
|
this.$.model.refresh();
|
||||||
|
}
|
||||||
|
|
||||||
getSummary() {
|
getSummary() {
|
||||||
this.$http.get(`/claim/api/Claims/${this.claim.id}/getSummary`).then(response => {
|
this.$http.get(`/claim/api/Claims/${this.claim.id}/getSummary`).then(response => {
|
||||||
this.summary = response.data;
|
this.summary = response.data;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import './index.js';
|
import './index.js';
|
||||||
|
import crudModel from 'core/mocks/crud-model';
|
||||||
|
|
||||||
describe('Claim', () => {
|
describe('Claim', () => {
|
||||||
describe('Component summary', () => {
|
describe('Component summary', () => {
|
||||||
|
@ -13,6 +14,7 @@ describe('Claim', () => {
|
||||||
$httpBackend = _$httpBackend_;
|
$httpBackend = _$httpBackend_;
|
||||||
controller = $componentController('vnClaimSummary');
|
controller = $componentController('vnClaimSummary');
|
||||||
controller.claim = {id: 1};
|
controller.claim = {id: 1};
|
||||||
|
controller.$.model = crudModel;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
describe('getSummary()', () => {
|
describe('getSummary()', () => {
|
||||||
|
|
|
@ -88,7 +88,7 @@
|
||||||
ng-if="!log.newProperties"
|
ng-if="!log.newProperties"
|
||||||
id="description">
|
id="description">
|
||||||
<div>
|
<div>
|
||||||
<span>{{log.description}}</span>
|
<span>{{::log.description}}</span>
|
||||||
</div>
|
</div>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
|
|
Loading…
Reference in New Issue