Why are order statuses an enum

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 năm cách đây
Hello,

In wanting to learn can someone explain to me why the order statuses like 20 == processing 30 == Complete are enums instead of a ref key table in the db? Is this legacy? Is this an architectural decision?

TIA
JB
10 năm cách đây
It could cause some minor issues for a web site which targets customers from multiple languages.
10 năm cách đây
It is architectural decision / best practice.   The statuses are not just informational for store owner, the core code needs them for workflow processing.
10 năm cách đây
Ahhh yes that makes sense especially if WF is involved now or in the future.

Thank You
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.