In ERPNext Healthcare, I am facing an issue with bulk settlement of Corporate Sales Invoices.
For Corporate patients, the Sales Invoice customer is the patient, but the payment is made by the organization.
Scenario
I have multiple unpaid Sales Invoices with the following details:
Sales Invoice 1
-
Patient Type: Corporate
-
Organization: LifeScope Corporate
-
Patient Name: Malar
-
Customer: Malar
-
Outstanding Amount: 100
Sales Invoice 2
-
Patient Type: Corporate
-
Organization: LifeScope Corporate
-
Patient Name: Kavitha
-
Customer: Kavitha
-
Outstanding Amount: 1000
I want to create one Payment Entry with:
-
Party Type: Customer
-
Party: LifeScope Corporate
-
Paid Amount: 1100
and settle both Sales Invoices in a single Payment Entry, since the payment is made by the same organization.
However, ERPNext does not allow allocation because the Payment Entry party (LifeScope Corporate) is different from the Sales Invoice customer (Patient).