Silent 6 năm trước cách đây
mục cha
commit
6882a98f8d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Models/StudentCourse.php

+ 1 - 1
app/Models/StudentCourse.php

xqd
@@ -79,7 +79,7 @@ class StudentCourse extends Model
         } else {
             $days = $this['duration'];
             $leaves = Leave::where('student_id', $this['student_id'])->get();
-            $leave_days = $days;
+            $leave_days = 0;
             foreach($leaves as $leave) {
                 $leave_days += (int) $leave->days;
             }