mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0
This commit is contained in:
@@ -2206,7 +2206,6 @@ class Propal extends CommonObject
|
||||
|
||||
$this->ref = $num;
|
||||
$this->statut = self::STATUS_VALIDATED;
|
||||
$this->status = self::STATUS_VALIDATED;
|
||||
$this->user_validation_id = $user->id;
|
||||
$this->datev = $now;
|
||||
$this->date_validation = $now;
|
||||
|
||||
@@ -1899,6 +1899,9 @@ abstract class CommonInvoice extends CommonObject
|
||||
// Get the amount to pay
|
||||
$amount_to_pay = $this->getRemainToPay();
|
||||
|
||||
// Prevent negative values (e.g. overpayments)
|
||||
$amount_to_pay = max(0, $amount_to_pay);
|
||||
|
||||
// Ensure numeric formatting for EPC QR code
|
||||
$amount_to_pay = price2num($amount_to_pay, 'MT');
|
||||
|
||||
|
||||
@@ -268,7 +268,6 @@ class FormSetup
|
||||
$this->errors = $hookmanager->errors;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ($reshook > 0) {
|
||||
return $reshook;
|
||||
}
|
||||
|
||||
@@ -473,7 +473,7 @@ class InterfaceTicketEmail extends DolibarrTriggers
|
||||
$message_customer .= '<p>'.$langs->trans('Message').' : <br><br>'.$message.'</p><br>';
|
||||
|
||||
if (getDolGlobalInt('TICKET_ENABLE_PUBLIC_INTERFACE')) {
|
||||
$url_public_ticket = getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE', dol_buildpath('/public/ticket/', 2)).'view.php?track_id='.((int) $object->track_id);
|
||||
$url_public_ticket = getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE', dol_buildpath('/public/ticket/', 2)).'view.php?track_id='.urlencode($object->track_id);
|
||||
$message_customer .= '<p>'.$langs->trans($see_ticket).' : <a href="'.$url_public_ticket.'">'.$url_public_ticket.'</a></p>';
|
||||
$message_customer .= '<p>'.$langs->trans('TicketEmailPleaseDoNotReplyToThisEmail').'</p>';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user