2020-05-06 12:38:09 +00:00
|
|
|
<vn-descriptor-content
|
|
|
|
module="client"
|
|
|
|
description="$ctrl.client.name">
|
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>
|
|
|
|
<vn-item
|
|
|
|
ng-click="consumerReportDialog.show()"
|
|
|
|
translate>
|
|
|
|
Send consumer report
|
|
|
|
</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
|
|
|
|
label="Phone"
|
2019-01-21 14:21:24 +00:00
|
|
|
value="{{$ctrl.client.phone | phone}}">
|
|
|
|
</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
|
|
|
|
label="Sales person"
|
2019-01-31 13:14:39 +00:00
|
|
|
value="{{$ctrl.client.salesPerson.user.nickname}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
|
|
|
</div>
|
|
|
|
<div class="icons">
|
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Client inactive"
|
|
|
|
icon="icon-disabled"
|
|
|
|
ng-class="{bright: $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"
|
|
|
|
ng-class="{bright: $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"
|
|
|
|
ng-class="{bright: $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"
|
|
|
|
ng-class="{bright: $ctrl.client.debt > $ctrl.client.credit}">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Client not checked"
|
|
|
|
icon="icon-no036"
|
|
|
|
ng-class="{bright: $ctrl.client.isTaxDataChecked == false}">
|
|
|
|
</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">
|
|
|
|
<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>
|
|
|
|
<div ng-transclude="btnThree">
|
|
|
|
</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">
|
|
|
|
</vn-client-sms>
|
|
|
|
<vn-dialog
|
|
|
|
vn-id="consumerReportDialog"
|
2020-05-06 12:38:09 +00:00
|
|
|
on-accept="$ctrl.onConsumerReportAccept()"
|
|
|
|
message="Send consumer report">
|
2020-04-30 10:48:52 +00:00
|
|
|
<tpl-body>
|
2020-05-06 12:38:09 +00:00
|
|
|
<vn-date-picker
|
|
|
|
vn-id="from"
|
|
|
|
vn-one
|
|
|
|
ng-model="$ctrl.from"
|
|
|
|
label="From date"
|
|
|
|
vn-focus>
|
|
|
|
</vn-date-picker>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-id="to"
|
|
|
|
vn-one
|
|
|
|
ng-model="$ctrl.to"
|
|
|
|
label="To date">
|
2020-04-30 10:48:52 +00:00
|
|
|
</vn-date-picker>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Accept</button>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|