feat(FE-344,345): Integrate HPP Ekspedisi into Closing detail

This commit is contained in:
rstubryan
2025-12-11 15:04:37 +07:00
parent 38b91a57f0
commit bd8d121113
4 changed files with 79 additions and 53 deletions
+38 -36
View File
@@ -7,26 +7,6 @@ import { Product } from '@type/api/master-data/product';
import { Customer } from '@type/api/master-data/customer';
import { BaseMetadata } from '@/types/api/api-general';
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 BaseClosingSales = {
sales: BaseSales[];
};
export type BaseClosing = {
id: number;
location_id: number;
@@ -44,22 +24,6 @@ export type BaseClosing = {
export type Closing = BaseMetadata & BaseClosing;
export type BaseCostOfRevenueExpedition = {
id: number;
expedition_name: string;
hpp: number;
};
export type BaseClosingCostOfRevenueExpedition = {
project_type: string;
flock_id: number;
period: number;
cos_expeditions: BaseCostOfRevenueExpedition[];
};
export type ClosingCostOfRevenueExpedition = BaseMetadata &
BaseClosingCostOfRevenueExpedition;
export type BaseClosingGeneralInformation = BaseClosing & {
flock_id: number;
period: number;
@@ -91,4 +55,42 @@ export type ClosingIncomingSapronak = {
};
export type ClosingOutgoingSapronak = ClosingIncomingSapronak;
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 BaseClosingSales = {
sales: BaseSales[];
};
export type ClosingSales = BaseMetadata & BaseClosingSales;
export type BaseCostOfRevenueExpedition = {
id: number;
expedition_vendor_id: number;
expedition_vendor_name: string;
qty: number;
unit_price: number;
hpp_amount: number;
};
export type BaseClosingCostOfRevenueExpedition = {
expedition_costs: BaseCostOfRevenueExpedition[];
total_hpp_amount: number;
};
export type ClosingCostOfRevenueExpedition = BaseMetadata &
BaseClosingCostOfRevenueExpedition;