From 0d8440390c4b5d72a3cbb7fe7905e53b03b1641a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 12 Feb 2026 14:16:28 +0800 Subject: [PATCH] bugfix --- accounting/accounting_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounting/accounting_config.py b/accounting/accounting_config.py index f4caccd..77dea9d 100644 --- a/accounting/accounting_config.py +++ b/accounting/accounting_config.py @@ -69,8 +69,8 @@ class Accounting: self.accounting_legs, key=lambda x: ( x.get('accounting_orgid','0'), - x.get('orgid'), - x.get('subjectid'), + x.get('orgid', ''), + x.get('subjectid', ''), 0 if x.get('acc_dir', '0') == x.get('balance_at', '0') else 1 ) )