update
This commit is contained in:
@ -326,9 +326,9 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
|
||||
// Terapkan berdasarkan searchtype + code
|
||||
if (searchType && codeValue) {
|
||||
if (searchType === "msisdn") {
|
||||
formattedFilter["origin_customer.msisdn"] = { like: `%${codeValue}%` };
|
||||
formattedFilter["Transactions.origin_msisdn"] = { like: `%${codeValue}%` };
|
||||
} else if (searchType === "fullname") {
|
||||
formattedFilter["origin_customer.fullname"] = { like: `%${codeValue}%` };
|
||||
formattedFilter["Transactions.origin_name"] = { like: `%${codeValue}%` };
|
||||
} else if (searchType === "trxid") {
|
||||
formattedFilter["Transactions.code"] = { like: `%${codeValue}%` };
|
||||
}
|
||||
|
||||
@ -98,9 +98,9 @@ const ListToolbar = () => {
|
||||
};
|
||||
|
||||
if (typeSearchValue === 'msisdn') {
|
||||
formattedFilter['origin_customer.msisdn'] = searchValue;
|
||||
formattedFilter['Transactions.origin_msisdn'] = searchValue;
|
||||
} else if (typeSearchValue === 'fullname') {
|
||||
formattedFilter['origin_customer.fullname'] = searchValue;
|
||||
formattedFilter['Transactions.origin_name'] = searchValue;
|
||||
} else if (typeSearchValue === 'trxid') {
|
||||
formattedFilter['Transactions.code'] = searchValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user