Merge pull request #19622 from rohitwaghchaure/code_cleanup_sales_invoice_credit_note

fix: code cleanup