Update date handling in Finances class to use current month start and end dates
This commit is contained in:
8
.vscode/ftp-kr.sync.cache.json
vendored
8
.vscode/ftp-kr.sync.cache.json
vendored
@@ -83,8 +83,8 @@
|
||||
},
|
||||
"class.Finances.php": {
|
||||
"type": "-",
|
||||
"size": 6601,
|
||||
"lmtime": 1733147753133,
|
||||
"size": 6626,
|
||||
"lmtime": 1738397958562,
|
||||
"modified": false
|
||||
},
|
||||
"class.Projects.php": {
|
||||
@@ -133,8 +133,8 @@
|
||||
},
|
||||
"class.Finances.php": {
|
||||
"type": "-",
|
||||
"size": 15987,
|
||||
"lmtime": 1731879288163,
|
||||
"size": 16159,
|
||||
"lmtime": 1738397893764,
|
||||
"modified": false
|
||||
},
|
||||
"class.Projects.php": {
|
||||
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user