From a3507494e57951c1e5ce74565c72d9f79c599f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 8 Apr 2023 11:55:29 +0800 Subject: [PATCH] Added the refundable deposit accounts to the default list of accounts that need offset in the accounting-init-accounts console command. --- src/accounting/account/commands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/accounting/account/commands.py b/src/accounting/account/commands.py index e398715..e0ea555 100644 --- a/src/accounting/account/commands.py +++ b/src/accounting/account/commands.py @@ -108,15 +108,15 @@ def __is_need_offset(base_code: str) -> bool: """ # Assets if base_code[0] == "1": - if base_code[:3] in {"113", "114", "118", "184"}: + if base_code[:3] in {"113", "114", "118", "184", "186"}: return True - if base_code in {"1411", "1421", "1431", "1441", "1511", "1521", - "1581", "1611", "1851"}: + if base_code in {"1286", "1411", "1421", "1431", "1441", "1511", + "1521", "1581", "1611", "1851"}: return True return False # Liabilities if base_code[0] == "2": - if base_code in {"2111", "2114", "2284", "2293"}: + if base_code in {"2111", "2114", "2284", "2293", "2861"}: return False return True # Only assets and liabilities need offset