frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
21.75k stars 7.3k forks source link

Sales Invoice Status Issue / Outstanding Amount Issue #35964

Closed MrGiveItAway-TPK closed 1 year ago

MrGiveItAway-TPK commented 1 year ago

Information about bug

As an example: I made a sales invoice with for example 2 items each has a quantity of 5 then i make from the invoice a return invoice and return only 2 quantities of each item in this invoice the outstanding amount is 0 so the invoice correctly takes the status of Return. now after the first return go back again to the credit note issue invoice and make another return this time the return invoice takes the status of unpaid because the outstanding amount is greater than 0.

After further debugging regarding the status it is because of the outstanding indeed like so: image and the issue is due to the is_pos check because the condition below does not return the function and continues to calculate: image

Module

accounts

Version

Frappe Version - 14.40.1 ERPNEXT Version - 14.28.1

Installation method

docker

Relevant log output / Stack trace / Full Error Message.

No response

deepeshgarg007 commented 1 year ago

@MrGiveItAway-TPK This has been like this for a long and have not heard any complaints on this before. Is there any suggestion/proposal that you have?

If yes please add and reopen this issue, closing this for now