Merge pull request #15482 from rohitwaghchaure/key_error_deferred_revenue

[Fix] Key error while saving sales invoice