Merge pull request #7 from OdyX/no-double-swiss-qr

fix: do not allow Dolibarr's SwitzerlandQR
This commit is contained in:
benvia 2023-03-16 09:12:18 +01:00 committed by GitHub
commit f46bb28387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -460,7 +460,8 @@ class pdf_swissqr extends ModelePDFFactures
if (! empty($conf->global->INVOICE_ADD_ZATCA_QR_CODE)) {
$qrcodestring = $object->buildZATCAQRString();
} elseif (! empty($conf->global->INVOICE_ADD_SWISS_QR_CODE)) {
$qrcodestring = $object->buildSwitzerlandQRString();
// Do not allow another QR code; this module is about having the legit one.
// $qrcodestring = $object->buildSwitzerlandQRString();
}
if ($qrcodestring) {
$qrcodecolor = array('25', '25', '25');