Fix determining traffic usage month end
This commit is contained in:
@@ -159,7 +159,7 @@ class Adsl extends ServiceType implements ServiceItem,ServiceUsage
|
||||
|
||||
// If we are before the 15th
|
||||
if ($start->day < 15) {
|
||||
$start = Carbon::createFromFormat('Y-m-d',$start->subMonth->format('Y-m-').'15');
|
||||
$start = Carbon::createFromFormat('Y-m-d',$start->subMonth()->format('Y-m-').'15');
|
||||
} else {
|
||||
$start = $start->subDays($start->day-15);
|
||||
}
|
||||
|
Reference in New Issue
Block a user