agritheory / inventory_tools

A collection of features to streamline and enhance inventory management and manufacturing workflows in ERPNext.
https://agritheory.com/documentation/inventory_tools
Other
24 stars 13 forks source link

fix: add is_subcontracted check for additional validation/submit/cancel code #30

Closed HKuz closed 1 year ago

HKuz commented 1 year ago

I triggered a validation error in non-subcontracted PI when I had the subcontracting work order feature enabled. The previous code only checked for the setting before running the additional validation/submit/cancel functions - this fix adds the check that the PO/PI has is_subcontracted checked as well.