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

Seller can be able to make product available or unavailable based on expired date or shortage of product in stock. #59

Conversation

amin-leon
Copy link
Collaborator

Purpose

Products should be availed for buyers to purchase:
As a seller I should be able to mark a product as available or unavailable manually in order to make it available for the buyers on not.
Reasons can be: expiry date, low on stock.

Changes Made

  1. I ve added available attribute on Size model
  2. i ve created new migration to add available attribute
  3. Created two controllers: markProductAsUnavailable and markProductAsAvailable
  4. Documented two routes using swagger

Testing Instructions

None

Related Issues

None

Checklist

Please review the following checklist and make sure all tasks are complete before submitting:

  • Code follows the project's coding standards
  • Changes are covered by tests
  • Documentation is updated (if applicable)
  • All tests pass

…expired date or shortage of product in stock
@amin-leon amin-leon requested a review from niyontwali May 8, 2024 15:24
@amin-leon amin-leon added the WIP label May 8, 2024
@amin-leon amin-leon closed this May 8, 2024
@amin-leon amin-leon deleted the 187354256_ft_seller_mark_a_product_as_available_or_unavailable_in_collection branch May 8, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant