2022-04-07 09:41:35 +00:00
|
|
|
<div>
|
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
url="ClientUnpaids"
|
|
|
|
data="$ctrl.clientUnpaid"
|
|
|
|
id-value="$ctrl.$params.id"
|
|
|
|
id-field="clientFk"
|
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
|
|
|
<form
|
|
|
|
name="form"
|
2023-03-09 08:29:11 +00:00
|
|
|
ng-submit="$ctrl.onSubmit()"
|
2022-04-07 09:41:35 +00:00
|
|
|
class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-check
|
2023-03-09 08:29:11 +00:00
|
|
|
label="Unpaid client"
|
2022-04-07 09:41:35 +00:00
|
|
|
ng-model="watcher.hasData"
|
|
|
|
on-change="$ctrl.setDefaultDate(watcher.hasData)">
|
|
|
|
</vn-check>
|
|
|
|
</vn-vertical>
|
|
|
|
<vn-horizontal
|
|
|
|
ng-if="watcher.hasData">
|
|
|
|
<vn-date-picker
|
|
|
|
label="Date"
|
|
|
|
ng-model="$ctrl.clientUnpaid.dated"
|
|
|
|
vn-focus>
|
|
|
|
</vn-date-picker>
|
|
|
|
<vn-input-number
|
|
|
|
vn-focus
|
|
|
|
label="Amount"
|
|
|
|
ng-model="$ctrl.clientUnpaid.amount"
|
|
|
|
step="0.01"
|
|
|
|
required>
|
|
|
|
</vn-input-number>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
|
|
|
class="cancel"
|
|
|
|
label="Undo changes"
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|
2023-03-09 08:29:11 +00:00
|
|
|
</div>
|