-
- Subtotal
- ${{ totalSelected.toFixed(2) }}
-
-
- Total
- ${{ totalSelected.toFixed(2) }}
-
+
+
+ Subtotal
+ ${{ totalSelected.toFixed(2) }}
+
+
+ Total
+ ${{ totalSelected.toFixed(2) }}
+
+
+
+
+ Subtotal original
+ ${{ originalTotal.toFixed(2) }}
+
+
+ Descuento
+ -${{ totalSavings.toFixed(2) }}
+
+
+ Total
+ ${{ totalSelected.toFixed(2) }}
+
+
+
+ Seleccione un método de pago para continuar
+
diff --git a/src/components/App/FineResultCard.vue b/src/components/App/FineResultCard.vue
index e448bee..6325fc8 100644
--- a/src/components/App/FineResultCard.vue
+++ b/src/components/App/FineResultCard.vue
@@ -15,6 +15,17 @@ const formatDate = (dateStr) => {
return new Date(dateStr).toLocaleDateString("es-MX");
};
+const paymentMethodLabels = {
+ cash: "Efectivo",
+ debit_card: "T. Débito",
+ credit_card: "T. Crédito",
+};
+
+const getPaidPaymentMethod = (fine) => {
+ const payment = fine.payments?.find(p => p.status === "paid");
+ return payment?.payment_method ? (paymentMethodLabels[payment.payment_method] ?? null) : null;
+};
+
const getConcepts = (fine) => {
if (!fine.charge_concepts?.length) return [];
return fine.charge_concepts.map((c) => c.short_name || c.name || "").filter(Boolean);
@@ -52,11 +63,30 @@ const getConcepts = (fine) => {
>
Pagada
+