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 {
|
func toModel() throws -> PurchaseOrderModel {
|
||||||
try validate()
|
try validate()
|
||||||
return .init(
|
return .init(
|
||||||
|
id: id,
|
||||||
|
workOrder: workOrder,
|
||||||
materials: materials,
|
materials: materials,
|
||||||
customer: customer,
|
customer: customer,
|
||||||
truckStock: truckStock ?? false,
|
truckStock: truckStock ?? false,
|
||||||
|
|||||||
Reference in New Issue
Block a user