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

Pre-fill quantity on part ordering form #3395

Merged

Conversation

SchrodingersGat
Copy link
Member

@SchrodingersGat SchrodingersGat commented Jul 25, 2022

  • Adds new API endpoint for requirement data
  • Load data on the fly when launching ordering form

Closes #3164

- Adds new API endpoint for requirement data
- Load data on the fly when launching ordering form
@SchrodingersGat SchrodingersGat added enhancement This is an suggested enhancement or new feature order Related to purchase orders / sales orders api Relates to the API labels Jul 25, 2022
@SchrodingersGat SchrodingersGat added this to the 0.8.0 milestone Jul 25, 2022
@SchrodingersGat
Copy link
Member Author

@miggland this PR adds code to automatically fill out the "quantity" field in the part ordering form.

@SchrodingersGat SchrodingersGat merged commit 05d7159 into inventree:master Jul 25, 2022
@SchrodingersGat SchrodingersGat deleted the pre-fill-order-quantity branch July 25, 2022 03:00
@@ -567,6 +567,40 @@ def add_schedule_entry(date, quantity, title, label, url):
return Response(schedule)


class PartRequirements(RetrieveAPI):
"""API endpoint detailing 'requirements' information for aa particular part.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo

@SchrodingersGat SchrodingersGat mentioned this pull request Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Relates to the API enhancement This is an suggested enhancement or new feature order Related to purchase orders / sales orders
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] Pre-fill required quantity to PO when adding items from sales order page
2 participants