Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing an order's status according to the date automatically #108

Open
OfirMatasas opened this issue May 11, 2022 · 0 comments
Open

Changing an order's status according to the date automatically #108

OfirMatasas opened this issue May 11, 2022 · 0 comments

Comments

@OfirMatasas
Copy link
Collaborator

OfirMatasas commented May 11, 2022

Expected Behavior

The status of an order is changed automatically when:

  • The current status of an order is "Approved", and the current date reached its "start_date". the new status should be "Ongoing".
  • The current status of an order is "Ongoing", and the current date reached its "end_date". the new status should be "Finished".
  • The current status of an order is "Pending", and the current date reached its "start_date". the new status should be "Canceled".

Current Behavior

The status of an order is not changed when reaching its "start_date" / "end_date".

Acceptance Criteria

  • The status of an order which is currently going should be only "Ongoing" / "Canceled".
  • The status of an order which its "end_date" is earlier of the current date should be only "Finished" / "Canceled".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant