fixed incorect payment adding when passed im addOrderPaymentDetail function
This commit is contained in:
@@ -1781,7 +1781,7 @@ class OrderCore extends ObjectModel
|
||||
public function addOrderPaymentDetail(OrderPayment $payment, $amount = null, $order_invoice = null)
|
||||
{
|
||||
if (Validate::isLoadedObject($payment)) {
|
||||
if (!is_null($amount)) {
|
||||
if (is_null($amount)) {
|
||||
$amount = $payment->amount;
|
||||
}
|
||||
$order_payment_detail = new OrderPaymentDetail();
|
||||
|
||||
Reference in New Issue
Block a user