2
0
forked from Wavyzz/dolibarr

Fix warnings

This commit is contained in:
Laurent Destailleur
2023-12-15 14:20:54 +01:00
parent ec9c0a0a88
commit f5a58e7693
2 changed files with 2 additions and 2 deletions

View File

@@ -1580,7 +1580,7 @@ class Invoices extends DolibarrApi
}
if ($this->invoice->type == Facture::TYPE_CREDIT_NOTE) {
$amount = -$amount;
$amount = price2num(-1 * $amount, 'MT');
}
if ($is_multicurrency) {

View File

@@ -181,7 +181,7 @@ if (empty($reshook)) {
$amount = price2num(GETPOST("amount", 'alpha'));
if ($refund == 1) {
$amount = -$amount;
$amount = price2num(-1 * $amount);
}
$object->amount = $amount;
$object->label = GETPOST("label", 'alpha');