Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reverse debit credit for party gl entry in payment entry based on negative amount (backport #42367) #42548

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 31, 2024

Frappe Support Issue: https://support.frappe.io/app/hd-ticket/18369

When allocated amount is negative and we are paying the receivable party type or receiving from payable party type we need to reverse debit/credit because due to negative amount it will get reversed again.

Before:
If there is negative outstanding for a Puchase Invoice then user was not able to submit the document.

image

After:
Document is submitted successfully.


Review Tip: Hide whitespaces to view actual changes


This is an automatic backport of pull request #42367 done by Mergify.

…n negative amount (#42367)

* fix: do not absolute the amount for party gl entries

* fix: reverse debit credit for party gl entry based on negative amount

* refactor: reduce nesting of if condition

---------

(cherry picked from commit a694390)
@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Jul 31, 2024
@vorasmit vorasmit merged commit 7dc68ca into version-15-hotfix Jul 31, 2024
12 checks passed
@vorasmit vorasmit deleted the mergify/bp/version-15-hotfix/pr-42367 branch July 31, 2024 07:47
@frappe-pr-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 15.32.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-tests This PR needs automated unit-tests. released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants