Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

Fix: Allow refunds on manually created orders

Dave Earley303f4cc0cd57
diff --git a/backend/app/DomainObjects/OrderDomainObject.php b/backend/app/DomainObjects/OrderDomainObject.php
index 1c2fcb38a..cb2b4ace6 100644
--- a/backend/app/DomainObjects/OrderDomainObject.php
+++ b/backend/app/DomainObjects/OrderDomainObject.php
@@ -331,10 +331,16 @@ class OrderDomainObject extends Generated\OrderDomainObjectAbstract implements I
{
return ! $this->isFreeOrder()
&& $this->getStatus() !== OrderPaymentStatus::AWAITING_OFFLINE_PAYMENT->name
- && in_array($this->getPaymentProvider(), [PaymentProviders::STRIPE->name, PaymentProviders::OFFLINE->name], true)
+ && ($this->getPaymentProvider() === PaymentProviders::STRIPE->name || $this->isPaidOutsidePlatform())
&& $this->getRefundStatus() !== OrderRefundStatus::REFUNDED->name;
}
+ public function isPaidOutsidePlatform(): bool
+ {
+ return $this->getPaymentProvider() === PaymentProviders::OFFLINE->name
+ || ($this->getPaymentProvider() === null && $this->getIsManuallyCreated());
+ }
+
public function getAddressDTO(): ?AddressDTO
{
if ($this->getAddress() === null) {
diff --git a/backend/app/Services/Application/Handlers/Order/Payment/Offline/RefundOfflineOrderHandler.php b/backend/app/Services/Application/Handlers/Order/Payment/Offline/RefundOfflineOrderHandler.php
index e56846216..8acf43619 100644
--- a/backend/app/Services/Application/Handlers/Order/Payment/Offline/RefundOfflineOrderHandler.php
+++ b/backend/app/Services/Application/Handlers/Order/Payment/Offline/RefundOfflineOrderHandler.php
@@ -2,7 +2,6 @@
namespace HiEvents\Services\Application\Handlers\Order\Payment\Offline;
-use HiEvents\DomainObjects\Enums\PaymentProviders;
use HiEvents\DomainObjects\EventSettingDomainObject;
use HiEvents\DomainObjects\OrderDomainObject;
use HiEvents\DomainObjects\OrganizerDomainObject;
@@ -84,7 +83,7 @@ class RefundOfflineOrderHandler
*/
private function validateRefundability(OrderDomainObject $order, float $amount): void
{
- if ($order->getPaymentProvider() !== PaymentProviders::OFFLINE->name) {
+ if (! $order->isPaidOutsidePlatform()) {
throw new RefundNotPossibleException(__('This order was not paid with an offline payment method.'));
}
diff --git a/backend/app/Services/Application/Handlers/Order/RefundOrderHandler.php b/backend/app/Services/Application/Handlers/Order/RefundOrderHandler.php
index b781652c6..478686d10 100644
--- a/backend/app/Services/Application/Handlers/Order/RefundOrderHandler.php
+++ b/backend/app/Services/Application/Handlers/Order/RefundOrderHandler.php
@@ -2,7 +2,6 @@
namespace HiEvents\Services\Application\Handlers\Order;
-use HiEvents\DomainObjects\Enums\PaymentProviders;
use HiEvents\DomainObjects\Generated\OrderDomainObjectAbstract;
use HiEvents\DomainObjects\OrderDomainObject;
use HiEvents\Exceptions\RefundNotPossibleException;
@@ -39,7 +38,7 @@ class RefundOrderHandler
]));
}
- if ($order->getPaymentProvider() === PaymentProviders::OFFLINE->name) {
+ if ($order->isPaidOutsidePlatform()) {
return $this->refundOfflineOrderHandler->handle($refundOrderDTO);
}
diff --git a/backend/tests/Unit/DomainObjects/OrderDomainObjectRefundabilityTest.php b/backend/tests/Unit/DomainObjects/OrderDomainObjectRefundabilityTest.php
new file mode 100644
index 000000000..be521c878
--- /dev/null
+++ b/backend/tests/Unit/DomainObjects/OrderDomainObjectRefundabilityTest.php
@@ -0,0 +1,76 @@
+<?php
+
+namespace Tests\Unit\DomainObjects;
+
+use HiEvents\DomainObjects\Enums\PaymentProviders;
+use HiEvents\DomainObjects\OrderDomainObject;
+use HiEvents\DomainObjects\Status\OrderRefundStatus;
+use HiEvents\DomainObjects\Status\OrderStatus;
+use Tests\TestCase;
+
+class OrderDomainObjectRefundabilityTest extends TestCase
+{
+ private function createOrder(
+ ?string $paymentProvider,
+ bool $isManuallyCreated = false,
+ float $totalGross = 100.0,
+ ?string $refundStatus = null,
+ ): OrderDomainObject {
+ return (new OrderDomainObject)
+ ->setStatus(OrderStatus::COMPLETED->name)
+ ->setPaymentProvider($paymentProvider)
+ ->setIsManuallyCreated($isManuallyCreated)
+ ->setTotalGross($totalGross)
+ ->setRefundStatus($refundStatus);
+ }
+
+ public function test_a_paid_manually_created_order_is_refundable_outside_the_platform(): void
+ {
+ $order = $this->createOrder(paymentProvider: null, isManuallyCreated: true);
+
+ $this->assertTrue($order->isPaidOutsidePlatform());
+ $this->assertTrue($order->isRefundable());
+ }
+
+ public function test_an_offline_order_is_paid_outside_the_platform(): void
+ {
+ $order = $this->createOrder(paymentProvider: PaymentProviders::OFFLINE->name);
+
+ $this->assertTrue($order->isPaidOutsidePlatform());
+ $this->assertTrue($order->isRefundable());
+ }
+
+ public function test_a_stripe_order_is_refundable_but_not_paid_outside_the_platform(): void
+ {
+ $order = $this->createOrder(paymentProvider: PaymentProviders::STRIPE->name, isManuallyCreated: true);
+
+ $this->assertFalse($order->isPaidOutsidePlatform());
+ $this->assertTrue($order->isRefundable());
+ }
+
+ public function test_an_order_without_a_provider_that_was_not_manually_created_is_not_refundable(): void
+ {
+ $order = $this->createOrder(paymentProvider: null);
+
+ $this->assertFalse($order->isPaidOutsidePlatform());
+ $this->assertFalse($order->isRefundable());
+ }
+
+ public function test_a_free_manually_created_order_is_not_refundable(): void
+ {
+ $order = $this->createOrder(paymentProvider: null, isManuallyCreated: true, totalGross: 0.0);
+
+ $this->assertFalse($order->isRefundable());
+ }
+
+ public function test_a_fully_refunded_manually_created_order_is_not_refundable(): void
+ {
+ $order = $this->createOrder(
+ paymentProvider: null,
+ isManuallyCreated: true,
+ refundStatus: OrderRefundStatus::REFUNDED->name,
+ );
+
+ $this->assertFalse($order->isRefundable());
+ }
+}
diff --git a/backend/tests/Unit/Services/Application/Handlers/Order/Payment/Offline/RefundOfflineOrderHandlerTest.php b/backend/tests/Unit/Services/Application/Handlers/Order/Payment/Offline/RefundOfflineOrderHandlerTest.php
index 5fff0299c..7f7571de1 100644
--- a/backend/tests/Unit/Services/Application/Handlers/Order/Payment/Offline/RefundOfflineOrderHandlerTest.php
+++ b/backend/tests/Unit/Services/Application/Handlers/Order/Payment/Offline/RefundOfflineOrderHandlerTest.php
@@ -128,6 +128,18 @@ class RefundOfflineOrderHandlerTest extends TestCase
$this->handler->handle($this->givenDTO(amount: 50.0, notifyBuyer: true));
}
+ public function test_a_manually_created_order_can_be_refunded(): void
+ {
+ $order = $this->givenOrderIsFound(paymentProvider: null, isManuallyCreated: true);
+ $this->givenOrderIsRefreshedAfterRefund();
+
+ $this->offlineOrderRefundService->shouldReceive('refundOrder')
+ ->once()
+ ->withArgs(fn (OrderDomainObject $refundOrder): bool => $refundOrder === $order);
+
+ $this->handler->handle($this->givenDTO(amount: 100.0));
+ }
+
public function test_a_non_offline_order_cannot_be_refunded(): void
{
$this->givenOrderIsFound(paymentProvider: PaymentProviders::STRIPE->name);
@@ -176,10 +188,11 @@ class RefundOfflineOrderHandlerTest extends TestCase
}
private function givenOrderIsFound(
- string $paymentProvider = PaymentProviders::OFFLINE->name,
+ ?string $paymentProvider = PaymentProviders::OFFLINE->name,
string $status = OrderStatus::COMPLETED->name,
?string $refundStatus = null,
float $totalRefunded = 0.0,
+ bool $isManuallyCreated = false,
): OrderDomainObject {
$order = (new OrderDomainObject)
->setId(self::ORDER_ID)
@@ -190,7 +203,8 @@ class RefundOfflineOrderHandlerTest extends TestCase
->setStatus($status)
->setRefundStatus($refundStatus)
->setTotalGross(100.0)
- ->setTotalRefunded($totalRefunded);
+ ->setTotalRefunded($totalRefunded)
+ ->setIsManuallyCreated($isManuallyCreated);
$this->orderRepository->shouldReceive('findFirstWhere')
->once()
diff --git a/backend/tests/Unit/Services/Application/Handlers/Order/RefundOrderHandlerTest.php b/backend/tests/Unit/Services/Application/Handlers/Order/RefundOrderHandlerTest.php
index 5bc1c8b9d..35660c49f 100644
--- a/backend/tests/Unit/Services/Application/Handlers/Order/RefundOrderHandlerTest.php
+++ b/backend/tests/Unit/Services/Application/Handlers/Order/RefundOrderHandlerTest.php
@@ -68,6 +68,18 @@ class RefundOrderHandlerTest extends TestCase
$this->assertSame($refundedOrder, $this->handler->handle($dto));
}
+ public function test_a_manually_created_order_is_refunded_by_the_offline_handler(): void
+ {
+ $this->givenOrderIsFound(null, isManuallyCreated: true);
+ $refundedOrder = new OrderDomainObject;
+
+ $dto = $this->givenDTO();
+ $this->refundOfflineOrderHandler->shouldReceive('handle')->once()->with($dto)->andReturn($refundedOrder);
+ $this->refundStripeOrderHandler->shouldNotReceive('handle');
+
+ $this->assertSame($refundedOrder, $this->handler->handle($dto));
+ }
+
public function test_a_missing_order_throws_a_not_found_exception(): void
{
$this->orderRepository->shouldReceive('findFirstWhere')->once()->andReturnNull();
@@ -88,11 +100,12 @@ class RefundOrderHandlerTest extends TestCase
);
}
- private function givenOrderIsFound(string $paymentProvider): void
+ private function givenOrderIsFound(?string $paymentProvider, bool $isManuallyCreated = false): void
{
$order = (new OrderDomainObject)
->setId(self::ORDER_ID)
- ->setPaymentProvider($paymentProvider);
+ ->setPaymentProvider($paymentProvider)
+ ->setIsManuallyCreated($isManuallyCreated);
$this->orderRepository->shouldReceive('findFirstWhere')
->once()
diff --git a/e2e/tests/management/orders-offline.spec.ts b/e2e/tests/management/orders-offline.spec.ts
index 69dec3e93..d1355e004 100644
--- a/e2e/tests/management/orders-offline.spec.ts
+++ b/e2e/tests/management/orders-offline.spec.ts
@@ -50,4 +50,30 @@ test.describe('offline orders', () => {
await expect(row.getByText('Cancelled')).toBeVisible();
await expect(row.getByText(/Refunded/)).toBeVisible();
});
+
+ test('an organizer cancels a paid manually created order and refunds it in one step', async ({ authedPage, api, account }) => {
+ const event = await createLiveEventWithPaidTicket(api, account.organizerId, 25);
+ const buyerEmail = uniqueEmail('manual');
+ await api.createAttendee(event.eventId, {
+ product_id: event.productId,
+ product_price_id: event.priceId,
+ email: buyerEmail,
+ first_name: 'Manual',
+ last_name: 'Attendee',
+ amount_paid: 25,
+ send_confirmation_email: false,
+ locale: 'en',
+ });
+
+ const orders = new OrderPage(authedPage);
+ await orders.goto(event.eventId);
+ await orders.chooseRowAction(buyerEmail, 'Cancel order');
+
+ await expect(authedPage.getByRole('checkbox', { name: 'Also refund this order' })).toBeChecked();
+ await orders.confirmCancelOrder();
+
+ const row = orders.rowByEmail(buyerEmail);
+ await expect(row.getByText('Cancelled')).toBeVisible();
+ await expect(row.getByText(/Refunded/)).toBeVisible();
+ });
});
diff --git a/frontend/src/components/modals/RefundOrderModal/index.tsx b/frontend/src/components/modals/RefundOrderModal/index.tsx
index dd31f66f3..dfb94a4a4 100644
--- a/frontend/src/components/modals/RefundOrderModal/index.tsx
+++ b/frontend/src/components/modals/RefundOrderModal/index.tsx
@@ -175,10 +175,6 @@ export const RefundOrderModal = ({onClose, orderId}: RefundOrderModalProps) => {
}
const getModalBody = () => {
- if (order.is_manually_created) {
- return <CannotRefund message={t`You cannot refund a manually created order.`}/>
- }
-
if (isRefundPending) {
return <CannotRefund
message={t`There is a refund pending. Please wait for it to complete before requesting another refund.`}/>
diff --git a/frontend/src/locales/de.po b/frontend/src/locales/de.po
index b3e1cefae..739041955 100644
--- a/frontend/src/locales/de.po
+++ b/frontend/src/locales/de.po
@@ -11707,7 +11707,7 @@ msgstr "Rückerstattung fehlgeschlagen"
msgid "Refund order"
msgstr "Rückerstattungsauftrag"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Bestellung {0} erstatten"
@@ -14802,7 +14802,7 @@ msgstr "In dieser Kategorie sind keine Produkte verfügbar"
msgid "There are no upcoming dates for this event"
msgstr "Für diese Veranstaltung gibt es keine bevorstehenden Termine"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "Eine Rückerstattung steht aus. Bitte warten Sie, bis der Vorgang abgeschlossen ist, bevor Sie eine weitere Rückerstattung anfordern."
@@ -15106,7 +15106,7 @@ msgstr "Dieser Termin ist ausgelastet"
msgid "This order has already been paid."
msgstr "Diese Bestellung wurde bereits bezahlt."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Diese Bestellung wurde bereits zurückerstattet."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Sie können die Rolle oder den Status des Kontoinhabers nicht bearbeiten."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Sie können eine manuell erstellte Bestellung nicht zurückerstatten."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Sie können eine manuell erstellte Bestellung nicht zurückerstatten."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/el.po b/frontend/src/locales/el.po
index abe5b0a83..450f65ec1 100644
--- a/frontend/src/locales/el.po
+++ b/frontend/src/locales/el.po
@@ -11707,7 +11707,7 @@ msgstr "Αποτυχία Επιστροφής"
msgid "Refund order"
msgstr "Επιστροφή παραγγελίας"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Επιστροφή Παραγγελίας {0}"
@@ -14802,7 +14802,7 @@ msgstr "Δεν υπάρχουν διαθέσιμα προϊόντα σε αυτ
msgid "There are no upcoming dates for this event"
msgstr "Αυτή η εκδήλωση δεν έχει προσεχείς ημερομηνίες"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "Υπάρχει επιστροφή σε εκκρεμότητα. Παρακαλώ περιμένετε να ολοκληρωθεί πριν ζητήσετε άλλη."
@@ -15106,7 +15106,7 @@ msgstr "Αυτή η ημερομηνία έχει καλυφθεί πλήρως"
msgid "This order has already been paid."
msgstr "Αυτή η παραγγελία έχει ήδη πληρωθεί."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Αυτή η παραγγελία έχει ήδη επιστραφεί."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Δεν μπορείτε να επεξεργαστείτε τον ρόλο ή την κατάσταση του κατόχου λογαριασμού."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Δεν μπορείτε να επιστρέψετε χειροκίνητα δημιουργημένη παραγγελία."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Δεν μπορείτε να επιστρέψετε χειροκίνητα δημιουργημένη παραγγελία."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/en.po b/frontend/src/locales/en.po
index f85ff225f..004a6762a 100644
--- a/frontend/src/locales/en.po
+++ b/frontend/src/locales/en.po
@@ -11707,7 +11707,7 @@ msgstr "Refund Failed"
msgid "Refund order"
msgstr "Refund order"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Refund Order {0}"
@@ -14802,7 +14802,7 @@ msgstr "There are no products available in this category"
msgid "There are no upcoming dates for this event"
msgstr "There are no upcoming dates for this event"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "There is a refund pending. Please wait for it to complete before requesting another refund."
@@ -15106,7 +15106,7 @@ msgstr "This occurrence is at capacity"
msgid "This order has already been paid."
msgstr "This order has already been paid."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "This order has already been refunded."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "You cannot edit the role or status of the account owner."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "You cannot refund a manually created order."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "You cannot refund a manually created order."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/es.po b/frontend/src/locales/es.po
index 1c6275160..eb9be244c 100644
--- a/frontend/src/locales/es.po
+++ b/frontend/src/locales/es.po
@@ -11707,7 +11707,7 @@ msgstr "Reembolso fallido"
msgid "Refund order"
msgstr "Orden de reembolso"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Reembolsar pedido {0}"
@@ -14802,7 +14802,7 @@ msgstr "No hay productos disponibles en esta categoría"
msgid "There are no upcoming dates for this event"
msgstr "Este evento no tiene próximas fechas"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "Hay un reembolso pendiente. Espere a que se complete antes de solicitar otro reembolso."
@@ -15106,7 +15106,7 @@ msgstr "Esta fecha ha alcanzado su capacidad máxima"
msgid "This order has already been paid."
msgstr "Este pedido ya ha sido pagado."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Este pedido ya ha sido reembolsado."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "No puede editar la función o el estado del propietario de la cuenta."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "No puede reembolsar un pedido creado manualmente."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "No puede reembolsar un pedido creado manualmente."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/fi.po b/frontend/src/locales/fi.po
index c8a54d8aa..72661b0e0 100644
--- a/frontend/src/locales/fi.po
+++ b/frontend/src/locales/fi.po
@@ -11707,7 +11707,7 @@ msgstr "Hyvitys epäonnistui"
msgid "Refund order"
msgstr "Hyvitä tilaus"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Hyvitä tilaus {0}"
@@ -14802,7 +14802,7 @@ msgstr "Tässä kategoriassa ei ole saatavilla tuotteita"
msgid "There are no upcoming dates for this event"
msgstr "Tälle tapahtumalle ei ole tulevia ajankohtia"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "Hyvitys on odottamassa. Odota sen valmistumista ennen uuden hyvityksen pyytämistä."
@@ -15106,7 +15106,7 @@ msgstr "Tämä tapahtumakerta on täynnä"
msgid "This order has already been paid."
msgstr "Tilaus on jo maksettu."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Tilauksesta on jo tehty hyvitys."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Et voi muokata tilin omistajan roolia tai tilaa."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Manuaalisesti luotua tilausta ei voi hyvittää."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Manuaalisesti luotua tilausta ei voi hyvittää."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/fr.po b/frontend/src/locales/fr.po
index 7f3cb3279..d81cc8f0c 100644
--- a/frontend/src/locales/fr.po
+++ b/frontend/src/locales/fr.po
@@ -11707,7 +11707,7 @@ msgstr "Remboursement échoué"
msgid "Refund order"
msgstr "Commande de remboursement"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Rembourser la commande {0}"
@@ -14802,7 +14802,7 @@ msgstr "Il n'y a pas de produits disponibles dans cette catégorie"
msgid "There are no upcoming dates for this event"
msgstr "Cet événement n'a aucune date à venir"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "Un remboursement est en attente. Veuillez attendre qu'il soit terminé avant de demander un autre remboursement."
@@ -15106,7 +15106,7 @@ msgstr "Cette date a atteint sa capacité maximale"
msgid "This order has already been paid."
msgstr "Cette commande a déjà été payée."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Cette commande a déjà été remboursée."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Vous ne pouvez pas modifier le rôle ou le statut du propriétaire du compte."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Vous ne pouvez pas rembourser une commande créée manuellement."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Vous ne pouvez pas rembourser une commande créée manuellement."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/hu.po b/frontend/src/locales/hu.po
index 774fd92cc..6d49732e6 100644
--- a/frontend/src/locales/hu.po
+++ b/frontend/src/locales/hu.po
@@ -11707,7 +11707,7 @@ msgstr "Visszatérítés sikertelen"
msgid "Refund order"
msgstr "Megrendelés visszatérítése"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Rendelés visszatérítése {0}"
@@ -14802,7 +14802,7 @@ msgstr "Nincsenek elérhető termékek ebben a kategóriában."
msgid "There are no upcoming dates for this event"
msgstr "Ehhez az eseményhez nincs közelgő időpont"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "Függőben lévő visszatérítés van. Kérjük, várja meg a befejezését, mielőtt újabb visszatérítést kérne."
@@ -15106,7 +15106,7 @@ msgstr "Ez az időpont betelt"
msgid "This order has already been paid."
msgstr "Ez a megrendelés már ki lett fizetve."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Ez a megrendelés már visszatérítésre került."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Nem szerkesztheti a fióktulajdonos szerepét vagy állapotát."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Nem téríthet vissza manuálisan létrehozott megrendelést."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Nem téríthet vissza manuálisan létrehozott megrendelést."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/it.po b/frontend/src/locales/it.po
index 5fe5cc4a5..fa29a4691 100644
--- a/frontend/src/locales/it.po
+++ b/frontend/src/locales/it.po
@@ -11707,7 +11707,7 @@ msgstr "Rimborso Fallito"
msgid "Refund order"
msgstr "Rimborsa ordine"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Rimborsa ordine {0}"
@@ -14802,7 +14802,7 @@ msgstr "Non ci sono prodotti disponibili in questa categoria"
msgid "There are no upcoming dates for this event"
msgstr "Questo evento non ha date in programma"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "C'è un rimborso in attesa. Attendi che sia completato prima di richiedere un altro rimborso."
@@ -15106,7 +15106,7 @@ msgstr "Questa data ha raggiunto la capacità massima"
msgid "This order has already been paid."
msgstr "Questo ordine è già stato pagato."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Questo ordine è già stato rimborsato."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Non puoi modificare il ruolo o lo stato del proprietario dell'account."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Non puoi rimborsare un ordine creato manualmente."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Non puoi rimborsare un ordine creato manualmente."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/ko.po b/frontend/src/locales/ko.po
index cf724b850..7aa3081c7 100644
--- a/frontend/src/locales/ko.po
+++ b/frontend/src/locales/ko.po
@@ -11707,7 +11707,7 @@ msgstr "환불 실패"
msgid "Refund order"
msgstr "주문 환불"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "주문 {0} 환불"
@@ -14802,7 +14802,7 @@ msgstr "이 카테고리에는 이용 가능한 상품이 없습니다"
msgid "There are no upcoming dates for this event"
msgstr "이 이벤트에 예정된 날짜가 없습니다"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "대기 중인 환불이 있습니다. 완료될 때까지 기다린 후 다른 환불을 요청해 주세요."
@@ -15106,7 +15106,7 @@ msgstr "이 회차는 정원이 가득 찼습니다"
msgid "This order has already been paid."
msgstr "이 주문은 이미 결제되었습니다."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "이 주문은 이미 환불되었습니다."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "계정 소유자의 역할이나 상태는 수정할 수 없습니다."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "수동으로 생성된 주문은 환불할 수 없습니다."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "수동으로 생성된 주문은 환불할 수 없습니다."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/nl.po b/frontend/src/locales/nl.po
index 81be6184e..b08231c83 100644
--- a/frontend/src/locales/nl.po
+++ b/frontend/src/locales/nl.po
@@ -11708,7 +11708,7 @@ msgstr "Terugbetaling mislukt"
msgid "Refund order"
msgstr "Bestelling terugbetalen"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Bestelling {0} terugbetalen"
@@ -14803,7 +14803,7 @@ msgstr "Er zijn geen producten beschikbaar in deze categorie"
msgid "There are no upcoming dates for this event"
msgstr "Dit evenement heeft geen komende datums"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "Er is een restitutie in behandeling. Wacht tot deze is voltooid voordat je een nieuwe restitutie aanvraagt."
@@ -15107,7 +15107,7 @@ msgstr "Deze datum zit vol"
msgid "This order has already been paid."
msgstr "Deze bestelling is al betaald."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Deze bestelling is al terugbetaald."
@@ -17282,8 +17282,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Je kunt de rol of status van de accounteigenaar niet bewerken."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Je kunt een handmatig aangemaakte bestelling niet terugbetalen."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Je kunt een handmatig aangemaakte bestelling niet terugbetalen."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/pl.po b/frontend/src/locales/pl.po
index dc2724e36..32ffe50b6 100644
--- a/frontend/src/locales/pl.po
+++ b/frontend/src/locales/pl.po
@@ -11707,7 +11707,7 @@ msgstr "Zwrot nie powiódł się"
msgid "Refund order"
msgstr "Zwróć zamówienie"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Zwróć zamówienie {0}"
@@ -14802,7 +14802,7 @@ msgstr "Brak dostępnych produktów w tej kategorii"
msgid "There are no upcoming dates for this event"
msgstr "To wydarzenie nie ma nadchodzących terminów"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "Zwrot jest w toku. Proszę czekać na jego zakończenie przed złożeniem nowego żądania zwrotu."
@@ -15106,7 +15106,7 @@ msgstr "Ten termin osiągnął limit miejsc"
msgid "This order has already been paid."
msgstr "To zamówienie zostało już opłacone."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "To zamówienie zostało już zwrócone."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Nie możesz edytować roli lub statusu właściciela konta."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Nie możesz zwrócić ręcznie utworzonego zamówienia."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Nie możesz zwrócić ręcznie utworzonego zamówienia."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/pt-br.po b/frontend/src/locales/pt-br.po
index ea6f46082..136408286 100644
--- a/frontend/src/locales/pt-br.po
+++ b/frontend/src/locales/pt-br.po
@@ -11707,7 +11707,7 @@ msgstr "Reembolso falhou"
msgid "Refund order"
msgstr "Pedido de reembolso"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Reembolsar pedido {0}"
@@ -14802,7 +14802,7 @@ msgstr "Não há produtos disponíveis nesta categoria"
msgid "There are no upcoming dates for this event"
msgstr "Este evento não tem datas futuras"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "Há um reembolso pendente. Aguarde a conclusão do processo antes de solicitar outro reembolso."
@@ -15106,7 +15106,7 @@ msgstr "Esta data atingiu a capacidade máxima"
msgid "This order has already been paid."
msgstr "Esse pedido já foi pago."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Esse pedido já foi reembolsado."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Não é possível editar a função ou o status do proprietário da conta."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Não é possível reembolsar um pedido criado manualmente."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Não é possível reembolsar um pedido criado manualmente."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/pt.po b/frontend/src/locales/pt.po
index 78df1cba6..0b6e95d60 100644
--- a/frontend/src/locales/pt.po
+++ b/frontend/src/locales/pt.po
@@ -11707,7 +11707,7 @@ msgstr "Reembolso falhou"
msgid "Refund order"
msgstr "Pedido de reembolso"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Reembolsar pedido {0}"
@@ -14802,7 +14802,7 @@ msgstr "Não há produtos disponíveis nesta categoria"
msgid "There are no upcoming dates for this event"
msgstr "Este evento não tem datas futuras"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "Há um reembolso pendente. Aguarde a conclusão antes de solicitar outro reembolso."
@@ -15106,7 +15106,7 @@ msgstr "Esta data atingiu a capacidade máxima"
msgid "This order has already been paid."
msgstr "Este pedido já foi pago."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Este pedido já foi reembolsado."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Você não pode editar a função ou o status do proprietário da conta."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Você não pode reembolsar um pedido criado manualmente."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Você não pode reembolsar um pedido criado manualmente."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/ru.po b/frontend/src/locales/ru.po
index 1437d0291..c40e3d4f0 100644
--- a/frontend/src/locales/ru.po
+++ b/frontend/src/locales/ru.po
@@ -11703,7 +11703,7 @@ msgstr ""
msgid "Refund order"
msgstr ""
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Возврат заказа {0}"
@@ -14798,7 +14798,7 @@ msgstr ""
msgid "There are no upcoming dates for this event"
msgstr ""
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr ""
@@ -15102,7 +15102,7 @@ msgstr ""
msgid "This order has already been paid."
msgstr ""
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr ""
@@ -17277,8 +17277,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr ""
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr ""
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr ""
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/se.po b/frontend/src/locales/se.po
index 60041f81c..9c19e0e9e 100644
--- a/frontend/src/locales/se.po
+++ b/frontend/src/locales/se.po
@@ -11707,7 +11707,7 @@ msgstr "Återbetalning misslyckades"
msgid "Refund order"
msgstr "Återbetala order"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Återbetala order {0}"
@@ -14802,7 +14802,7 @@ msgstr "Det finns inga produkter tillgängliga i den här kategorin"
msgid "There are no upcoming dates for this event"
msgstr "Det finns inga kommande datum för det här evenemanget"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "En återbetalning väntar. Vänta tills den är slutförd innan du begär en ny återbetalning."
@@ -15106,7 +15106,7 @@ msgstr "Det här datumet är fullbokat"
msgid "This order has already been paid."
msgstr "Den här ordern är redan betald."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Den här ordern har redan återbetalats."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Du kan inte redigera kontoinnehavarens roll eller status."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Du kan inte återbetala en manuellt skapad order."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Du kan inte återbetala en manuellt skapad order."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/sk.po b/frontend/src/locales/sk.po
index 0d92923d1..766c3a5f5 100644
--- a/frontend/src/locales/sk.po
+++ b/frontend/src/locales/sk.po
@@ -11707,7 +11707,7 @@ msgstr "Vrátenie zlyhalo"
msgid "Refund order"
msgstr "Vrátiť objednávku"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Vrátiť objednávku {0}"
@@ -14802,7 +14802,7 @@ msgstr "V tejto kategórii nie sú dostupné žiadne produkty"
msgid "There are no upcoming dates for this event"
msgstr "Toto podujatie nemá žiadne nadchádzajúce termíny"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "Čaká sa na vrátenie. Počkajte na jeho dokončenie pred ďalším vrátením."
@@ -15106,7 +15106,7 @@ msgstr "Tento termín má naplnenú kapacitu"
msgid "This order has already been paid."
msgstr "Táto objednávka už bola zaplatená."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Táto objednávka už bola vrátená."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Nemôžete upraviť rolu ani stav vlastníka účtu."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Nemôžete vrátiť manuálne vytvorenú objednávku."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Nemôžete vrátiť manuálne vytvorenú objednávku."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/tr.po b/frontend/src/locales/tr.po
index 1e0f9b53a..87528a4ed 100644
--- a/frontend/src/locales/tr.po
+++ b/frontend/src/locales/tr.po
@@ -11707,7 +11707,7 @@ msgstr "İade Başarısız"
msgid "Refund order"
msgstr "Siparişi iade et"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Siparişi İade Et {0}"
@@ -14802,7 +14802,7 @@ msgstr "Bu kategoride mevcut ürün yok"
msgid "There are no upcoming dates for this event"
msgstr "Bu etkinliğin yaklaşan tarihi yok"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "Bekleyen bir iade var. Başka bir iade talebinde bulunmadan önce lütfen tamamlanmasını bekleyin."
@@ -15106,7 +15106,7 @@ msgstr "Bu tarih kapasitesini doldurdu"
msgid "This order has already been paid."
msgstr "Bu sipariş zaten ödenmiş."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Bu sipariş zaten iade edilmiş."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Hesap sahibinin rolünü veya durumunu düzenleyemezsiniz."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Elle oluşturulan bir siparişi iade edemezsiniz."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Elle oluşturulan bir siparişi iade edemezsiniz."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/vi.po b/frontend/src/locales/vi.po
index 5ffd14d2c..4354265e5 100644
--- a/frontend/src/locales/vi.po
+++ b/frontend/src/locales/vi.po
@@ -11707,7 +11707,7 @@ msgstr "Hoàn tiền không thành công"
msgid "Refund order"
msgstr "Lệnh hoàn trả"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "Hoàn tiền đơn hàng {0}"
@@ -14802,7 +14802,7 @@ msgstr "Không có sản phẩm nào trong danh mục này"
msgid "There are no upcoming dates for this event"
msgstr "Sự kiện này không có ngày nào sắp tới"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "Có một khoản hoàn tiền đang chờ xử lý. Vui lòng đợi hoàn tất trước khi yêu cầu hoàn tiền khác."
@@ -15106,7 +15106,7 @@ msgstr "Ngày này đã kín chỗ"
msgid "This order has already been paid."
msgstr "Đơn hàng này đã được thanh toán."
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "Đơn hàng này đã được hoàn trả."
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "Bạn không thể chỉnh sửa vai trò hoặc trạng thái của chủ sở hữu tài khoản."
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "Bạn không thể hoàn trả một Đơn hàng được tạo thủ công."
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "Bạn không thể hoàn trả một Đơn hàng được tạo thủ công."
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/zh-cn.po b/frontend/src/locales/zh-cn.po
index c71bb93b9..08d863e67 100644
--- a/frontend/src/locales/zh-cn.po
+++ b/frontend/src/locales/zh-cn.po
@@ -11707,7 +11707,7 @@ msgstr "退款失败"
msgid "Refund order"
msgstr "退款订单"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "退款订单 {0}"
@@ -14802,7 +14802,7 @@ msgstr "此类别中没有可用产品"
msgid "There are no upcoming dates for this event"
msgstr "该活动没有即将到来的日期"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "退款正在处理中。请等待退款完成后再申请退款。"
@@ -15106,7 +15106,7 @@ msgstr "该场次已满员"
msgid "This order has already been paid."
msgstr "此订单已付款。"
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "此订单已退款。"
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "不能编辑账户所有者的角色或状态。"
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "您不能退还手动创建的订单。"
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "您不能退还手动创建的订单。"
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/locales/zh-hk.po b/frontend/src/locales/zh-hk.po
index 8f882396e..823f42f54 100644
--- a/frontend/src/locales/zh-hk.po
+++ b/frontend/src/locales/zh-hk.po
@@ -11707,7 +11707,7 @@ msgstr "退款失敗"
msgid "Refund order"
msgstr "退款訂單"
-#: src/components/modals/RefundOrderModal/index.tsx:201
+#: src/components/modals/RefundOrderModal/index.tsx:197
msgid "Refund Order {0}"
msgstr "退款訂單 {0}"
@@ -14802,7 +14802,7 @@ msgstr "此類別中沒有可用產品"
msgid "There are no upcoming dates for this event"
msgstr "此活動沒有即將舉行的日期"
-#: src/components/modals/RefundOrderModal/index.tsx:184
+#: src/components/modals/RefundOrderModal/index.tsx:180
msgid "There is a refund pending. Please wait for it to complete before requesting another refund."
msgstr "退款正在處理中。請等待退款完成後再申請退款。"
@@ -15106,7 +15106,7 @@ msgstr "此場次已滿額"
msgid "This order has already been paid."
msgstr "此訂單已付款。"
-#: src/components/modals/RefundOrderModal/index.tsx:188
+#: src/components/modals/RefundOrderModal/index.tsx:184
msgid "This order has already been refunded."
msgstr "此訂單已退款。"
@@ -17281,8 +17281,8 @@ msgid "You cannot edit the role or status of the account owner."
msgstr "不能編輯賬户所有者的角色或狀態。"
#: src/components/modals/RefundOrderModal/index.tsx:179
-msgid "You cannot refund a manually created order."
-msgstr "您不能退還手動創建的訂單。"
+#~ msgid "You cannot refund a manually created order."
+#~ msgstr "您不能退還手動創建的訂單。"
#: src/components/modals/ChooseAccountModal/index.tsx:14
msgid "You have access to multiple accounts. Please choose one to continue."
diff --git a/frontend/src/utilites/orderHelper.ts b/frontend/src/utilites/orderHelper.ts
index 12665f502..a2ea5f442 100644
--- a/frontend/src/utilites/orderHelper.ts
+++ b/frontend/src/utilites/orderHelper.ts
@@ -1,9 +1,11 @@
import {Order} from "../types.ts";
+export const isOfflineOrder = (order: Order): boolean =>
+ order.payment_provider === 'OFFLINE'
+ || (!order.payment_provider && order.is_manually_created);
+
export const isOrderRefundable = (order: Order): boolean =>
!order.is_free_order
&& order.status !== 'AWAITING_OFFLINE_PAYMENT'
- && (order.payment_provider === 'STRIPE' || order.payment_provider === 'OFFLINE')
+ && (order.payment_provider === 'STRIPE' || isOfflineOrder(order))
&& order.refund_status !== 'REFUNDED';
-
-export const isOfflineOrder = (order: Order): boolean => order.payment_provider === 'OFFLINE';