Fix TypeScript errors in tax invoice components

This commit is contained in:
Jay Sheen
2025-09-24 09:59:15 +09:00
parent 184932f277
commit 03cfc21821
3 changed files with 17 additions and 6 deletions

View File

@@ -11,6 +11,16 @@ export interface TaxTabProps {
export interface InvoiceFilterProps {
filterOn: boolean;
setFilterOn: (filterOn: boolean) => void;
mid: string;
startDate: string;
endDate: string;
receiptType: string;
targetType: string;
setMid: (mid: string) => void;
setStartDate: (date: string) => void;
setEndDate: (date: string) => void;
setReceiptType: (type: string) => void;
setTargetType: (type: string) => void;
};
export enum DetailInfoSectionKeys {

View File

@@ -8,6 +8,7 @@ import { SortByKeys } from '@/entities/common/model/types';
import { InvoiceList } from './invoice-list';
import { useInvoiceListMutation } from '../api/use-invoice-list-mutation';
import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant';
import { ListItemProps } from '../model/types';
export const InvoiceListWrap = () => {
const [filterOn, setFilterOn] = useState<boolean>(false);

View File

@@ -21,12 +21,12 @@ export const ListDateGroup = ({
rs.push(
<ListItem
key={ key }
id={ items[i]?.id }
companyName={ items[i]?.companyName }
mid={ items[i]?.mid }
issueDate={ items[i]?.issueDate }
paymentMethod={ items[i]?.paymentMethod }
amount={ items[i]?.amount }
id={ items[i]?.id || 0 }
companyName={ items[i]?.companyName || '' }
mid={ items[i]?.mid || '' }
issueDate={ items[i]?.issueDate || '' }
paymentMethod={ items[i]?.paymentMethod || '' }
amount={ items[i]?.amount || 0 }
></ListItem>
)
}