Add more than on product to a Route

This commit is contained in:
Oliver Jakoubek 2020-06-28 20:18:41 +02:00
commit d0f726621f
2 changed files with 14 additions and 6 deletions

View file

@ -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