Skip to content

Commit

Permalink
Merge pull request #3720 from ColoredCow/release
Browse files Browse the repository at this point in the history
Sync Master and Release Branch
  • Loading branch information
GauravGusain98 authored Oct 2, 2024
2 parents 7f9adb8 + 1cdb70e commit 8e3504e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/EffortTracking/Services/EffortTrackingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ public function getEffortForProject($project, $syncParams = [])
$billingStartDate = Carbon::create($sheetUser[$sheetIndexForStartDate]);
$billingEndDate = Carbon::create($sheetUser[$sheetIndexForEndDate]);
if (array_key_exists('isBackDateSync', $syncParams) && $syncParams['isBackDateSync'] === 'on') {
$monthlyBillingEndDate = $project->client->month_end_date;
$currentDate = $monthlyBillingEndDate->subMonth();
$monthlyBillingEndDate = $project->client->getMonthEndDateAttribute(1);
$currentDate = $monthlyBillingEndDate;
} else {
$currentDate = now(config('constants.timezone.indian'))->today();
}
Expand Down

0 comments on commit 8e3504e

Please sign in to comment.