mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add daily reset
This commit is contained in:
parent
d5e0e4335b
commit
d9d042724e
@ -182,6 +182,11 @@ class SubscriptionService
|
||||
}
|
||||
|
||||
|
||||
public function createChangePlanInvoice($data)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function createInvoice($data): ?\App\Models\Invoice
|
||||
{
|
||||
|
||||
|
@ -426,6 +426,9 @@ trait GeneratesCounter
|
||||
}
|
||||
|
||||
switch ($client->company->reset_counter_frequency_id) {
|
||||
case RecurringInvoice::FREQUENCY_DAILY:
|
||||
$reset_date->addDay();
|
||||
break;
|
||||
case RecurringInvoice::FREQUENCY_WEEKLY:
|
||||
$reset_date->addWeek();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user