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'; ?>
| Supplier Name | Phone | Supplies | Payments | Total Supply | Total Paid | Pending | Actions |
|---|---|---|---|---|---|---|---|
| Manager | ₹ | ₹ | 0): ?> ₹ 0): ?> ✓ Paid - | 0): ?> 💰 Settle 0): ?> 📋 History No payments yet |
No suppliers have any supply or payment records yet.