salix/modules/client/front/balance/create/index.html

63 lines
1.8 KiB
HTML
Raw Normal View History

2020-04-25 09:50:04 +00:00
<tpl-title translate>
New payment
</tpl-title>
<tpl-body>
2020-09-17 18:12:52 +00:00
<vn-crud-model
auto-load="true"
url="banks"
data="banks"
order="bank">
</vn-crud-model>
<vn-crud-model
auto-load="true"
url="Companies"
data="companies"
order="code">
</vn-crud-model>
2020-04-25 09:50:04 +00:00
<vn-horizontal>
<vn-date-picker
label="Date"
ng-model="$ctrl.receipt.payed">
</vn-date-picker>
<vn-autocomplete
2020-09-17 18:12:52 +00:00
data="companies"
2020-04-25 09:50:04 +00:00
label="Company"
show-field="code"
value-field="id"
ng-model="$ctrl.receipt.companyFk">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete
label="Bank"
2020-09-17 18:12:52 +00:00
data="banks"
2020-04-25 09:50:04 +00:00
show-field="bank"
value-field="id"
2020-08-27 09:58:28 +00:00
fields="['accountingTypeFk']"
include="{relation: 'accountingType'}"
2020-08-27 06:24:21 +00:00
order="id"
ng-model="$ctrl.receipt.bankFk"
search-function="{or: [{id: $search}, {bank: {like: '%'+ $search +'%'}}]}"
selection="$ctrl.bankSelection">
<tpl-item>{{id}}: {{bank}}</tpl-item>
2020-04-25 09:50:04 +00:00
</vn-autocomplete>
<vn-input-number
vn-focus
label="Amount"
ng-model="$ctrl.receipt.amountPaid"
step="0.01"
rule>
</vn-input-number>
</vn-horizontal>
2020-08-27 06:24:21 +00:00
<vn-horizontal>
<vn-textfield
label="Reference"
ng-model="$ctrl.receipt.description"
rule>
</vn-textfield>
</vn-horizontal>
2020-04-25 09:50:04 +00:00
</tpl-body>
<tpl-buttons>
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
<button response="accept" translate vn-focus>Accept</button>
</tpl-buttons>