Fixed the date of the brought-forward record in the accounting application.
This commit is contained in:
parent
85b8515a0a
commit
c21f079321
@ -420,8 +420,7 @@ def ledger(request, subject_code, period_spec):
|
||||
is_credit=True, then=-1),
|
||||
default=1) * F("amount")))["balance"]
|
||||
record_brought_forward = Record(
|
||||
transaction=Transaction(
|
||||
date=records[-1].transaction.date),
|
||||
transaction=Transaction(date=period.start),
|
||||
subject=current_subject,
|
||||
summary=pgettext("Accounting|", "Brought Forward"),
|
||||
is_credit=balance < 0,
|
||||
|
Loading…
Reference in New Issue
Block a user