|
|
= $value->address ?>, = $value->city ?>, = $value->state ?>,
= $value->postal_code ?>
= $value->email ?>
= $value->mobile_no ?>
|
|
| Invoice # = $value->invoice_number ?> |
invoice_date is in yyyy-mm-dd format
$invoiceDateParts = explode('-', $value->invoice_date);
if (count($invoiceDateParts) === 3) {
$formattedInvoiceDate = $invoiceDateParts[2] . '/' . $invoiceDateParts[1] . '/' . $invoiceDateParts[0];
} else {
$formattedInvoiceDate = 'Invalid Date'; // Handle invalid dates gracefully
}
?>
| Invoice Date : = $formattedInvoiceDate ?> |
|
| Order Number : = $value->order_number ?> |
due_date);
if (count($invoiceDateParts) === 3) {
$formattedDueDate = $invoiceDateParts[2] . '/' . $invoiceDateParts[1] . '/' . $invoiceDateParts[0];
} else {
$formattedDueDate = 'Invalid Date'; // Handle invalid dates gracefully
}
?>
| Due Date : = $formattedDueDate ?> |
|
| Subtotal : ₹= number_format($value->subtotal, 2, '.', ',') ?> |
| TAX : ₹= number_format($value->tax, 2, '.', ',') ?> |
| Discount : ₹= number_format($value->discount, 2, '.', ',') ?> |
| Total : ₹= number_format($value->subtotal, 2, '.', ',') ?> |