= nl2br(htmlspecialchars($data['settings']['company_address'] ?? '')) ?>
VAT: = htmlspecialchars($data['settings']['vat_number'] ?? '') ?>
Date: = date('Y-m-d') ?>
= $page === 'sales' ? 'Customer' : 'Supplier' ?>: | Period: = !empty($_GET['start_date']) ? $_GET['start_date'] : 'All' ?> to = !empty($_GET['end_date']) ? $_GET['end_date'] : 'All' ?>
| Invoice # | = $page === 'sales' ? 'Customer' : 'Supplier' ?> | Dates | Payment | Status | Total | Paid | Balance | Actions |
|---|---|---|---|---|---|---|---|---|
| = htmlspecialchars($inv['document_no']) ?> |
= htmlspecialchars($inv['party_name']) ?>
= htmlspecialchars($inv['customer_phone']) ?>
|
= htmlspecialchars($inv['invoice_date'] ?? '---') ?>
= htmlspecialchars($inv['due_date'] ?: '---') ?>
|
= htmlspecialchars($inv['payment_type_label']) ?> | = htmlspecialchars(str_replace('_', ' ', $inv['status'])) ?> | OMR = number_format((float)$inv['total_with_vat'], 3) ?> | OMR = number_format((float)$inv['paid_amount'], 3) ?> | OMR = number_format((float)$inv['balance_amount'], 3) ?> |
|
| No invoices found | ||||||||
| Totals | OMR = number_format((float)$total_all, 3) ?> | OMR = number_format((float)$total_paid, 3) ?> | OMR = number_format((float)$total_balance, 3) ?> | |||||