Enhancement #1216

Distinguish the 'archived' state of an order from order status

Added by Blatti Yves almost 4 years ago. Updated over 3 years ago.

Status:ClosedStart date:12/04/2015
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:SHOP
Target version:4.4.1
Sponsor:ASIT-VD (CH) Ergonomic impact:

User will be able to archive any orders that have reached one end of the life cycle

Functional impact:

- Remove the archived status for orders lifecycles
- Add a new flag for archived orders


Description

Distinguish the 'archived' state from order status.

This will allow the user to:
  • have 'active' and 'archived' orders (like in a mailbox) + the boolean filter (same look as for validations : )
  • have a coherent module (last orders, which will contain only last active orders)
  • be able to archive order in states : 'finish', 'rejected by TP' and 'rejected by provider' (= ANY of the end of order life cycle)
  • don't loose informations on the history of the order depending of it's archive state

That is the behavior we wanted in v4 workshop, but since we added new order status the process has now branches, and we cannot rely on the order status anymore. See:

V4.2.X order status : we can use the archive state
    +------+     +------+           +------+     +--------+
    |      +---->+      +---....--->+finish+---->+archived|
    +------+     +------+           +------+     +--------+

V4.3.x oreder status : cannot use the archive status for views,
                       since we cannot archive rejected orders
                                    +-------------+
                               .--->|rej. by supl.|
                               .    +-------------+
                               .
    +------+     +------+      .    +------+     +--------+
    |      +---->+      +---....--->+finish+---->+archived|
    +------+     +------+      .    +------+     +--------+
                               .
                               .    +-------------+
                               .--->+rej. by TP   |
                                    +-------------+

Implications

In the code:
  • add the boolean filter in orders view
  • only show active order in the 'last orders module' (#1078)
  • change the archive method controller, and allow it in view from any end status
  • remove archived status from constants and tests
The sql update plan is:
  • add the new field ( archived(boolean) )
  • set the archived flag to all orders that are in archived status
  • set status to 'finish' to all 'archived' orders (the only state they could have been in before!)
  • delete the archive status from the sys table

boolean_filter.png (1.97 KB) Blatti Yves, 12/04/2015 08:42 AM

History

#1 Updated by Blatti Yves almost 4 years ago

  • Category set to SHOP
  • Status changed from New to Request For Comments
  • Assignee set to Technical Committee

#2 Updated by Van Hoecke Hélène almost 4 years ago

  • Assignee changed from Technical Committee to Blatti Yves

#3 Updated by Blatti Yves almost 4 years ago

  • Assignee changed from Blatti Yves to Technical Committee

We talked about the Thomas proposals (Using different filters in views) at ASIT VD,
but we cannot fit all use cases (ex: Canceled and Rejected, will be there forever, they'll never be archived).

We also had a look of the implications in code, and it seems lighter than we imagined.

#4 Updated by Portier Thomas almost 4 years ago

+1

#6 Updated by Van Hoecke Hélène over 3 years ago

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

TC has accepted the enhancement according to Yves' proposal

#7 Updated by Van Hoecke Hélène over 3 years ago

  • Status changed from Accepted to Affected
  • Assignee changed from Blatti Yves to Van Hoecke Hélène
  • Target version set to 4.4.1

#8 Updated by Van Hoecke Hélène over 3 years ago

  • Status changed from Affected to Resolved
  • % Done changed from 0 to 100
  • Sponsor ASIT-VD (CH) added

#9 Updated by Van Hoecke Hélène over 3 years ago

  • Status changed from Resolved to Closed
  • Assignee deleted (Van Hoecke Hélène )

Also available in: Atom PDF