/** * Cause-document type */ export const AcquisitionCostAdjustmentSourceType = { "ACCOUNT_PAYABLE_DOCUMENT": "ACCOUNT_PAYABLE_DOCUMENT", "PURCHASE_ORDER_REVISION": "PURCHASE_ORDER_REVISION", "INVENTORY_LEDGER": "INVENTORY_LEDGER" } as const; export type AcquisitionCostAdjustmentSourceType = (typeof AcquisitionCostAdjustmentSourceType)[keyof typeof AcquisitionCostAdjustmentSourceType]; /** * Register row kind */ export const AcquisitionCostAdjustmentKind = { "INVOICE_PRICE": "INVOICE_PRICE", "ORDER_PRICE": "ORDER_PRICE", "REDISTRIBUTION": "REDISTRIBUTION" } as const; export type AcquisitionCostAdjustmentKind = (typeof AcquisitionCostAdjustmentKind)[keyof typeof AcquisitionCostAdjustmentKind]; /** * Variance kind this allocation distributes */ export const AcquisitionCostAdjustmentAllocationVarianceKind = { "INVOICE_PRICE": "INVOICE_PRICE", "ORDER_PRICE": "ORDER_PRICE" } as const; export type AcquisitionCostAdjustmentAllocationVarianceKind = (typeof AcquisitionCostAdjustmentAllocationVarianceKind)[keyof typeof AcquisitionCostAdjustmentAllocationVarianceKind]; /** * Costed event that produced this row */ export const AverageCostEventType = { "RECEIPT": "RECEIPT", "ISSUE": "ISSUE", "COST_ADJUSTMENT": "COST_ADJUSTMENT" } as const; export type AverageCostEventType = (typeof AverageCostEventType)[keyof typeof AverageCostEventType]; /** * Cause-document type: INBOUND_SHIPMENT, OUTBOUND_SHIPMENT, TRANSFER_ORDER, or STOCK_ADJUSTMENT */ export const InventoryLedgerSourceType = { "INBOUND_SHIPMENT": "INBOUND_SHIPMENT", "OUTBOUND_SHIPMENT": "OUTBOUND_SHIPMENT", "TRANSFER_ORDER": "TRANSFER_ORDER", "STOCK_ADJUSTMENT": "STOCK_ADJUSTMENT" } as const; export type InventoryLedgerSourceType = (typeof InventoryLedgerSourceType)[keyof typeof InventoryLedgerSourceType]; /** * Ordering-document type this movement fulfills */ export const InventoryLedgerOrderDocumentType = { "PURCHASE_ORDER": "PURCHASE_ORDER", "SALES_ORDER": "SALES_ORDER", "TRANSFER_ORDER": "TRANSFER_ORDER" } as const; export type InventoryLedgerOrderDocumentType = (typeof InventoryLedgerOrderDocumentType)[keyof typeof InventoryLedgerOrderDocumentType]; /** * Whether the row increases or decreases stock */ export const InventoryLedgerDirection = { "IN": "IN", "OUT": "OUT" } as const; export type InventoryLedgerDirection = (typeof InventoryLedgerDirection)[keyof typeof InventoryLedgerDirection]; /** * What the movement changes; with sourceType and direction it determines the costing treatment */ export const InventoryLedgerAction = { "QUANTITY_CHANGE": "QUANTITY_CHANGE", "TRANSFER": "TRANSFER", "STOCK_TYPE_CHANGE": "STOCK_TYPE_CHANGE" } as const; export type InventoryLedgerAction = (typeof InventoryLedgerAction)[keyof typeof InventoryLedgerAction]; /** * Stock type affected by this ledger row: AVAILABLE, BLOCKED, or IN_TRANSIT */ export const InventoryLedgerStockType = { "AVAILABLE": "AVAILABLE", "BLOCKED": "BLOCKED", "IN_TRANSIT": "IN_TRANSIT" } as const; export type InventoryLedgerStockType = (typeof InventoryLedgerStockType)[keyof typeof InventoryLedgerStockType]; /** * Source document type: PURCHASE_ORDER or TRANSFER_ORDER */ export const InventorySupplyPlanSourceType = { "PURCHASE_ORDER": "PURCHASE_ORDER", "TRANSFER_ORDER": "TRANSFER_ORDER" } as const; export type InventorySupplyPlanSourceType = (typeof InventorySupplyPlanSourceType)[keyof typeof InventorySupplyPlanSourceType]; /** * Projection lifecycle status: OPEN while expected supply remains, CLOSED when it no longer contributes open supply */ export const InventorySupplyPlanStatus = { "OPEN": "OPEN", "CLOSED": "CLOSED" } as const; export type InventorySupplyPlanStatus = (typeof InventorySupplyPlanStatus)[keyof typeof InventorySupplyPlanStatus]; /** * Adjustment type: CORRECTION, SCRAP, BLOCK, UNBLOCK */ export const StockAdjustmentAdjustmentType = { "CORRECTION": "CORRECTION", "SCRAP": "SCRAP", "BLOCK": "BLOCK", "UNBLOCK": "UNBLOCK" } as const; export type StockAdjustmentAdjustmentType = (typeof StockAdjustmentAdjustmentType)[keyof typeof StockAdjustmentAdjustmentType]; /** * Lifecycle status: DRAFT, SUBMITTED, REJECTED, CONFIRMED, CANCELLED */ export const StockAdjustmentStatus = { "DRAFT": "DRAFT", "SUBMITTED": "SUBMITTED", "CANCELLED": "CANCELLED", "CONFIRMED": "CONFIRMED", "REJECTED": "REJECTED" } as const; export type StockAdjustmentStatus = (typeof StockAdjustmentStatus)[keyof typeof StockAdjustmentStatus]; /** * Direction of stock adjustment (required for CORRECTION): INCREASE or DECREASE */ export const StockAdjustmentLineAdjustmentDirection = { "INCREASE": "INCREASE", "DECREASE": "DECREASE" } as const; export type StockAdjustmentLineAdjustmentDirection = (typeof StockAdjustmentLineAdjustmentDirection)[keyof typeof StockAdjustmentLineAdjustmentDirection]; /** * Source stock category (only used for SCRAP): AVAILABLE (default) or BLOCKED for scrapping blocked stock */ export const StockAdjustmentLineFromStockCategory = { "AVAILABLE": "AVAILABLE", "BLOCKED": "BLOCKED" } as const; export type StockAdjustmentLineFromStockCategory = (typeof StockAdjustmentLineFromStockCategory)[keyof typeof StockAdjustmentLineFromStockCategory]; /** * Current stock type: AVAILABLE, BLOCKED, or IN_TRANSIT */ export const StockLevelStockType = { "AVAILABLE": "AVAILABLE", "BLOCKED": "BLOCKED", "IN_TRANSIT": "IN_TRANSIT" } as const; export type StockLevelStockType = (typeof StockLevelStockType)[keyof typeof StockLevelStockType]; /** * Source document type: SALES_ORDER or TRANSFER_ORDER */ export const StockReservationSourceType = { "SALES_ORDER": "SALES_ORDER", "TRANSFER_ORDER": "TRANSFER_ORDER" } as const; export type StockReservationSourceType = (typeof StockReservationSourceType)[keyof typeof StockReservationSourceType]; /** * Reservation lifecycle status: OPEN while reservation demand remains, CLOSED when it no longer contributes to ATP */ export const StockReservationStatus = { "OPEN": "OPEN", "CLOSED": "CLOSED" } as const; export type StockReservationStatus = (typeof StockReservationStatus)[keyof typeof StockReservationStatus]; /** * Lifecycle status */ export const StorageLocationStatus = { "ACTIVE": "ACTIVE", "INACTIVE": "INACTIVE" } as const; export type StorageLocationStatus = (typeof StorageLocationStatus)[keyof typeof StorageLocationStatus]; /** * Document-control status: DRAFT, OPEN, or CLOSED */ export const TransferOrderStatus = { "DRAFT": "DRAFT", "OPEN": "OPEN", "CLOSED": "CLOSED" } as const; export type TransferOrderStatus = (typeof TransferOrderStatus)[keyof typeof TransferOrderStatus]; /** * Costing method */ export const ValuationPolicyCostingMethod = { "STANDARD": "STANDARD", "FIFO": "FIFO", "AVERAGE": "AVERAGE" } as const; export type ValuationPolicyCostingMethod = (typeof ValuationPolicyCostingMethod)[keyof typeof ValuationPolicyCostingMethod];