purchase slice 1

This commit is contained in:
2026-03-15 09:04:18 -05:00
parent 5a1164f497
commit 18e4044124
11 changed files with 753 additions and 48 deletions

View File

@@ -1,4 +1,5 @@
import type { PurchaseOrderInput, PurchaseOrderStatus } from "@mrp/shared";
import type { PurchaseReceiptInput } from "@mrp/shared/dist/purchasing/types.js";
export const purchaseStatusOptions: Array<{ value: PurchaseOrderStatus; label: string }> = [
{ value: "DRAFT", label: "Draft" },
@@ -28,3 +29,11 @@ export const emptyPurchaseOrderInput: PurchaseOrderInput = {
notes: "",
lines: [],
};
export const emptyPurchaseReceiptInput: PurchaseReceiptInput = {
receivedAt: new Date().toISOString(),
warehouseId: "",
locationId: "",
notes: "",
lines: [],
};