feat(FE-338): Slicing UI Halaman Reporting BOP & API integration & refactor debounce input: adding useEffect for sync value

This commit is contained in:
randy-ar
2025-12-11 18:23:55 +07:00
parent d0abc0e9ff
commit 9c09395677
11 changed files with 1795 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
import { BaseApproval, CreatedUser } from '@/types/api/api-general';
import { Supplier } from '@/types/api/master-data/supplier';
import { Location } from '@/types/api/master-data/location';
import { Nonstock } from '@/types/api/master-data/nonstock';
import { Kandang } from '@/types/api/master-data/kandang';
export type Pengajuan = {
id: number;
expense_id: number;
project_flock_kandang_id: number;
kandang_id: number;
nonstock_id: number;
qty: number;
price: number;
notes: string;
nonstock: Nonstock;
created_at: string;
};
export type Realisasi = {
id: number;
expense_nonstock_id: number;
qty: number;
price: number;
notes: string;
nonstock: Nonstock;
created_at: string;
};
export type ReportExpense = {
id: number;
reference_number: string;
po_number: string;
category: string;
supplier: Supplier;
realization_date: string;
transaction_date: string;
location: Location;
pengajuan: Pengajuan;
realisasi: Realisasi;
kandang: Kandang;
created_at: string;
updated_at: string;
created_user: CreatedUser;
latest_approval: BaseApproval;
};
export type ReportExpenseSearchParams = {
locationId: string | null;
supplierId: string | null;
kandangId: string | null;
startDate: string | null;
endDate: string | null;
category: string | null;
period: string | number;
search: string;
};