Closing accounting periods in iDempiere is a critical step to ensure financial integrity and compliance. However, many users encounter errors that block the process or lead to inconsistencies. In this article, I’ll walk you through the most common issues and how to resolve them using practical steps and SQL queries.
🔍 Issue 1: “Cannot close period due to unposted documents”
Cause: There are documents (invoices, payments, etc.) that haven’t been posted to accounting.
Solution:
Navigate to:
Accounting > Unposted Documents
.Filter by the period you want to close.
Review and manually post any pending documents.
Helpful SQL Query:
SELECT * FROM fact_acct
WHERE dateacct BETWEEN '2025-01-01' AND '2025-01-31'
AND processed = 'N';
🔍 Issue 2: “Period is closed but accounting entries are still being generated”
Cause: The accounting period is closed, but the document period remains open.
Solution:
Go to
Accounting > Periods
.Make sure both the accounting period and the document period are closed.
Check for any automated processes that might be generating entries outside the valid date range.
🔍 Issue 3: “Error during closing process: ‘Cannot close due to inconsistent balances’”
Cause: Some accounting entries are unbalanced or incomplete.
Solution:
Run an audit using SQL to detect discrepancies.
Look for entries without counterpart accounts or with incorrect account assignments.
Correct SQL to detect unbalanced entries:
SELECT ad_table_id, record_id,
SUM(amtacctdr - amtacctcr) AS difference
FROM fact_acct
WHERE dateacct BETWEEN '2025-01-01' AND '2025-01-31'
GROUP BY ad_table_id, record_id
HAVING SUM(amtacctdr - amtacctcr) <> 0;
This query helps you identify documents that generated incorrect or incomplete accounting entries. You can then open the source document from the “Accounting Fact Details” window in iDempiere to investigate further.
🛠️ Best Practices Before Closing a Period
Ensure all documents are posted.
Confirm both accounting and document periods are closed.
Run SQL audits to detect inconsistencies.
Always back up your database before closing.
No hay comentarios:
Publicar un comentario