FIX: add payment to bank (#34263)

This commit is contained in:
Francis Appels 2025-05-27 19:28:05 +02:00 committed by GitHub
parent 8f5889b987
commit cd72d947b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -426,8 +426,8 @@ class Paiement extends CommonObject
}
}
$totalamount = (float) price2num($totalamount);
$totalamount_converted = (float) price2num($totalamount_converted);
$totalamount = (float) price2num($totalamount, 'MT');
$totalamount_converted = (float) price2num($totalamount_converted, 'MT');
// Check parameters
if (empty($totalamount) && empty($atleastonepaymentnotnull)) { // We accept negative amounts for withdraw reject but not empty arrays