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

export const serialNumberLifecycle = defineLifecycle({
    postGoodsIssue: { from: ["AVAILABLE"], to: "ISSUED" },
    return: { from: ["ISSUED"], to: "RETURNED" },
    restock: { from: ["RETURNED"], to: "AVAILABLE" },
    scrap: { from: ["RETURNED", "AVAILABLE"], to: "SCRAPPED" },
});

export type SerialNumberStatus = typeof serialNumberLifecycle.states[number];
