| = h(date('Y-m-d H:i', strtotime((string)$sale['sale_date']))) ?> |
= h((string)$sale['receipt_no']) ?> |
- = h((string)($sale['customer_name'] ?: '-')) ?> |
- = h((string)($sale['customer_phone'] ? phone_display($sale['customer_phone']) : '-')) ?> |
+ 8) {
+ $displayPhone = substr($displayPhone, 3);
+ }
+ }
+ ?>
+ = h($rawCustomerName) ?> |
+ = h($displayPhone !== '' ? $displayPhone : '-') ?> |
= h(branch_label((string)$sale['branch_code'])) ?> |
= h(currency((float)$sale['total_amount'])) ?> |
diff --git a/sales.php b/sales.php
index 1dc3b53..e591526 100644
--- a/sales.php
+++ b/sales.php
@@ -156,6 +156,7 @@ require __DIR__ . '/includes/header.php';
| = h(tr('النوع', 'Type')) ?> |
= h(tr('الكاشير', 'Cashier')) ?> |
= h(tr('العميل', 'Customer')) ?> |
+ = h(tr('الهاتف', 'Phone')) ?> |
= h(tr('المجموع', 'Subtotal')) ?> |
= h(tr('الضريبة', 'VAT')) ?> |
= h(tr('الإجمالي', 'Total')) ?> |
@@ -177,7 +178,27 @@ require __DIR__ . '/includes/header.php';
= h(branch_label((string) $sale['branch_code'])) ?> |
= h(sale_mode_label((string) $sale['sale_mode'])) ?> |
= h((string) $sale['cashier_name']) ?> |
- = h((string) ($sale['customer_name'] ?: '-')) ?> |
+ 8) {
+ $displayPhone = substr($displayPhone, 3);
+ }
+ }
+ ?>
+ = h($rawCustomerName) ?> |
+ = h($displayPhone ?: '-') ?> |
= h(currency((float) $sale['total_amount'] - (float) ($sale['vat_amount'] ?? 0))) ?> |
= h(currency((float) $sale['vat_amount'])) ?> |
= h(currency((float) $sale['total_amount'])) ?> |