This commit is contained in:
wayanrivan
2025-05-12 12:22:57 +07:00
parent eb508bb245
commit b2ef0a93fd
2 changed files with 4 additions and 4 deletions

View File

@ -326,9 +326,9 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
// Terapkan berdasarkan searchtype + code // Terapkan berdasarkan searchtype + code
if (searchType && codeValue) { if (searchType && codeValue) {
if (searchType === "msisdn") { if (searchType === "msisdn") {
formattedFilter["origin_customer.msisdn"] = { like: `%${codeValue}%` }; formattedFilter["Transactions.origin_msisdn"] = { like: `%${codeValue}%` };
} else if (searchType === "fullname") { } else if (searchType === "fullname") {
formattedFilter["origin_customer.fullname"] = { like: `%${codeValue}%` }; formattedFilter["Transactions.origin_name"] = { like: `%${codeValue}%` };
} else if (searchType === "trxid") { } else if (searchType === "trxid") {
formattedFilter["Transactions.code"] = { like: `%${codeValue}%` }; formattedFilter["Transactions.code"] = { like: `%${codeValue}%` };
} }

View File

@ -98,9 +98,9 @@ const ListToolbar = () => {
}; };
if (typeSearchValue === 'msisdn') { if (typeSearchValue === 'msisdn') {
formattedFilter['origin_customer.msisdn'] = searchValue; formattedFilter['Transactions.origin_msisdn'] = searchValue;
} else if (typeSearchValue === 'fullname') { } else if (typeSearchValue === 'fullname') {
formattedFilter['origin_customer.fullname'] = searchValue; formattedFilter['Transactions.origin_name'] = searchValue;
} else if (typeSearchValue === 'trxid') { } else if (typeSearchValue === 'trxid') {
formattedFilter['Transactions.code'] = searchValue; formattedFilter['Transactions.code'] = searchValue;
} }