// @generated — do not edit
import { defineLifecycle } from "@tailor-platform/erp-kit/core";

export const purchaseRequisitionLifecycle = defineLifecycle({
    submit: { from: ["DRAFT"], to: "SUBMITTED" },
    recall: { from: ["SUBMITTED"], to: "DRAFT" },
    reject: { from: ["SUBMITTED"], to: "DRAFT" },
    approve: { from: ["SUBMITTED"], to: "APPROVED" },
    convert: { from: ["APPROVED"], to: "CONVERTED" },
    close: { from: ["APPROVED"], to: "CLOSED" },
    cancel: { from: ["DRAFT", "SUBMITTED"], to: "CANCELLED" },
});

export type PurchaseRequisitionStatus = typeof purchaseRequisitionLifecycle.states[number];
