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

[Feature] Better stock management #120

Open
4 tasks
rafaelurben opened this issue Oct 7, 2021 · 0 comments
Open
4 tasks

[Feature] Better stock management #120

rafaelurben opened this issue Oct 7, 2021 · 0 comments
Labels
enhancement New or extended feature (request)

Comments

@rafaelurben
Copy link
Owner

rafaelurben commented Oct 7, 2021

To do

  • Add "infinite" flag for product stock.
    • Disable email warnings
    • Hide from App_Stock querysets
    • Exclude on stats page

Check how stock is handled in WooCommerce to keep compatibility and prepare for potential future 2-way-connection.


Current general problems

  • Slow calculations
  • Too many emails or admin messages
  • Products have no option to be stock-independent (e.g. services paid by hour/minute)
  • Stock history not reproducible

App bulk save & WC bulk import

In the app, when multiple orders are saved / marked as shipped, the stock is calculated for every order separately, which results in a lot of calculations and multiple times the same message.

In a bulk WC import, the stock is calculated for every import separately, which can result in A LOT of emails.

=> Possible solution: static method accepts queryset => aggregate functions on entire queryset

(in case of WC bulk import: queryset via id_in=[...])

Idea: Better admin display

Maybe use aggregate functions and also show incoming/outgoing?

https://books.agiliq.com/projects/django-admin-cookbook/en/latest/optimize_queries.html

Idea: Stock list

Design with 'details' element, somewhat like payment import processing page.

Categories:

  • Negative (< 0)
  • Warning (>= 0, <soll)
  • Positive (>= soll)

Alternative: Update print stylesheet for app_stock changelist.

Idea: Stock log

Separate model, which stores all changes in incoming/outgoing and current stock.

@rafaelurben rafaelurben added the enhancement New or extended feature (request) label Oct 7, 2021
@rafaelurben rafaelurben added this to the Version 1.6 milestone Oct 13, 2021
@rafaelurben rafaelurben changed the title [Feature] Stock log [Feature] Stock UPDATE Nov 22, 2021
@rafaelurben rafaelurben removed this from the Version 1.6 milestone Mar 3, 2022
@rafaelurben rafaelurben changed the title [Feature] Stock UPDATE [Feature] Besserer Lagerbestand Jan 28, 2023
@rafaelurben rafaelurben added this to the Version 1.8 milestone Jan 29, 2023
@rafaelurben rafaelurben modified the milestones: Version 1.8, Version 1.9 Feb 13, 2023
@rafaelurben rafaelurben moved this from To do to Needs more investigation in KMUHelper progress Feb 21, 2023
@rafaelurben rafaelurben changed the title [Feature] Besserer Lagerbestand [Feature] Better stock management Apr 17, 2024
@rafaelurben rafaelurben removed this from the Version 1.9 milestone Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New or extended feature (request)
Projects
Status: Needs more investigation
Development

No branches or pull requests

1 participant