Merge pull request #14541 from TobiasSekan/FixSinglePayWithMultiOnPaymentForun

FIX non-numeric value on multicurrency payment (part 2)
This commit is contained in:
Laurent Destailleur 2020-09-03 13:26:43 +02:00 committed by GitHub
commit 457342ee95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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');