Update price, fix uk page

This commit is contained in:
Christian Cueni 2023-12-14 13:57:42 +01:00
parent 9eee55cbbf
commit be3100ee46
5 changed files with 16 additions and 19 deletions

View File

@ -55,8 +55,6 @@ const { t } = useTranslation();
</li>
</ol>
<div class="mt-4 flex space-x-2">
<p>{{ $t("Sprache wählen und Lehrgang starten") }}:</p>
<div>
<router-link
class="btn-primary"
:to="{ name: 'accountCreate', params: { courseType: 'uk' } }"
@ -67,7 +65,6 @@ const { t } = useTranslation();
</div>
</div>
</div>
</div>
</main>
<StartPageFooter>
{{ $t("uk.contact.title") }}

View File

@ -4,11 +4,11 @@
In the Django shop app, create new products that should be available in the shop:
- `vv-de` Price 30000 (300_00 -> 300.00 CHF), name & description can be anything.
- `vv-de` Price 32430 (324_3- -> 324.30 CHF), base 300 CHF + 8.1% MWSt., name & description can be anything.
- ONLY if `COURSE_VERSICHERUNGSVERMITTLERIN_ID` exists!
- `vv-fr` Price 30000 (300_00 -> 300.00 CHF), name & description can be anything.
- `vv-fr` Price 32430 (324_3- -> 324.30 CHF), base 300 CHF + 8.1% MWSt., name & description can be anything.
- ONLY if `COURSE_VERSICHERUNGSVERMITTLERIN_ID_FR` exists!
- `vv-it` Price 30000 (300_00 -> 300.00 CHF), name & description can be anything.
- `vv-it` Price 32430 (324_3- -> 324.30 CHF), base 300 CHF + 8.1% MWSt., name & description can be anything.
- ONLY if `COURSE_VERSICHERUNGSVERMITTLERIN_ID_IT` exists!
## Datatrans (Payment Provider)

View File

@ -36,7 +36,7 @@ class CheckoutAPITestCase(APITestCase):
def setUp(self) -> None:
Product.objects.create(
sku=VV_DE_PRODUCT_SKU,
price=300_00,
price=324_30,
description="VV",
name="VV",
)
@ -83,7 +83,7 @@ class CheckoutAPITestCase(APITestCase):
mock_init_transaction.assert_called_once_with(
user=self.user,
amount_chf_centimes=300_00,
amount_chf_centimes=324_30,
redirect_url_success=f"{REDIRECT_URL}/onboarding/{VV_DE_PRODUCT_SKU}/checkout/complete",
redirect_url_error=f"{REDIRECT_URL}/onboarding/{VV_DE_PRODUCT_SKU}/checkout/address?error",
redirect_url_cancel=f"{REDIRECT_URL}/",

View File

@ -38,7 +38,7 @@ class DatatransServiceTest(TestCase):
# WHEN
transaction_id = init_transaction(
user=self.user,
amount_chf_centimes=300_00,
amount_chf_centimes=324_30,
redirect_url_success=f"{REDIRECT_URL}/success",
redirect_url_error=f"{REDIRECT_URL}/error",
redirect_url_cancel=f"{REDIRECT_URL}/cancel",
@ -52,7 +52,7 @@ class DatatransServiceTest(TestCase):
url="https://api.sandbox.datatrans.com/v1/transactions",
json={
"autoSettle": True,
"amount": 300_00,
"amount": 324_30,
"currency": "CHF",
"language": self.user.language,
"refno": str(mock_uuid()),
@ -78,7 +78,7 @@ class DatatransServiceTest(TestCase):
with self.assertRaises(InitTransactionException):
init_transaction(
user=self.user,
amount_chf_centimes=300_00,
amount_chf_centimes=324_30,
redirect_url_success=f"/success",
redirect_url_error=f"/error",
redirect_url_cancel=f"/cancel",

View File

@ -22,7 +22,7 @@ def create_checkout_information(
user=user,
transaction_id=transaction_id,
product_sku=VV_DE_PRODUCT_SKU,
product_price=300_00,
product_price=324_30,
state=state.value,
)
@ -46,7 +46,7 @@ class DatatransWebhookTestCase(APITestCase):
self.product = Product.objects.create(
sku=VV_DE_PRODUCT_SKU,
price=300_00,
price=324_30,
description="VV",
name="VV",
)