From 02d7afcf197fa2821e2affa1d489bfde92616039 Mon Sep 17 00:00:00 2001 From: Arvin <17693119+vindard@users.noreply.github.com> Date: Mon, 23 Dec 2024 10:41:59 -0400 Subject: [PATCH] fix: seed arguments (#1182) --- lana/app/src/accounting_init/seed.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lana/app/src/accounting_init/seed.rs b/lana/app/src/accounting_init/seed.rs index 5a7cf3ef0..3c6b5185f 100644 --- a/lana/app/src/accounting_init/seed.rs +++ b/lana/app/src/accounting_init/seed.rs @@ -74,7 +74,7 @@ async fn create_deposits_control_sub_account( chart_id: ChartId, ) -> Result { let deposits_control_path = match chart_of_accounts - .find_control_account_by_reference(chart_id, CHART_REF.to_string()) + .find_control_account_by_reference(chart_id, DEPOSITS_CONTROL_ACCOUNT_REF.to_string()) .await? { Some(path) => path, @@ -83,15 +83,18 @@ async fn create_deposits_control_sub_account( .create_control_account( chart_id, ChartOfAccountCode::Category(chart_of_accounts::CategoryPath::Liabilities), - DEPOSITS_CONTROL_ACCOUNT_REF.to_string(), DEPOSITS_CONTROL_ACCOUNT_NAME.to_string(), + DEPOSITS_CONTROL_ACCOUNT_REF.to_string(), ) .await? } }; let deposits_control_sub_path = match chart_of_accounts - .find_control_sub_account_by_reference(chart_id, CHART_REF.to_string()) + .find_control_sub_account_by_reference( + chart_id, + DEPOSITS_CONTROL_SUB_ACCOUNT_REF.to_string(), + ) .await? { Some(path) => path,