mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 07:15:44 +00:00
feat(FE-338): Slicing UI Halaman Reporting BOP & API integration & refactor debounce input: adding useEffect for sync value
This commit is contained in:
+57
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user