112 lines
3.1 KiB
TypeScript
112 lines
3.1 KiB
TypeScript
import {
|
||
CountStatusEnum,
|
||
CountTypeEnum,
|
||
WmInventoryCount,
|
||
WmInventoryCountItem,
|
||
} from "../types/wm";
|
||
import { mockLocations } from "./mockLocations";
|
||
import { mockMaterials } from "./mockMaterials";
|
||
import { mockWarehouses } from "./mockWarehouses";
|
||
import { mockZones } from "./mockZones";
|
||
|
||
export const mockInventoryCounts: WmInventoryCount[] = [
|
||
{
|
||
id: "1",
|
||
countNumber: "INV2024001",
|
||
warehouseId: "1",
|
||
warehouse: mockWarehouses.find((m) => m.id === "1"),
|
||
zoneId: "1",
|
||
zone: mockZones.find((m) => m.id === "1"),
|
||
locationId: "3",
|
||
location: mockLocations.find((m) => m.id === "3"),
|
||
countType: CountTypeEnum.Full,
|
||
status: CountStatusEnum.Completed,
|
||
scheduledDate: new Date("2024-11-01"),
|
||
startDate: new Date("2024-11-01"),
|
||
endDate: new Date("2024-11-03"),
|
||
countedBy: ["user1", "user2"],
|
||
approvedBy: "manager1",
|
||
items: [],
|
||
variances: [],
|
||
notes: "Aylık tam sayım",
|
||
creationTime: new Date("2024-10-25"),
|
||
lastModificationTime: new Date("2024-11-03"),
|
||
},
|
||
{
|
||
id: "2",
|
||
countNumber: "INV2024002",
|
||
warehouseId: "1",
|
||
warehouse: mockWarehouses.find((m) => m.id === "1"),
|
||
zoneId: "1",
|
||
zone: mockZones.find((m) => m.id === "1"),
|
||
locationId: "3",
|
||
location: mockLocations.find((m) => m.id === "3"),
|
||
countType: CountTypeEnum.Cycle,
|
||
status: CountStatusEnum.InProgress,
|
||
scheduledDate: new Date("2024-11-25"),
|
||
startDate: new Date("2024-11-25"),
|
||
endDate: undefined,
|
||
countedBy: ["user3"],
|
||
approvedBy: undefined,
|
||
items: [],
|
||
variances: [],
|
||
notes: "A grubu malzemeler döngüsel sayım",
|
||
creationTime: new Date("2024-11-20"),
|
||
lastModificationTime: new Date("2024-11-25"),
|
||
},
|
||
{
|
||
id: "3",
|
||
countNumber: "INV2024003",
|
||
warehouseId: "1",
|
||
warehouse: mockWarehouses.find((m) => m.id === "1"),
|
||
zoneId: "2",
|
||
zone: mockZones.find((m) => m.id === "2"),
|
||
locationId: "2",
|
||
location: mockLocations.find((m) => m.id === "2"),
|
||
countType: CountTypeEnum.Spot,
|
||
status: CountStatusEnum.Planned,
|
||
scheduledDate: new Date("2024-12-05"),
|
||
startDate: undefined,
|
||
endDate: undefined,
|
||
countedBy: [],
|
||
approvedBy: undefined,
|
||
items: [],
|
||
variances: [],
|
||
notes: "Şüpheli stoklar için nokta sayım",
|
||
creationTime: new Date("2024-11-30"),
|
||
lastModificationTime: new Date("2024-11-30"),
|
||
},
|
||
];
|
||
|
||
export const mockCountItems: WmInventoryCountItem[] = [
|
||
{
|
||
id: "1",
|
||
countId: "1",
|
||
materialId: "1",
|
||
material: mockMaterials.find((m) => m.id === "1"),
|
||
locationId: "1",
|
||
systemQuantity: 15,
|
||
countedQuantity: 14,
|
||
variance: -1,
|
||
variancePercentage: -6.67,
|
||
lotNumber: "LOT2024001",
|
||
countedBy: "user1",
|
||
countedAt: new Date("2024-11-01"),
|
||
notes: "Hasarlı 1 adet tespit edildi",
|
||
},
|
||
{
|
||
id: "2",
|
||
countId: "1",
|
||
materialId: "2",
|
||
material: mockMaterials.find((m) => m.id === "2"),
|
||
locationId: "1",
|
||
systemQuantity: 8,
|
||
countedQuantity: 8,
|
||
variance: 0,
|
||
variancePercentage: 0,
|
||
lotNumber: "LOT2024002",
|
||
countedBy: "user2",
|
||
countedAt: new Date("2024-11-01"),
|
||
notes: "Sayım doğru",
|
||
},
|
||
];
|