fix: Fixes purchase order generation through api allows id to be passed in.

This commit is contained in:
2025-01-27 12:18:59 -05:00
parent b2108e2742
commit f6c36cb489

View File

@@ -91,6 +91,8 @@ extension PurchaseOrder.Create {
func toModel() throws -> PurchaseOrderModel {
try validate()
return .init(
id: id,
workOrder: workOrder,
materials: materials,
customer: customer,
truckStock: truckStock ?? false,