Update date handling in Finances class to use current month start and end dates

This commit is contained in:
2025-02-06 07:55:23 +01:00
parent 37a257015b
commit f9a27897f6
2 changed files with 5 additions and 5 deletions

View File

@@ -170,7 +170,7 @@ class Finances
$dates = \S::get_session( 'finance-dates' );
$dates = explode( '_-_', $dates );
$dates[0] ? $date_from = $dates[0] : $date_from = \factory\Finances::first_operation_date();
$dates[0] ? $date_from = $dates[0] : $date_from = $date_from = date( 'Y-m-01' );
$dates[1] ? $date_to = $dates[1] : $date_to = date( 'Y-m-t' );
if ( $group_id == 3 )