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; }
?> </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>