diff --git a/accounting/converters.py b/accounting/converters.py index 7b840ef..dbecbd6 100644 --- a/accounting/converters.py +++ b/accounting/converters.py @@ -206,4 +206,4 @@ class TransactionConverter: Returns: str: The transaction ID. """ - return value.sn + return value.pk diff --git a/accounting/templates/accounting/cash.html b/accounting/templates/accounting/cash.html index f6d0b70..ddc1d95 100644 --- a/accounting/templates/accounting/cash.html +++ b/accounting/templates/accounting/cash.html @@ -127,7 +127,7 @@ First written: 2020/7/1 {{ item.debit_amount|accounting_amount }} {{ item.balance|accounting_amount }} - {% if item.sn is not None %} + {% if item.pk is not None %} {% trans "View" context "Accounting|" as text %}{{ text|force_escape }} @@ -143,7 +143,7 @@ First written: 2020/7/1