fix: Fixes purchase order generation through api allows id to be passed in.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user