예제 #1
0
 public static function actual($month, $year)
 {
     $salary = MinimunSalary::start($month, $year)->orderBy('id', 'desc')->first();
     return $salary ? $salary->value : '0';
 }
예제 #2
0
 public function gratification($month, $year)
 {
     $taxable = $this->taxable($month, $year);
     $gratification1 = $taxable * 25 / 100;
     $gratification2 = MinimunSalary::actual($month, $year) * Top::actual($month, $year);
     if ($gratification2 > $gratification1) {
         return $gratification1;
     }
     return $gratification2;
 }