From dfe997fa0754d5cf1e990d46625f6d762f02effb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josep=20Llu=C3=ADs?= Date: Fri, 2 May 2025 22:42:15 +0200 Subject: [PATCH] Update paymentmodes.php (#34044) Fix multicompany signatures on sepamandate --- htdocs/societe/paymentmodes.php | 2 ++ 1 file changed, 2 insertions(+) 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'); }