mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Clean up for logging
This commit is contained in:
parent
ccfc2f7bfc
commit
f1d6283a94
@ -13,6 +13,7 @@ namespace App\Helpers\Epc;
|
||||
|
||||
use App\Models\Company;
|
||||
use App\Models\Invoice;
|
||||
use App\Utils\Ninja;
|
||||
use BaconQrCode\Renderer\ImageRenderer;
|
||||
use BaconQrCode\Renderer\Image\SvgImageBackEnd;
|
||||
use BaconQrCode\Renderer\RendererStyle\RendererStyle;
|
||||
@ -77,10 +78,10 @@ class EpcQrGenerator
|
||||
private function validateFields()
|
||||
{
|
||||
|
||||
if(isset($this->company?->custom_fields?->company2))
|
||||
if(Ninja::isSelfHost() && isset($this->company?->custom_fields?->company2))
|
||||
nlog('The BIC field is not present and _may_ be a required fields for EPC QR codes');
|
||||
|
||||
if(isset($this->company?->custom_fields?->company1))
|
||||
if(Ninja::isSelfHost() && isset($this->company?->custom_fields?->company1))
|
||||
nlog('The IBAN field is required');
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user