mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 06:15:47 +00:00
chore: prettier format
This commit is contained in:
Vendored
+1
@@ -98,6 +98,7 @@ export type flags =
|
||||
| 'OVK';
|
||||
|
||||
export type BaseApproval = {
|
||||
id?: number;
|
||||
step_number: number;
|
||||
step_name: string;
|
||||
action: string;
|
||||
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
import { Customer } from '@/types/api/master-data/customer';
|
||||
import {
|
||||
BaseApproval,
|
||||
BaseMetadata,
|
||||
CreatedUser,
|
||||
} from '@/types/api/api-general';
|
||||
import { ProductWarehouse } from '@/types/api/inventory/product-warehouse';
|
||||
import { Kandang } from '@/types/api/master-data/kandang';
|
||||
|
||||
export type BaseMarketing = {
|
||||
id: number;
|
||||
status?: string;
|
||||
so_number: string;
|
||||
customer: Customer;
|
||||
so_docs: string;
|
||||
so_date: string;
|
||||
sales_person: CreatedUser;
|
||||
notes: string;
|
||||
grand_total: number;
|
||||
approval: BaseApproval;
|
||||
marketing_products?: MarketingProduct[];
|
||||
};
|
||||
|
||||
export type MarketingProduct = {
|
||||
id: number;
|
||||
qty: number;
|
||||
unit_price: number;
|
||||
avg_weight: number;
|
||||
total_weight: number;
|
||||
total_price: number;
|
||||
product_warehouse: ProductWarehouse;
|
||||
marketing_delivery_products?: MarketingDeliveryProducts;
|
||||
};
|
||||
|
||||
export type MarketingDeliveryProducts = {
|
||||
id: number;
|
||||
qty: number;
|
||||
unit_price: number;
|
||||
avg_weight: number;
|
||||
total_weight: number;
|
||||
total_price: number;
|
||||
delivery_date: string;
|
||||
vehicle_number: string;
|
||||
do_number?: string | undefined;
|
||||
};
|
||||
|
||||
export type Marketing = BaseMetadata & BaseMarketing;
|
||||
|
||||
export type CreateMarketingPayload = {
|
||||
customer_id: number;
|
||||
date: string;
|
||||
notes: string;
|
||||
marketing_products: CreateMarketingProductPayload[];
|
||||
};
|
||||
export type UpdateMarketingPayload = CreateMarketingPayload;
|
||||
|
||||
export type CreateMarketingProductPayload = {
|
||||
id?: number;
|
||||
vehicle_number: string;
|
||||
kandang_id: string | number | undefined;
|
||||
kandang: Kandang | undefined;
|
||||
product_warehouse_id: string | number | undefined;
|
||||
product_warehouse: ProductWarehouse | undefined;
|
||||
unit_price: string | number | undefined;
|
||||
total_weight: string | number | undefined;
|
||||
qty: string | number | undefined;
|
||||
uom: string | undefined;
|
||||
avg_weight: string | number | undefined;
|
||||
total_price: string | number | undefined;
|
||||
delivery_date?: string | null;
|
||||
};
|
||||
export type UpdateMarketingProductPayload = CreateMarketingProductPayload;
|
||||
+3
@@ -7,7 +7,9 @@ export type BaseKandang = {
|
||||
name: string;
|
||||
status: string;
|
||||
location: BaseLocation;
|
||||
capacity: number;
|
||||
pic: BaseUser;
|
||||
project_flock_kandang_id?: number;
|
||||
capacity: number;
|
||||
};
|
||||
|
||||
@@ -16,6 +18,7 @@ export type Kandang = BaseMetadata & BaseKandang;
|
||||
export type CreateKandangPayload = {
|
||||
name: string;
|
||||
location_id: number;
|
||||
capacity: number;
|
||||
pic_id: number;
|
||||
};
|
||||
|
||||
|
||||
+5
-3
@@ -14,9 +14,11 @@ export type Chickin = BaseMetadata & BaseChickin;
|
||||
|
||||
export type CreateChickinPayload = {
|
||||
project_flock_kandang_id: number;
|
||||
chick_in_date: string;
|
||||
note: string;
|
||||
quantity?: number;
|
||||
chickin_requests: {
|
||||
chick_in_date: string;
|
||||
note?: string;
|
||||
product_warehouse_id: number;
|
||||
}[];
|
||||
};
|
||||
|
||||
export type UpdateChickinPayload = CreateChickinPayload & {
|
||||
|
||||
+24
-1
@@ -1,5 +1,8 @@
|
||||
import { Kandang } from '@/type/master-data/kandang';
|
||||
import { ProjectFlock } from '@/types/api/production/project-flock';
|
||||
import { ProductWarehouse } from '@/types/api/inventory/product-warehouse';
|
||||
import { Supplier } from '../master-data/supplier';
|
||||
import { BaseApproval } from '../api-general';
|
||||
|
||||
export type BaseProjectFlockKandang = {
|
||||
id: number;
|
||||
@@ -7,7 +10,27 @@ export type BaseProjectFlockKandang = {
|
||||
kandang_id: number;
|
||||
kandang: Kandang;
|
||||
project_flock: ProjectFlock;
|
||||
available_quantity?: number;
|
||||
available_qtys?: AvailableQty[];
|
||||
chickins?: Chickin[];
|
||||
approval: BaseApproval;
|
||||
};
|
||||
|
||||
export type AvailableQty = {
|
||||
chick_in_date?: string;
|
||||
available_qty: number;
|
||||
product_warehouse: ProductWarehouse;
|
||||
note?: string;
|
||||
};
|
||||
|
||||
export type Chickin = {
|
||||
id: number;
|
||||
project_flock_kandang_id: number;
|
||||
chick_in_date: string;
|
||||
product_warehouse_id: number;
|
||||
product_warehouse: ProductWarehouse;
|
||||
usage_qty: number;
|
||||
pending_usage_qty: number;
|
||||
note: string;
|
||||
};
|
||||
|
||||
export type ProjectFlockKandang = BaseProjectFlockKandang;
|
||||
|
||||
+4
-3
@@ -10,8 +10,9 @@ export type BaseProjectFlock = {
|
||||
name: string;
|
||||
flock_name: string;
|
||||
status: string;
|
||||
flock: Flock;
|
||||
flock_id: number;
|
||||
flock?: Flock;
|
||||
flock_i?: number;
|
||||
flock_name: string;
|
||||
area: Area;
|
||||
area_id: number;
|
||||
category: string;
|
||||
@@ -35,7 +36,7 @@ export type PeriodFlock = {
|
||||
export type ProjectFlock = BaseMetadata & BaseProjectFlock;
|
||||
|
||||
export type CreateProjectFlockPayload = {
|
||||
flock_id: number;
|
||||
flock_name: string;
|
||||
area_id: number;
|
||||
category: string;
|
||||
fcr_id: number;
|
||||
|
||||
Reference in New Issue
Block a user