Adds a customer-account-scoped Cheque Book view under Clerk > Account Facilities (list + leaf detail, with stop-payment/report-lost/mark-used/ return actions), reachable via a new hover dropdown on the Account Facilities nav item. Also refreshes the Account Facilities page layout, and carries over a few chequebook service/detail-dialog fixes from the back-office module (used-leaf display, leaf-lookup dialog polish). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
73 lines
2.0 KiB
HTML
73 lines
2.0 KiB
HTML
<!--
|
|
Copyright since 2025 Mifos Initiative
|
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
-->
|
|
|
|
<h1 mat-dialog-title>
|
|
<span
|
|
class="serial-circle"
|
|
[ngClass]="
|
|
data.status === 'ACTIVE'
|
|
? 'ok'
|
|
: data.status === 'USED'
|
|
? 'used'
|
|
: data.status === 'STOP_PAYMENT'
|
|
? 'warn'
|
|
: data.status === 'LOST'
|
|
? 'bad'
|
|
: data.status === 'RETURNED'
|
|
? 'returned'
|
|
: 'neutral'
|
|
"
|
|
>{{ data.leafSerialNo }}</span
|
|
>
|
|
</h1>
|
|
<div mat-dialog-content>
|
|
<div class="info-grid">
|
|
<div>
|
|
<span class="k">{{ 'labels.inputs.Serial No' | translate }}</span
|
|
><span>{{ data.leafSerialNo }}</span>
|
|
</div>
|
|
<div>
|
|
<span class="k">{{ 'labels.inputs.Status' | translate }}</span
|
|
><span>{{ data.status }}</span>
|
|
</div>
|
|
@if (data.stopReason) {
|
|
<div>
|
|
<span class="k">{{ 'labels.inputs.Stop Reason' | translate }}</span
|
|
><span>{{ data.stopReason }}</span>
|
|
</div>
|
|
}
|
|
@if (data.lostReason) {
|
|
<div>
|
|
<span class="k">{{ 'labels.inputs.Lost Reason' | translate }}</span
|
|
><span>{{ data.lostReason }}</span>
|
|
</div>
|
|
}
|
|
@if (data.cancelledReason) {
|
|
<div>
|
|
<span class="k">{{ 'labels.inputs.Cancelled Reason' | translate }}</span
|
|
><span>{{ data.cancelledReason }}</span>
|
|
</div>
|
|
}
|
|
@if (data.usedReason) {
|
|
<div>
|
|
<span class="k">{{ 'labels.inputs.Used Reason' | translate }}</span
|
|
><span>{{ data.usedReason }}</span>
|
|
</div>
|
|
}
|
|
@if (data.returnReason) {
|
|
<div>
|
|
<span class="k">{{ 'labels.inputs.Return Reason' | translate }}</span
|
|
><span>{{ data.returnReason }}</span>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
<mat-dialog-actions align="end">
|
|
<button mat-raised-button mat-dialog-close>{{ 'labels.buttons.Close' | translate }}</button>
|
|
</mat-dialog-actions>
|