Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix get_goods_with_refunds for all returned products
Mateusz Grzyb2cca1ce7918b
diff --git a/saleor/payment/gateways/np_atobarai/api_helpers.py b/saleor/payment/gateways/np_atobarai/api_helpers.pyindex 09d5e08081..988bdfba59 100644--- a/saleor/payment/gateways/np_atobarai/api_helpers.py+++ b/saleor/payment/gateways/np_atobarai/api_helpers.py@@ -212,11 +212,6 @@ def get_goods_with_refunds()billed_amount += line.amount * quantity- # if there are no products in goods lines,- # do not calculate shipping/voucher/manual refund- if not goods_lines:- return [], Decimal("0.00")-goods_lines.extend(_get_voucher_and_shipping_goods(config, payment_information))billed_amount += payment_information.lines_data.shipping_amountbilled_amount += payment_information.lines_data.voucher_amount