1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00

Minor fixes

This commit is contained in:
David Bomba 2024-10-09 12:49:17 +11:00
parent e14f9286a2
commit 02613f18ea
5 changed files with 6 additions and 4 deletions

View File

@ -18,6 +18,7 @@ namespace App\DataProviders;
class Domains
{
private static array $verify_domains = [
'frontads.org',
'looksecure.net',
'0-00.usa.cc',
'0-180.com',

View File

@ -409,7 +409,6 @@ class BaseDriver extends AbstractPaymentDriver
->count();
if($invoice && $fee_count == 0){
nlog("apparently no fee, so injecting here!");

View File

@ -65,7 +65,7 @@ class SEPA implements MethodInterface, LivewireMethodInterface
'method' => GatewayType::SEPA,
'session_token' => $session_token,
'authorize_then_redirect' => true,
'payment_hash' => $this->go_cardless->payment_hash->hash,
'payment_hash' => $this->go_cardless->payment_hash->hash ?? '',
]),
'prefilled_customer' => [
'given_name' => auth()->guard('contact')->user()->client->present()->first_name(),

View File

@ -324,7 +324,7 @@ class BaseRepository
}
/** If Peppol is enabled - we will save the e_invoice document here at this point, document will not update after being sent */
if(strlen($model->backup ?? '') == 0 && $client->getSetting('e_invoice_type') == 'PEPPOL' && $model->company->legal_entity_id)
if((!isset($model->backup) || !property_exists($model->backup, 'guid')) && $client->getSetting('e_invoice_type') == 'PEPPOL' && $model->company->legal_entity_id)
{
try{
$model->service()->getEInvoice();

View File

@ -122,7 +122,9 @@ class SendEDocument implements ShouldQueue
$activity->save();
$model->backup = str_replace('"', '', $guid);
$std = new \stdClass;
$std->guid = str_replace('"', '', $guid);
$model->backup = $std;
$model->saveQuietly();
}