예제 #1
0
 public static function getTotalBookingAmount($booking)
 {
     $total = 0;
     $total += Booking::getTotalVoucherAmount($booking);
     $total += Booking::getTotalCancelledVoucherAmount($booking);
     $total += TransportPackage::getTotalTransportationAmount($booking);
     $total += ExcursionBooking::getTotalExcursionBookingAmount($booking);
     return $total;
 }
예제 #2
0
        ?>
</td>
                        <td style="text-align: right"><?php 
        echo $excursionBooking->excursionTransportType->transport_type;
        ?>
</td>
                        <td style="text-align: right"><?php 
        echo $excursionBooking->pax;
        ?>
</td>
                        <td style="text-align: right"><?php 
        echo number_format($excursionBooking->unit_price, 2);
        ?>
</td>
                        <td style="text-align: right"><?php 
        echo number_format(ExcursionBooking::getTotalExcursionBookingAmount($booking), 2);
        ?>
</td>
                    </tr>
                <?php 
    }
    ?>
            </table>

        </div>

    <?php 
}
?>
</div>