Added payment date to expenses table
This commit is contained in:
@@ -84,6 +84,27 @@ export function ExpensesTable({ data, onPay, page, total, pageSize, onPageChange
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
header: "Fecha de pago",
|
||||
accessorKey: "paymentDate",
|
||||
cell: ({ row }) => {
|
||||
const paymentDate = row.getValue("paymentDate");
|
||||
if (!paymentDate) {
|
||||
return <span className="text-muted-foreground">--</span>;
|
||||
}
|
||||
const date = new Date(paymentDate as string);
|
||||
return (
|
||||
<span className="text-muted-foreground">
|
||||
{date.toLocaleDateString("es-AR", {
|
||||
timeZone: "UTC",
|
||||
day: "2-digit",
|
||||
month: "2-digit",
|
||||
year: "numeric",
|
||||
})}
|
||||
</span>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "actions",
|
||||
cell: ({ row }) => {
|
||||
|
||||
Reference in New Issue
Block a user