Enhancement #1211

make '-copy' order names a little smarter

Added by Blatti Yves about 3 years ago. Updated almost 3 years ago.

Status:ClosedStart date:12/01/2015
Priority:HighDue date:
Assignee:Battaglia Marc% Done:

100%

Category:SHOP
Target version:4.4.0
Sponsor: Ergonomic impact:

avoid very long names in order, increase readability

Functional impact:

none


Description

When we copy an order, the name has a 'copy' appended , but a copy of a copy gives '-copy-copy' and so on...

We could detect this case and make a little smarter : 'copy-1', 'copy-2', etc.

History

#1 Updated by Van Hoecke Hélène about 3 years ago

  • Status changed from Request For Comments to Accepted
  • Assignee changed from Technical Committee to Blatti Yves

TC has accepted the new naming strategy.

#2 Updated by Blatti Yves almost 3 years ago

  • Status changed from Accepted to Affected
  • Priority changed from Normal to High

#3 Updated by Blatti Yves almost 3 years ago

  • Status changed from Affected to Resolved
  • % Done changed from 0 to 100

rev. 9416

For info: the new name is calculated from the order that is copied, we don't do a String based SQL query (heavy for little benefits, and order names do not need to be unique).

Original name to copy name :

Original Copy
MyOrderName MyOrderName - copy
MyOrderName - copy MyOrderName - copy 2
MyOrderName - copy 2 MyOrderName - copy 3
MyOrderName - copy 99 MyOrderName - copy 100
and so on ...

#4 Updated by Blatti Yves almost 3 years ago

  • Status changed from Resolved to To merge

#5 Updated by Blatti Yves almost 3 years ago

  • Assignee changed from Blatti Yves to Battaglia Marc

#6 Updated by Battaglia Marc almost 3 years ago

  • Target version set to 4.4.0

#7 Updated by Battaglia Marc almost 3 years ago

  • Status changed from To merge to Closed

Also available in: Atom PDF