Implemented the find_existing_equipments() utility, and applied it in the ledger in the accounting application.

This commit is contained in:
2020-08-07 01:06:57 +08:00
parent c78d0f613d
commit 35e6b533cf
3 changed files with 32 additions and 12 deletions

View File

@ -45,7 +45,7 @@ from .utils import ReportUrl, get_cash_accounts, get_ledger_accounts, \
find_imbalanced, find_order_holes, fill_txn_from_post, \
sort_post_txn_records, make_txn_form_from_status, \
make_txn_form_from_model, make_txn_form_from_post, MonthlySummary, \
get_summary_categories, find_payable_records
get_summary_categories, find_payable_records, find_existing_equipments
@method_decorator(require_GET, name="dispatch")
@ -341,6 +341,7 @@ def ledger(request, account, period):
find_imbalanced(records)
find_order_holes(records)
find_payable_records(account, records)
find_existing_equipments(account, records)
return render(request, "accounting/ledger.html", {
"item_list": records,
"pagination": pagination,