diff --git a/pos/blueprints/customers_bp.py b/pos/blueprints/customers_bp.py index 794cbf5..bd00503 100644 --- a/pos/blueprints/customers_bp.py +++ b/pos/blueprints/customers_bp.py @@ -52,6 +52,7 @@ def list_customers(): # Fetch cur.execute(f""" SELECT c.id, c.name, c.rfc, c.razon_social, c.phone, c.email, + c.address, c.cp, c.price_tier, c.credit_limit, c.credit_balance, c.vehicle_info, c.branch_id FROM customers c @@ -64,11 +65,12 @@ def list_customers(): for r in cur.fetchall(): customers.append({ 'id': r[0], 'name': r[1], 'rfc': r[2], 'razon_social': r[3], - 'phone': r[4], 'email': r[5], 'price_tier': r[6], - 'credit_limit': float(r[7]) if r[7] else 0, - 'credit_balance': float(r[8]) if r[8] else 0, - 'vehicle_info': r[9], - 'branch_id': r[10], + 'phone': r[4], 'email': r[5], 'address': r[6], 'cp': r[7], + 'price_tier': r[8], + 'credit_limit': float(r[9]) if r[9] else 0, + 'credit_balance': float(r[10]) if r[10] else 0, + 'vehicle_info': r[11], + 'branch_id': r[12], }) cur.close() diff --git a/pos/static/js/customers.js b/pos/static/js/customers.js index ec22861..0ab14d1 100644 --- a/pos/static/js/customers.js +++ b/pos/static/js/customers.js @@ -112,7 +112,7 @@ const Customers = (() => { '