2019-02-05 15:46:02 +00:00
|
|
|
<vn-dialog
|
|
|
|
vn-id="dialog"
|
|
|
|
class="modal-form">
|
|
|
|
<tpl-body>
|
2019-10-24 22:53:53 +00:00
|
|
|
<mg-ajax path="receipts" options="vnPost"></mg-ajax>
|
2019-02-05 15:46:02 +00:00
|
|
|
<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-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.receipt.payed">
|
2019-02-05 15:46:02 +00:00
|
|
|
</vn-date-picker>
|
|
|
|
<vn-autocomplete vn-one
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Companies"
|
2019-02-05 15:46:02 +00:00
|
|
|
label="Company"
|
|
|
|
show-field="code"
|
|
|
|
value-field="id"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.receipt.companyFk">
|
2019-02-05 15:46:02 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-07-04 08:34:19 +00:00
|
|
|
<vn-autocomplete vn-one
|
2019-10-24 22:53:53 +00:00
|
|
|
url="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-10-09 22:47:29 +00:00
|
|
|
ng-model="$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-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.receipt.amountPaid"
|
2019-10-08 21:57:02 +00:00
|
|
|
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>
|