예제 #1
0
function updateFeeInstallment($feeinstallmentID, $name, $amount, $duedate, $activeflag, $id)
{
    $conn = getConnection();
    $Obj = getFeeInstallment($feeinstallmentID);
    $Obj->setName($name);
    $Obj->setAmount($amount);
    $Obj->setDueDate($duedate);
    $Obj->setActiveFlag($activeflag);
    $Obj->setCreatedBy($id);
    $result = $Obj->update();
    if ($result) {
        $message = "Fee Installment Updated Successfully :" . $name;
    } else {
        $message = "Fee Installment Updation Failed : " . $name;
    }
    return $message;
}
예제 #2
0
 function getBalance()
 {
     $amount = getFeeInstallment($this->installmentID)->getAmount();
     $balance = $amount - $this->paid - $this->discount;
     return $balance;
 }