diff --git a/nau_extensions/financial_manager.py b/nau_extensions/financial_manager.py index 45d01fd..9913f6b 100644 --- a/nau_extensions/financial_manager.py +++ b/nau_extensions/financial_manager.py @@ -123,8 +123,8 @@ def _convert_order_lines(order): "description": line.title, "quantity": line.quantity, "vat_tax": vat_tax, - "unit_price_excl_tax": unit_price_excl_tax, - "unit_price_incl_tax": unit_price_incl_tax, + "unit_price_excl_vat": unit_price_excl_tax, + "unit_price_incl_vat": unit_price_incl_tax, "organization_code": organization_code, "product_code": product_code, "product_id": course_id, diff --git a/nau_extensions/tests/test_financial_manager.py b/nau_extensions/tests/test_financial_manager.py index 057bb22..35f3292 100644 --- a/nau_extensions/tests/test_financial_manager.py +++ b/nau_extensions/tests/test_financial_manager.py @@ -98,8 +98,8 @@ def test_financial_manager_sync_data_basic(self): "items": [ # verified { - "unit_price_excl_tax": Decimal("10.00"), - "unit_price_incl_tax": Decimal("10.00"), + "unit_price_excl_vat": Decimal("10.00"), + "unit_price_incl_vat": Decimal("10.00"), "description": "Seat in edX Demonstration Course with verified certificate", 'discount_excl_tax': Decimal('0.00'), 'discount_incl_tax': Decimal('0.00'), @@ -111,8 +111,8 @@ def test_financial_manager_sync_data_basic(self): }, # honor { - "unit_price_excl_tax": Decimal("0.00"), - "unit_price_incl_tax": Decimal("0.00"), + "unit_price_excl_vat": Decimal("0.00"), + "unit_price_incl_vat": Decimal("0.00"), "description": "Seat in edX Demonstration Course with honor certificate", 'discount_excl_tax': Decimal('0.00'), 'discount_incl_tax': Decimal('0.00'), @@ -200,8 +200,8 @@ def test_financial_manager_sync_data_with_tax_rate(self): "items": [ # verified { - "unit_price_excl_tax": Decimal("10.00"), - "unit_price_incl_tax": Decimal("12.99"), + "unit_price_excl_vat": Decimal("10.00"), + "unit_price_incl_vat": Decimal("12.99"), "description": "Seat in edX Demonstration Course with verified certificate", 'discount_excl_tax': Decimal('0.00'), 'discount_incl_tax': Decimal('0.00'), @@ -213,8 +213,8 @@ def test_financial_manager_sync_data_with_tax_rate(self): }, # honor { - "unit_price_excl_tax": Decimal("0.00"), - "unit_price_incl_tax": Decimal("0.00"), + "unit_price_excl_vat": Decimal("0.00"), + "unit_price_incl_vat": Decimal("0.00"), "description": "Seat in edX Demonstration Course with honor certificate", 'discount_excl_tax': Decimal('0.00'), 'discount_incl_tax': Decimal('0.00'), @@ -287,8 +287,8 @@ def test_financial_manager_sync_data_without_bbi(self): "items": [ # verified { - "unit_price_excl_tax": Decimal("10.00"), - "unit_price_incl_tax": Decimal("10.00"), + "unit_price_excl_vat": Decimal("10.00"), + "unit_price_incl_vat": Decimal("10.00"), "description": "Seat in edX Demonstration Course with verified certificate", "discount_excl_tax": Decimal("0.00"), "discount_incl_tax": Decimal("0.00"), @@ -300,8 +300,8 @@ def test_financial_manager_sync_data_without_bbi(self): }, # honor { - "unit_price_excl_tax": Decimal("0.00"), - "unit_price_incl_tax": Decimal("0.00"), + "unit_price_excl_vat": Decimal("0.00"), + "unit_price_incl_vat": Decimal("0.00"), "description": "Seat in edX Demonstration Course with honor certificate", "discount_excl_tax": Decimal("0.00"), "discount_incl_tax": Decimal("0.00"),