[08-Jul-2026 07:11:22 Europe/London] PHP Warning:  Undefined array key 2 in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 169
[08-Jul-2026 07:13:15 Europe/London] PHP Warning:  Undefined array key 2 in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 169
[08-Jul-2026 07:18:35 Europe/London] PHP Warning:  Undefined array key 2 in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 170
[08-Jul-2026 07:21:13 Europe/London] PHP Warning:  Undefined variable $setup_hours in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 153
[08-Jul-2026 07:21:13 Europe/London] PHP Warning:  Undefined variable $setup_hours in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 254
[08-Jul-2026 07:26:42 Europe/London] PHP Warning:  Undefined array key 2 in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 169
[08-Jul-2026 07:28:33 Europe/London] PHP Warning:  Undefined array key 2 in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 169
[08-Jul-2026 07:34:08 Europe/London] PHP Warning:  Undefined array key 2 in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 170
[08-Jul-2026 14:19:54 Europe/London] VAC DEBUG: Received work_orders=Array
(
    [0] => Array
        (
            [id] => 7
            [work_order_id] => 7
            [part_id] => 8337
            [machine_id] => 38
        )

)

[08-Jul-2026 14:19:54 Europe/London] VAC DEBUG: Loaded shiftsByDay=Array
(
    [1] => Array
        (
            [0] => Array
                (
                    [id] => 28
                    [shift_name] => Mon Day
                    [shift_id] => 116
                    [day_shifts] => 1
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:19:23
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-07 10:25:44
                )

            [1] => Array
                (
                    [id] => 40
                    [shift_name] => M2
                    [shift_id] => 128
                    [day_shifts] => 1
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:28:25
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:31:42
                )

        )

    [3] => Array
        (
            [0] => Array
                (
                    [id] => 33
                    [shift_name] => Wed1
                    [shift_id] => 121
                    [day_shifts] => 3
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:36:57
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:37:08
                )

            [1] => Array
                (
                    [id] => 34
                    [shift_name] => Wed2
                    [shift_id] => 122
                    [day_shifts] => 3
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:37:50
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:37:50
                )

            [2] => Array
                (
                    [id] => 35
                    [shift_name] => Wed3
                    [shift_id] => 123
                    [day_shifts] => 3
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:38:28
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-24 12:33:21
                )

        )

    [4] => Array
        (
            [0] => Array
                (
                    [id] => 36
                    [shift_name] => Thu1
                    [shift_id] => 124
                    [day_shifts] => 4
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:39:12
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:43:06
                )

            [1] => Array
                (
                    [id] => 37
                    [shift_name] => Thu2
                    [shift_id] => 125
                    [day_shifts] => 4
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:42:32
                )

            [2] => Array
                (
                    [id] => 38
                    [shift_name] => Thu3
                    [shift_id] => 126
                    [day_shifts] => 4
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-24 12:33:57
                )

        )

    [5] => Array
        (
            [0] => Array
                (
                    [id] => 39
                    [shift_name] => Fri1
                    [shift_id] => 127
                    [day_shifts] => 5
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:44:03
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:44:24
                )

        )

    [2] => Array
        (
            [0] => Array
                (
                    [id] => 41
                    [shift_name] => t1
                    [shift_id] => 129
                    [day_shifts] => 2
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 6.000
                    [created_on] => 2026-04-27 07:33:11
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:34:56
                )

            [1] => Array
                (
                    [id] => 42
                    [shift_name] => t3
                    [shift_id] => 130
                    [day_shifts] => 2
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:36:17
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:36:17
                )

            [2] => Array
                (
                    [id] => 43
                    [shift_name] => t4
                    [shift_id] => 131
                    [day_shifts] => 2
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:37:19
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:37:19
                )

        )

)

[08-Jul-2026 14:19:54 Europe/London] VAC DEBUG: Processing item id=7, work_order_id=7, part_id=8337, machine_id=38
[08-Jul-2026 14:19:54 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 8337
    [id] => 7
    [end_date] => 2026-07-13 00:00:00
    [quantity] => 60.00
    [product_name] => Set-621
    [total_hours] => 6.00
    [set_id] => 249
)

