Exemple #1
0
						<tr>
							<th>Reg#</th>
							<th>In</th>
							<th>Out</th>
							<th>Balance</th>
							<th></th>
						</tr>
					</thead>
					<tbody>
						<?php 
foreach ($ro4->registration_details_registrationNo() as $registrationNo) {
    ?>
							<tr>

								<?php 
    if ($ro4->patient_with_transaction_balance($registrationNo) > 0) {
        ?>
									<td><?php 
        echo $registrationNo;
        ?>
</td>
									<td><?php 
        echo $ro4->formatDate($ro->selectNow("registrationDetails", "dateRegistered", "registrationNo", $registrationNo));
        ?>
</td>
									<td><?php 
        echo $ro4->formatDate($ro->selectNow("registrationDetails", "dateUnregistered", "registrationNo", $registrationNo));
        ?>
</td>
									<td><?php 
        echo $ro4->patient_with_transaction_balance($registrationNo);
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>

            <!--morning-->
    		<?php 
for ($a = 0, $b = 0, $c = 0, $d = 0, $e = 0; $a < $countFN_moring, $b < $countLN_morning, $c < $countReg_morning, $d < $countPXComp_morning, $e < $countPX_morning; $a++, $b++, $c++, $d++, $e++) {
    ?>
    				<tr>
    						<?php 
    $total_morning += $ro->patient_with_transaction_total($registrationNo_morning[$c]);
    ?>
    						<?php 
    $balance_morning += $ro->patient_with_transaction_balance($registrationNo_morning[$c]);
    ?>
                <?php 
    $discount_morning += $ro->patient_with_transaction_discount($registrationNo_morning[$c]);
    ?>
    						<?php 
    $card_morning += $ro->patient_with_transaction_company($registrationNo_morning[$c]);
    ?>
    						<?php 
    $cash_morning += $ro->patient_with_transaction_cash($registrationNo_morning[$c]);
    ?>
    						<?php 
    $creditCard_morning += $ro->patient_with_transaction_creditCard($registrationNo_morning[$c]);
    ?>

    					<td><?php