UI >> Cancelling Invoice gives Error on Delivery Note page and Invoice Page.
Summary
UI >> Cancelling Invoice gives Error on Delivery Note page and Invoice Page.
Steps to reproduce
Current behavior?
Cancelling Invoice gives Error on Delivery Note page and Invoice Page.
Expected Behavior?
On Cancelling Invoice should not generate any Error on any of the page.
Relevant logs and/or screenshots
(Paste any relevant logs - use code blocks (```) to format console output, logs, and code, as it's very hard to read otherwise.)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)