Merge pull request #14541 from TobiasSekan/FixSinglePayWithMultiOnPaymentForun
FIX non-numeric value on multicurrency payment (part 2)
This commit is contained in:
commit
457342ee95
@ -177,7 +177,7 @@ class PaiementFourn extends Paiement
|
|||||||
|
|
||||||
foreach ($amounts as $key => $value)
|
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;
|
$totalamount_converted += $value_converted;
|
||||||
$amounts_to_update[$key] = price2num($value_converted, 'MT');
|
$amounts_to_update[$key] = price2num($value_converted, 'MT');
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user