import { DocumentType } from "./DocumentType";

export interface DocumentTypeConfigItem {
  documentNoPrefix: string;
}

export const DOCUMENT_TYPE_CONFIG: Record<DocumentType, DocumentTypeConfigItem> = {
  [DocumentType.PurchaseOrder]: {
    documentNoPrefix: "PO",
  },
  [DocumentType.SalesOrder]: {
    documentNoPrefix: "PO",
  },
  [DocumentType.WarehouseReceipt]: {
    documentNoPrefix: "RK",
  },
  [DocumentType.WarehouseIssue]: {
    documentNoPrefix: "PO",
  },
  [DocumentType.ProductionIssue]: {
    documentNoPrefix: "CKDJ",
  },
  [DocumentType.ProductionReturn]: {
    documentNoPrefix: "CCTL",
  },
  [DocumentType.FinishedProductShipment]: {
    documentNoPrefix: "RK",
  },
  [DocumentType.StockTransferOrder]: {
    documentNoPrefix: "RK",
  },
  [DocumentType.InventoryCount]: {
    documentNoPrefix: "PD",
  },
};
