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-10-04 22:16:57 +00:00
|
|
|
<div class="vn-pa-md">
|
2019-02-05 15:46:02 +00:00
|
|
|
<vn-horizontal>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
2019-02-05 15:46:02 +00:00
|
|
|
label="Date"
|
2019-10-08 21:57:02 +00:00
|
|
|
field="$ctrl.receipt.payed">
|
2019-02-05 15:46:02 +00:00
|
|
|
</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>
|
2019-07-04 08:34:19 +00:00
|
|
|
<vn-autocomplete vn-one
|
|
|
|
url="/api/Banks"
|
2019-02-05 15:46:02 +00:00
|
|
|
label="Bank"
|
2019-07-04 08:34:19 +00:00
|
|
|
show-field="bank"
|
|
|
|
value-field="id"
|
2019-02-05 15:46:02 +00:00
|
|
|
field="$ctrl.receipt.bankFk">
|
2019-07-04 08:34:19 +00:00
|
|
|
</vn-autocomplete>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-input-number
|
|
|
|
vn-one
|
|
|
|
vn-focus
|
2019-02-05 15:46:02 +00:00
|
|
|
label="Amount"
|
2019-10-08 21:57:02 +00:00
|
|
|
field="$ctrl.receipt.amountPaid"
|
|
|
|
step="0.01"
|
|
|
|
rule>
|
2019-03-26 06:29:45 +00:00
|
|
|
</vn-input-number>
|
2019-02-05 15:46:02 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
</div>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-horizontal class="vn-ma-md buttons-bar">
|
2019-02-05 15:46:02 +00:00
|
|
|
<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>
|