mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Fix warnings
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user