[08-Jul-2026 14:19:54 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 249
[08-Jul-2026 14:19:54 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 10.00
    [machine_high_priority] => 39
    [setting_instruction] => 1000X600
)

[08-Jul-2026 14:19:54 Europe/London] VAC DEBUG: priority=1, prev_setting_instr=
[08-Jul-2026 14:19:54 Europe/London] VAC DEBUG: setup_hours=2, total_hourss=8
[08-Jul-2026 14:19:54 Europe/London] VAC DEBUG: Scheduling result start=2026-07-08 00:00:00 end=2026-07-08 08:00:00 firstShift=Wed1 remaining=2026-07-08=8
[08-Jul-2026 14:19:54 Europe/London] VAC DEBUG: Insert success for machine_id=38, work_order_id=7
[08-Jul-2026 14:19:54 Europe/London] VAC DEBUG: Recalculating machine_id=38
[08-Jul-2026 14:25:11 Europe/London] VAC DEBUG: Received work_orders=Array
(
    [0] => Array
        (
            [id] => 9
            [work_order_id] => 9
            [part_id] => 8654
            [machine_id] => 38
        )

)

[08-Jul-2026 14:25:11 Europe/London] VAC DEBUG: Loaded shiftsByDay=Array
(
    [1] => Array
        (
            [0] => Array
                (
                    [id] => 28
                    [shift_name] => Mon Day
                    [shift_id] => 116
                    [day_shifts] => 1
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:19:23
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-07 10:25:44
                )

            [1] => Array
                (
                    [id] => 40
                    [shift_name] => M2
                    [shift_id] => 128
                    [day_shifts] => 1
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:28:25
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:31:42
                )

        )

    [3] => Array
        (
            [0] => Array
                (
                    [id] => 33
                    [shift_name] => Wed1
                    [shift_id] => 121
                    [day_shifts] => 3
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:36:57
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:37:08
                )

            [1] => Array
                (
                    [id] => 34
                    [shift_name] => Wed2
                    [shift_id] => 122
                    [day_shifts] => 3
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:37:50
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:37:50
                )

            [2] => Array
                (
                    [id] => 35
                    [shift_name] => Wed3
                    [shift_id] => 123
                    [day_shifts] => 3
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:38:28
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-24 12:33:21
                )

        )

    [4] => Array
        (
            [0] => Array
                (
                    [id] => 36
                    [shift_name] => Thu1
                    [shift_id] => 124
                    [day_shifts] => 4
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:39:12
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:43:06
                )

            [1] => Array
                (
                    [id] => 37
                    [shift_name] => Thu2
                    [shift_id] => 125
                    [day_shifts] => 4
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:42:32
                )

            [2] => Array
                (
                    [id] => 38
                    [shift_name] => Thu3
                    [shift_id] => 126
                    [day_shifts] => 4
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-24 12:33:57
                )

        )

    [5] => Array
        (
            [0] => Array
                (
                    [id] => 39
                    [shift_name] => Fri1
                    [shift_id] => 127
                    [day_shifts] => 5
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:44:03
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:44:24
                )

        )

    [2] => Array
        (
            [0] => Array
                (
                    [id] => 41
                    [shift_name] => t1
                    [shift_id] => 129
                    [day_shifts] => 2
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 6.000
                    [created_on] => 2026-04-27 07:33:11
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:34:56
                )

            [1] => Array
                (
                    [id] => 42
                    [shift_name] => t3
                    [shift_id] => 130
                    [day_shifts] => 2
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:36:17
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:36:17
                )

            [2] => Array
                (
                    [id] => 43
                    [shift_name] => t4
                    [shift_id] => 131
                    [day_shifts] => 2
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:37:19
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:37:19
                )

        )

)

[08-Jul-2026 14:25:11 Europe/London] VAC DEBUG: Processing item id=9, work_order_id=9, part_id=8654, machine_id=38
[08-Jul-2026 14:25:11 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 8654
    [id] => 9
    [end_date] => 2026-07-13 00:00:00
    [quantity] => 42.00
    [product_name] => Set-1100
    [total_hours] => 2.80
    [set_id] => 134
)

[08-Jul-2026 14:25:11 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 134
[08-Jul-2026 14:25:11 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 15.00
    [machine_high_priority] => 39
    [setting_instruction] => 
)

[08-Jul-2026 14:25:11 Europe/London] VAC DEBUG: priority=2, prev_setting_instr=1000X600
[08-Jul-2026 14:25:11 Europe/London] VAC DEBUG: setup_hours=2, total_hourss=4.8
[08-Jul-2026 14:25:11 Europe/London] VAC DEBUG: Scheduling result start=2026-07-08 00:00:00 end=2026-07-08 04:48:00 firstShift=Wed1 remaining=2026-07-08=4.8
[08-Jul-2026 14:25:11 Europe/London] VAC DEBUG: Insert success for machine_id=38, work_order_id=9
[08-Jul-2026 14:25:11 Europe/London] VAC DEBUG: Recalculating machine_id=38
[08-Jul-2026 14:55:43 Europe/London] VAC DEBUG: Received work_orders=Array
(
    [0] => Array
        (
            [id] => 11
            [work_order_id] => 10
            [part_id] => 9460
            [machine_id] => 40
        )

)

[08-Jul-2026 14:55:43 Europe/London] VAC DEBUG: Loaded shiftsByDay=Array
(
    [1] => Array
        (
            [0] => Array
                (
                    [id] => 28
                    [shift_name] => Mon Day
                    [shift_id] => 116
                    [day_shifts] => 1
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:19:23
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-07 10:25:44
                )

            [1] => Array
                (
                    [id] => 40
                    [shift_name] => M2
                    [shift_id] => 128
                    [day_shifts] => 1
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:28:25
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:31:42
                )

        )

    [3] => Array
        (
            [0] => Array
                (
                    [id] => 33
                    [shift_name] => Wed1
                    [shift_id] => 121
                    [day_shifts] => 3
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:36:57
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:37:08
                )

            [1] => Array
                (
                    [id] => 34
                    [shift_name] => Wed2
                    [shift_id] => 122
                    [day_shifts] => 3
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:37:50
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:37:50
                )

            [2] => Array
                (
                    [id] => 35
                    [shift_name] => Wed3
                    [shift_id] => 123
                    [day_shifts] => 3
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:38:28
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-24 12:33:21
                )

        )

    [4] => Array
        (
            [0] => Array
                (
                    [id] => 36
                    [shift_name] => Thu1
                    [shift_id] => 124
                    [day_shifts] => 4
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:39:12
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:43:06
                )

            [1] => Array
                (
                    [id] => 37
                    [shift_name] => Thu2
                    [shift_id] => 125
                    [day_shifts] => 4
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:42:32
                )

            [2] => Array
                (
                    [id] => 38
                    [shift_name] => Thu3
                    [shift_id] => 126
                    [day_shifts] => 4
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-24 12:33:57
                )

        )

    [5] => Array
        (
            [0] => Array
                (
                    [id] => 39
                    [shift_name] => Fri1
                    [shift_id] => 127
                    [day_shifts] => 5
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:44:03
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:44:24
                )

        )

    [2] => Array
        (
            [0] => Array
                (
                    [id] => 41
                    [shift_name] => t1
                    [shift_id] => 129
                    [day_shifts] => 2
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 6.000
                    [created_on] => 2026-04-27 07:33:11
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:34:56
                )

            [1] => Array
                (
                    [id] => 42
                    [shift_name] => t3
                    [shift_id] => 130
                    [day_shifts] => 2
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:36:17
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:36:17
                )

            [2] => Array
                (
                    [id] => 43
                    [shift_name] => t4
                    [shift_id] => 131
                    [day_shifts] => 2
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:37:19
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:37:19
                )

        )

)

[08-Jul-2026 14:55:43 Europe/London] VAC DEBUG: Processing item id=11, work_order_id=10, part_id=9460, machine_id=40
[08-Jul-2026 14:55:43 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 9460
    [id] => 11
    [end_date] => 2026-07-10 00:00:00
    [quantity] => 155.00
    [product_name] => Set-846
    [total_hours] => 11.07
    [set_id] => 289
)

[08-Jul-2026 14:55:43 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 289
[08-Jul-2026 14:55:43 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 14.00
    [machine_high_priority] => 39
    [setting_instruction] => 700X600
)

[08-Jul-2026 14:55:43 Europe/London] VAC DEBUG: priority=1, prev_setting_instr=
[08-Jul-2026 14:55:43 Europe/London] VAC DEBUG: setup_hours=2, total_hourss=13.07
[08-Jul-2026 14:55:43 Europe/London] VAC DEBUG: Scheduling result start=2026-07-08 00:00:00 end=2026-07-08 13:04:12 firstShift=Wed1 remaining=2026-07-08=13.07
[08-Jul-2026 14:55:43 Europe/London] VAC DEBUG: Insert success for machine_id=40, work_order_id=10
[08-Jul-2026 14:55:43 Europe/London] VAC DEBUG: Recalculating machine_id=40
[08-Jul-2026 15:01:56 Europe/London] VAC DEBUG: Received work_orders=Array
(
    [0] => Array
        (
            [id] => 14
            [work_order_id] => 11
            [part_id] => 8814
            [machine_id] => 41
        )

)

[08-Jul-2026 15:01:56 Europe/London] VAC DEBUG: Loaded shiftsByDay=Array
(
    [1] => Array
        (
            [0] => Array
                (
                    [id] => 28
                    [shift_name] => Mon Day
                    [shift_id] => 116
                    [day_shifts] => 1
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:19:23
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-07 10:25:44
                )

            [1] => Array
                (
                    [id] => 40
                    [shift_name] => M2
                    [shift_id] => 128
                    [day_shifts] => 1
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:28:25
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:31:42
                )

        )

    [3] => Array
        (
            [0] => Array
                (
                    [id] => 33
                    [shift_name] => Wed1
                    [shift_id] => 121
                    [day_shifts] => 3
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:36:57
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:37:08
                )

            [1] => Array
                (
                    [id] => 34
                    [shift_name] => Wed2
                    [shift_id] => 122
                    [day_shifts] => 3
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:37:50
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:37:50
                )

            [2] => Array
                (
                    [id] => 35
                    [shift_name] => Wed3
                    [shift_id] => 123
                    [day_shifts] => 3
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:38:28
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-24 12:33:21
                )

        )

    [4] => Array
        (
            [0] => Array
                (
                    [id] => 36
                    [shift_name] => Thu1
                    [shift_id] => 124
                    [day_shifts] => 4
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:39:12
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:43:06
                )

            [1] => Array
                (
                    [id] => 37
                    [shift_name] => Thu2
                    [shift_id] => 125
                    [day_shifts] => 4
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:42:32
                )

            [2] => Array
                (
                    [id] => 38
                    [shift_name] => Thu3
                    [shift_id] => 126
                    [day_shifts] => 4
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-24 12:33:57
                )

        )

    [5] => Array
        (
            [0] => Array
                (
                    [id] => 39
                    [shift_name] => Fri1
                    [shift_id] => 127
                    [day_shifts] => 5
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:44:03
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-02-23 19:44:24
                )

        )

    [2] => Array
        (
            [0] => Array
                (
                    [id] => 41
                    [shift_name] => t1
                    [shift_id] => 129
                    [day_shifts] => 2
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 6.000
                    [created_on] => 2026-04-27 07:33:11
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:34:56
                )

            [1] => Array
                (
                    [id] => 42
                    [shift_name] => t3
                    [shift_id] => 130
                    [day_shifts] => 2
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:36:17
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:36:17
                )

            [2] => Array
                (
                    [id] => 43
                    [shift_name] => t4
                    [shift_id] => 131
                    [day_shifts] => 2
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:37:19
                    [created_by] => 1
                    [updated_by] => 1
                    [updated_on] => 2026-04-27 06:37:19
                )

        )

)

[08-Jul-2026 15:01:56 Europe/London] VAC DEBUG: Processing item id=14, work_order_id=11, part_id=8814, machine_id=41
[08-Jul-2026 15:01:56 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 8814
    [id] => 14
    [end_date] => 2026-07-03 00:00:00
    [quantity] => 120.00
    [product_name] => Set-1058
    [total_hours] => 24.00
    [set_id] => 85
)

[08-Jul-2026 15:01:56 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 85
[08-Jul-2026 15:01:56 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 5.00
    [machine_high_priority] => 42
    [setting_instruction] => 1255X1265
)

[08-Jul-2026 15:01:56 Europe/London] VAC DEBUG: priority=1, prev_setting_instr=
[08-Jul-2026 15:01:56 Europe/London] VAC DEBUG: setup_hours=2, total_hourss=26
[08-Jul-2026 15:01:56 Europe/London] VAC DEBUG: Scheduling result start=2026-07-08 00:00:00 end=2026-07-09 05:31:00 firstShift=Wed1 remaining=2026-07-08=20.48,2026-07-09=5.52
[08-Jul-2026 15:01:56 Europe/London] VAC DEBUG: Insert success for machine_id=41, work_order_id=11
[08-Jul-2026 15:01:56 Europe/London] VAC DEBUG: Recalculating machine_id=41
[08-Jul-2026 15:24:40 Europe/London] VAC DEBUG: Received work_orders=Array
(
    [0] => Array
        (
            [id] => 19
            [work_order_id] => 13
            [part_id] => 8814
            [machine_id] => 41
        )

)

[08-Jul-2026 15:24:40 Europe/London] VAC DEBUG: Loaded shiftsByDay=Array
(
    [1] => Array
        (
            [0] => Array
                (
                    [id] => 28
                    [shift_name] => Mon Day
                    [shift_id] => 116
                    [day_shifts] => 1
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:19:23
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-07 10:25:44
                )

            [1] => Array
                (
                    [id] => 40
                    [shift_name] => Mon Night1
                    [shift_id] => 128
                    [day_shifts] => 1
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:28:25
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:02:53
                )

        )

    [4] => Array
        (
            [0] => Array
                (
                    [id] => 33
                    [shift_name] => Wed Night2
                    [shift_id] => 121
                    [day_shifts] => 4
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:36:57
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:05:50
                )

            [1] => Array
                (
                    [id] => 37
                    [shift_name] => Thu  Day
                    [shift_id] => 125
                    [day_shifts] => 4
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:06:08
                )

            [2] => Array
                (
                    [id] => 38
                    [shift_name] => Thu Night1
                    [shift_id] => 126
                    [day_shifts] => 4
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:06:21
                )

        )

    [3] => Array
        (
            [0] => Array
                (
                    [id] => 34
                    [shift_name] => Wed Day
                    [shift_id] => 122
                    [day_shifts] => 3
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:37:50
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:04:26
                )

            [1] => Array
                (
                    [id] => 35
                    [shift_name] => Wed Night1
                    [shift_id] => 123
                    [day_shifts] => 3
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:38:28
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:05:34
                )

            [2] => Array
                (
                    [id] => 41
                    [shift_name] => Tues Night2
                    [shift_id] => 129
                    [day_shifts] => 3
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 6.000
                    [created_on] => 2026-04-27 07:33:11
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:04:52
                )

        )

    [5] => Array
        (
            [0] => Array
                (
                    [id] => 36
                    [shift_name] => Thu Night2
                    [shift_id] => 124
                    [day_shifts] => 5
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:39:12
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:06:35
                )

        )

    [2] => Array
        (
            [0] => Array
                (
                    [id] => 39
                    [shift_name] => Mon Night2
                    [shift_id] => 127
                    [day_shifts] => 2
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:44:03
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:07:54
                )

            [1] => Array
                (
                    [id] => 42
                    [shift_name] => Tues Day
                    [shift_id] => 130
                    [day_shifts] => 2
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:36:17
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:03:16
                )

            [2] => Array
                (
                    [id] => 43
                    [shift_name] => Tues Night1
                    [shift_id] => 131
                    [day_shifts] => 2
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:37:19
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:03:38
                )

        )

)

[08-Jul-2026 15:24:40 Europe/London] VAC DEBUG: Processing item id=19, work_order_id=13, part_id=8814, machine_id=41
[08-Jul-2026 15:24:40 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 8814
    [id] => 19
    [end_date] => 2026-07-03 00:00:00
    [quantity] => 120.00
    [product_name] => Set-1058
    [total_hours] => 24.00
    [set_id] => 85
)

[08-Jul-2026 15:24:40 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 85
[08-Jul-2026 15:24:40 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 5.00
    [machine_high_priority] => 42
    [setting_instruction] => 1255X1265
)

[08-Jul-2026 15:24:40 Europe/London] VAC DEBUG: priority=1, prev_setting_instr=
[08-Jul-2026 15:24:40 Europe/London] VAC DEBUG: setup_hours=2, total_hourss=26
[08-Jul-2026 15:24:40 Europe/London] VAC DEBUG: Scheduling result start=2026-07-08 06:00:00 end=2026-07-09 11:31:00 firstShift=Wed Day remaining=2026-07-08=14.48,2026-07-09=11.52
[08-Jul-2026 15:24:40 Europe/London] VAC DEBUG: Insert success for machine_id=41, work_order_id=13
[08-Jul-2026 15:24:40 Europe/London] VAC DEBUG: Recalculating machine_id=41
[08-Jul-2026 15:28:58 Europe/London] VAC DEBUG: Received work_orders=Array
(
    [0] => Array
        (
            [id] => 24
            [work_order_id] => 14
            [part_id] => 8535
            [machine_id] => 41
        )

)

[08-Jul-2026 15:28:58 Europe/London] VAC DEBUG: Loaded shiftsByDay=Array
(
    [1] => Array
        (
            [0] => Array
                (
                    [id] => 28
                    [shift_name] => Mon Day
                    [shift_id] => 116
                    [day_shifts] => 1
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:19:23
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-07 10:25:44
                )

            [1] => Array
                (
                    [id] => 40
                    [shift_name] => Mon Night1
                    [shift_id] => 128
                    [day_shifts] => 1
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:28:25
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:02:53
                )

        )

    [4] => Array
        (
            [0] => Array
                (
                    [id] => 33
                    [shift_name] => Wed Night2
                    [shift_id] => 121
                    [day_shifts] => 4
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:36:57
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:05:50
                )

            [1] => Array
                (
                    [id] => 37
                    [shift_name] => Thu  Day
                    [shift_id] => 125
                    [day_shifts] => 4
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:06:08
                )

            [2] => Array
                (
                    [id] => 38
                    [shift_name] => Thu Night1
                    [shift_id] => 126
                    [day_shifts] => 4
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:06:21
                )

        )

    [3] => Array
        (
            [0] => Array
                (
                    [id] => 34
                    [shift_name] => Wed Day
                    [shift_id] => 122
                    [day_shifts] => 3
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:37:50
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:04:26
                )

            [1] => Array
                (
                    [id] => 35
                    [shift_name] => Wed Night1
                    [shift_id] => 123
                    [day_shifts] => 3
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:38:28
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:05:34
                )

            [2] => Array
                (
                    [id] => 41
                    [shift_name] => Tues Night2
                    [shift_id] => 129
                    [day_shifts] => 3
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 6.000
                    [created_on] => 2026-04-27 07:33:11
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:04:52
                )

        )

    [5] => Array
        (
            [0] => Array
                (
                    [id] => 36
                    [shift_name] => Thu Night2
                    [shift_id] => 124
                    [day_shifts] => 5
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:39:12
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:06:35
                )

        )

    [2] => Array
        (
            [0] => Array
                (
                    [id] => 39
                    [shift_name] => Mon Night2
                    [shift_id] => 127
                    [day_shifts] => 2
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:44:03
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:07:54
                )

            [1] => Array
                (
                    [id] => 42
                    [shift_name] => Tues Day
                    [shift_id] => 130
                    [day_shifts] => 2
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:36:17
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:03:16
                )

            [2] => Array
                (
                    [id] => 43
                    [shift_name] => Tues Night1
                    [shift_id] => 131
                    [day_shifts] => 2
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:37:19
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 14:03:38
                )

        )

)

[08-Jul-2026 15:28:58 Europe/London] VAC DEBUG: Processing item id=24, work_order_id=14, part_id=8535, machine_id=41
[08-Jul-2026 15:28:58 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 8535
    [id] => 24
    [end_date] => 2026-06-19 00:00:00
    [quantity] => 82.00
    [product_name] => Set-1025
    [total_hours] => 10.25
    [set_id] => 13
)

[08-Jul-2026 15:28:58 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 13
[08-Jul-2026 15:28:58 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 8.00
    [machine_high_priority] => 45
    [setting_instruction] => 1500X1000
)

[08-Jul-2026 15:28:58 Europe/London] VAC DEBUG: priority=2, prev_setting_instr=1255X1265
[08-Jul-2026 15:28:58 Europe/London] VAC DEBUG: setup_hours=2, total_hourss=12.25
[08-Jul-2026 15:28:58 Europe/London] VAC DEBUG: Scheduling result start=2026-07-08 06:00:00 end=2026-07-08 21:45:00 firstShift=Wed Day remaining=2026-07-08=12.25
[08-Jul-2026 15:28:58 Europe/London] VAC DEBUG: Insert success for machine_id=41, work_order_id=14
[08-Jul-2026 15:28:58 Europe/London] VAC DEBUG: Recalculating machine_id=41
[09-Jul-2026 13:56:19 Europe/London] PHP Warning:  Undefined array key 2 in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 170
[09-Jul-2026 14:00:32 Europe/London] PHP Warning:  Undefined array key 2 in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 170
[09-Jul-2026 14:01:46 Europe/London] PHP Warning:  Undefined array key 2 in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 170
[09-Jul-2026 14:04:23 Europe/London] PHP Warning:  Undefined array key 2 in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 170
[13-Jul-2026 09:59:07 Europe/London] PHP Warning:  Undefined array key 2 in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 170
[14-Jul-2026 12:24:32 Europe/London] VAC DEBUG: Received work_orders=Array
(
    [0] => Array
        (
            [id] => 73
            [work_order_id] => 27
            [part_id] => 10448
            [machine_id] => 42
        )

)

[14-Jul-2026 12:24:32 Europe/London] VAC DEBUG: Loaded shiftsByDay=Array
(
    [1] => Array
        (
            [0] => Array
                (
                    [id] => 28
                    [shift_name] => Mon Day
                    [shift_id] => 116
                    [day_shifts] => 1
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:19:23
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-07 11:25:44
                )

            [1] => Array
                (
                    [id] => 40
                    [shift_name] => Mon Night1
                    [shift_id] => 128
                    [day_shifts] => 1
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:28:25
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:02:53
                )

        )

    [4] => Array
        (
            [0] => Array
                (
                    [id] => 33
                    [shift_name] => Wed Night2
                    [shift_id] => 121
                    [day_shifts] => 4
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:36:57
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:05:50
                )

            [1] => Array
                (
                    [id] => 37
                    [shift_name] => Thu  Day
                    [shift_id] => 125
                    [day_shifts] => 4
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:06:08
                )

            [2] => Array
                (
                    [id] => 38
                    [shift_name] => Thu Night1
                    [shift_id] => 126
                    [day_shifts] => 4
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:06:21
                )

        )

    [3] => Array
        (
            [0] => Array
                (
                    [id] => 34
                    [shift_name] => Wed Day
                    [shift_id] => 122
                    [day_shifts] => 3
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:37:50
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:04:26
                )

            [1] => Array
                (
                    [id] => 35
                    [shift_name] => Wed Night1
                    [shift_id] => 123
                    [day_shifts] => 3
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:38:28
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:05:34
                )

            [2] => Array
                (
                    [id] => 41
                    [shift_name] => Tues Night2
                    [shift_id] => 129
                    [day_shifts] => 3
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 6.000
                    [created_on] => 2026-04-27 07:33:11
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:04:52
                )

        )

    [5] => Array
        (
            [0] => Array
                (
                    [id] => 36
                    [shift_name] => Thu Night2
                    [shift_id] => 124
                    [day_shifts] => 5
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:39:12
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:06:35
                )

        )

    [2] => Array
        (
            [0] => Array
                (
                    [id] => 39
                    [shift_name] => Mon Night2
                    [shift_id] => 127
                    [day_shifts] => 2
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:44:03
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:07:54
                )

            [1] => Array
                (
                    [id] => 42
                    [shift_name] => Tues Day
                    [shift_id] => 130
                    [day_shifts] => 2
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:36:17
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:03:16
                )

            [2] => Array
                (
                    [id] => 43
                    [shift_name] => Tues Night1
                    [shift_id] => 131
                    [day_shifts] => 2
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:37:19
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:03:38
                )

        )

)

[14-Jul-2026 12:24:32 Europe/London] VAC DEBUG: Processing item id=73, work_order_id=27, part_id=10448, machine_id=42
[14-Jul-2026 12:24:32 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 10448
    [id] => 73
    [end_date] => 2026-06-18 00:00:00
    [quantity] => 200.00
    [product_name] => Set-1086
    [total_hours] => 25.00
    [set_id] => 120
)

[14-Jul-2026 12:24:32 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 120
[14-Jul-2026 12:24:32 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 8.00
    [machine_high_priority] => 42
    [setting_instruction] => 2000X840
)

[14-Jul-2026 12:24:32 Europe/London] VAC DEBUG: priority=1, prev_setting_instr=
[14-Jul-2026 12:24:32 Europe/London] VAC DEBUG: setup_hours=2, total_hourss=27
[14-Jul-2026 12:24:32 Europe/London] VAC DEBUG: Scheduling result start=2026-07-14 00:00:00 end=2026-07-15 12:31:00 firstShift=Mon Night2 remaining=2026-07-14=20.48,2026-07-15=6.52
[14-Jul-2026 12:24:32 Europe/London] VAC DEBUG: Insert success for machine_id=42, work_order_id=27
[14-Jul-2026 12:24:32 Europe/London] VAC DEBUG: Recalculating machine_id=42
[16-Jul-2026 11:36:02 Europe/London] VAC DEBUG: Received work_orders=Array
(
    [0] => Array
        (
            [id] => 75
            [work_order_id] => 28
            [part_id] => 10059
            [machine_id] => 39
        )

)

[16-Jul-2026 11:36:02 Europe/London] VAC DEBUG: Loaded shiftsByDay=Array
(
    [1] => Array
        (
            [0] => Array
                (
                    [id] => 28
                    [shift_name] => Mon Day
                    [shift_id] => 116
                    [day_shifts] => 1
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:19:23
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-07 11:25:44
                )

            [1] => Array
                (
                    [id] => 40
                    [shift_name] => Mon Night1
                    [shift_id] => 128
                    [day_shifts] => 1
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:28:25
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:02:53
                )

        )

    [4] => Array
        (
            [0] => Array
                (
                    [id] => 33
                    [shift_name] => Wed Night2
                    [shift_id] => 121
                    [day_shifts] => 4
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:36:57
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:05:50
                )

            [1] => Array
                (
                    [id] => 37
                    [shift_name] => Thu  Day
                    [shift_id] => 125
                    [day_shifts] => 4
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:06:08
                )

            [2] => Array
                (
                    [id] => 38
                    [shift_name] => Thu Night1
                    [shift_id] => 126
                    [day_shifts] => 4
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:06:21
                )

        )

    [3] => Array
        (
            [0] => Array
                (
                    [id] => 34
                    [shift_name] => Wed Day
                    [shift_id] => 122
                    [day_shifts] => 3
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:37:50
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:04:26
                )

            [1] => Array
                (
                    [id] => 35
                    [shift_name] => Wed Night1
                    [shift_id] => 123
                    [day_shifts] => 3
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:38:28
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:05:34
                )

            [2] => Array
                (
                    [id] => 41
                    [shift_name] => Tues Night2
                    [shift_id] => 129
                    [day_shifts] => 3
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 6.000
                    [created_on] => 2026-04-27 07:33:11
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:04:52
                )

        )

    [5] => Array
        (
            [0] => Array
                (
                    [id] => 36
                    [shift_name] => Thu Night2
                    [shift_id] => 124
                    [day_shifts] => 5
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:39:12
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:06:35
                )

        )

    [2] => Array
        (
            [0] => Array
                (
                    [id] => 39
                    [shift_name] => Mon Night2
                    [shift_id] => 127
                    [day_shifts] => 2
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:44:03
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:07:54
                )

            [1] => Array
                (
                    [id] => 42
                    [shift_name] => Tues Day
                    [shift_id] => 130
                    [day_shifts] => 2
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:36:17
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:03:16
                )

            [2] => Array
                (
                    [id] => 43
                    [shift_name] => Tues Night1
                    [shift_id] => 131
                    [day_shifts] => 2
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:37:19
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:03:38
                )

        )

)

[16-Jul-2026 11:36:02 Europe/London] VAC DEBUG: Processing item id=75, work_order_id=28, part_id=10059, machine_id=39
[16-Jul-2026 11:36:02 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 10059
    [id] => 75
    [end_date] => 2026-07-24 00:00:00
    [quantity] => 42.00
    [product_name] => Set-1008
    [total_hours] => 2.80
    [set_id] => 36
)

[16-Jul-2026 11:36:02 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 36
[16-Jul-2026 11:36:02 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 15.00
    [machine_high_priority] => 38
    [setting_instruction] => 450x550
)

[16-Jul-2026 11:36:02 Europe/London] VAC DEBUG: priority=1, prev_setting_instr=
[16-Jul-2026 11:36:02 Europe/London] VAC DEBUG: setup_hours=2, total_hourss=4.8
[16-Jul-2026 11:36:02 Europe/London] VAC DEBUG: Scheduling result start=2026-07-16 00:00:00 end=2026-07-16 04:48:00 firstShift=Wed Night2 remaining=2026-07-16=4.8
[16-Jul-2026 11:36:02 Europe/London] VAC DEBUG: Insert success for machine_id=39, work_order_id=28
[16-Jul-2026 11:36:02 Europe/London] VAC DEBUG: Recalculating machine_id=39
[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Received work_orders=Array
(
    [0] => Array
        (
            [id] => 76
            [work_order_id] => 29
            [part_id] => 8645
            [machine_id] => 39
        )

    [1] => Array
        (
            [id] => 77
            [work_order_id] => 30
            [part_id] => 8741
            [machine_id] => 39
        )

)

[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Loaded shiftsByDay=Array
(
    [1] => Array
        (
            [0] => Array
                (
                    [id] => 28
                    [shift_name] => Mon Day
                    [shift_id] => 116
                    [day_shifts] => 1
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:19:23
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-07 11:25:44
                )

            [1] => Array
                (
                    [id] => 40
                    [shift_name] => Mon Night1
                    [shift_id] => 128
                    [day_shifts] => 1
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:28:25
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:02:53
                )

        )

    [4] => Array
        (
            [0] => Array
                (
                    [id] => 33
                    [shift_name] => Wed Night2
                    [shift_id] => 121
                    [day_shifts] => 4
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:36:57
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:05:50
                )

            [1] => Array
                (
                    [id] => 37
                    [shift_name] => Thu  Day
                    [shift_id] => 125
                    [day_shifts] => 4
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:06:08
                )

            [2] => Array
                (
                    [id] => 38
                    [shift_name] => Thu Night1
                    [shift_id] => 126
                    [day_shifts] => 4
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:06:21
                )

        )

    [3] => Array
        (
            [0] => Array
                (
                    [id] => 34
                    [shift_name] => Wed Day
                    [shift_id] => 122
                    [day_shifts] => 3
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:37:50
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:04:26
                )

            [1] => Array
                (
                    [id] => 35
                    [shift_name] => Wed Night1
                    [shift_id] => 123
                    [day_shifts] => 3
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:38:28
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:05:34
                )

            [2] => Array
                (
                    [id] => 41
                    [shift_name] => Tues Night2
                    [shift_id] => 129
                    [day_shifts] => 3
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 6.000
                    [created_on] => 2026-04-27 07:33:11
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:04:52
                )

        )

    [5] => Array
        (
            [0] => Array
                (
                    [id] => 36
                    [shift_name] => Thu Night2
                    [shift_id] => 124
                    [day_shifts] => 5
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:39:12
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:06:35
                )

        )

    [2] => Array
        (
            [0] => Array
                (
                    [id] => 39
                    [shift_name] => Mon Night2
                    [shift_id] => 127
                    [day_shifts] => 2
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:44:03
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:07:54
                )

            [1] => Array
                (
                    [id] => 42
                    [shift_name] => Tues Day
                    [shift_id] => 130
                    [day_shifts] => 2
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:36:17
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:03:16
                )

            [2] => Array
                (
                    [id] => 43
                    [shift_name] => Tues Night1
                    [shift_id] => 131
                    [day_shifts] => 2
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:37:19
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:03:38
                )

        )

)

[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Processing item id=76, work_order_id=29, part_id=8645, machine_id=39
[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 8645
    [id] => 76
    [end_date] => 2026-07-17 00:00:00
    [quantity] => 30.00
    [product_name] => Set-1046
    [total_hours] => 3.75
    [set_id] => 8
)

[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 8
[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 8.00
    [machine_high_priority] => 39
    [setting_instruction] => 450x550
)

[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: priority=2, prev_setting_instr=450x550
[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: setup_hours=1, total_hourss=4.75
[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Scheduling result start=2026-07-16 00:00:00 end=2026-07-16 04:45:00 firstShift=Wed Night2 remaining=2026-07-16=4.75
[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Insert success for machine_id=39, work_order_id=29
[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Processing item id=77, work_order_id=30, part_id=8741, machine_id=39
[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 8741
    [id] => 77
    [end_date] => 2026-07-17 00:00:00
    [quantity] => 42.00
    [product_name] => Set-1157
    [total_hours] => 4.67
    [set_id] => 178
)

[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 178
[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 9.00
    [machine_high_priority] => 39
    [setting_instruction] => 700X600
)

[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: priority=3, prev_setting_instr=450x550
[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: setup_hours=2, total_hourss=6.67
[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Scheduling result start=2026-07-16 00:00:00 end=2026-07-16 06:40:12 firstShift=Wed Night2 remaining=2026-07-16=6.67
[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Insert success for machine_id=39, work_order_id=30
[16-Jul-2026 11:38:26 Europe/London] VAC DEBUG: Recalculating machine_id=39
[16-Jul-2026 13:55:34 Europe/London] PHP Warning:  Undefined array key 2 in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 170
[16-Jul-2026 13:55:34 Europe/London] PHP Warning:  Undefined array key 2 in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_actions_for_pu.php on line 170
[21-Jul-2026 13:33:58 Europe/London] PHP Fatal error:  Uncaught mysqli_sql_exception: Unknown column 'manuf_id' in 'field list' in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php:291
Stack trace:
#0 /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php(291): mysqli->query('\n              ...')
#1 /home/demo8/public_html/thermotec/admin/modules/machines_management/index.php(52): include('/home/demo8/pub...')
#2 {main}
  thrown in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php on line 291
[21-Jul-2026 13:34:16 Europe/London] PHP Fatal error:  Uncaught mysqli_sql_exception: Unknown column 'manuf_id' in 'field list' in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php:291
Stack trace:
#0 /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php(291): mysqli->query('\n              ...')
#1 /home/demo8/public_html/thermotec/admin/modules/machines_management/index.php(52): include('/home/demo8/pub...')
#2 {main}
  thrown in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php on line 291
[21-Jul-2026 13:35:21 Europe/London] PHP Fatal error:  Uncaught mysqli_sql_exception: Unknown column 'manuf_id' in 'field list' in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php:291
Stack trace:
#0 /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php(291): mysqli->query('\n              ...')
#1 /home/demo8/public_html/thermotec/admin/modules/machines_management/index.php(52): include('/home/demo8/pub...')
#2 {main}
  thrown in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php on line 291
[21-Jul-2026 13:42:43 Europe/London] PHP Fatal error:  Uncaught mysqli_sql_exception: Unknown column 'manuf_id' in 'field list' in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php:291
Stack trace:
#0 /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php(291): mysqli->query('\n              ...')
#1 /home/demo8/public_html/thermotec/admin/modules/machines_management/index.php(52): include('/home/demo8/pub...')
#2 {main}
  thrown in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php on line 291
[21-Jul-2026 18:33:26 Europe/London] PHP Fatal error:  Uncaught mysqli_sql_exception: Unknown column 'manuf_id' in 'field list' in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php:291
Stack trace:
#0 /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php(291): mysqli->query('\n              ...')
#1 /home/demo8/public_html/thermotec/admin/modules/machines_management/index.php(52): include('/home/demo8/pub...')
#2 {main}
  thrown in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php on line 291
[22-Jul-2026 06:58:52 Europe/London] PHP Fatal error:  Uncaught Error: Call to undefined function assypu_getShiftsByDay() in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php:69
Stack trace:
#0 /home/demo8/public_html/thermotec/admin/modules/machines_management/index.php(52): include()
#1 {main}
  thrown in /home/demo8/public_html/thermotec/admin/modules/machines_management/ajax_for_assypu.php on line 69
[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: Received work_orders=Array
(
    [0] => Array
        (
            [id] => 19
            [work_order_id] => 13
            [part_id] => 8814
            [machine_id] => 41
        )

    [1] => Array
        (
            [id] => 92
            [work_order_id] => 43
            [part_id] => 8792
            [machine_id] => 41
        )

    [2] => Array
        (
            [id] => 93
            [work_order_id] => 44
            [part_id] => 8712
            [machine_id] => 41
        )

    [3] => Array
        (
            [id] => 94
            [work_order_id] => 45
            [part_id] => 8488
            [machine_id] => 41
        )

)

[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: Loaded shiftsByDay=Array
(
    [1] => Array
        (
            [0] => Array
                (
                    [id] => 28
                    [shift_name] => Mon Day
                    [shift_id] => 116
                    [day_shifts] => 1
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:19:23
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-07 11:25:44
                )

            [1] => Array
                (
                    [id] => 40
                    [shift_name] => Mon Night1
                    [shift_id] => 128
                    [day_shifts] => 1
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:28:25
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:02:53
                )

        )

    [4] => Array
        (
            [0] => Array
                (
                    [id] => 33
                    [shift_name] => Wed Night2
                    [shift_id] => 121
                    [day_shifts] => 4
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:36:57
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:05:50
                )

            [1] => Array
                (
                    [id] => 37
                    [shift_name] => Thu  Day
                    [shift_id] => 125
                    [day_shifts] => 4
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:06:08
                )

            [2] => Array
                (
                    [id] => 38
                    [shift_name] => Thu Night1
                    [shift_id] => 126
                    [day_shifts] => 4
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:42:32
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:06:21
                )

        )

    [3] => Array
        (
            [0] => Array
                (
                    [id] => 34
                    [shift_name] => Wed Day
                    [shift_id] => 122
                    [day_shifts] => 3
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:37:50
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:04:26
                )

            [1] => Array
                (
                    [id] => 35
                    [shift_name] => Wed Night1
                    [shift_id] => 123
                    [day_shifts] => 3
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:38:28
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:05:34
                )

            [2] => Array
                (
                    [id] => 41
                    [shift_name] => Tues Night2
                    [shift_id] => 129
                    [day_shifts] => 3
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 6.000
                    [created_on] => 2026-04-27 07:33:11
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:04:52
                )

        )

    [5] => Array
        (
            [0] => Array
                (
                    [id] => 36
                    [shift_name] => Thu Night2
                    [shift_id] => 124
                    [day_shifts] => 5
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:39:12
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:06:35
                )

        )

    [2] => Array
        (
            [0] => Array
                (
                    [id] => 39
                    [shift_name] => Mon Night2
                    [shift_id] => 127
                    [day_shifts] => 2
                    [start_time] => 00:00:00
                    [end_time] => 06:00:00
                    [hours] => 06:00:00
                    [pay_rate] => 100.000
                    [created_on] => 2026-02-23 19:44:03
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:07:54
                )

            [1] => Array
                (
                    [id] => 42
                    [shift_name] => Tues Day
                    [shift_id] => 130
                    [day_shifts] => 2
                    [start_time] => 06:00:00
                    [end_time] => 16:15:00
                    [hours] => 10:15:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:36:17
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:03:16
                )

            [2] => Array
                (
                    [id] => 43
                    [shift_name] => Tues Night1
                    [shift_id] => 131
                    [day_shifts] => 2
                    [start_time] => 19:45:00
                    [end_time] => 23:59:00
                    [hours] => 04:14:00
                    [pay_rate] => 7.000
                    [created_on] => 2026-04-27 07:37:19
                    [created_by] => 1
                    [updated_by] => 16
                    [updated_on] => 2026-07-08 15:03:38
                )

        )

)

[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: Processing item id=19, work_order_id=13, part_id=8814, machine_id=41
[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 8814
    [id] => 19
    [end_date] => 2026-07-03 00:00:00
    [quantity] => 120.00
    [product_name] => Set-1058
    [total_hours] => 24.00
    [set_id] => 85
)

[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 85
[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 5.00
    [machine_high_priority] => 42
    [setting_instruction] => 1255X1265
)

[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: priority=1, prev_setting_instr=
[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: setup_hours=2, total_hourss=26
[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: Scheduling result start=2026-07-22 06:00:00 end=2026-07-23 11:31:00 firstShift=Wed Day remaining=2026-07-22=14.48,2026-07-23=11.52
[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: Insert success for machine_id=41, work_order_id=13
[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: Processing item id=92, work_order_id=43, part_id=8792, machine_id=41
[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 8792
    [id] => 92
    [end_date] => 2026-07-29 00:00:00
    [quantity] => 110.00
    [product_name] => Set-1056
    [total_hours] => 22.00
    [set_id] => 83
)

[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 83
[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 5.00
    [machine_high_priority] => 41
    [setting_instruction] => 1390X1145
)

[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: priority=2, prev_setting_instr=1255X1265
[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: setup_hours=2, total_hourss=24
[22-Jul-2026 11:49:05 Europe/London] VAC DEBUG: Scheduling result start=2026-07-22 06:00:00 end=2026-07-23 09:31:00 firstShift=Wed Day remaining=2026-07-22=14.48,2026-07-23=9.52
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Insert success for machine_id=41, work_order_id=43
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Processing item id=93, work_order_id=44, part_id=8712, machine_id=41
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 8712
    [id] => 93
    [end_date] => 2026-07-29 00:00:00
    [quantity] => 72.00
    [product_name] => Set-1116
    [total_hours] => 6.00
    [set_id] => 5
)

[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 5
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 12.00
    [machine_high_priority] => 45
    [setting_instruction] => 2100X850
)

[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: priority=3, prev_setting_instr=1255X1265
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: setup_hours=2, total_hourss=8
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Scheduling result start=2026-07-22 06:00:00 end=2026-07-22 14:00:00 firstShift=Wed Day remaining=2026-07-22=8
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Insert success for machine_id=41, work_order_id=44
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Processing item id=94, work_order_id=45, part_id=8488, machine_id=41
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Found manufacture_machine_table row=Array
(
    [part_id] => 8488
    [id] => 94
    [end_date] => 2026-07-29 00:00:00
    [quantity] => 52.00
    [product_name] => Set-638
    [total_hours] => 5.20
    [set_id] => 261
)

[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Running query_route=SELECT operation_time, parts_per_operation, machine_high_priority, setting_instruction FROM set_route_details WHERE set_id = 261
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Found route row=Array
(
    [operation_time] => 01:00:00
    [parts_per_operation] => 10.00
    [machine_high_priority] => 41
    [setting_instruction] => 1250X1250
)

[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: priority=4, prev_setting_instr=1255X1265
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: setup_hours=2, total_hourss=7.2
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Scheduling result start=2026-07-22 06:00:00 end=2026-07-22 13:12:00 firstShift=Wed Day remaining=2026-07-22=7.2
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Insert success for machine_id=41, work_order_id=45
[22-Jul-2026 11:49:06 Europe/London] VAC DEBUG: Recalculating machine_id=41
