From 845640dc93ccc2aad91ee9cee68cb8fbd76e53a8 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sat, 23 Aug 2025 21:40:30 +1000 Subject: [PATCH] Fix RetainedEarningsToEquity not considering API transactions --- libdrcr/src/reporting/steps.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libdrcr/src/reporting/steps.rs b/libdrcr/src/reporting/steps.rs index 4680063..ee16ca1 100644 --- a/libdrcr/src/reporting/steps.rs +++ b/libdrcr/src/reporting/steps.rs @@ -1334,9 +1334,9 @@ impl ReportingStep for RetainedEarningsToEquity { let eofy_date = get_eofy(&self.args.date, &context.eofy_date); let last_eofy_date = eofy_date.with_year(eofy_date.year() - 1).unwrap(); - // RetainedEarningsToEquity depends on CombineOrdinaryTransactions for last financial year + // RetainedEarningsToEquity depends on AllTransactionsExceptEarningsToEquity for last financial year vec![ReportingProductId { - name: "CombineOrdinaryTransactions".to_string(), + name: "AllTransactionsExceptEarningsToEquity".to_string(), kind: ReportingProductKind::BalancesAt, args: ReportingStepArgs::DateArgs(DateArgs { date: last_eofy_date, @@ -1358,7 +1358,7 @@ impl ReportingStep for RetainedEarningsToEquity { // Get balances at end of last financial year let balances_last_eofy = products .get_or_err(&ReportingProductId { - name: "CombineOrdinaryTransactions".to_string(), + name: "AllTransactionsExceptEarningsToEquity".to_string(), kind: ReportingProductKind::BalancesAt, args: ReportingStepArgs::DateArgs(DateArgs { date: last_eofy_date.clone(),