Update paymentmodes.php (#34044)

Fix multicompany signatures on sepamandate
This commit is contained in:
Josep Lluís 2025-05-02 22:42:15 +02:00 committed by GitHub
parent 549b712c47
commit dfe997fa07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,6 +10,7 @@
* Copyright (C) 2021 Alexandre Spangaro <aspangaro@open-dsi.fr>
* Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2025 Josep Lluís Amador <joseplluis@lliuretic.cat>
*
* 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 '<td class="minwidth200 width200">';
$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');
}