This commit is contained in:
Laurent Destailleur 2026-08-18 10:43:30 +02:00
parent da94a9b1ae
commit 6acce68070

View file

@ -715,9 +715,10 @@ if ($event->type == 'payout.created' && getDolGlobalString('STRIPE_AUTO_RECORD_P
$appli = $mysoc->name;
$subject = '['.$appli.'] Invoice direct debit payment recevied';
$msg = 'An invoice direct debit payment for invoice '.$invoice->ref.' has been recevied';
if (is_object($arraydefaultmessage) && $arraydefaultmessage->id > 0) {
// Default value
$subject = '['.$appli.'] Invoice direct debit payment recieved';
$msg = 'An invoice direct debit payment for invoice '.$invoice->ref.' has been recieved';
if (is_object($arraydefaultmessage) && $arraydefaultmessage->id > 0) { // We overwrite with value from template
$subject = $arraydefaultmessage->topic;
$msg = $arraydefaultmessage->content;
}