Skip to content

Conversation

@ravibharathi656
Copy link
Contributor

@ravibharathi656 ravibharathi656 commented Dec 19, 2025

Issue:

When an invoice is created on older date and later deleted, restoring it on the current date throws a validation error.

Ref: #55735,

Part of: #35363

Steps to replicate the issue:

  1. Create an invoice with a date, and a due date is set as 1/12/25 without enabling Edit Posting Date and Time
  2. Save the invoice and delete it
  3. Restore the deleted document. It throws a validation error

Deleted Document:

image

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Dec 19, 2025
@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.01%. Comparing base (7c6f0e4) to head (a55092d).
⚠️ Report is 6 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #51222      +/-   ##
===========================================
+ Coverage    78.99%   79.01%   +0.01%     
===========================================
  Files         1176     1176              
  Lines       120290   120308      +18     
===========================================
+ Hits         95027    95058      +31     
+ Misses       25263    25250      -13     
Files with missing lines Coverage Δ
erpnext/utilities/transaction_base.py 77.08% <100.00%> (ø)

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-tests This PR needs automated unit-tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant