-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b023e5d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@s-aga-r
Why should the PO be closed when the SCO gets closed?
Out of my point of view the PO should be set "Closed" only by the user. It should be open until the user sets it "Closed" or it gets "Completed" by submitting the PR.
The other way around makes more sense to me. The SCO should be automatically closed if the user closes the PO.
Currently there is no possibility to close a SCO by the user. Even if you close the PO you are still able to book SCR against the SCO. In the statistics the positions are also still open. But it makes absolutely no sense to let the SCO running when the related PO is already closed for reasons. We definetly require the option to close a SCO manually or automatically when the PO gets closed.
What do you think, shall I raise an issue for that?
b023e5d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another note: Currently the field "status" is missing the option "Closed" even though the code sets exactly that value.
Please check here: https://github.com/frappe/erpnext/blob/b562b4cf99e68108a0d7ba3a90e60ef3d7d01b0f/erpnext/subcontracting/doctype/subcontracting_order/subcontracting_order.json#L373C24-L373C24
b023e5d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ophl55
There can be only one SCO against a Purchase Order, if the SCO gets closed the PO can't be completed.
Will add this as well.
b023e5d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@s-aga-r
Thank you for your fast reply. Feel free to contact me if you have any questions or need any support e.g. for reviewing the pull request.
For the sake of completeness here you can find the feature request: #38702
Have a nice day!