Fix non-numeric value

This commit is contained in:
Sekan, Tobias 2020-08-24 15:26:06 +02:00
parent 3281d5ec17
commit 6d2aa6b654

View File

@ -177,7 +177,7 @@ class PaiementFourn extends Paiement
foreach ($amounts as $key => $value)
{
$value_converted = Multicurrency::getAmountConversionFromInvoiceRate($key, $value, $way, 'facture_fourn');
$value_converted = Multicurrency::getAmountConversionFromInvoiceRate($key, $value? $value : 0, $way, 'facture_fourn');
$totalamount_converted += $value_converted;
$amounts_to_update[$key] = price2num($value_converted, 'MT');