Add more than on product to a Route
This commit is contained in:
parent
dc9728eb06
commit
d0f726621f
2 changed files with 14 additions and 6 deletions
6
route.go
6
route.go
|
|
@ -16,7 +16,7 @@ type Route struct {
|
|||
eaAddressDefinition int
|
||||
topsheetTemplateDirectory int
|
||||
editionName string
|
||||
productReferenceNumber int
|
||||
productReferenceNumbers []int
|
||||
ProductionDrops []*ProductionDrop
|
||||
}
|
||||
|
||||
|
|
@ -58,6 +58,10 @@ func (r *Route) GetRouteMessage() string {
|
|||
return info
|
||||
}
|
||||
|
||||
func (r *Route) AddProductReferenceNumber(prnr int) {
|
||||
r.productReferenceNumbers = append(r.productReferenceNumbers, prnr)
|
||||
}
|
||||
|
||||
func (r *Route) AddProductionDrop(pd *ProductionDrop) error {
|
||||
r.ProductionDrops = append(r.ProductionDrops, pd)
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue