diff --git a/accounting/views/__init__.py b/accounting/views/__init__.py index 5a1c287..0b4a0c4 100644 --- a/accounting/views/__init__.py +++ b/accounting/views/__init__.py @@ -74,6 +74,7 @@ def cash(request, subject_code, period_spec): last_txn = Transaction.objects.order_by("-date").first() data_end = last_txn.date if last_txn is not None else None period = Period(period_spec, data_start, data_end) + # The subject subjects = list(Subject.objects.raw("""SELECT s.* FROM accounting_subjects AS s WHERE s.code IN (SELECT s1.code