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: multiple fixes on payment terms based issues in payment entry #36241

Conversation

ruthra-kumar
Copy link
Member

@ruthra-kumar ruthra-kumar commented Jul 23, 2023

1. Payment Term query in Payment References section

Payment Term select field wasn't giving any results.
before:
Screenshot 2023-07-23 at 11 58 31 AM

after:
Screenshot 2023-07-23 at 11 59 30 AM

2. Incorrect Validation Error for term based allocation

If Payment Term based allocation has been enabled for an invoice, term has to be selected in references section.

Screenshot 2023-07-23 at 12 00 26 PM

before:
When no term was selected, validation miscalculated that invoice as fully paid.
Screenshot 2023-07-23 at 11 58 02 AM

after:
Screenshot 2023-07-23 at 11 59 14 AM

3. Incorrect Validation Err for Invoice without any payment template or term

An Invoice without any Payment Terms Template or Payment Term, was incorrectly throwing fully paid validation error. Its fixed now.
Screenshot 2023-07-23 at 12 07 36 PM

before:
Screenshot 2023-07-23 at 12 09 28 PM

after:
Screenshot 2023-07-23 at 12 12 19 PM

1. fixed broken `payment_term` filter in Payment References section
2. Throw error if user fails to select 'Payment Term' for an invoice
with 'Payment Term based allocation' enabled.
@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Jul 23, 2023
@codecov
Copy link

codecov bot commented Jul 23, 2023

Codecov Report

Merging #36241 (ec7558b) into develop (cc36af5) will increase coverage by 0.00%.
The diff coverage is 64.70%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #36241   +/-   ##
========================================
  Coverage    64.14%   64.14%           
========================================
  Files          784      784           
  Lines        60715    60730   +15     
========================================
+ Hits         38946    38956   +10     
- Misses       21769    21774    +5     
Impacted Files Coverage Δ
erpnext/controllers/queries.py 57.44% <42.85%> (-0.32%) ⬇️
...xt/accounts/doctype/payment_entry/payment_entry.py 83.37% <80.00%> (+0.02%) ⬆️

@ruthra-kumar ruthra-kumar merged commit 740f283 into frappe:develop Jul 24, 2023
15 checks passed
@ruthra-kumar ruthra-kumar added the backport version-14-hotfix backport to version 14 label Jul 24, 2023
ruthra-kumar added a commit that referenced this pull request Jul 24, 2023
…-36241

fix: multiple fixes on payment terms based issues in payment entry (backport #36241)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant