2019-01-20 15:47:04 +00:00
|
|
|
<vn-card class="summary">
|
2020-11-23 12:41:51 +00:00
|
|
|
<h5>
|
|
|
|
<a ng-if="::$ctrl.summary.id"
|
|
|
|
vn-tooltip="Go to the client"
|
|
|
|
ui-sref="client.card.summary({id: {{::$ctrl.summary.id}}})"
|
|
|
|
name="goToSummary">
|
|
|
|
<vn-icon-button icon="launch"></vn-icon-button>
|
|
|
|
</a>
|
|
|
|
<span>
|
|
|
|
{{$ctrl.summary.name}} - {{$ctrl.summary.id}} - {{$ctrl.summary.salesPersonUser.name}}
|
|
|
|
</span>
|
|
|
|
</h5>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-one>
|
2021-01-12 06:39:12 +00:00
|
|
|
<h4 ng-show="$ctrl.isEmployee">
|
2021-01-11 09:36:20 +00:00
|
|
|
<a
|
2021-01-12 09:11:37 +00:00
|
|
|
ui-sref="client.card.basicData({id:$ctrl.client.id})"
|
|
|
|
target="_self">
|
2021-01-11 09:36:20 +00:00
|
|
|
<span translate vn-tooltip="Go to">Basic data</span>
|
2021-01-08 14:43:33 +00:00
|
|
|
</a>
|
2021-01-08 07:43:28 +00:00
|
|
|
</h4>
|
2021-01-12 06:39:12 +00:00
|
|
|
<h4
|
2021-01-12 09:11:37 +00:00
|
|
|
translate
|
|
|
|
ng-show="!$ctrl.isEmployee">
|
|
|
|
Basic data
|
2021-01-12 06:39:12 +00:00
|
|
|
</h4>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-label-value label="Id"
|
|
|
|
value="{{$ctrl.summary.id}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Comercial Name"
|
|
|
|
value="{{$ctrl.summary.name}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Contact"
|
|
|
|
value="{{$ctrl.summary.contact}}">
|
|
|
|
</vn-label-value>
|
2020-01-17 06:24:57 +00:00
|
|
|
<vn-label-value label="Phone"
|
|
|
|
value="{{$ctrl.summary.phone}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
2020-01-17 06:24:57 +00:00
|
|
|
<vn-label-value label="Mobile"
|
|
|
|
value="{{$ctrl.summary.mobile}}">
|
2020-01-29 12:41:55 +00:00
|
|
|
</vn-label-value>
|
2020-11-24 13:56:10 +00:00
|
|
|
<vn-label-value label="Email" no-ellipsize
|
2021-01-25 09:59:24 +00:00
|
|
|
value="{{$ctrl.listEmails($ctrl.summary.email)}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
2020-09-03 13:11:16 +00:00
|
|
|
<vn-label-value label="Sales person">
|
|
|
|
<span
|
|
|
|
ng-click="workerDescriptor.show($event, $ctrl.summary.salesPersonFk)"
|
|
|
|
class="link">
|
2020-09-15 17:43:07 +00:00
|
|
|
{{$ctrl.summary.salesPersonUser.name}}
|
2020-09-03 13:11:16 +00:00
|
|
|
</span>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Channel"
|
|
|
|
value="{{$ctrl.summary.contactChannel.name}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
2021-01-12 06:39:12 +00:00
|
|
|
<h4 ng-show="$ctrl.isEmployee">
|
2021-01-11 09:36:20 +00:00
|
|
|
<a
|
2021-01-12 09:11:37 +00:00
|
|
|
ui-sref="client.card.fiscalData({id:$ctrl.client.id})"
|
|
|
|
target="_self">
|
2021-01-11 09:36:20 +00:00
|
|
|
<span translate vn-tooltip="Go to">Fiscal address</span>
|
2021-01-08 14:43:33 +00:00
|
|
|
</a>
|
2021-01-08 07:43:28 +00:00
|
|
|
</h4>
|
2021-01-12 06:39:12 +00:00
|
|
|
<h4
|
2021-01-12 09:11:37 +00:00
|
|
|
translate
|
|
|
|
ng-show="!$ctrl.isEmployee">
|
|
|
|
Fiscal address
|
2021-01-12 06:39:12 +00:00
|
|
|
</h4>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-label-value label="Social name"
|
|
|
|
value="{{$ctrl.summary.socialName}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="NIF / CIF"
|
|
|
|
value="{{$ctrl.summary.fi}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="City"
|
|
|
|
value="{{$ctrl.summary.city}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Postcode"
|
|
|
|
value="{{$ctrl.summary.postcode}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Province"
|
|
|
|
value="{{$ctrl.summary.province.name}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Country"
|
|
|
|
value="{{$ctrl.summary.country.country}}">
|
|
|
|
</vn-label-value>
|
2020-11-24 13:56:10 +00:00
|
|
|
<vn-label-value label="Street" no-ellipsize
|
|
|
|
value="{{$ctrl.summary.street}}">
|
|
|
|
</vn-label-value>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
2021-01-12 06:39:12 +00:00
|
|
|
<h4 ng-show="$ctrl.isEmployee">
|
2021-01-11 09:36:20 +00:00
|
|
|
<a
|
2021-01-12 09:11:37 +00:00
|
|
|
ui-sref="client.card.fiscalData({id:$ctrl.client.id})"
|
|
|
|
target="_self">
|
2021-01-11 09:36:20 +00:00
|
|
|
<span translate vn-tooltip="Go to">Fiscal data</span>
|
2021-01-08 14:43:33 +00:00
|
|
|
</a>
|
2021-01-08 07:43:28 +00:00
|
|
|
</h4>
|
2021-01-12 06:39:12 +00:00
|
|
|
<h4
|
2021-01-12 09:11:37 +00:00
|
|
|
translate
|
|
|
|
ng-show="!$ctrl.isEmployee">
|
|
|
|
Fiscal data
|
2021-01-12 06:39:12 +00:00
|
|
|
</h4>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-vertical>
|
|
|
|
<vn-check
|
|
|
|
label="Is equalizated"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.isEqualizated"
|
2019-01-20 15:47:04 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
|
|
|
label="Active"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.isActive"
|
2019-01-20 15:47:04 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
|
|
|
label="Invoice by address"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.hasToInvoiceByAddress"
|
2019-01-20 15:47:04 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
|
|
|
label="Verified data"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.isTaxDataChecked"
|
2019-01-20 15:47:04 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
|
|
|
label="Has to invoice"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.hasToInvoice"
|
2019-01-20 15:47:04 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
2020-06-03 11:42:36 +00:00
|
|
|
label="Notify by email"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.isToBeMailed"
|
2019-01-20 15:47:04 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
|
|
|
label="Vies"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.isVies"
|
2019-01-20 15:47:04 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
2021-01-12 06:39:12 +00:00
|
|
|
<h4 ng-show="$ctrl.isEmployee">
|
2021-01-11 09:36:20 +00:00
|
|
|
<a
|
2021-01-12 09:11:37 +00:00
|
|
|
ui-sref="client.card.billingData({id:$ctrl.client.id})"
|
|
|
|
target="_self">
|
2021-01-11 09:36:20 +00:00
|
|
|
<span translate vn-tooltip="Go to">Billing data</span>
|
2021-01-08 14:43:33 +00:00
|
|
|
</a>
|
2021-01-08 07:43:28 +00:00
|
|
|
</h4>
|
2021-01-12 06:39:12 +00:00
|
|
|
<h4
|
2021-01-12 09:11:37 +00:00
|
|
|
translate
|
|
|
|
ng-show="!$ctrl.isEmployee">
|
|
|
|
Billing data
|
2021-01-12 06:39:12 +00:00
|
|
|
</h4>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-label-value label="Pay method"
|
|
|
|
value="{{$ctrl.summary.payMethod.name}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="IBAN"
|
|
|
|
value="{{$ctrl.summary.iban}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Due day"
|
|
|
|
value="{{$ctrl.summary.dueDay}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-check
|
|
|
|
label="Received LCR"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.hasLcr"
|
2019-01-20 15:47:04 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
|
|
|
label="Received core VNL"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.hasCoreVnl"
|
2019-01-20 15:47:04 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
|
|
|
label="Received B2B VNL"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.hasSepaVnl"
|
2019-01-20 15:47:04 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
2021-01-12 06:39:12 +00:00
|
|
|
<h4 ng-show="$ctrl.isEmployee">
|
2021-01-11 09:36:20 +00:00
|
|
|
<a
|
2021-01-12 09:11:37 +00:00
|
|
|
ui-sref="client.card.address.index({id:$ctrl.client.id})"
|
|
|
|
target="_self">
|
2021-01-11 09:36:20 +00:00
|
|
|
<span translate vn-tooltip="Go to">Address</span>
|
2021-01-08 14:43:33 +00:00
|
|
|
</a>
|
2021-01-08 07:43:28 +00:00
|
|
|
</h4>
|
2021-01-12 06:39:12 +00:00
|
|
|
<h4
|
2021-01-12 09:11:37 +00:00
|
|
|
translate
|
|
|
|
ng-show="!$ctrl.isEmployee">
|
|
|
|
Address
|
2021-01-12 06:39:12 +00:00
|
|
|
</h4>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-label-value label="Name"
|
2019-02-28 07:55:34 +00:00
|
|
|
value="{{$ctrl.summary.defaultAddress.nickname}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="City"
|
2019-02-28 07:55:34 +00:00
|
|
|
value="{{$ctrl.summary.defaultAddress.city}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
2020-11-24 13:56:10 +00:00
|
|
|
<vn-label-value label="Street" no-ellipsize
|
|
|
|
value="{{$ctrl.summary.defaultAddress.street}}">
|
|
|
|
</vn-label-value>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
2021-01-12 06:39:12 +00:00
|
|
|
<h4 ng-show="$ctrl.isEmployee">
|
2021-01-11 09:36:20 +00:00
|
|
|
<a
|
2021-01-12 09:11:37 +00:00
|
|
|
ui-sref="client.card.webAccess({id:$ctrl.client.id})"
|
|
|
|
target="_self">
|
2021-01-11 09:36:20 +00:00
|
|
|
<span translate vn-tooltip="Go to">Web access</span>
|
2021-01-08 14:43:33 +00:00
|
|
|
</a>
|
2021-01-08 07:43:28 +00:00
|
|
|
</h4>
|
2021-01-12 09:11:37 +00:00
|
|
|
<h4
|
|
|
|
translate
|
|
|
|
ng-show="!$ctrl.isEmployee">Web access
|
2021-01-12 06:39:12 +00:00
|
|
|
</h4>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-label-value label="User"
|
|
|
|
value="{{$ctrl.summary.account.name}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-check
|
|
|
|
label="Enable web access"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.account.active"
|
2019-01-20 15:47:04 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<h4 translate>Business data</h4>
|
|
|
|
<vn-label-value label="Total greuge"
|
2019-01-31 10:44:03 +00:00
|
|
|
value="{{$ctrl.summary.totalGreuge | currency: 'EUR':2}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Mana"
|
2019-01-31 10:44:03 +00:00
|
|
|
value="{{$ctrl.summary.mana.mana | currency: 'EUR':2}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Rate"
|
2019-07-02 10:12:15 +00:00
|
|
|
value="{{$ctrl.claimRate($ctrl.summary.claimsRatio.priceIncreasing) | percentage}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Average invoiced"
|
2019-01-31 10:44:03 +00:00
|
|
|
value="{{$ctrl.summary.averageInvoiced.invoiced | currency: 'EUR':2}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Claims"
|
2019-07-02 10:12:15 +00:00
|
|
|
value="{{$ctrl.claimingRate($ctrl.summary.claimsRatio.claimingRate) | percentage}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<h4 translate>Financial information</h4>
|
|
|
|
<vn-label-value label="Risk"
|
2019-01-31 10:44:03 +00:00
|
|
|
value="{{$ctrl.summary.debt.debt | currency: 'EUR':2}}"
|
2019-01-29 07:53:29 +00:00
|
|
|
ng-class="{alert: $ctrl.summary.debt.debt > $ctrl.summary.credit}"
|
|
|
|
info="Invoices minus payments plus orders not yet invoiced">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Credit"
|
2019-01-31 10:44:03 +00:00
|
|
|
value="{{$ctrl.summary.credit | currency: 'EUR':2 }} "
|
2019-01-21 07:16:43 +00:00
|
|
|
ng-class="{alert: $ctrl.summary.credit > $ctrl.summary.creditInsurance ||
|
2019-01-29 07:53:29 +00:00
|
|
|
($ctrl.summary.credit && $ctrl.summary.creditInsurance == null)}"
|
|
|
|
info="Verdnatura's maximum risk">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Secured credit"
|
2019-01-31 10:44:03 +00:00
|
|
|
value="{{$ctrl.summary.creditInsurance | currency: 'EUR':2}} ({{$ctrl.summary.classifications[0].insurances[0].grade}})"
|
2019-01-29 07:53:29 +00:00
|
|
|
info="Solunion's maximum risk">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Balance"
|
2019-01-31 10:44:03 +00:00
|
|
|
value="{{$ctrl.summary.sumRisk | currency: 'EUR':2}}"
|
2019-01-29 07:53:29 +00:00
|
|
|
info="Invoices minus payments">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Balance due"
|
2019-06-26 10:18:47 +00:00
|
|
|
value="{{($ctrl.summary.defaulters[0].amount >= 0 ? $ctrl.summary.defaulters[0].amount : '-') | currency: 'EUR':2}}"
|
2019-01-29 07:53:29 +00:00
|
|
|
ng-class="{alert: $ctrl.summary.defaulters[0].amount}"
|
|
|
|
info="Deviated invoices minus payments">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-vertical ng-if="$ctrl.summary.recovery.started">
|
|
|
|
<vn-label-value label="Recovery since"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.summary.recovery.started | date:'dd/MM/yyyy'}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
2018-03-01 11:51:35 +00:00
|
|
|
</vn-vertical>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
2020-09-03 13:11:16 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor">
|
|
|
|
</vn-worker-descriptor-popover>
|