update
This commit is contained in:
@@ -122,6 +122,7 @@ class PaymentMethodRepository
|
||||
'apilo_payment_type_id' => $this->normalizeApiloPaymentTypeId($data['apilo_payment_type_id'] ?? null),
|
||||
'min_order_amount' => $this->normalizeDecimalOrNull($data['min_order_amount'] ?? null),
|
||||
'max_order_amount' => $this->normalizeDecimalOrNull($data['max_order_amount'] ?? null),
|
||||
'is_cod' => (int)(!empty($data['is_cod']) ? 1 : 0),
|
||||
];
|
||||
|
||||
$this->db->update('pp_shop_payment_methods', $row, ['id' => $paymentMethodId]);
|
||||
@@ -240,7 +241,8 @@ class PaymentMethodRepository
|
||||
spm.status,
|
||||
spm.apilo_payment_type_id,
|
||||
spm.min_order_amount,
|
||||
spm.max_order_amount
|
||||
spm.max_order_amount,
|
||||
spm.is_cod
|
||||
FROM pp_shop_payment_methods AS spm
|
||||
INNER JOIN pp_shop_transport_payment_methods AS stpm
|
||||
ON stpm.id_payment_method = spm.id
|
||||
@@ -335,6 +337,7 @@ class PaymentMethodRepository
|
||||
$row['apilo_payment_type_id'] = $this->normalizeApiloPaymentTypeId($row['apilo_payment_type_id'] ?? null);
|
||||
$row['min_order_amount'] = $this->normalizeDecimalOrNull($row['min_order_amount'] ?? null);
|
||||
$row['max_order_amount'] = $this->normalizeDecimalOrNull($row['max_order_amount'] ?? null);
|
||||
$row['is_cod'] = (int)($row['is_cod'] ?? 0);
|
||||
|
||||
return $row;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user