Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

feat(invoicing): filter invoicing lists by date range

naveenkash53061027363d
diff --git a/apps/erp/app/modules/invoicing/ui/Charge/ChargesTable.tsx b/apps/erp/app/modules/invoicing/ui/Charge/ChargesTable.tsx
index 4e2d131ee6..3cd64f94bd 100644
--- a/apps/erp/app/modules/invoicing/ui/Charge/ChargesTable.tsx
+++ b/apps/erp/app/modules/invoicing/ui/Charge/ChargesTable.tsx
@@ -88,7 +88,7 @@ const ChargesTable = memo(({ data, count }: ChargesTableProps) => {
accessorKey: "transactionDate",
header: t`Transaction Date`,
cell: (item) => formatDate(item.getValue<string>(), undefined, locale),
- meta: { icon: <LuCalendar /> }
+ meta: { filter: { type: "dateRange" }, icon: <LuCalendar /> }
},
{
accessorKey: "merchantName",
diff --git a/apps/erp/app/modules/invoicing/ui/Memo/MemosTable.tsx b/apps/erp/app/modules/invoicing/ui/Memo/MemosTable.tsx
index df96b8a119..a54f2dee84 100644
--- a/apps/erp/app/modules/invoicing/ui/Memo/MemosTable.tsx
+++ b/apps/erp/app/modules/invoicing/ui/Memo/MemosTable.tsx
@@ -172,7 +172,7 @@ const MemosTable = memo(({ data, count, party }: MemosTableProps) => {
cell: (item) => (
<DateTime value={item.getValue<string>()} variant="date" />
),
- meta: { icon: <LuCalendar /> }
+ meta: { filter: { type: "dateRange" }, icon: <LuCalendar /> }
},
{
accessorKey: "amount",
diff --git a/apps/erp/app/modules/invoicing/ui/Payment/PaymentsTable.tsx b/apps/erp/app/modules/invoicing/ui/Payment/PaymentsTable.tsx
index 59f482f1cd..4ce717076c 100644
--- a/apps/erp/app/modules/invoicing/ui/Payment/PaymentsTable.tsx
+++ b/apps/erp/app/modules/invoicing/ui/Payment/PaymentsTable.tsx
@@ -158,7 +158,7 @@ const PaymentsTable = memo(({ data, count }: PaymentsTableProps) => {
cell: (item) => (
<DateTime value={item.getValue<string>()} variant="date" />
),
- meta: { icon: <LuCalendar /> }
+ meta: { filter: { type: "dateRange" }, icon: <LuCalendar /> }
},
{
accessorKey: "totalAmount",
diff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicesTable.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicesTable.tsx
index fdccca17cc..4423dbc4b2 100644
--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicesTable.tsx
+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicesTable.tsx
@@ -200,6 +200,9 @@ const PurchaseInvoicesTable = memo(
<DateTime value={item.getValue<string>()} variant="date" />
),
meta: {
+ filter: {
+ type: "dateRange"
+ },
icon: <LuCalendar />
}
},
@@ -210,6 +213,9 @@ const PurchaseInvoicesTable = memo(
<DateTime value={item.getValue<string>()} variant="date" />
),
meta: {
+ filter: {
+ type: "dateRange"
+ },
icon: <LuCalendar />
}
},
@@ -220,6 +226,9 @@ const PurchaseInvoicesTable = memo(
<DateTime value={item.getValue<string>()} variant="date" />
),
meta: {
+ filter: {
+ type: "dateRange"
+ },
icon: <LuCalendar />
}
},
@@ -230,6 +239,9 @@ const PurchaseInvoicesTable = memo(
<DateTime value={item.getValue<string>()} variant="date" />
),
meta: {
+ filter: {
+ type: "dateRange"
+ },
icon: <LuCalendar />
}
},
diff --git a/apps/erp/app/modules/invoicing/ui/Reimbursement/ReimbursementsTable.tsx b/apps/erp/app/modules/invoicing/ui/Reimbursement/ReimbursementsTable.tsx
index af6cbc7362..06f9944a24 100644
--- a/apps/erp/app/modules/invoicing/ui/Reimbursement/ReimbursementsTable.tsx
+++ b/apps/erp/app/modules/invoicing/ui/Reimbursement/ReimbursementsTable.tsx
@@ -95,7 +95,7 @@ const ReimbursementsTable = memo(
header: t`Date`,
cell: (item) =>
formatDate(item.getValue<string>(), undefined, locale),
- meta: { icon: <LuCalendar /> }
+ meta: { filter: { type: "dateRange" }, icon: <LuCalendar /> }
},
{
accessorKey: "reference",
diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoicesTable.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoicesTable.tsx
index 454f361014..5f62549911 100644
--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoicesTable.tsx
+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoicesTable.tsx
@@ -193,6 +193,9 @@ const SalesInvoicesTable = memo(({ data, count }: SalesInvoicesTableProps) => {
<DateTime value={item.getValue<string>()} variant="date" />
),
meta: {
+ filter: {
+ type: "dateRange"
+ },
icon: <LuCalendar />
}
},
@@ -203,6 +206,9 @@ const SalesInvoicesTable = memo(({ data, count }: SalesInvoicesTableProps) => {
<DateTime value={item.getValue<string>()} variant="date" />
),
meta: {
+ filter: {
+ type: "dateRange"
+ },
icon: <LuCalendar />
}
},
@@ -213,6 +219,9 @@ const SalesInvoicesTable = memo(({ data, count }: SalesInvoicesTableProps) => {
<DateTime value={item.getValue<string>()} variant="date" />
),
meta: {
+ filter: {
+ type: "dateRange"
+ },
icon: <LuCalendar />
}
},
@@ -223,6 +232,9 @@ const SalesInvoicesTable = memo(({ data, count }: SalesInvoicesTableProps) => {
<DateTime value={item.getValue<string>()} variant="date" />
),
meta: {
+ filter: {
+ type: "dateRange"
+ },
icon: <LuCalendar />
}
},