From edea82e77b422fad9c9b4734bb3c94a2d7086ea4 Mon Sep 17 00:00:00 2001 From: Mono Mono Date: Mon, 11 Nov 2024 16:23:21 -0500 Subject: [PATCH] refactor(Purchase): remove unused methods. --- .../don-confiao/src/components/Purchase.vue | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tienda_ilusion/don_confiao/frontend/don-confiao/src/components/Purchase.vue b/tienda_ilusion/don_confiao/frontend/don-confiao/src/components/Purchase.vue index 3f48c2c..65bca7b 100644 --- a/tienda_ilusion/don_confiao/frontend/don-confiao/src/components/Purchase.vue +++ b/tienda_ilusion/don_confiao/frontend/don-confiao/src/components/Purchase.vue @@ -150,7 +150,6 @@ valid: false, client_search: '', product_search: '', - payment_cash: 0, payment_methods: null, purchase: { date: this.getCurrentDate(), @@ -186,23 +185,6 @@ return total + this.calculateSubtotal(saleline); }, 0); }, - calculateChange() { - if (this.purchase.payment_method === 'CASH') { - return (this.payment_cash || 0) - this.calculateTotal; - } else { - return 0; - } - }, - isValidPayment() { - if (this.calculateTotal === 0) { - return false; - } - if (this.purchase.payment_method === 'CASH' && this.payment_cash < this.calculateTotal) { - return false; - } - return true; - }, - filteredClients() { return this.clients.filter(client => { if (this.client_search === '') {