2019-10-24 22:53:53 +00:00
|
|
|
<mg-ajax path="Clients/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
2017-09-08 07:53:37 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.client"
|
|
|
|
form="form"
|
2018-10-23 09:25:51 +00:00
|
|
|
save="patch">
|
2017-05-23 08:58:17 +00:00
|
|
|
</vn-watcher>
|
2020-09-17 18:12:52 +00:00
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="PayMethods"
|
|
|
|
data="paymethods">
|
|
|
|
</vn-crud-model>
|
2019-11-10 10:08:44 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-horizontal>
|
2018-05-31 11:34:48 +00:00
|
|
|
<vn-autocomplete
|
2019-04-16 09:32:45 +00:00
|
|
|
label="Billing data"
|
2022-09-12 08:23:17 +00:00
|
|
|
vn-acl="salesAssistant, hr"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.client.payMethodFk"
|
2020-09-17 18:12:52 +00:00
|
|
|
data="paymethods"
|
2021-11-19 09:07:33 +00:00
|
|
|
fields="['isIbanRequiredForClients']"
|
2018-05-31 11:34:48 +00:00
|
|
|
initial-data="$ctrl.client.payMethod">
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-autocomplete>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-input-number
|
|
|
|
min="0"
|
|
|
|
step="1"
|
2018-05-31 11:45:51 +00:00
|
|
|
label="Due day"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.client.dueDay"
|
2022-09-12 08:23:17 +00:00
|
|
|
vn-acl="salesAssistant, hr"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-03-26 06:29:45 +00:00
|
|
|
</vn-input-number>
|
2018-05-31 11:45:51 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2018-03-12 10:10:05 +00:00
|
|
|
<vn-textfield
|
2018-05-31 11:45:51 +00:00
|
|
|
label="IBAN"
|
2024-03-05 08:48:53 +00:00
|
|
|
ng-keyup="$ctrl.client.iban = $ctrl.client.iban.toUpperCase()"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.client.iban"
|
|
|
|
rule
|
2018-11-07 08:17:07 +00:00
|
|
|
on-change="$ctrl.autofillBic()"
|
2022-09-12 08:23:17 +00:00
|
|
|
vn-acl="salesAssistant, hr">
|
2018-03-12 10:10:05 +00:00
|
|
|
</vn-textfield>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-autocomplete
|
2018-10-16 11:06:58 +00:00
|
|
|
label="Swift / BIC"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="BankEntities"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.client.bankEntityFk"
|
2023-05-04 08:00:21 +00:00
|
|
|
fields="['name', 'bic']"
|
2018-10-16 11:06:58 +00:00
|
|
|
initial-data="$ctrl.client.bankEntityFk"
|
2018-11-22 14:17:35 +00:00
|
|
|
on-change="$ctrl.autofillBic()"
|
2019-01-28 09:04:08 +00:00
|
|
|
search-function="{or: [{bic: {like: $search +'%'}}, {name: {like: '%'+ $search +'%'}}]}"
|
2018-10-16 11:06:58 +00:00
|
|
|
value-field="id"
|
|
|
|
show-field="bic"
|
2022-09-12 08:23:17 +00:00
|
|
|
vn-acl="salesAssistant, hr"
|
2018-11-23 07:44:19 +00:00
|
|
|
disabled="$ctrl.ibanCountry == 'ES'">
|
2023-05-04 08:00:21 +00:00
|
|
|
<tpl-item>
|
|
|
|
<div>{{::bic}}</div>
|
|
|
|
<div class="text-secondary text-caption">{{::name}}</div>
|
|
|
|
</tpl-item>
|
2019-10-08 21:57:02 +00:00
|
|
|
<append>
|
|
|
|
<vn-icon-button
|
|
|
|
vn-auto
|
|
|
|
icon="add_circle"
|
2021-09-15 15:58:58 +00:00
|
|
|
vn-click-stop="bankEntity.show({countryFk: $ctrl.client.countryFk})"
|
2019-10-08 21:57:02 +00:00
|
|
|
vn-tooltip="New bank entity"
|
2022-09-12 08:23:17 +00:00
|
|
|
vn-acl="salesAssistant, hr">
|
2019-10-08 21:57:02 +00:00
|
|
|
</vn-icon-button>
|
|
|
|
</append>
|
2018-10-16 11:06:58 +00:00
|
|
|
</vn-autocomplete>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-horizontal>
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-check
|
|
|
|
label="Received LCR"
|
|
|
|
ng-model="$ctrl.client.hasLcr"
|
2022-09-12 08:23:17 +00:00
|
|
|
vn-acl="salesAssistant, hr">
|
2019-10-09 22:47:29 +00:00
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
|
|
|
label="Received core VNL"
|
|
|
|
ng-model="$ctrl.client.hasCoreVnl"
|
2022-09-12 08:23:17 +00:00
|
|
|
vn-acl="salesAssistant, hr">
|
2019-10-09 22:47:29 +00:00
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
|
|
|
label="Received B2B VNL"
|
|
|
|
ng-model="$ctrl.client.hasSepaVnl"
|
2022-09-12 08:23:17 +00:00
|
|
|
vn-acl="salesAssistant, hr">
|
2019-10-09 22:47:29 +00:00
|
|
|
</vn-check>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-horizontal>
|
2017-05-23 08:58:17 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2020-12-13 13:57:42 +00:00
|
|
|
<vn-submit
|
2020-12-15 15:51:36 +00:00
|
|
|
disabled="!watcher.dataChanged()"
|
2020-12-13 13:57:42 +00:00
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
2020-12-15 15:51:36 +00:00
|
|
|
class="cancel"
|
2020-12-13 13:57:42 +00:00
|
|
|
label="Undo changes"
|
2020-12-15 15:51:36 +00:00
|
|
|
disabled="!watcher.dataChanged()"
|
2020-12-13 13:57:42 +00:00
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button>
|
2017-05-23 08:58:17 +00:00
|
|
|
</vn-button-bar>
|
2018-10-17 10:49:18 +00:00
|
|
|
</form>
|
2021-09-15 11:25:26 +00:00
|
|
|
<vn-new-bank-entity
|
|
|
|
vn-id="bankEntity"
|
2021-09-15 15:58:58 +00:00
|
|
|
on-accept="$ctrl.onAccept($data)">
|
2023-05-04 08:00:21 +00:00
|
|
|
</vn-new-bank-entity>
|