2020-12-14 15:09:17 +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>
|
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="PayMethods"
|
|
|
|
data="paymethods">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="PayDems"
|
|
|
|
data="paydems">
|
|
|
|
</vn-crud-model>
|
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Billing data"
|
|
|
|
vn-acl="salesAssistant"
|
|
|
|
ng-model="$ctrl.supplier.payMethodFk"
|
|
|
|
data="paymethods"
|
2021-11-08 14:04:33 +00:00
|
|
|
fields="['ibanRequiredForSuppliers']"
|
2020-12-14 15:09:17 +00:00
|
|
|
initial-data="$ctrl.supplier.payMethod">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Payment deadline"
|
|
|
|
vn-acl="salesAssistant"
|
|
|
|
ng-model="$ctrl.supplier.payDemFk"
|
|
|
|
data="paydems"
|
|
|
|
fields="['id', 'payDem']"
|
|
|
|
show-field="payDem"
|
|
|
|
initial-data="$ctrl.supplier.payDem">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-input-number
|
|
|
|
vn-one
|
|
|
|
min="0"
|
|
|
|
step="1"
|
|
|
|
label="Pay day"
|
|
|
|
ng-model="$ctrl.supplier.payDay"
|
|
|
|
vn-focus
|
|
|
|
rule>
|
|
|
|
</vn-input-number>
|
|
|
|
</vn-horizontal>
|
2021-06-15 11:14:21 +00:00
|
|
|
</vn-card>
|
2020-12-14 15:09:17 +00:00
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit
|
|
|
|
label="Save"
|
2020-12-16 14:44:35 +00:00
|
|
|
disabled="!watcher.dataChanged()"
|
2020-12-14 15:09:17 +00:00
|
|
|
vn-acl="salesAssistant">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
2020-12-16 14:44:35 +00:00
|
|
|
class="cancel"
|
2020-12-14 15:09:17 +00:00
|
|
|
label="Undo changes"
|
2020-12-16 14:44:35 +00:00
|
|
|
disabled="!watcher.dataChanged()"
|
2020-12-14 15:09:17 +00:00
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|