当前位置: 首页>>代码示例>>PHP>>正文


PHP Reservation::UpdateAddonPayable方法代码示例

本文整理汇总了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";
                         }
                     }
                 }
             }
         }
     }
 }
开发者ID:phoenixtwister,项目名称:WestViewPensionne,代码行数:31,代码来源:updateaddon.php

示例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";
                }
            }
开发者ID:phoenixtwister,项目名称:WestViewPensionne,代码行数:31,代码来源:addingon.php


注:本文中的Reservation::UpdateAddonPayable方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。