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

Approval #5559

Closed
wants to merge 76 commits into from
Closed

Approval #5559

wants to merge 76 commits into from

Conversation

matmair
Copy link
Member

@matmair matmair commented Sep 17, 2023

Follow up to #5095

Simplified implementation of approvals for orders. Includes building blocks for a more generalized rules and template-driven approach.

Function

This PR adds approvals (optionally) for POs. You can enable them in settings (including minimum approvers and maximum rejections). After that POs can only be placed once they are approved.

Notifications

Notifications will be sent out to the responsible user/group:

  • when approval starts
  • on each approval decision
  • after being rejected (PO will be cancelled)
  • after being approved (PO will be moved to placed)

UI

As an experiment, I just implemented this in P UI. While the order views are not ready in P UI, approvals are.

Next steps

This is an MVP, I opened an epic for further improvements #5097.
While this PR adds a business logic and UI for PO approvals, approvals are a first-class citizen implementation-wise. They can be used as-is for any model and adding UI elements for that should be simple. The default rules engine is also simple right now but designed for complex requirements. If there is interest this can be extended.

Still to address

Closes #3501

@netlify
Copy link

netlify bot commented Sep 17, 2023

Deploy Preview for inventree ready!

Name Link
🔨 Latest commit 58da88c
🔍 Latest deploy log https://app.netlify.com/sites/inventree/deploys/650f144eacad0400080b6578
😎 Deploy Preview https://deploy-preview-5559--inventree.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100
Accessibility: 86
Best Practices: 100
SEO: 70
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@matmair matmair closed this Oct 10, 2023
@SchrodingersGat
Copy link
Member

@matmair I was under the impression that we were pretty good to go on this one - just waiting on #5597 which was only just merged.

Are you happy for me to re-open and have a proper review? It has only been through lack of time that I have not done this yet

@matmair
Copy link
Member Author

matmair commented Oct 11, 2023

I did not close this because of no review from your side, #5597 was just a way to kill some time till feedback rolls in. There is no intrest any more from the people that requested the feature originally.

I will move this to a plugin that allows me to be more agile and code specific to my use cases.

@imsoumyaprakash
Copy link

Hi,

Just pitching in here to bring to notice, I am very much interested in this feature coming to picture.
In case additional support is needed, I can pitch in to build the features as well.

@matmair
Copy link
Member Author

matmair commented Oct 16, 2023

Thanks for the interest @imsoumyaprakash. I have already lost interest in pursuing this in the public and started work polishing and moving the code into a closed plugin. You are more than welcome to use the ideas in this PR, but I won't focus on bringing this into core anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] Purchase Order Approvals
3 participants