update transaction history in full name customer column

This commit is contained in:
wayanrivan
2025-07-07 10:16:53 +07:00
parent 8245031af4
commit fee3ca728a

View File

@ -153,10 +153,10 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
},
{
accessorFn: (row) => {
const purchase = row?.purchase?.destination_customer?.fullname;
const transfer = row?.transfer?.destination_customer?.fullname;
const purchase = "T-PAY";
const transfer = row?.transfer.destination_name;
return purchase ?? transfer ?? "";
return purchase ?? transfer;
},
id: 'destination_customer.fullname',
header: ({ column }) => (