naming
This commit is contained in:
@@ -240,10 +240,14 @@ func (d *WorkflowExecution) bookEach(executionsID string, wfID string, dt tools.
|
|||||||
var m map[string]interface{}
|
var m map[string]interface{}
|
||||||
b, _ := json.Marshal(priced)
|
b, _ := json.Marshal(priced)
|
||||||
json.Unmarshal(b, &m)
|
json.Unmarshal(b, &m)
|
||||||
|
name := priced.GetName()
|
||||||
|
if len(executionsID) > 8 {
|
||||||
|
name += " " + executionsID[:8]
|
||||||
|
}
|
||||||
bookingItem := &booking.Booking{
|
bookingItem := &booking.Booking{
|
||||||
AbstractObject: utils.AbstractObject{
|
AbstractObject: utils.AbstractObject{
|
||||||
UUID: uuid.New().String(),
|
UUID: uuid.New().String(),
|
||||||
Name: priced.GetName() + "_" + executionsID[:8] + " " + start.Format("2006-01-02 15:04"),
|
Name: name + " " + start.Format("2006-01-02 15:04"),
|
||||||
IsDraft: true,
|
IsDraft: true,
|
||||||
},
|
},
|
||||||
PricedItem: m,
|
PricedItem: m,
|
||||||
|
|||||||
Reference in New Issue
Block a user