Negative Quantity in Sales Invoice Not Allowed – Any Alternative?

Hi everyone,

I’m using Frappe ERPNext v15.67.0 and Healthcare v15.1.3.

In the Healthcare workflow, when a patient is admitted, I create a Sales Invoice for the consumed/purchased items (e.g., Dolo 30, Crocin 50).
Later, when the patient is transferred or discharged, I need to return the unused medicines.

Currently, ERPNext requires me to create a Return Sales Invoice for this.
But instead of creating a separate return invoice, I want to enter negative quantities in the same Sales Invoice to adjust the returned items.

However, ERPNext does not allow negative quantities in a normal Sales Invoice.

Is there any built-in way or recommended method to handle this use case without creating a separate Return Sales Invoice?

You have to customized the workflow for Sales Invoice as per your requirements from the backend. There is no built in way to allow reverse invoice in the same place where you issued the Sales Invoice.

Question is even if you are able to add negative balance then would the system pass an incoming stock entry? Cant you use sales order till a final sales invoice is created?