fix: missing def expense if no exp in first month

(cherry picked from commit 5c9ce575f6)
This commit is contained in:
Dany Robert
2024-04-04 16:18:20 +00:00
committed by Mergify
parent f8fd354d75
commit 7cd6debd0e

View File

@@ -360,8 +360,8 @@ def book_deferred_income_or_expense(doc, deferred_process, posting_date=None):
)
if not amount:
return
prev_posting_date = end_date
else:
gl_posting_date = end_date
prev_posting_date = None
# check if books nor frozen till endate: