IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/app/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/app/EmpPayment.php

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use App\Traits;

class EmpPayment extends Model {

    use Traits\AutoUpdateUserColumns;

    protected $primaryKey = 'idEmpPayment';
    protected $table = 'employee_payment';
    protected $fillable = ['idSchool', 'idFinancialYear','idEmployee', 'idSalaryStr', 'salaryDays','idMonth','totalEarning','totalDeduction',
        'otHours','otEarning','laHours','laDeduction','advanceSalary','extraEarning','earningRemarks','extraDeduction','deductionRemarks','paymentMode','transId','half_day','leave_day','absent_day','paid_leave','canteen_deduction'];

    public function employee() {
        return $this->belongsTo(Employee::class, 'idEmployee', 'idEmployee');
    }
    
    public function salstr() {
        return $this->belongsTo(SalaryStructure::class, 'idSalaryStr', 'idSalaryStr');
    }
    
    public function month() {
        return $this->belongsTo(Month::class, 'idMonth', 'idMonth');
    }

}

Copyright © 2021 - 2025 IMMREX7