Skip to content

Commit

Permalink
fix: seed arguments (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard authored and thevaibhav-dixit committed Jan 6, 2025
1 parent eddc553 commit 02d7afc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lana/app/src/accounting_init/seed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async fn create_deposits_control_sub_account(
chart_id: ChartId,
) -> Result<ChartOfAccountCode, AccountingInitError> {
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,
Expand All @@ -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,
Expand Down

0 comments on commit 02d7afc

Please sign in to comment.