Merge branch 'development' into feat/FE/daily-checklist

This commit is contained in:
ValdiANS
2026-01-08 10:04:32 +07:00
44 changed files with 966 additions and 552 deletions
+15 -1
View File
@@ -14,6 +14,14 @@ type MovementWarehouse = {
};
};
export type MovementDocument = {
id: number;
path: string;
name: string;
ext: string;
size: number;
};
export type BaseMovement = {
id: number;
transfer_reason: string;
@@ -39,6 +47,7 @@ export type BaseMovement = {
document_path: string;
shipping_cost_item: number;
shipping_cost_total: number;
document?: MovementDocument;
items: {
id: number;
stock_transfer_detail_id: number;
@@ -49,7 +58,7 @@ export type BaseMovement = {
export type Movement = BaseMetadata & BaseMovement;
export type CreateMovementPayload = {
export type CreateMovementPayloadData = {
transfer_reason: string;
transfer_date: string;
source_warehouse_id: number;
@@ -71,3 +80,8 @@ export type CreateMovementPayload = {
}[];
}[];
};
export type CreateMovementPayload = {
data: CreateMovementPayloadData;
documents?: File[];
};
+2
View File
@@ -10,6 +10,8 @@ export type BaseInventoryProduct = {
name: string;
brand: string;
sku: string;
ProductPrice: number;
SellingPrice?: number;
product_price: number;
selling_price?: number;
tax?: number;
+3 -10
View File
@@ -10,9 +10,10 @@ export type BaseProjectFlockKandang = {
kandang_id: number;
kandang: Kandang;
project_flock: ProjectFlock;
available_qtys?: AvailableQty[];
chickins?: Chickin[];
approval: BaseApproval;
chickins?: Chickin[];
available_qtys?: AvailableQty[];
chickin_approval?: BaseApproval;
};
export type AvailableQty = {
@@ -56,14 +57,6 @@ export type ClosingExpense = {
reference_number: string;
};
// "flag_name": "PAKAN",
// "product_warehouse_id": 14,
// "product_id": 8,
// "product_name": "281 SPECIAL STARTER",
// "product_category": "Bahan Baku",
// "uom": "Kilogram",
// "quantity": 1100
export type StockItem = {
flag_name: string;
product_warehouse_id: number;
+1 -3
View File
@@ -1,7 +1,4 @@
import { BaseMetadata } from '@/types/api/api-general';
import { Location } from '@/types/api/location/location';
import { ProjectFlock } from '@/types/api/project-flock/project-flock';
import { Kandang } from '@/types/api/kandang/kandang';
import { BaseApproval } from '@/types/api/approval/approval';
// ==================== GET ALL RESPONSE ====================
@@ -11,6 +8,7 @@ export type Uniformity = BaseMetadata & {
location_name: string;
flock_name: string;
kandang_name: string;
file_name: string;
applied_at: string;
week: number;
status: string;
+2
View File
@@ -10,6 +10,8 @@ export type PurchaseItemProduct = {
id: number;
name: string;
flags?: string[];
ProductPrice?: number;
SellingPrice?: number;
uom?: {
name: string;
};