mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 22:05:45 +00:00
feat(FE-344,345): Integrate HPP Ekspedisi into Closing detail
This commit is contained in:
Vendored
+38
-36
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user