shipping
This commit is contained in:
@@ -12,6 +12,7 @@ export const permissions = {
|
||||
salesRead: "sales.read",
|
||||
salesWrite: "sales.write",
|
||||
shippingRead: "shipping.read",
|
||||
shippingWrite: "shipping.write",
|
||||
} as const;
|
||||
|
||||
export type PermissionKey = (typeof permissions)[keyof typeof permissions];
|
||||
|
||||
@@ -7,3 +7,4 @@ export * from "./files/types.js";
|
||||
export * from "./gantt/types.js";
|
||||
export * from "./inventory/types.js";
|
||||
export * from "./sales/types.js";
|
||||
export * from "./shipping/types.js";
|
||||
|
||||
42
shared/src/shipping/types.ts
Normal file
42
shared/src/shipping/types.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
export const shipmentStatuses = ["DRAFT", "PICKING", "PACKED", "SHIPPED", "DELIVERED"] as const;
|
||||
|
||||
export type ShipmentStatus = (typeof shipmentStatuses)[number];
|
||||
|
||||
export interface ShipmentOrderOptionDto {
|
||||
id: string;
|
||||
documentNumber: string;
|
||||
customerName: string;
|
||||
status: string;
|
||||
total: number;
|
||||
}
|
||||
|
||||
export interface ShipmentSummaryDto {
|
||||
id: string;
|
||||
shipmentNumber: string;
|
||||
salesOrderId: string;
|
||||
salesOrderNumber: string;
|
||||
customerName: string;
|
||||
status: ShipmentStatus;
|
||||
carrier: string;
|
||||
trackingNumber: string;
|
||||
packageCount: number;
|
||||
shipDate: string | null;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface ShipmentDetailDto extends ShipmentSummaryDto {
|
||||
serviceLevel: string;
|
||||
notes: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface ShipmentInput {
|
||||
salesOrderId: string;
|
||||
status: ShipmentStatus;
|
||||
shipDate: string | null;
|
||||
carrier: string;
|
||||
serviceLevel: string;
|
||||
trackingNumber: string;
|
||||
packageCount: number;
|
||||
notes: string;
|
||||
}
|
||||
Reference in New Issue
Block a user