Fix warnings
This commit is contained in:
parent
ec9c0a0a88
commit
f5a58e7693
2 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue