Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Tryton Tryton
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 711
    • Issues 711
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 72
    • Merge requests 72
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TrytonTryton
  • TrytonTryton
  • Issues
  • #11955
Closed
Open
Issue created Dec 21, 2022 by Cédric Krier@cedOwner

Purchase or produce only missing quantity when supply one sale

When changing "supply on sale" for a product, we may still have stock in the warehouse for this product. Usually users will want to consume first the stock before purchasing.
So I propose that the quantity of the purchase request is reduced by the stock quantity and if the result is 0, we do not create a request (or one cancelled to not create later).

Edited Dec 23, 2022 by Cédric Krier
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking