0 ORDER BY pending_amount DESC"; $result = $conn->query($sql); $suppliers = []; $total_pending = 0; while ($row = $result->fetch_assoc()) { $suppliers[] = $row; $total_pending += $row['pending_amount']; } } catch (Exception $e) { $error = "Database error: " . $e->getMessage(); $suppliers = []; $total_pending = 0; } $page_title = 'Pending Payments'; require_once __DIR__ . '/../includes/header.php'; ?>
| Supplier Name | Phone | Total Supply | Total Paid | Pending Amount | Actions |
|---|---|---|---|---|---|
| ₹ | ₹ | ₹ | |||
| Grand Total Pending: | ₹ | ||||
No pending payments at this time