From 65e99b7ce21317aea20860ce3e13555a58fe5ae7 Mon Sep 17 00:00:00 2001
From: Mono Mono <monomono@disroot.org>
Date: Sat, 2 Nov 2024 16:54:07 -0500
Subject: [PATCH] view: fix total on summary purchase.

---
 .../frontend/don-confiao/src/components/SummaryPurchase.vue     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tienda_ilusion/don_confiao/frontend/don-confiao/src/components/SummaryPurchase.vue b/tienda_ilusion/don_confiao/frontend/don-confiao/src/components/SummaryPurchase.vue
index 54b117b..7717b1a 100644
--- a/tienda_ilusion/don_confiao/frontend/don-confiao/src/components/SummaryPurchase.vue
+++ b/tienda_ilusion/don_confiao/frontend/don-confiao/src/components/SummaryPurchase.vue
@@ -92,7 +92,7 @@
       calculateTotal(lines) {
         let total = 0;
         lines.forEach(line => {
-          total += this.calculateSubtotal(line.price, line.quantity);
+          total += this.calculateSubtotal(line.unit_price, line.quantity);
         });
         return total;
       }