2020-05-06 12:38:09 +00:00
|
|
|
<vn-descriptor-content
|
|
|
|
module="client"
|
2022-04-11 06:02:05 +00:00
|
|
|
description="$ctrl.client.name"
|
|
|
|
summary="$ctrl.$.summary">
|
2020-04-30 10:48:52 +00:00
|
|
|
<slot-menu>
|
2020-05-06 12:38:09 +00:00
|
|
|
<a class="vn-item"
|
|
|
|
ui-sref="ticket.create({clientFk: $ctrl.client.id})"
|
|
|
|
name="simpleTicket"
|
|
|
|
translate>
|
|
|
|
Simple ticket
|
|
|
|
</a>
|
|
|
|
<vn-item
|
|
|
|
ng-click="$ctrl.showSMSDialog()"
|
|
|
|
translate>
|
|
|
|
Send SMS
|
|
|
|
</vn-item>
|
2020-04-30 10:48:52 +00:00
|
|
|
</slot-menu>
|
|
|
|
<slot-body>
|
2019-01-21 14:21:24 +00:00
|
|
|
<div class="attributes">
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-label-value
|
2021-11-19 11:10:53 +00:00
|
|
|
label="Pay method"
|
|
|
|
value="{{$ctrl.client.payMethod.name}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Credit"
|
2019-01-31 10:44:03 +00:00
|
|
|
value="{{$ctrl.client.credit | currency: 'EUR': 2}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Secured credit"
|
2019-01-31 10:44:03 +00:00
|
|
|
value="{{$ctrl.client.creditInsurance | currency: 'EUR': 2}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-label-value
|
2020-05-19 07:28:50 +00:00
|
|
|
label="Risk"
|
2020-05-18 09:50:55 +00:00
|
|
|
value="{{$ctrl.client.debt | currency: 'EUR':2}}"
|
|
|
|
ng-class="{alert: $ctrl.client.debt > $ctrl.client.credit}"
|
|
|
|
info="Invoices minus payments plus orders not yet invoiced">
|
|
|
|
</vn-label-value>
|
2020-05-19 08:51:50 +00:00
|
|
|
<vn-label-value
|
2020-09-03 13:11:16 +00:00
|
|
|
label="Sales person">
|
|
|
|
<span
|
|
|
|
ng-click="workerDescriptor.show($event, $ctrl.client.salesPersonFk)"
|
|
|
|
class="link">
|
2020-09-15 17:43:07 +00:00
|
|
|
{{$ctrl.client.salesPersonUser.name}}
|
2020-09-03 13:11:16 +00:00
|
|
|
</span>
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
|
|
|
</div>
|
|
|
|
<div class="icons">
|
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Client inactive"
|
|
|
|
icon="icon-disabled"
|
2020-12-04 12:40:58 +00:00
|
|
|
ng-if="$ctrl.client.isActive == false">
|
2018-09-04 09:49:00 +00:00
|
|
|
</vn-icon>
|
2019-01-21 14:21:24 +00:00
|
|
|
<vn-icon
|
2019-01-30 13:13:47 +00:00
|
|
|
vn-tooltip="Client frozen"
|
2019-01-21 14:21:24 +00:00
|
|
|
icon="icon-frozen"
|
2020-12-04 12:40:58 +00:00
|
|
|
ng-if="$ctrl.client.isFreezed == true">
|
2018-09-04 09:49:00 +00:00
|
|
|
</vn-icon>
|
2019-01-21 14:21:24 +00:00
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Web Account inactive"
|
|
|
|
icon="icon-noweb"
|
2020-12-04 12:40:58 +00:00
|
|
|
ng-if="$ctrl.client.account.active == false">
|
2018-09-04 09:49:00 +00:00
|
|
|
</vn-icon>
|
2019-01-21 14:21:24 +00:00
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Client has debt"
|
|
|
|
icon="icon-risk"
|
2020-12-04 12:40:58 +00:00
|
|
|
ng-if="$ctrl.client.debt > $ctrl.client.credit">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Client not checked"
|
|
|
|
icon="icon-no036"
|
2020-12-04 12:40:58 +00:00
|
|
|
ng-if="$ctrl.client.isTaxDataChecked == false">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-icon>
|
|
|
|
</div>
|
2020-04-30 10:48:52 +00:00
|
|
|
<div class="quicklinks">
|
2020-04-28 12:26:02 +00:00
|
|
|
<div ng-transclude="btnOne">
|
|
|
|
<vn-quick-link
|
|
|
|
tooltip="Client ticket list"
|
2020-04-30 10:48:52 +00:00
|
|
|
state="['ticket.index', {q: $ctrl.filter}]"
|
2020-04-28 12:26:02 +00:00
|
|
|
icon="icon-ticket">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
|
|
|
<div ng-transclude="btnTwo">
|
2020-11-18 16:22:40 +00:00
|
|
|
<vn-quick-link
|
|
|
|
tooltip="Client invoices list"
|
|
|
|
state="['invoiceOut.index', {q: $ctrl.filter}]"
|
2021-11-26 13:48:55 +00:00
|
|
|
icon="icon-invoice">
|
2020-11-18 16:22:40 +00:00
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
|
|
|
<div ng-transclude="btnThree">
|
2020-04-28 12:26:02 +00:00
|
|
|
<vn-quick-link
|
|
|
|
tooltip="New order"
|
2020-04-30 10:48:52 +00:00
|
|
|
state="['order.create', {clientFk: $ctrl.id}]"
|
2020-04-28 12:26:02 +00:00
|
|
|
icon="icon-basketadd">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
2020-11-18 16:22:40 +00:00
|
|
|
<div ng-transclude="btnFour">
|
2020-03-09 08:00:03 +00:00
|
|
|
<vn-quick-link
|
2021-08-13 12:53:39 +00:00
|
|
|
vn-acl="hr"
|
|
|
|
vn-acl-action="remove"
|
2020-03-09 08:00:03 +00:00
|
|
|
tooltip="Go to user"
|
|
|
|
state="['account.card.summary', {id: $ctrl.id}]"
|
|
|
|
icon="face">
|
|
|
|
</vn-quick-link>
|
2020-04-28 12:26:02 +00:00
|
|
|
</div>
|
2022-03-07 12:25:55 +00:00
|
|
|
<div ng-transclude="btnFive">
|
|
|
|
<vn-quick-link
|
|
|
|
ng-if="$ctrl.client.supplier.nif"
|
|
|
|
tooltip="Go to client"
|
|
|
|
state="['supplier.card.summary', {id: $ctrl.client.supplier.id}]"
|
|
|
|
icon="icon-supplier">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
2020-04-25 09:50:04 +00:00
|
|
|
</div>
|
2020-04-30 10:48:52 +00:00
|
|
|
</slot-body>
|
|
|
|
</vn-descriptor-content>
|
|
|
|
<vn-client-sms
|
|
|
|
vn-id="sms"
|
|
|
|
sms="$ctrl.newSMS">
|
2020-09-03 13:11:16 +00:00
|
|
|
</vn-client-sms>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor">
|
2022-04-11 06:02:05 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
|
|
|
<vn-popup vn-id="summary">
|
|
|
|
<vn-client-summary client="$ctrl.client"></vn-client-summary>
|
|
|
|
</vn-popup>
|