doc_name ?? '')); $doctorLabel = $doctorName !== '' ? (preg_match('/^dr\.?\s*/i', $doctorName) ? $doctorName : 'Dr. ' . $doctorName) : '-'; ?>
| Phone: | GSTIN:
Medical Invoice No: inv_med_code ?? ('M' . date('ym') . str_pad(substr((string) ((int)($invoice->id ?? 0)), -7, 7), 7, '0', STR_PAD_LEFT))) ?>
Date: inv_date ?? '-') ?>
Patient: inv_name ?? '-') ?>
Patient Code: patient_code ?? '-') ?>
Refer By:
Phone: inv_phone_number ?? ($patient->mphone1 ?? '-')) ?>
Type: ipd_credit ?? 0) === 1) ? 'Credit' : 'Cash' ?>
$item): ?> amount ?? 0); $rowDisc = (float) ($item->disc_amount ?? 0); $rowNet = (float) ($item->tamount ?? 0); $gross += $rowGross; $discount += $rowDisc; $net += $rowNet; ?>
# Item Batch Qty Rate Discount Amount Net
item_Name ?? '-') ?>formulation) ? ' / ' . esc($item->formulation) : '' ?> batch_no ?? '-') ?> qty ?? 0), 2)) ?> price ?? 0), 2)) ?>
No items found.
Gross gross_amount ?? $gross), 2)) ?>
Discount disc_amount ?? $discount), 2)) ?>
Net Amount net_amount ?? $net), 2)) ?>
Prepared By: _____________________
Authorized Sign: _____________________