2018-10-24 12:10:48 +00:00
|
|
|
<mg-ajax path="/client/api/receipts" options="vnPost"></mg-ajax>
|
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.receipt"
|
|
|
|
form="form"
|
|
|
|
save="post">
|
|
|
|
</vn-watcher>
|
2018-12-14 11:56:21 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
|
2018-10-24 12:10:48 +00:00
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-date-picker vn-one
|
|
|
|
label="Date"
|
|
|
|
model="$ctrl.receipt.payed"
|
|
|
|
ini-options="{dateFormat: 'd-m-Y', time_24hr: true}">
|
|
|
|
</vn-date-picker>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
url="/api/Companies"
|
|
|
|
label="Company"
|
|
|
|
show-field="code"
|
|
|
|
value-field="id"
|
|
|
|
field="$ctrl.receipt.companyFk">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
margin-medium-right
|
|
|
|
label="Bank"
|
|
|
|
field="$ctrl.receipt.bankFk">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
margin-medium-right
|
|
|
|
label="Amount"
|
2019-01-27 23:26:01 +00:00
|
|
|
field="$ctrl.receipt.amountPaid"
|
2018-10-24 12:10:48 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
|
|
|
<vn-button ng-click="$ctrl.cancel($event)" label="Cancel"></vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|