{{-- A bill as an 80mm POS slip (same look as layouts/payment_receipt "pos"), for pages that print their bill themselves (Visit record, Admission record). Include with: ['posTitle' => 'Visit bill', 'posInfo' => [label => value], 'posLines' => [[name, amount], ...], 'posTotals' => ['charge', 'discount', 'paid', 'balance']] JS: printPosBill(). The page's default bill format is BILL_FORMAT ('pos' / 'a4', from receipt_print_type()). --}} @php $company = get_company_settings(); $sym = $company->currency_symbol ?: '$'; $n = fn ($v) => number_format((float) $v, 2); @endphp