frappe / erpnext

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

Cannot Resubmit Ledger entries for vouchers in Closed [Re-Opened] fiscal year. #41819

Open konradbr opened 1 month ago

konradbr commented 1 month ago

Information about bug

ERPnext occasionally requires some Journal Entries to be re-posted. Here, two entries belonging to a closed fiscal year were marked to be reposted. Upon receiving the message "Cannot Resubmit Ledger entries for vouchers in Closed fiscal year.", the concerned closed fiscal year has been re-opened. Nonetheless, the same message appears when trying to re-post these Journal Entries.

Screenshots provided below made already after the closed fiscal year has been re-opened:

Screenshot 2024-06-07 at 07 48 42 Screenshot 2024-06-07 at 07 48 09 safe Screenshot 2024-06-07 at 07 50 42

Module

accounts

Version

bench 5.17.2
erpnext 15.27.0
erpnextswiss 1.23.3
frappe 15.29.1
hrms 15.22.0
payments 0.0.1

Installation method

manual

Relevant log output / Stack trace / Full Error Message.

"Cannot Resubmit Ledger entries for vouchers in Closed fiscal year."
konradbr commented 1 month ago

steps to reproduce

This issue happened today again and might be reproducible by following these steps:

  1. Create new Fiscal Year.
  2. Create a new Purchase Invoice (incl. corresponding Supplier).
  3. Save and submit said Purchase Invoice.
  4. Close said Fiscal Year using new Period Closing Voucher.
  5. Cancel said Period Closing Voucher.
  6. Cancel and resubmit said Purchase Invoice.
  7. Create new Journal Entry (with default settings) such that at least one row corresponds to a debit against said Supplier.
  8. Use the Payment Reconciliation tool to allocate and reconcile said Journal Entry with said Purchase Invoice.
  9. Said Journal Entry should now display a yellow "Repost Accounting Entries" button.
  10. Click on said button: "Cannot Resubmit Ledger entries for vouchers in Closed fiscal year." message should appear.