2021-01-07 14:14:38 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="SupplierAccounts"
|
|
|
|
fields="['id', 'supplierFk', 'iban', 'bankEntityFk']"
|
2021-01-08 09:46:50 +00:00
|
|
|
link="{supplierFk: $ctrl.$params.id}"
|
2021-01-07 14:14:38 +00:00
|
|
|
include="$ctrl.include"
|
|
|
|
data="$ctrl.supplierAccounts"
|
|
|
|
auto-load="true">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.supplierAccounts"
|
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-horizontal ng-repeat="supplierAccount in $ctrl.supplierAccounts">
|
2021-01-08 15:01:13 +00:00
|
|
|
<vn-textfield vn-three
|
|
|
|
ng-show="supplierAccount.iban || supplierAccount.iban == undefined"
|
|
|
|
label="Iban"
|
|
|
|
ng-model="supplierAccount.iban"
|
|
|
|
rule>
|
|
|
|
</vn-textfield>
|
2021-02-11 17:35:23 +00:00
|
|
|
<vn-autocomplete vn-two
|
2021-01-07 14:14:38 +00:00
|
|
|
label="Bank entity"
|
|
|
|
ng-model="supplierAccount.bankEntityFk"
|
2021-01-08 15:45:20 +00:00
|
|
|
url="BankEntities"
|
2021-01-07 14:14:38 +00:00
|
|
|
show-field="name"
|
|
|
|
rule>
|
|
|
|
</vn-autocomplete>
|
|
|
|
<append>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="add_circle"
|
|
|
|
vn-tooltip="New bank entity"
|
2021-02-17 11:07:04 +00:00
|
|
|
ng-click="$ctrl.showBankEntity($event, $index)">
|
2021-01-07 14:14:38 +00:00
|
|
|
</vn-icon-button>
|
|
|
|
</append>
|
|
|
|
<vn-none>
|
|
|
|
<vn-icon-button
|
|
|
|
vn-tooltip="Remove account"
|
|
|
|
icon="delete"
|
|
|
|
ng-click="model.remove($index)"
|
|
|
|
tabindex="-1">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-none>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-one>
|
|
|
|
<vn-icon-button
|
|
|
|
vn-bind="+"
|
|
|
|
vn-tooltip="Add account"
|
|
|
|
icon="add_circle"
|
|
|
|
ng-click="$ctrl.add()">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-one>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|
|
|
|
<!-- New bankentity dialog -->
|
2021-01-15 10:24:32 +00:00
|
|
|
<vn-new-bank-entity
|
2021-02-17 11:07:04 +00:00
|
|
|
vn-id="bankEntity"
|
2021-01-07 14:14:38 +00:00
|
|
|
on-response="$ctrl.onResponse($response)">
|
2021-01-15 10:24:32 +00:00
|
|
|
</vn-new-bank-entity>
|