2018-05-31 09:52:39 +00:00
|
|
|
<vn-crud-model
|
|
|
|
url="/item/api/TaxClasses"
|
|
|
|
fields="['id', 'description', 'code']"
|
2018-12-19 14:59:35 +00:00
|
|
|
data="classes"
|
|
|
|
auto-load="true">
|
2018-05-31 09:52:39 +00:00
|
|
|
</vn-crud-model>
|
2019-09-18 07:41:25 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.taxes"
|
2019-09-19 07:05:11 +00:00
|
|
|
form="form">
|
2019-09-18 07:41:25 +00:00
|
|
|
</vn-watcher>
|
2018-12-14 11:56:21 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.submit()" compact>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-horizontal ng-repeat="tax in $ctrl.taxes track by $index">
|
|
|
|
<vn-textfield vn-one
|
|
|
|
label="Country"
|
|
|
|
model="tax.country.country"
|
|
|
|
disabled="true">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
label="Class"
|
|
|
|
field="tax.taxClassFk"
|
2018-05-31 09:52:39 +00:00
|
|
|
data="classes"
|
2018-03-01 22:38:14 +00:00
|
|
|
value-field="id"
|
|
|
|
show-field="description">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2018-02-23 12:04:44 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
2019-09-18 07:41:25 +00:00
|
|
|
<vn-button label="Undo changes" ng-if="watcher.dataChanged()" ng-click="watcher.loadOriginalData()"></vn-button>
|
2018-02-23 12:04:44 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|