This commit is contained in:
Laurent Destailleur 2023-07-19 22:34:25 +02:00
parent 4ba8324a3f
commit fbcb6da4e7
3 changed files with 7 additions and 7 deletions

View File

@ -163,22 +163,22 @@ if (isModEnabled('facture')) {
print ajax_constantonoff('INVOICE_ADD_ZATCA_QR_CODE');
} else {
$arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes"));
print $form->selectarray("INVOICE_ADD_ZATCA_QR_CODE", $arrval, $conf->global->INVOICE_ADD_ZATCA_QR_CODE);
print $form->selectarray("INVOICE_ADD_ZATCA_QR_CODE", $arrval, getDolGlobalString('INVOICE_ADD_ZATCA_QR_CODE'));
}
print '</td></tr>';
print '<tr class="oddeven"><td>';
if (getDolGlobalString('INVOICE_ADD_ZATCA_QR_CODE') == 'bottom') {
if (getDolGlobalString('INVOICE_ADD_SWISS_QR_CODE') == 'bottom') {
print $form->textwithpicto($langs->trans("INVOICE_ADD_SWISS_QR_CODE"), $langs->trans("INVOICE_ADD_SWISS_QR_CODEMore"));
} else {
print $langs->trans("INVOICE_ADD_SWISS_QR_CODE");
}
print '</td><td>';
$arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes"));
if (getDolGlobalString('MAIN_FEATURE_LEVEL') >= 1) {
$arrval['bottom'] = $langs->trans("AtBottomOfPage").' ('.$langs->trans("Experimental").' - Need PHP 8.1+)';
if (getDolGlobalString('MAIN_FEATURES_LEVEL') >= 1) {
$arrval['bottom'] = $langs->trans("AtBottomOfPage").' ('.$langs->trans("Experimental").' - Need PHP 8.1+ and some PHP libs)';
}
print $form->selectarray("INVOICE_ADD_SWISS_QR_CODE", $arrval, $conf->global->INVOICE_ADD_SWISS_QR_CODE);
print $form->selectarray("INVOICE_ADD_SWISS_QR_CODE", $arrval, getDolGlobalString('INVOICE_ADD_SWISS_QR_CODE'));
print '</td></tr>';
// Mention category of operations

View File

@ -359,7 +359,7 @@ WarningModuleNeedRefrech = Module <b>%s</b> has been disabled. Don't forget to e
WarningPermissionAlreadyExist=Existing permissions for this object
WarningGoOnAccountancySetupToAddAccounts=If this list is empty, go into menu %s - %s - %s to load or create accounts for your chart of account.
SwissQrOnlyVIR = SwissQR invoice can only be added on invoices set to be paid with direct debit payments.
SwissQrOnlyVIR = SwissQR invoice can only be added on invoices set to be paid with credit transfer payments.
SwissQrCreditorAddressInvalid = Creditor address is invalid (are ZIP and city set? (%s)
SwissQrCreditorInformationInvalid = Creditor information is invalid for IBAN (%s): %s
SwissQrIbanNotImplementedYet = QR-IBAN not implemented yet

View File

@ -358,7 +358,7 @@ WarningAutoValNotPossibleWhenStockIsDecreasedOnInvoiceVal=La validation automati
WarningModuleNeedRefrech = Le module <b>%s</b> a été désactivé. N'oubliez pas de le réactiver
WarningPermissionAlreadyExist=Autorisations existantes pour cet objet
SwissQrOnlyVIR = La facture SwissQR ne peut être ajoutée que sur les factures configurées pour être payées par prélèvement automatique.
SwissQrOnlyVIR = La facture SwissQR ne peut être ajoutée que sur les factures configurées pour être payées par virement.
SwissQrCreditorAddressInvalid = L'adresse du créancier n'est pas valide (le code postal et la ville sont-ils définis ? (%s)
SwissQrCreditorInformationInvalid = Les informations sur le créancier ne sont pas valides pour l'IBAN (%s) : %s
SwissQrIbanNotImplementedYet = QR-IBAN pas encore implémenté