allowance Deduction

This commit is contained in:
Mohaimen Hasan 2026-11-18 17:23:14 +06:00
parent 1538e91e5a
commit 64495523aa
4 changed files with 30 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<app-loading-panel></app-loading-panel> <app-loading-panel></app-loading-panel>
<div class="col-12"> <div class="col-12">
<kendo-grid [data]="adparameters" <kendo-grid [data]="adparameters" class="grid-header-nowrap grid-cell-wrap"
(add)="addHandler()" (add)="addHandler()"
(edit)="editHandler($event)"> (edit)="editHandler($event)">
@ -17,14 +17,14 @@
<kendo-grid-column field="allowDeductName" title="Allowance/Deduction" width="20%"> <kendo-grid-column field="allowDeductName" title="Allowance/Deduction" width="20%">
</kendo-grid-column> </kendo-grid-column>
<kendo-grid-column field="gradeNames" title="Grades" width="45%"> <kendo-grid-column field="gradeNames" title="Grades" width="40%">
</kendo-grid-column> </kendo-grid-column>
<kendo-grid-column field="periodicity" title="Periodicity" width="10%"> <kendo-grid-column field="periodicity" title="Periodicity" width="10%">
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex"> <ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
{{preodicityString(rowIndex)}} {{preodicityString(rowIndex)}}
</ng-template> </ng-template>
</kendo-grid-column> </kendo-grid-column>
<kendo-grid-column field="isTaxable" title="Taxable ?" width="5%"> <kendo-grid-column field="isTaxable" title="Taxable ?" width="10%">
<ng-template kendoGridCellTemplate let-dataItem> <ng-template kendoGridCellTemplate let-dataItem>
{{dataItem.isTaxable ? 'Yes' : 'No'}} {{dataItem.isTaxable ? 'Yes' : 'No'}}
</ng-template> </ng-template>

View File

@ -60,7 +60,8 @@ kendo-numerictextbox{
/* the four check boxes in two even columns, starting under the inputs (label width + gap) */ /* the four check boxes in two even columns, starting under the inputs (label width + gap) */
.adp-checks { .adp-checks {
display: grid; display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr)); /* two columns while they fit, one column when the section gets narrow */
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 8px 12px; gap: 8px 12px;
margin: 4px 0 0 120px; margin: 4px 0 0 120px;
padding: 10px 12px; padding: 10px 12px;
@ -69,16 +70,25 @@ kendo-numerictextbox{
background: #fafbfc; background: #fafbfc;
} }
/* a long label wraps inside its own column instead of running out of the box */
.adp-check { .adp-check {
display: flex; display: flex;
align-items: center; align-items: flex-start;
gap: 6px; gap: 6px;
margin: 0; margin: 0;
white-space: nowrap; min-width: 0;
}
.adp-check input {
flex: 0 0 auto;
margin-top: 2px;
} }
.adp-check .k-checkbox-label { .adp-check .k-checkbox-label {
margin: 0; margin: 0;
min-width: 0;
white-space: normal;
overflow-wrap: anywhere;
} }
/* the tab panels on this page are empty (only the headers are used), so drop their padding */ /* the tab panels on this page are empty (only the headers are used), so drop their padding */

View File

@ -9,6 +9,18 @@
padding: 0 !important; padding: 0 !important;
} }
// Opt-in: keep every column title of a grid on one line (overrides the wrapping default above).
.k-grid.grid-header-nowrap .k-column-title {
white-space: nowrap;
}
// Opt-in: body cell values wrap inside their column, even a long value with no spaces
// (e.g. "AVP,SPO,PO,FAVP,...").
.k-grid.grid-cell-wrap .k-grid-content td {
white-space: normal;
overflow-wrap: anywhere;
}
// Compact "dashboard widget" grid header variant (ESS dashboards), scoped under .dashboard-card // Compact "dashboard widget" grid header variant (ESS dashboards), scoped under .dashboard-card
// so it doesn't change the app-wide default .k-grid-header color set in styles.scss. // so it doesn't change the app-wide default .k-grid-header color set in styles.scss.
.dashboard-card .k-grid-header { .dashboard-card .k-grid-header {

View File

@ -1,4 +1,4 @@
{ {
"version": "20261118-01", "version": "20261118-02",
"buildTime": "2026-11-18T04:58:16.4380254Z" "buildTime": "2026-11-18T08:51:48.7258631Z"
} }