Add the task calendar, holidays, workflow templates and customer removal
Task calendar (/jobs/calendar) replaces per-unit task Kanban columns (K34): a two-week Gantt of tasks per person. Bars move, resize and change person by dragging or through a keyboard dialog. Each task's estimate is booked evenly over working days into task_bookings, and what exceeds the daily maximum (jobs.daily_capacity_hours, 8 h) moves to the next working day. Tasks get planned_from/planned_to on the form. Holidays (/settings/holidays): Finnish public holidays calculated per year, which the admin can take out of use, plus company days off. Also includes the earlier uncommitted work: workflow templates with adding tasks from a template, and removing customers no module refers to. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -13,7 +13,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Persistence model of a task, used only inside the Jobs Infrastructure
|
||||
* layer. Assignees are in task_assignees.
|
||||
* layer. Assignees are in task_assignees, day bookings in task_bookings.
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $customer_job_id
|
||||
@@ -22,11 +22,13 @@ use Illuminate\Database\Eloquent\Model;
|
||||
* @property string|null $description
|
||||
* @property TaskStatus $status
|
||||
* @property CarbonImmutable|null $due_on
|
||||
* @property CarbonImmutable|null $planned_from
|
||||
* @property CarbonImmutable|null $planned_to
|
||||
* @property string|null $estimated_hours
|
||||
* @property int $created_by
|
||||
*/
|
||||
#[Table('tasks')]
|
||||
#[Fillable(['customer_job_id', 'work_type_id', 'title', 'description', 'status', 'due_on', 'estimated_hours', 'created_by'])]
|
||||
#[Fillable(['customer_job_id', 'work_type_id', 'title', 'description', 'status', 'due_on', 'planned_from', 'planned_to', 'estimated_hours', 'created_by'])]
|
||||
#[UseFactory(TaskFactory::class)]
|
||||
class TaskModel extends Model
|
||||
{
|
||||
@@ -43,6 +45,8 @@ class TaskModel extends Model
|
||||
'work_type_id' => 'integer',
|
||||
'status' => TaskStatus::class,
|
||||
'due_on' => 'immutable_date',
|
||||
'planned_from' => 'immutable_date',
|
||||
'planned_to' => 'immutable_date',
|
||||
'created_by' => 'integer',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user