{literal} {/literal}
| # | Rec. No. | Patient Name | Patient No. | Type | Total | Discount | Cash | Visa | Debt | RFC | Doctor | Visit Doctor | Notes | User name | Visit Date | ||
| {$i} | {$data.printserial} | {if $data.for_husband == 1 } {$data.husdandname} {else} {$data.wifename} {/if} | {$data.statusno} | {$data.type} | {$data.totaldetectionvalue} | {$data.discount} | {$data.detectionvalue_cash} | {$data.detectionvalue_visa} | {$data.restdetectionvalue} | {if $data.for_husband == 1 }{$data.rfc} | {$data.h_doctor} | {else}{$data.wrfc} | {$data.doctor} | {/if}{$data.visitDoctor} | {$data.vnotes} | {$data.insert_user} | {$data.visitdate} |
| Cost | Discount | Cash | Visa | Debt | |
| New Visits | {$totalCost} | {$totalDiscount} | {$totalCash} | {$totalVisa} | {$totalDept} |
| Old Debts | {$totalOldCash} | {$totalOldVisa} | |||
| Refund | {$totalRefundCash} | {$totalRefundVisa} | |||
| Total | {$totalC} | {$totalV} |