Fix off by one error in BalancesAtToBalancesBetween

This commit is contained in:
RunasSudo 2025-05-21 18:24:29 +10:00
parent ed0fbfb5dd
commit 959a8d8fb2
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -139,7 +139,7 @@ impl ReportingStep for BalancesAtToBalancesBetween {
name: self.step_name,
kind: ReportingProductKind::BalancesAt,
args: Box::new(DateArgs {
date: self.args.date_start.clone(),
date: self.args.date_start.pred_opt().unwrap(), // Opening balance is the closing balance of the preceding day
}),
},
ReportingProductId {