0 OR COALESCE(SUM(ps.amount), 0) > 0) ORDER BY u.full_name "); // Calculate totals $total_supply = 0; $total_paid = 0; $total_pending = 0; foreach ($suppliers as $supplier) { $total_supply += $supplier['total_supply']; $total_paid += $supplier['total_paid']; $total_pending += $supplier['pending_amount']; } $page_title = 'All Suppliers - Payment History'; require_once __DIR__ . '/../includes/header.php'; ?>

📋 All Suppliers - Payment History

Total Suppliers
Active suppliers
Total Supply
₹
All time
Total Paid
₹
All time
Total Pending
₹
Current balance

All Suppliers

Supplier Name Phone Supplies Payments Total Supply Total Paid Pending Actions
Manager ₹ ₹ 0): ?> ₹ 0): ?> ✓ Paid - 0): ?> 💰 Settle 0): ?> 📋 History No payments yet
📋

No suppliers found

No suppliers have any supply or payment records yet.

🔗 Quick Links

💰 View Pending Payments Only ➕ Add Supply Entry 📦 View All Supplies