2020-10-31 10:22:56 +00:00
|
|
|
<mg-ajax path="Suppliers/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.supplier"
|
|
|
|
form="form"
|
|
|
|
save="patch">
|
|
|
|
</vn-watcher>
|
|
|
|
<form name="form" ng-submit="watcher.submit()" class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Alias"
|
|
|
|
ng-model="$ctrl.supplier.nickname"
|
|
|
|
rule
|
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
2023-07-13 10:59:39 +00:00
|
|
|
<vn-worker-autocomplete
|
2021-02-05 14:26:49 +00:00
|
|
|
vn-one
|
|
|
|
ng-model="$ctrl.supplier.workerFk"
|
|
|
|
show-field="nickname"
|
2021-02-08 09:14:41 +00:00
|
|
|
label="Responsible"
|
2021-02-05 14:26:49 +00:00
|
|
|
info="Responsible for approving invoices">
|
2023-07-13 10:59:39 +00:00
|
|
|
</vn-worker-autocomplete>
|
2020-10-31 10:22:56 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-check
|
2023-07-13 10:59:39 +00:00
|
|
|
label="Verified"
|
2020-11-18 10:47:23 +00:00
|
|
|
ng-model="$ctrl.supplier.isSerious">
|
2020-10-31 10:22:56 +00:00
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
2023-07-13 10:59:39 +00:00
|
|
|
label="Active"
|
2020-10-31 10:22:56 +00:00
|
|
|
ng-model="$ctrl.supplier.isActive">
|
|
|
|
</vn-check>
|
2021-11-10 07:43:25 +00:00
|
|
|
<vn-check
|
2023-07-13 10:59:39 +00:00
|
|
|
label="PayMethodChecked"
|
2021-12-14 07:23:11 +00:00
|
|
|
ng-model="$ctrl.supplier.isPayMethodChecked"
|
|
|
|
vn-acl="financial">
|
2021-11-10 07:43:25 +00:00
|
|
|
</vn-check>
|
2020-10-31 10:22:56 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textarea
|
|
|
|
vn-one
|
2023-07-13 10:59:39 +00:00
|
|
|
label="Notes"
|
2020-10-31 10:22:56 +00:00
|
|
|
ng-model="$ctrl.supplier.note"
|
|
|
|
rule>
|
|
|
|
</vn-textarea>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2020-12-15 16:09:05 +00:00
|
|
|
<vn-submit
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
|
|
|
class="cancel"
|
|
|
|
label="Undo changes"
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button>
|
2020-10-31 10:22:56 +00:00
|
|
|
</vn-button-bar>
|
2023-07-13 10:59:39 +00:00
|
|
|
</form>
|