Updates for recurring invoice requests
This commit is contained in:
parent
7ee7af35d1
commit
558471a989
|
|
@ -29,7 +29,6 @@ class ActivityReportController extends BaseController
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function __invoke(GenericReportRequest $request)
|
public function __invoke(GenericReportRequest $request)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ class UpdateRecurringInvoiceRequest extends Request
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($input['next_send_date']) || $input['next_send_date'] == '') {
|
if (!isset($input['next_send_date']) || $input['next_send_date'] == '') {
|
||||||
$input['next_send_date'] = now()->format('Y-m-d');
|
$input['next_send_date'] = $this->recurring_invoice->next_send_date ?? now()->format('Y-m-d');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists('next_send_date', $input) && is_string($input['next_send_date'])) {
|
if (array_key_exists('next_send_date', $input) && is_string($input['next_send_date'])) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue