refactor(FE-326): Add ClosingApiService and types for closing sales data

This commit is contained in:
rstubryan
2025-12-04 11:51:11 +07:00
parent 411c2586f5
commit 991a594ee1
2 changed files with 189 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import { BaseMetadata } from '@/types/api/api-general';
import { Kandang } from '@type/api/master-data/kandang';
import { Product } from '@type/api/master-data/product';
import { ProductCategory } from '@type/api/master-data/product-category';
import { Customer } from '@type/api/master-data/customer';
export type BaseClosingSales = {
id: number;
realization_date: string;
week_age: number;
age_label: string;
delivery_order_number: string;
product: Product;
product_category: ProductCategory;
customer: Customer;
quantity: number;
weight: number;
average: number;
price: number;
total: number;
kandang: Kandang;
kandang_id: number;
payment_status: string;
};
export type ClosingSales = BaseMetadata & BaseClosingSales;