| @@ -96,7 +96,7 @@ export default function SearchPaymentTable({ searchCriteria, applyGridOnReady, a | |||||
| <div style={{ width: '100%' }}> | <div style={{ width: '100%' }}> | ||||
| <FiDataGrid | <FiDataGrid | ||||
| sx={_sx} | sx={_sx} | ||||
| rowHeight={80} | |||||
| rowHeight={60} | |||||
| columns={columns} | columns={columns} | ||||
| height={500} | height={500} | ||||
| autoHeight={false} | autoHeight={false} | ||||
| @@ -113,7 +113,13 @@ export default function SearchPaymentTable({ searchCriteria, applyGridOnReady, a | |||||
| url: PAYMENT_GFMIS_LIST, | url: PAYMENT_GFMIS_LIST, | ||||
| params: _searchCriteria, | params: _searchCriteria, | ||||
| callback: (responseData) => { | callback: (responseData) => { | ||||
| onSelectionChange?.(responseData.records.map(r => r.id)); | |||||
| const newIds = responseData.records.map(r => r.id); | |||||
| if (selectedIds.length === 0) { | |||||
| onSelectionChange(newIds); | |||||
| } else { | |||||
| const stillValid = selectedIds.filter(id => newIds.includes(id)); | |||||
| onSelectionChange(stillValid); | |||||
| } | |||||
| } | } | ||||
| }), [_searchCriteria])} | }), [_searchCriteria])} | ||||
| /> | /> | ||||
| @@ -194,7 +194,7 @@ export const isPasswordExpiry = () =>{ | |||||
| } | } | ||||
| export const checkIsOnlyOnlinePaymentByIssueDate = (date) => { | export const checkIsOnlyOnlinePaymentByIssueDate = (date) => { | ||||
| const targetDate = new Date(2025, 7, 1, 0, 0, 0) //2026-01-28T08:00:00.000Z hardcode | |||||
| const targetDate = new Date(2026, 1, 6, 0, 0, 0); // 6 Feb 2026, 00:00:00 | |||||
| // const targetDate = new Date(2025, 6, 13, 8, 0, 0); //2025-07-13T08:00:00.000Z | // const targetDate = new Date(2025, 6, 13, 8, 0, 0); //2025-07-13T08:00:00.000Z | ||||
| const checkDate = DateUtils.convertToDate(date) | const checkDate = DateUtils.convertToDate(date) | ||||
| if (isDummyLoggedIn()){ | if (isDummyLoggedIn()){ | ||||