2022-05-31 05:56:17 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2022-05-31 11:36:27 +00:00
|
|
|
url="Clients/extendedListFilter"
|
2022-06-07 12:59:18 +00:00
|
|
|
limit="20">
|
2022-05-31 05:56:17 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-portal slot="topbar">
|
|
|
|
<vn-searchbar
|
|
|
|
vn-focus
|
2022-05-31 11:36:27 +00:00
|
|
|
panel="vn-client-search-panel"
|
2022-05-31 05:56:17 +00:00
|
|
|
placeholder="Search client"
|
|
|
|
info="Search client by id or name"
|
|
|
|
auto-state="false"
|
|
|
|
model="model">
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-portal>
|
|
|
|
<vn-card>
|
|
|
|
<smart-table
|
|
|
|
model="model"
|
|
|
|
view-config-id="clientsDetail"
|
|
|
|
options="$ctrl.smartTableOptions"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
|
|
|
<slot-table>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th field="id">
|
|
|
|
<span translate>Identifier</span>
|
|
|
|
</th>
|
|
|
|
<th field="name">
|
|
|
|
<span translate>Name</span>
|
|
|
|
</th>
|
|
|
|
<th field="socialName">
|
|
|
|
<span translate>Social name</span>
|
|
|
|
</th>
|
|
|
|
<th field="fi">
|
2022-05-31 11:36:27 +00:00
|
|
|
<span translate>Tax number</span>
|
2022-05-31 05:56:17 +00:00
|
|
|
</th>
|
|
|
|
<th field="salesPersonFk">
|
|
|
|
<span translate>Salesperson</span>
|
|
|
|
</th>
|
|
|
|
<th field="credit">
|
|
|
|
<span translate>Credit</span>
|
|
|
|
</th>
|
|
|
|
<th field="creditInsurance">
|
|
|
|
<span translate>Credit insurance</span>
|
|
|
|
</th>
|
|
|
|
<th field="phone">
|
|
|
|
<span translate>Phone</span>
|
|
|
|
</th>
|
|
|
|
<th field="mobile">
|
|
|
|
<span translate>Mobile</span>
|
|
|
|
</th>
|
|
|
|
<th field="street">
|
|
|
|
<span translate>Street</span>
|
|
|
|
</th>
|
|
|
|
<th field="countryFk">
|
|
|
|
<span translate>Country</span>
|
|
|
|
</th>
|
|
|
|
<th field="provinceFk">
|
|
|
|
<span translate>Province</span>
|
|
|
|
</th>
|
|
|
|
<th field="city">
|
|
|
|
<span translate>City</span>
|
|
|
|
</th>
|
|
|
|
<th field="postcode">
|
|
|
|
<span translate>Postcode</span>
|
|
|
|
</th>
|
|
|
|
<th field="email">
|
|
|
|
<span translate>Email</span>
|
|
|
|
</th>
|
|
|
|
<th field="created">
|
|
|
|
<span translate>Created</span>
|
|
|
|
</th>
|
|
|
|
<th field="businessTypeFk">
|
|
|
|
<span translate>Business type</span>
|
|
|
|
</th>
|
2022-05-31 11:36:27 +00:00
|
|
|
<th field="payMethodFk">
|
|
|
|
<span translate>Billing data</span>
|
|
|
|
</th>
|
|
|
|
<th field="sageTaxTypeFk">
|
2022-05-31 05:56:17 +00:00
|
|
|
<span translate>Sage tax type</span>
|
|
|
|
</th>
|
|
|
|
<th field="sageTransactionTypeFk">
|
|
|
|
<span translate>Sage tr. type</span>
|
|
|
|
</th>
|
2022-05-31 11:36:27 +00:00
|
|
|
<th field="isActive" centered>
|
2022-05-31 05:56:17 +00:00
|
|
|
<span translate>Active</span>
|
|
|
|
</th>
|
2022-05-31 11:36:27 +00:00
|
|
|
<th field="isVies" centered>
|
2022-05-31 05:56:17 +00:00
|
|
|
<span translate>Vies</span>
|
|
|
|
</th>
|
2022-05-31 11:36:27 +00:00
|
|
|
<th field="isTaxDataChecked" centered>
|
|
|
|
<span translate>Verified data</span>
|
2022-05-31 05:56:17 +00:00
|
|
|
</th>
|
2022-05-31 11:36:27 +00:00
|
|
|
<th field="isEqualizated" centered>
|
|
|
|
<span translate>Is equalizated</span>
|
2022-05-31 05:56:17 +00:00
|
|
|
</th>
|
2022-05-31 11:36:27 +00:00
|
|
|
<th field="isFreezed" centered>
|
2022-05-31 05:56:17 +00:00
|
|
|
<span translate>Freezed</span>
|
|
|
|
</th>
|
2022-05-31 11:36:27 +00:00
|
|
|
<th field="hasToInvoice" centered>
|
2022-05-31 05:56:17 +00:00
|
|
|
<span translate>Invoice</span>
|
|
|
|
</th>
|
2022-05-31 11:36:27 +00:00
|
|
|
<th field="hasToInvoiceByAddress" centered>
|
2022-05-31 05:56:17 +00:00
|
|
|
<span translate>Invoice by address</span>
|
|
|
|
</th>
|
2022-05-31 11:36:27 +00:00
|
|
|
<th field="isToBeMailed" centered>
|
2022-05-31 05:56:17 +00:00
|
|
|
<span translate>Mailing</span>
|
|
|
|
</th>
|
2022-05-31 11:36:27 +00:00
|
|
|
<th field="hasLcr" centered>
|
2022-05-31 05:56:17 +00:00
|
|
|
<span translate>Received LCR</span>
|
|
|
|
</th>
|
2022-05-31 11:36:27 +00:00
|
|
|
<th field="hasCoreVnl" centered>
|
2022-05-31 05:56:17 +00:00
|
|
|
<span translate>Received core VNL</span>
|
|
|
|
</th>
|
2022-05-31 11:36:27 +00:00
|
|
|
<th field="hasSepaVnl" centered>
|
2022-05-31 05:56:17 +00:00
|
|
|
<span translate>Received B2B VNL</span>
|
|
|
|
</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="client in model.data"
|
|
|
|
vn-anchor="::{
|
|
|
|
state: 'client.card.summary',
|
|
|
|
params: {id: client.id}
|
|
|
|
}">
|
|
|
|
<td>
|
2022-05-31 11:36:27 +00:00
|
|
|
<vn-icon-button ng-show="::client.isActive == false"
|
2022-05-31 05:56:17 +00:00
|
|
|
vn-tooltip="Client inactive"
|
|
|
|
icon="icon-disabled">
|
|
|
|
</vn-icon-button>
|
2022-05-31 11:36:27 +00:00
|
|
|
<vn-icon-button ng-show="::client.isActive && client.isFreezed == true"
|
2022-05-31 05:56:17 +00:00
|
|
|
vn-tooltip="Client frozen"
|
|
|
|
icon="icon-frozen">
|
|
|
|
</vn-icon-button>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span
|
|
|
|
vn-click-stop="clientDescriptor.show($event, client.id)"
|
|
|
|
class="link">
|
|
|
|
{{::client.id}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>{{::client.name}}</td>
|
|
|
|
<td>{{::client.socialName}}</td>
|
|
|
|
<td>{{::client.fi}}</td>
|
|
|
|
<td>
|
|
|
|
<span
|
|
|
|
vn-click-stop="workerDescriptor.show($event, client.salesPersonFk)"
|
|
|
|
ng-class="{'link': client.salesPersonFk}">
|
|
|
|
{{::client.salesPerson | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>{{::client.credit}}</td>
|
|
|
|
<td>{{::client.creditInsurance | dashIfEmpty}}</td>
|
|
|
|
<td>{{::client.phone | dashIfEmpty}}</td>
|
|
|
|
<td>{{::client.mobile | dashIfEmpty}}</td>
|
|
|
|
<td>{{::client.street | dashIfEmpty}}</td>
|
|
|
|
<td>{{::client.country | dashIfEmpty}}</td>
|
|
|
|
<td>{{::client.province | dashIfEmpty}}</td>
|
|
|
|
<td>{{::client.city | dashIfEmpty}}</td>
|
|
|
|
<td>{{::client.postcode | dashIfEmpty}}</td>
|
2022-06-29 13:21:30 +00:00
|
|
|
<td class="vn-w-xs" title="{{::client.email}}">{{::client.email | dashIfEmpty}}</td>
|
2022-05-31 05:56:17 +00:00
|
|
|
<td>{{::client.created | date:'dd/MM/yyyy'}}</td>
|
|
|
|
<td>{{::client.businessType | dashIfEmpty}}</td>
|
2022-05-31 11:36:27 +00:00
|
|
|
<td>{{::client.payMethod | dashIfEmpty}}</td>
|
2022-05-31 05:56:17 +00:00
|
|
|
<td>{{::client.sageTaxType | dashIfEmpty}}</td>
|
|
|
|
<td>{{::client.sageTransactionType | dashIfEmpty}}</td>
|
2022-05-31 11:36:27 +00:00
|
|
|
<td centered>
|
|
|
|
<vn-chip ng-class="::{
|
|
|
|
'success': client.isActive,
|
|
|
|
'alert': !client.isActive,
|
|
|
|
}">
|
|
|
|
{{ ::client.isActive ? 'Yes' : 'No' | translate}}
|
|
|
|
</vn-chip>
|
2022-05-31 05:56:17 +00:00
|
|
|
</td>
|
2022-05-31 11:36:27 +00:00
|
|
|
<td centered>
|
|
|
|
<vn-chip ng-class="::{
|
|
|
|
'success': client.isVies,
|
|
|
|
'alert': !client.isVies,
|
|
|
|
}">
|
|
|
|
{{ ::client.isVies ? 'Yes' : 'No' | translate}}
|
|
|
|
</vn-chip>
|
2022-05-31 05:56:17 +00:00
|
|
|
</td>
|
2022-05-31 11:36:27 +00:00
|
|
|
<td centered>
|
|
|
|
<vn-chip ng-class="::{
|
|
|
|
'success': client.isTaxDataChecked,
|
|
|
|
'alert': !client.isTaxDataChecked,
|
|
|
|
}">
|
|
|
|
{{ ::client.isTaxDataChecked ? 'Yes' : 'No' | translate}}
|
|
|
|
</vn-chip>
|
2022-05-31 05:56:17 +00:00
|
|
|
</td>
|
2022-05-31 11:36:27 +00:00
|
|
|
<td centered>
|
|
|
|
<vn-chip ng-class="::{
|
|
|
|
'success': client.isEqualizated,
|
|
|
|
'alert': !client.isEqualizated,
|
|
|
|
}">
|
|
|
|
{{ ::client.isEqualizated ? 'Yes' : 'No' | translate}}
|
|
|
|
</vn-chip>
|
2022-05-31 05:56:17 +00:00
|
|
|
</td>
|
2022-05-31 11:36:27 +00:00
|
|
|
<td centered>
|
|
|
|
<vn-chip ng-class="::{
|
|
|
|
'success': client.isFreezed,
|
|
|
|
'alert': !client.isFreezed,
|
|
|
|
}">
|
|
|
|
{{ ::client.isFreezed ? 'Yes' : 'No' | translate}}
|
|
|
|
</vn-chip>
|
2022-05-31 05:56:17 +00:00
|
|
|
</td>
|
2022-05-31 11:36:27 +00:00
|
|
|
<td centered>
|
|
|
|
<vn-chip ng-class="::{
|
|
|
|
'success': client.hasToInvoice,
|
|
|
|
'alert': !client.hasToInvoice,
|
|
|
|
}">
|
|
|
|
{{ ::client.hasToInvoice ? 'Yes' : 'No' | translate}}
|
|
|
|
</vn-chip>
|
2022-05-31 05:56:17 +00:00
|
|
|
</td>
|
2022-05-31 11:36:27 +00:00
|
|
|
<td centered>
|
|
|
|
<vn-chip ng-class="::{
|
|
|
|
'success': client.hasToInvoiceByAddress,
|
|
|
|
'alert': !client.hasToInvoiceByAddress,
|
|
|
|
}">
|
|
|
|
{{ ::client.hasToInvoiceByAddress ? 'Yes' : 'No' | translate}}
|
|
|
|
</vn-chip>
|
2022-05-31 05:56:17 +00:00
|
|
|
</td>
|
2022-05-31 11:36:27 +00:00
|
|
|
<td centered>
|
|
|
|
<vn-chip ng-class="::{
|
|
|
|
'success': client.isToBeMailed,
|
|
|
|
'alert': !client.isToBeMailed,
|
|
|
|
}">
|
|
|
|
{{ ::client.isToBeMailed ? 'Yes' : 'No' | translate}}
|
|
|
|
</vn-chip>
|
2022-05-31 05:56:17 +00:00
|
|
|
</td>
|
2022-05-31 11:36:27 +00:00
|
|
|
<td centered>
|
|
|
|
<vn-chip ng-class="::{
|
|
|
|
'success': client.hasLcr,
|
|
|
|
'alert': !client.hasLcr,
|
|
|
|
}">
|
|
|
|
{{ ::client.hasLcr ? 'Yes' : 'No' | translate}}
|
|
|
|
</vn-chip>
|
2022-05-31 05:56:17 +00:00
|
|
|
</td>
|
2022-05-31 11:36:27 +00:00
|
|
|
<td centered>
|
|
|
|
<vn-chip ng-class="::{
|
|
|
|
'success': client.hasCoreVnl,
|
|
|
|
'alert': !client.hasCoreVnl,
|
|
|
|
}">
|
|
|
|
{{ ::client.hasCoreVnl ? 'Yes' : 'No' | translate}}
|
|
|
|
</vn-chip>
|
2022-05-31 05:56:17 +00:00
|
|
|
</td>
|
2022-05-31 11:36:27 +00:00
|
|
|
<td centered>
|
|
|
|
<vn-chip ng-class="::{
|
|
|
|
'success': client.hasSepaVnl,
|
|
|
|
'alert': !client.hasSepaVnl,
|
|
|
|
}">
|
|
|
|
{{ ::client.hasSepaVnl ? 'Yes' : 'No' | translate}}
|
|
|
|
</vn-chip>
|
2022-05-31 05:56:17 +00:00
|
|
|
</td>
|
|
|
|
<td shrink>
|
|
|
|
<vn-horizontal class="buttons">
|
|
|
|
<vn-icon-button vn-anchor="{state: 'ticket.index', params: {q: {clientFk: client.id} } }"
|
|
|
|
vn-tooltip="Client tickets"
|
|
|
|
icon="icon-ticket">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button
|
|
|
|
vn-click-stop="$ctrl.preview(client)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="preview">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-horizontal>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</slot-table>
|
|
|
|
</smart-table>
|
|
|
|
</vn-card>
|
2022-05-31 11:36:27 +00:00
|
|
|
<a ui-sref="client.create" vn-tooltip="New client" vn-bind="+" fixed-bottom-right>
|
2022-05-31 05:56:17 +00:00
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|
|
|
|
<vn-client-descriptor-popover
|
|
|
|
vn-id="client-descriptor">
|
|
|
|
</vn-client-descriptor-popover>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="worker-descriptor">
|
|
|
|
</vn-worker-descriptor-popover>
|
|
|
|
|
|
|
|
<vn-popup vn-id="preview">
|
|
|
|
<vn-client-summary
|
|
|
|
client="$ctrl.clientSelected">
|
|
|
|
</vn-client-summary>
|
|
|
|
</vn-popup>
|
|
|
|
<vn-contextmenu
|
|
|
|
vn-id="contextmenu"
|
|
|
|
targets="['smart-table']"
|
|
|
|
model="model"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
|
|
|
<slot-menu>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.filterBySelection()">
|
|
|
|
Filter by selection
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.excludeSelection()">
|
|
|
|
Exclude selection
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.removeFilter()">
|
|
|
|
Remove filter
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-click="contextmenu.removeAllFilters()">
|
|
|
|
Remove all filters
|
|
|
|
</vn-item>
|
|
|
|
</slot-menu>
|
|
|
|
</vn-contextmenu>
|