コード例 #1
0
                                         if ($end < $todate && $fromdate > $start && $fromdate < $promoto && $todate > $promofrom && $todate <= $promoto && $percent > 0) {
                                             // if ang departure is same xa old departure ug arrival mas daku xa old arrival
                                             if ($transfer) {
                                                 if (Transaction::UpdateAmount($transactionamount, $fromdate, $reservationid)) {
                                                     if ($transferroom->TransferRoom()) {
                                                         echo 'true';
                                                     }
                                                 }
                                             }
                                         } else {
                                             $transactionamount = $totalamount + $addonpayable - abs($downpayment);
                                             $transfer = Reservation::UpdateTranfer($categoryname, $roomid, $fromdate, $todate, $Numberofdays, $totalamount, $reservationid);
                                             $transferroom = new transferroom($reservationid, $fname, $lname, $roomnumber, $roomtype, $Rate, $datetransfer, $numberofdays, $payable, $status, $userInCharge);
                                             if ($transfer) {
                                                 if (Transaction::UpdateAmount($transactionamount, $fromdate, $reservationid)) {
                                                     if ($transferroom->TransferRoom()) {
                                                         echo 'true';
                                                     }
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }