Skip to content

fix: setting paid amount to 0 when is_paid is unchecked in purchase invoice #47679

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

Merged
merged 1 commit into from
May 27, 2025

Conversation

ljain112
Copy link
Collaborator

@ljain112 ljain112 commented May 22, 2025

If the is_paid checkbox is initially marked as 1 and a value is entered in the paid_amount field, and then is_paid is later unchecked (set to 0), the system still considers the value in paid_amount when calculating the outstanding amount.

This appears to be inconsistent, as unchecking is_paid should ideally reset or ignore the paid_amount value in the outstanding calculation.

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

@github-actions github-actions bot added accounts needs-tests This PR needs automated unit-tests. labels May 22, 2025
@ruthra-kumar ruthra-kumar self-assigned this May 26, 2025
@ruthra-kumar ruthra-kumar removed the request for review from rohitwaghchaure May 27, 2025 08:03
@ruthra-kumar ruthra-kumar enabled auto-merge May 27, 2025 08:11
@ruthra-kumar ruthra-kumar merged commit 4fc7cc4 into frappe:develop May 27, 2025
18 checks passed
ruthra-kumar added a commit that referenced this pull request May 27, 2025
…-47679

fix: setting paid amount to 0 when is_paid is unchecked in purchase invoice (backport #47679)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accounts backport version-15-hotfix needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants