本文整理汇总了PHP中Reservation::UpdateAddonPayable方法的典型用法代码示例。如果您正苦于以下问题:PHP Reservation::UpdateAddonPayable方法的具体用法?PHP Reservation::UpdateAddonPayable怎么用?PHP Reservation::UpdateAddonPayable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Reservation
的用法示例。
在下文中一共展示了Reservation::UpdateAddonPayable方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: abs
}
}
}
} else {
$getaddonamount = abs($addamount - $addonamount);
// addonpayable - previousamount;
$gettotaladdonpayable = $getaddonamount + $amount;
// addonpayable + currentamount;
$totalamount = $payable - $addonamount + $amount;
// reservationpayble-previouseamount + currentamount
$transactionamount = $totalamount - abs($currentdownpayment);
$total = $qty1 + $addonquantity;
$total2 = abs($qty - $quantity);
$addon = Addon::UpdateQuantity($total, $addonitem);
$addon2 = Addon::UpdateQuantity($total2, $item);
$updateaddon = Reservation::UpdateAddonPayable($gettotaladdonpayable, $currentdownpayment, $payable, $confirmation);
$updateaddonreserve = AddonReserve::UpdateAddonReserve($item, $price, $quantity, $amount, $addonid);
$transaction = transaction::UpdateBalance($transactionamount, $reservationid);
if ($addon) {
if ($addon2) {
if ($updateaddon) {
if ($updateaddonreserve) {
if ($transaction) {
echo "true";
}
}
}
}
}
}
}
示例2: AddonReserve
$qty = $row1['quantity'];
$total = $qty - $quantity;
if ($status == "Pending" || $status == "Confirm") {
echo 'Cannot add items, Please Reserve or Checkin First.';
} else {
if ($quantity == 0) {
echo 'quantity is required';
} else {
if ($sum == 0) {
echo 'Payable is required';
} else {
if ($downpayment >= $amount) {
echo "your downpayment is over or equal to your price.please pay the right way";
} else {
$addon = Addon::UpdateQuantity($total, $item);
$addingon = Reservation::UpdateAddonPayable($sum, $totaldownpayment, $payable, $confirmation);
$reserveaddon = new AddonReserve($customerid, $reservationid, $item, $quantity, $price, $amount, $user);
$transaction = transaction::UpdateBalance($transactionamount, $reservationid);
if ($addingon) {
if ($reserveaddon->AddonReserve()) {
if ($addon) {
if ($transaction) {
echo "true";
$reservationid;
}
}
}
} else {
echo "error";
}
}