format Date for horrible date name
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
|||||||
|
|
||||||
type PricedItemITF interface {
|
type PricedItemITF interface {
|
||||||
GetID() string
|
GetID() string
|
||||||
|
GetName() string
|
||||||
GetInstanceID() string
|
GetInstanceID() string
|
||||||
GetType() tools.DataType
|
GetType() tools.DataType
|
||||||
IsPurchasable() bool
|
IsPurchasable() bool
|
||||||
|
|||||||
@@ -47,6 +47,10 @@ func (abs *PricedResource[T]) GetID() string {
|
|||||||
return abs.ResourceID
|
return abs.ResourceID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (abs *PricedResource[T]) GetName() string {
|
||||||
|
return abs.Name
|
||||||
|
}
|
||||||
|
|
||||||
func (abs *PricedResource[T]) GetInstanceID() string {
|
func (abs *PricedResource[T]) GetInstanceID() string {
|
||||||
return abs.InstanceID
|
return abs.InstanceID
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ func (d *WorkflowExecution) bookEach(executionsID string, wfID string, dt tools.
|
|||||||
bookingItem := &booking.Booking{
|
bookingItem := &booking.Booking{
|
||||||
AbstractObject: utils.AbstractObject{
|
AbstractObject: utils.AbstractObject{
|
||||||
UUID: uuid.New().String(),
|
UUID: uuid.New().String(),
|
||||||
Name: d.GetName() + "_" + executionsID + "_" + wfID,
|
Name: priced.GetName() + "_" + executionsID[:8] + " " + start.Format("2006-01-02 15:04"),
|
||||||
IsDraft: true,
|
IsDraft: true,
|
||||||
},
|
},
|
||||||
PricedItem: m,
|
PricedItem: m,
|
||||||
|
|||||||
Reference in New Issue
Block a user