refactor(FE): Add sales/actual price fields and summary

This commit is contained in:
rstubryan
2026-01-21 10:01:08 +07:00
parent 9bd4df3f4c
commit 5053ce35df
2 changed files with 88 additions and 54 deletions
+12 -26
View File
@@ -23,33 +23,18 @@ export type BaseSales = {
qty: number;
weight: number;
avg_weight: number;
price: number;
total_price: number;
sales_price: number;
total_sales_price: number;
actual_price: number;
total_actual_price: number;
kandang: Kandang;
payment_status: string;
};
export type BaseClosingSales = {
project_type: string;
flock_id: number;
period: number;
sales: BaseSales[];
};
export type BaseSales = {
id: number;
realization_date: string;
age: number;
do_number: string;
product: Product;
customer: Customer;
qty: number;
weight: number;
avg_weight: number;
price: number;
total_price: number;
kandang: Kandang;
payment_status: string;
};
export type ClosingSalesSummary = {
total_sales_price: number;
avg_sales_price: number;
total_actual_price: number;
avg_actual_price: number;
};
export type BaseClosingSales = {
@@ -57,6 +42,7 @@ export type BaseClosingSales = {
flock_id: number;
period: number;
sales: BaseSales[];
summary: ClosingSalesSummary;
};
export type BaseClosing = {