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

export const purchaseBillLifecycle = defineLifecycle({
    block: { from: ["DRAFT"], to: "BLOCKED" },
    match: { from: ["DRAFT"], to: "MATCHED" },
    release: { from: ["BLOCKED"], to: "MATCHED" },
    cancel: { from: ["DRAFT", "BLOCKED"], to: "CANCELLED" },
});

export type PurchaseBillStatus = typeof purchaseBillLifecycle.states[number];
