codex: initiated changes

This commit is contained in:
Adnan Zahir
2026-04-01 10:14:05 +07:00
parent 7bee13124d
commit 8d92da75cf
20 changed files with 287 additions and 204 deletions
@@ -81,7 +81,7 @@ const getTableColumns = (
},
{
key: 'warehouse',
header: 'Gudang',
header: 'Gudang Fisik',
flex: 1.2,
align: 'left',
cell: ({ row }) => row.warehouse?.name ?? '-',
@@ -30,7 +30,7 @@ export const generateDailyMarketingExcel = async (
{ header: 'Tanggal Jual', key: 'soDate', width: 15 },
{ header: 'Tanggal Realisasi', key: 'realizationDate', width: 18 },
{ header: 'Aging', key: 'aging', width: 10 },
{ header: 'Gudang', key: 'warehouse', width: 25 },
{ header: 'Gudang Fisik', key: 'warehouse', width: 25 },
{ header: 'Pelanggan', key: 'customer', width: 25 },
{ header: 'No. DO', key: 'doNumber', width: 15 },
{ header: 'Sales/Marketing', key: 'sales', width: 20 },
@@ -97,7 +97,7 @@ export const generateDailyMarketingExcel = async (
});
}
worksheet.columns.forEach((column) => {
worksheet.columns.forEach((column: { width?: number }) => {
if (column.width && column.width < 10) {
column.width = 10;
}
@@ -508,7 +508,7 @@ const DailyMarketingTab = ({ tabId }: DailyMarketingTabProps) => {
},
{
id: 'warehouse',
header: 'Gudang',
header: 'Gudang Fisik',
accessorKey: 'warehouse',
cell: ({ row }) => row.original.warehouse.name,
footer: () => <div className='font-semibold text-gray-900'>-</div>,
@@ -858,8 +858,8 @@ const DailyMarketingTab = ({ tabId }: DailyMarketingTabProps) => {
{/* Warehouse Filter */}
<SelectInput
label='Gudang'
placeholder='Pilih Gudang'
label='Gudang Fisik'
placeholder='Pilih Gudang Fisik'
options={warehouseOptions}
isLoading={isLoadingWarehouses}
value={warehouseValue}