minor fixes

This commit is contained in:
David Bomba 2024-03-28 12:24:01 +11:00
parent 1b66a42578
commit bb706a654a
2 changed files with 8 additions and 2 deletions

View File

@ -59,6 +59,7 @@ class ShowChartRequest extends Request
} }
if (! isset($input['end_date'])) { if (! isset($input['end_date'])) {
// $input['end_date'] = now()->lastOfMonth()->format('Y-m-d');
$input['end_date'] = now()->format('Y-m-d'); $input['end_date'] = now()->format('Y-m-d');
} }

View File

@ -790,19 +790,24 @@ class BaseDriver extends AbstractPaymentDriver
'client' => $this->client->present()->name(), 'client' => $this->client->present()->name(),
]); ]);
return sprintf('%s: %s', ctrans('texts.invoices'), \implode(', ', collect($this->payment_hash->invoices())->pluck('invoice_number')->toArray())); // return sprintf('%s: %s', ctrans('texts.invoices'), \implode(', ', collect($this->payment_hash->invoices())->pluck('invoice_number')->toArray()));
} }
/** /**
* Stub for disconnecting from the gateway. * Stub for disconnecting from the gateway.
* *
* @return void * @return bool
*/ */
public function disconnect() public function disconnect()
{ {
return true; return true;
} }
/**
* Stub for checking authentication.
*
* @return bool
*/
public function auth(): bool public function auth(): bool
{ {
return true; return true;