2019-02-05 15:46:02 +00:00
|
|
|
<vn-dialog
|
|
|
|
vn-id="dialog"
|
|
|
|
class="modal-form">
|
|
|
|
<tpl-body>
|
|
|
|
<mg-ajax path="/client/api/receipts" options="vnPost"></mg-ajax>
|
|
|
|
<vn-horizontal class="header">
|
|
|
|
<h5><span translate>New payment</span></h5>
|
2018-10-24 12:10:48 +00:00
|
|
|
</vn-horizontal>
|
2019-02-05 15:46:02 +00:00
|
|
|
<div pad-medium>
|
|
|
|
<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>
|
2019-03-26 06:29:45 +00:00
|
|
|
<vn-input-number vn-one vn-focus
|
|
|
|
display-controls="false"
|
2019-02-05 15:46:02 +00:00
|
|
|
label="Amount"
|
2019-03-26 06:29:45 +00:00
|
|
|
field="$ctrl.receipt.amountPaid">
|
|
|
|
</vn-input-number>
|
2019-02-05 15:46:02 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
</div>
|
|
|
|
<vn-horizontal margin-medium class="buttons-bar">
|
|
|
|
<vn-button vn-one label="Save" ng-click="$ctrl.save()"></vn-button>
|
|
|
|
<vn-button vn-one ng-click="$ctrl.hide()" label="Cancel"></vn-button>
|
2018-10-24 12:10:48 +00:00
|
|
|
</vn-horizontal>
|
2019-02-05 15:46:02 +00:00
|
|
|
</tpl-body>
|
|
|
|
</vn-dialog>
|