Fixed the journal to display the brought-forward records with balance larger than zero in the accounting application.

This commit is contained in:
依瑪貓 2020-07-22 10:34:53 +08:00
parent 2335a4b4a8
commit 9d188ff96b

View File

@ -484,7 +484,7 @@ def journal(request, period):
default=1
) * F("record__amount"),
filter=Q(record__transaction__date__lt=period.start)))\
.filter(~Q(balance__gt=0))
.filter(~Q(balance=0))
debit_records = [Record(
transaction=Transaction(date=period.start),
account=x,