add notes
This commit is contained in:
@@ -95,6 +95,7 @@ type OrderItem struct {
|
||||
ProductID int64 `json:"product_id" validate:"required"`
|
||||
Quantity int `json:"quantity" validate:"required"`
|
||||
Description string `json:"description"`
|
||||
Notes string `json:"notes"`
|
||||
}
|
||||
|
||||
func (o *Order) ToEntity(partnerID, createdBy int64) *entity.OrderRequest {
|
||||
@@ -162,6 +163,7 @@ func (o *OrderCustomer) ToEntity(partnerID, createdBy int64) *entity.OrderReques
|
||||
ProductID: item.ProductID,
|
||||
Quantity: item.Quantity,
|
||||
Description: item.Description,
|
||||
Notes: item.Notes,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user