Ejemplo n.º 1
0
 static function createBirthdaypaymentdues($addBirthday)
 {
     $paymentDues = new PaymentDues();
     $paymentDues->student_id = $addBirthday['student_id'];
     $paymentDues->birthday_id = $addBirthday['id'];
     $paymentDues->customer_id = $addBirthday['customer_id'];
     if (isset($addBirthday['membership_id'])) {
         $paymentDues->membership_id = $addBirthday['membership_id'];
     }
     if (isset($addBirthday['membership_amount'])) {
         $paymentDues->membership_amount = $addBirthday['membership_amount'];
     }
     $paymentDues->payment_due_amount = $addBirthday['remaining_due_amount'];
     $paymentDues->payment_type = 'bipay';
     $paymentDues->payment_status = 'pending';
     //$paymentDues->discount_applied     = $taxAmtapplied;
     $paymentDues->payment_due_for = "birthday";
     $paymentDues->created_by = Session::get('userId');
     $paymentDues->created_at = date("Y-m-d H:i:s");
     $paymentDues->save();
     return $paymentDues;
 }