Issues_Expense_2W Changes of Expense, Payment Request and Recurring Expense. #505

Closed
kartik.sharma wants to merge 12 commits from Issues_Expense_2W into upgrade_Expense
Showing only changes of commit efef7d273d - Show all commits

View File

@ -181,8 +181,13 @@ const PaymentRequestList = ({ filters, groupBy = "submittedBy", search }) => {
if (isLoading) return <ExpenseTableSkeleton headers={header} />;
const grouped = groupBy
? groupByField(data?.data ?? [], groupBy)
? Object.fromEntries(
Object.entries(groupByField(data?.data ?? [], groupBy)).sort(([keyA], [keyB]) =>
keyA.localeCompare(keyB)
)
)
: { All: data?.data ?? [] };
const IsGroupedByDate = [
{ key: "transactionDate", displayField: "Transaction Date" },
{ key: "createdAt", displayField: "created Date" },