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; }
//echo number_format(TransportPackage::getPredefinedTripTotal($booking), 2); ?> </td> </tr> <?php } ?> <?php } ?> <?php } ?> <tr style="background: lightgrey"> <th>Total</th> <td align="right"><strong>USD. <?php echo number_format(TransportPackage::getTotalTransportationAmount($booking), 2); ?> </strong></td> </tr> </table>