mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 22:05:45 +00:00
refactor(FE-327): change closing API paths and sales types
This commit is contained in:
Vendored
+8
-12
@@ -1,31 +1,27 @@
|
||||
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 BaseSales = {
|
||||
id: number;
|
||||
realization_date: string;
|
||||
week_age: number;
|
||||
age_label: string;
|
||||
delivery_order_number: string;
|
||||
age: number;
|
||||
do_number: string;
|
||||
product: Product;
|
||||
product_category: ProductCategory;
|
||||
customer: Customer;
|
||||
quantity: number;
|
||||
qty: number;
|
||||
weight: number;
|
||||
average: number;
|
||||
avg_weight: number;
|
||||
price: number;
|
||||
total: number;
|
||||
kandang: Kandang;
|
||||
kandang_id: number;
|
||||
total_price: number;
|
||||
payment_status: string;
|
||||
};
|
||||
|
||||
export type BaseClosingSales = {
|
||||
project_type: string;
|
||||
penjualan: BaseSales[];
|
||||
flock_id: number;
|
||||
period: number;
|
||||
sales: BaseSales[];
|
||||
};
|
||||
|
||||
export type ClosingSales = BaseMetadata & BaseClosingSales;
|
||||
|
||||
Reference in New Issue
Block a user