diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index aadad0f52ef..d27f6dc03cb 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -10,6 +10,7 @@ * Copyright (C) 2021 Alexandre Spangaro * Copyright (C) 2024-2025 MDW * Copyright (C) 2024 Frédéric France + * Copyright (C) 2025 Josep Lluís Amador * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1762,6 +1763,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' print ''; $useonlinesignature = 1; if ($useonlinesignature) { + $rib->entity = $object->entity; //Assign $rib->entity necessary for a valid multicompany hash require_once DOL_DOCUMENT_ROOT . '/core/lib/signature.lib.php'; print showOnlineSignatureUrl($companybankaccount->element, (string) $rib->id, $rib, 'short'); }