mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Minor fixes
This commit is contained in:
parent
e14f9286a2
commit
02613f18ea
@ -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',
|
||||
|
@ -410,7 +410,6 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
|
||||
if($invoice && $fee_count == 0){
|
||||
|
||||
|
||||
nlog("apparently no fee, so injecting here!");
|
||||
|
||||
if(!$invoice->uses_inclusive_taxes){ //must account for taxes! ? line item taxes also
|
||||
|
@ -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(),
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user