feat(FE): Add support for displaying DO number in MarketingTable

This commit is contained in:
rstubryan
2026-02-06 13:29:38 +07:00
parent 5e9ce70320
commit 304be4f432
2 changed files with 9 additions and 2 deletions
@@ -379,8 +379,13 @@ const MarketingTable = () => {
},
},
{
accessorKey: 'so_number',
accessorKey: 'so_do_number',
header: 'No. Order',
cell: (props) => {
return props.row.original.do_number
? props.row.original.do_number
: props.row.original.so_number;
},
},
{
accessorKey: 'so_date',
@@ -408,7 +413,7 @@ const MarketingTable = () => {
: approval?.step_number == 2
? 'info'
: approval?.step_number == 3
? 'warning'
? 'success'
: 'neutral'
: 'neutral'
}
+2
View File
@@ -17,6 +17,8 @@ export type BaseMarketing = {
status?: string;
so_number: string;
so_date: string;
do_number?: string;
do_date?: string;
customer: Customer;
sales_person: CreatedUser;
notes: string;