State changing
Logging fuctionality will gather the data about status changing with detailed information:
- previous state
- current state
- date and time
- worker
Data model should have mentioned fields and relation 1-1 to Order.
Data records won't be edited by users.
Creating
Logging will also register information about creating new record. In such case:
- previous state = "new"
- current state = "pending"
- date and time
- worker - if record is created by ERP connector, worker = special user defined in connector parameters.