select * from `users` where `users`.`id` = 62 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 13 - 2025-03-11 10:21:37 [0.15ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 30 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 14 - 2025-03-11 10:21:37 [0.13ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 15 - 2025-03-11 10:21:37 [0.23ms] */
select * from `workflow` where `workflow`.`id` = 7 and `workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 16 - 2025-03-11 10:21:37 [0.42ms] */
select * from `transaction_workflow` where `transaction_id` = 587435 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 17 - 2025-03-11 10:21:38 [746.55ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 18 - 2025-03-11 10:21:38 [2.08ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 19 - 2025-03-11 10:21:38 [0.85ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 20 - 2025-03-11 10:21:38 [0.25ms] */
select * from `party_vehicle` where `vehicle_id` = 73503 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 21 - 2025-03-11 10:21:38 [0.95ms] */
select * from `activity_log` where `log_name` = 'vehicle' and `subject_id` = 73503 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 22 - 2025-03-11 10:21:38 [0.81ms] */
select * from `activity_log` where `log_name` = 'party_vehicle' and `subject_id` = 6947 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 23 - 2025-03-11 10:21:38 [0.28ms] */
select * from `classification_type` where `classification_type`.`id` = 1 and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 24 - 2025-03-11 10:21:38 [0.21ms] */
select * from `sub_category` where `sub_category`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 25 - 2025-03-11 10:21:38 [0.21ms] */
select * from `model` where `model`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 26 - 2025-03-11 10:21:38 [0.22ms] */
select * from `fuel_type` where `fuel_type`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 27 - 2025-03-11 10:21:38 [0.23ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 28 - 2025-03-11 10:21:38 [0.21ms] */
select * from `vehicle_color` where `vehicle_color`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 29 - 2025-03-11 10:21:38 [0.25ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 30 - 2025-03-11 10:21:38 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 73503 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 31 - 2025-03-11 10:21:38 [0.19ms] */
select * from `activity_log` where `log_name` = 'vehicle' and `subject_id` = 73503 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 32 - 2025-03-11 10:21:38 [0.18ms] */
select * from `activity_log` where `log_name` = 'party_vehicle' and `subject_id` = 6947 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 33 - 2025-03-11 10:21:38 [0.18ms] */
select * from `classification_type` where `classification_type`.`id` = 1 and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 34 - 2025-03-11 10:21:38 [0.17ms] */
select * from `sub_category` where `sub_category`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 35 - 2025-03-11 10:21:38 [0.17ms] */
select * from `model` where `model`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 36 - 2025-03-11 10:21:38 [0.17ms] */
select * from `fuel_type` where `fuel_type`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 37 - 2025-03-11 10:21:38 [0.17ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 38 - 2025-03-11 10:21:38 [0.17ms] */
select * from `vehicle_color` where `vehicle_color`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 39 - 2025-03-11 10:21:38 [0.13ms] */
select * from `model` where `model`.`id` = 1531 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 40 - 2025-03-11 10:21:38 [0.13ms] */
select * from `make` where `make`.`id` = 78 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 41 - 2025-03-11 10:21:38 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 2 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 42 - 2025-03-11 10:21:38 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 43 - 2025-03-11 10:21:38 [0.12ms] */
select * from `vehicle_color` where `vehicle_color`.`id` = 37 and `vehicle_color`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 44 - 2025-03-11 10:21:38 [0.12ms] */
select * from `fuel_type` where `fuel_type`.`id` = 3 and `fuel_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 45 - 2025-03-11 10:21:38 [0.14ms] */
select * from `party_vehicle` where `party_vehicle`.`vehicle_id` = 73503 and `party_vehicle`.`vehicle_id` is not null and `party_vehicle`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 46 - 2025-03-11 10:21:38 [0.17ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 47 - 2025-03-11 10:21:38 [0.15ms] */
select * from `transaction_workflow` where `transaction_id` = 587435 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 48 - 2025-03-11 10:21:38 [0.11ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 49 - 2025-03-11 10:21:38 [0.14ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 50 - 2025-03-11 10:21:38 [0.14ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 51 - 2025-03-11 10:21:38 [0.16ms] */
select * from `person` where `person`.`id` = 48607 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 52 - 2025-03-11 10:21:38 [0.13ms] */
select * from `activity_log` where `log_name` = 'party' and `subject_id` = 48607 and `description` = 'updated' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 53 - 2025-03-11 10:21:38 [0.13ms] */
select * from `activity_log` where `log_name` = 'person' and `subject_id` = 48607 and `description` = 'updated' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 54 - 2025-03-11 10:21:38 [0.15ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 48607 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 55 - 2025-03-11 10:21:38 [0.14ms] */
select * from `transaction_workflow` where `transaction_id` = 587435 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 56 - 2025-03-11 10:21:38 [0.11ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 57 - 2025-03-11 10:21:38 [0.14ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 6947 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 58 - 2025-03-11 10:21:38 [0.14ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 6947 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 59 - 2025-03-11 10:21:38 [0.35ms] */
select * from `activity_log` where `log_name` = 'party_vehicle' and `subject_id` = 6947 order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 60 - 2025-03-11 10:21:38 [0.16ms] */
select * from `classification_type` where `classification_type`.`id` = 1 and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 61 - 2025-03-11 10:21:38 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 62 - 2025-03-11 10:21:38 [0.55ms] */
select * from `transaction_workflow` where `transaction_id` = 587435 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 63 - 2025-03-11 10:21:38 [0.16ms] */
select * from `users` where `users`.`id` = 62 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 64 - 2025-03-11 10:21:38 [0.13ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 65 - 2025-03-11 10:21:38 [0.33ms] */
select * from `users` where `users`.`id` = 64 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 66 - 2025-03-11 10:21:38 [0.13ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 67 - 2025-03-11 10:21:38 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 7 and `workflow_definition`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 68 - 2025-03-11 10:21:38 [0.14ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 69 - 2025-03-11 10:21:38 [0.12ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 70 - 2025-03-11 10:21:38 [0.12ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 71 - 2025-03-11 10:21:38 [0.2ms] */
(select * from `workflow_checklist` where `workflow_id` is null and `role_id` is null and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` is null and `role_id` is null and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` is null and `role_id` is null and `workflow_checklist`.`deleted_at` is null) order by `workflow_Id` asc, `role_id` asc;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 72 - 2025-03-11 10:21:38 [0.14ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 73 - 2025-03-11 10:21:38 [0.28ms] */
select * from `district` where `district`.`id` = 21 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/587435
   Query 74 - 2025-03-11 10:21:38 [0.14ms] */
select * from `region` where `region`.`id` = 5 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 1 - 2025-03-11 10:21:39 [1.51ms] */
select * from `users` where `id` = 62 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 2 - 2025-03-11 10:21:39 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 3 - 2025-03-11 10:21:39 [0.31ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 4 - 2025-03-11 10:21:39 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 5 - 2025-03-11 10:21:39 [0.63ms] */
select * from `transaction` where `transaction`.`id` = 587435 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 6 - 2025-03-11 10:21:39 [0.18ms] */
select * from `service_workflow` where `service_workflow`.`id` in (7) and `service_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 7 - 2025-03-11 10:21:39 [0.12ms] */
select * from `service` where `service`.`id` in (7) and `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 8 - 2025-03-11 10:21:39 [0.12ms] */
select * from `workflow` where `workflow`.`id` in (7) and `workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 9 - 2025-03-11 10:21:39 [0.7ms] */
select * from `users` where `users`.`id` in (62) and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 10 - 2025-03-11 10:21:39 [0.15ms] */
select * from `workflow_definition` where `workflow_definition`.`id` in (30) and `workflow_definition`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 11 - 2025-03-11 10:21:39 [0.12ms] */
select * from `roles` where `roles`.`id` in (6);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 12 - 2025-03-11 10:21:39 [0.15ms] */
select * from `vehicle` where `vehicle`.`id` in (73503) and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 13 - 2025-03-11 10:21:39 [0.15ms] */
select * from `party` where `party`.`id` in (48607) and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 14 - 2025-03-11 10:21:39 [0.76ms] */
select * from `party_vehicle` where `party_vehicle`.`id` in (6947) and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 15 - 2025-03-11 10:21:39 [0.17ms] */
select * from `transaction` where `transaction`.`id` = 587435 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 16 - 2025-03-11 10:21:39 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 7 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 17 - 2025-03-11 10:21:39 [0.12ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 18 - 2025-03-11 10:21:39 [0.12ms] */
select * from `service` where `service`.`id` = 7 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 19 - 2025-03-11 10:21:39 [0.16ms] */
select * from `transaction` where `transaction`.`id` = 587435 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 20 - 2025-03-11 10:21:39 [0.15ms] */
select * from `transaction_workflow` where `transaction_id` = 587435 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 21 - 2025-03-11 10:21:39 [0.16ms] */
select * from `invoice` where `transaction_id` = 587435 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 22 - 2025-03-11 10:21:39 [0.13ms] */
select * from `payment_documents` where `transaction_id` = 587435;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 23 - 2025-03-11 10:21:39 [0.14ms] */
select * from `party_vehicle_purchase` where `transaction_id` = 587435 and `party_vehicle_purchase`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 24 - 2025-03-11 10:21:39 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 7 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 25 - 2025-03-11 10:21:39 [0.13ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 26 - 2025-03-11 10:21:39 [0.15ms] */
select * from `users` where `users`.`id` = 62 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 27 - 2025-03-11 10:21:39 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 30 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 28 - 2025-03-11 10:21:39 [0.13ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 29 - 2025-03-11 10:21:39 [0.2ms] */
select * from `workflow` where `workflow`.`id` = 7 and `workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 30 - 2025-03-11 10:21:39 [0.21ms] */
select * from `transaction_workflow` where `transaction_id` = 587435 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 31 - 2025-03-11 10:21:39 [0.15ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 32 - 2025-03-11 10:21:39 [0.16ms] */
select * from `transaction_workflow` where `transaction_id` = 587435 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 33 - 2025-03-11 10:21:39 [0.11ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 34 - 2025-03-11 10:21:39 [0.14ms] */
select * from `transaction_workflow` where `transaction_id` = 587435 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 35 - 2025-03-11 10:21:39 [0.11ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 1 - 2025-03-11 10:21:39 [1.42ms] */
select * from `users` where `id` = 62 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 2 - 2025-03-11 10:21:39 [0.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 3 - 2025-03-11 10:21:39 [0.31ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 4 - 2025-03-11 10:21:39 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 5 - 2025-03-11 10:21:39 [0.32ms] */
(select * from `workflow_checklist` where `workflow_id` = 7 and `role_id` = 6 and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` = 7 and `role_id` is null and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` is null and `role_id` = 6 and `workflow_checklist`.`deleted_at` is null) order by `workflow_Id` asc, `role_id` asc;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 6 - 2025-03-11 10:21:39 [0.18ms] */
(select * from `workflow_checklist` where `workflow_id` = 7 and `role_id` = 6 and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` = 7 and `role_id` is null and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` is null and `role_id` = 6 and `workflow_checklist`.`deleted_at` is null) order by `workflow_Id` asc, `role_id` asc;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 1 - 2025-03-11 10:21:41 [1.37ms] */
select * from `users` where `id` = 62 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 2 - 2025-03-11 10:21:41 [0.47ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 3 - 2025-03-11 10:21:41 [0.38ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 4 - 2025-03-11 10:21:41 [0.52ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 5 - 2025-03-11 10:21:41 [0.35ms] */
(select * from `workflow_checklist` where `workflow_id` = 7 and `role_id` = 6 and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` = 7 and `role_id` is null and `workflow_checklist`.`deleted_at` is null) union (select * from `workflow_checklist` where `workflow_id` is null and `role_id` = 6 and `workflow_checklist`.`deleted_at` is null) order by `workflow_Id` asc, `role_id` asc;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 1 - 2025-03-11 10:21:42 [1.37ms] */
select * from `users` where `id` = 62 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 2 - 2025-03-11 10:21:42 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 3 - 2025-03-11 10:21:42 [0.32ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 4 - 2025-03-11 10:21:42 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 5 - 2025-03-11 10:21:42 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 587435 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 6 - 2025-03-11 10:21:42 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` in (7) and `service_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 7 - 2025-03-11 10:21:42 [0.14ms] */
select * from `service` where `service`.`id` in (7) and `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 8 - 2025-03-11 10:21:42 [0.14ms] */
select * from `workflow` where `workflow`.`id` in (7) and `workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 9 - 2025-03-11 10:21:42 [0.15ms] */
select * from `users` where `users`.`id` in (62) and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 10 - 2025-03-11 10:21:42 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` in (30) and `workflow_definition`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 11 - 2025-03-11 10:21:42 [0.15ms] */
select * from `roles` where `roles`.`id` in (6);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 12 - 2025-03-11 10:21:42 [0.18ms] */
select * from `transaction` where `transaction`.`id` = 587435 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 13 - 2025-03-11 10:21:42 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 587435 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 14 - 2025-03-11 10:21:42 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 7 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 15 - 2025-03-11 10:21:42 [0.14ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 16 - 2025-03-11 10:21:42 [0.15ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 30 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 17 - 2025-03-11 10:21:42 [0.13ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 18 - 2025-03-11 10:21:42 [1.1ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587435, 'APPROVED', '2025-03-11 10:21:42', 6, 62, null, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 19 - 2025-03-11 10:21:42 [0.15ms] */
select * from `workflow_definition` where `workflow_id` = 7 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 20 - 2025-03-11 10:21:42 [0.61ms] */
update `transaction` set `assigned_to` = null, `current_workflow_state_id` = 31, `status` = 'END', `transaction`.`updated_at` = '2025-03-11 10:21:42' where `id` = 587435;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 21 - 2025-03-11 10:21:42 [0.14ms] */
select * from `service` where `service`.`id` = 7 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 22 - 2025-03-11 10:21:42 [0.16ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 23 - 2025-03-11 10:21:42 [0.16ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 24 - 2025-03-11 10:21:42 [0.15ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 6947 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 25 - 2025-03-11 10:21:42 [0.37ms] */
update `party_vehicle` set `updated_by` = 62, `party_vehicle`.`updated_at` = '2025-03-11 10:21:42' where `id` = 6947;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 26 - 2025-03-11 10:21:42 [0.2ms] */
select * from `party_vehicle` where `id` = 6947 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 27 - 2025-03-11 10:21:42 [0.85ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('party_vehicle', '{"attributes":[],"old":[]}', 62, 'App\Models\User', 6947, 'Modules\Vehicle\Entities\PartyVehicle', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 28 - 2025-03-11 10:21:42 [1.52ms] */
update `party` set `updated_by` = 62, `party`.`updated_at` = '2025-03-11 10:21:42' where `id` = 48607;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 29 - 2025-03-11 10:21:42 [0.18ms] */
select * from `party` where `id` = 48607 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 30 - 2025-03-11 10:21:42 [0.39ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('party', '{"attributes":[],"old":[]}', 62, 'App\Models\User', 48607, 'Modules\Party\Entities\Party', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 31 - 2025-03-11 10:21:42 [1.54ms] */
insert into `audits` (`old_values`, `new_values`, `event`, `auditable_id`, `auditable_type`, `user_id`, `user_type`, `tags`, `ip_address`, `user_agent`, `url`, `updated_at`, `created_at`) values ('{"updated_by":1}', '{"updated_by":62}', 'updated', 48607, 'Modules\Party\Entities\Party', 62, 'App\Models\User', null, '41.223.109.56', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', 'https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 32 - 2025-03-11 10:21:42 [1.32ms] */
update `vehicle` set `provisional` = 'N', `updated_by` = 62, `vehicle`.`updated_at` = '2025-03-11 10:21:42' where `id` = 73503;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 33 - 2025-03-11 10:21:42 [0.2ms] */
select * from `vehicle` where `id` = 73503 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 34 - 2025-03-11 10:21:42 [0.38ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":{"provisional":"N"},"old":{"provisional":"Y"}}', 62, 'App\Models\User', 73503, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 35 - 2025-03-11 10:21:42 [0.18ms] */
insert into `audits` (`old_values`, `new_values`, `event`, `auditable_id`, `auditable_type`, `user_id`, `user_type`, `tags`, `ip_address`, `user_agent`, `url`, `updated_at`, `created_at`) values ('{"provisional":"Y","updated_by":64}', '{"provisional":"N","updated_by":62}', 'updated', 73503, 'Modules\Vehicle\Entities\Vehicle', 62, 'App\Models\User', null, '41.223.109.56', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', 'https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 36 - 2025-03-11 10:21:42 [0.48ms] */
select * from `party_vehicle` where `vehicle_id` = 73503 and `party_vehicle`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 37 - 2025-03-11 10:21:42 [0.18ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 73503 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 38 - 2025-03-11 10:21:42 [0.21ms] */
select * from `party_vehicle` where `vehicle_id` = 73503 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 39 - 2025-03-11 10:21:42 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 6947 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 40 - 2025-03-11 10:21:42 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 1 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 41 - 2025-03-11 10:21:42 [0.13ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 42 - 2025-03-11 10:21:42 [0.19ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 43 - 2025-03-11 10:21:42 [0.2ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 44 - 2025-03-11 10:21:42 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 45 - 2025-03-11 10:21:42 [1.29ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2023 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 46 - 2025-03-11 10:21:42 [0.14ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 47 - 2025-03-11 10:21:42 [0.32ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 48 - 2025-03-11 10:21:42 [0.14ms] */
select * from `branches` where `branches`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 49 - 2025-03-11 10:21:42 [4.46ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (48607, 2, 73503, null, 2, 6, 5, 21, 21, 'OPEN', null, null, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 50 - 2025-03-11 10:21:42 [0.26ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587436, 'INITIATED', '2025-03-11 10:21:42', 5, 62, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 51 - 2025-03-11 10:21:42 [0.23ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 52 - 2025-03-11 10:21:42 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 53 - 2025-03-11 10:21:42 [0.14ms] */
select * from `term` where `year` = 2023 and `quarter` = 1 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 54 - 2025-03-11 10:21:42 [0.42ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'PEF-6947-728', 73503, 93, 48607, 6947, 587436, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 55 - 2025-03-11 10:21:42 [0.22ms] */
select * from `vehicle_tax` where `id` = 472201 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 56 - 2025-03-11 10:21:42 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"PEF-6947-728","tax_sticker_id":null,"vehicle_id":73503,"term_id":93,"party_id":48607,"transaction_id":587436,"party_vehicle_id":6947,"exempt":"N","migration_id":null}}', 62, 'App\Models\User', 472201, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 57 - 2025-03-11 10:21:42 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 58 - 2025-03-11 10:21:42 [0.23ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 59 - 2025-03-11 10:21:42 [0.18ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 60 - 2025-03-11 10:21:42 [0.19ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 61 - 2025-03-11 10:21:42 [0.38ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587436, '2023-01-01 00:00:00', '2022-12-01 00:00:00', 'OPEN', 48607, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 62 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562574 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 63 - 2025-03-11 10:21:42 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":587436,"party_id":48607,"invoice_amount":"0.00","invoice_date":"2023-01-01 00:00:00","due_date":"2022-12-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 62, 'App\Models\User', 562574, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 64 - 2025-03-11 10:21:42 [0.32ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Yearly tax fee for Bajaaj Auto', 'Yearly Tax Fee for Bajaaj Auto Subcategory', 1, 27.00, 27.00, 562574, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 65 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019694 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 66 - 2025-03-11 10:21:42 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Yearly tax fee for Bajaaj Auto","description":"Yearly Tax Fee for Bajaaj Auto Subcategory","unit_price":"27.00","quantity":1,"total_price":"27.00","invoice_id":562574}}', 62, 'App\Models\User', 1019694, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 67 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Yearly Tax', 'Service Fee for Yearly Tax', 1, 8.00, 8.00, 562574, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 68 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019695 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 69 - 2025-03-11 10:21:42 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Yearly Tax","description":"Service Fee for Yearly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":562574}}', 62, 'App\Models\User', 1019695, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 70 - 2025-03-11 10:21:42 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 562574 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 71 - 2025-03-11 10:21:42 [0.3ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 562574 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 72 - 2025-03-11 10:21:42 [0.24ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 562574 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 73 - 2025-03-11 10:21:42 [0.19ms] */
update `invoice` set `invoice_amount` = 35, `outstanding_balance` = 35, `discounts` = 0, `total_invoice_amount` = 35, `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562574;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 74 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562574 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 75 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"35.00","outstanding_balance":"35.00","discounts":"0.00","total_invoice_amount":"35.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 62, 'App\Models\User', 562574, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 76 - 2025-03-11 10:21:42 [0.15ms] */
update `invoice` set `invoice_number` = 'INV-401-562574258', `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562574;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 77 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562574 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 78 - 2025-03-11 10:21:42 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"35.00","outstanding_balance":"35.00","discounts":"0.00","total_invoice_amount":"35.00","invoice_number":"INV-401-562574258","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 62, 'App\Models\User', 562574, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 79 - 2025-03-11 10:21:42 [0.2ms] */
update `transaction` set `party_vehicle_id` = 6947, `vehicle_tax_id` = 472201, `invoice_id` = 562574, `transaction`.`updated_at` = '2025-03-11 10:21:42' where `id` = 587436;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 80 - 2025-03-11 10:21:42 [0.24ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2023 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 81 - 2025-03-11 10:21:42 [0.21ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 82 - 2025-03-11 10:21:42 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 83 - 2025-03-11 10:21:42 [0.27ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (48607, 2, 73503, null, 2, 6, 5, 21, 21, 'OPEN', null, null, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 84 - 2025-03-11 10:21:42 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587437, 'INITIATED', '2025-03-11 10:21:42', 5, 62, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 85 - 2025-03-11 10:21:42 [0.2ms] */
select * from `term` where `year` = 2023 and `quarter` = 2 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 86 - 2025-03-11 10:21:42 [0.42ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', '55C-6947-407', 73503, 94, 48607, 6947, 587437, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 87 - 2025-03-11 10:21:42 [0.17ms] */
select * from `vehicle_tax` where `id` = 472202 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 88 - 2025-03-11 10:21:42 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"55C-6947-407","tax_sticker_id":null,"vehicle_id":73503,"term_id":94,"party_id":48607,"transaction_id":587437,"party_vehicle_id":6947,"exempt":"N","migration_id":null}}', 62, 'App\Models\User', 472202, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 89 - 2025-03-11 10:21:42 [0.23ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 90 - 2025-03-11 10:21:42 [0.21ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` is null and `service_id` = 2 and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 91 - 2025-03-11 10:21:42 [0.17ms] */
select * from `term` where `term`.`id` = 94 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 92 - 2025-03-11 10:21:42 [0.18ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 93 - 2025-03-11 10:21:42 [0.19ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587437, '2023-03-01 00:00:00', '2023-03-01 00:00:00', 'OPEN', 48607, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 94 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562575 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 95 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":587437,"party_id":48607,"invoice_amount":"0.00","invoice_date":"2023-03-01 00:00:00","due_date":"2023-03-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 62, 'App\Models\User', 562575, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 96 - 2025-03-11 10:21:42 [0.16ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly Tax Fee for Bajaaj Auto', 'Bajaaj Auto Fee', 1, 9.00, 9.00, 562575, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 97 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019696 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 98 - 2025-03-11 10:21:42 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly Tax Fee for Bajaaj Auto","description":"Bajaaj Auto Fee","unit_price":"9.00","quantity":1,"total_price":"9.00","invoice_id":562575}}', 62, 'App\Models\User', 1019696, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 99 - 2025-03-11 10:21:42 [0.14ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 562575, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 100 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019697 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 101 - 2025-03-11 10:21:42 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":562575}}', 62, 'App\Models\User', 1019697, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 102 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 562575 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 103 - 2025-03-11 10:21:42 [0.25ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 562575 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 104 - 2025-03-11 10:21:42 [0.21ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 562575 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 105 - 2025-03-11 10:21:42 [0.19ms] */
update `invoice` set `invoice_amount` = 17, `outstanding_balance` = 17, `discounts` = 0, `total_invoice_amount` = 17, `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562575;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 106 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562575 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 107 - 2025-03-11 10:21:42 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 62, 'App\Models\User', 562575, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 108 - 2025-03-11 10:21:42 [0.52ms] */
update `invoice` set `invoice_number` = 'INV-231-562575992', `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562575;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 109 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562575 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 110 - 2025-03-11 10:21:42 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00","invoice_number":"INV-231-562575992","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 62, 'App\Models\User', 562575, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 111 - 2025-03-11 10:21:42 [0.2ms] */
update `transaction` set `party_vehicle_id` = 6947, `vehicle_tax_id` = 472202, `invoice_id` = 562575, `transaction`.`updated_at` = '2025-03-11 10:21:42' where `id` = 587437;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 112 - 2025-03-11 10:21:42 [0.25ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2023 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 113 - 2025-03-11 10:21:42 [0.2ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 114 - 2025-03-11 10:21:42 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 115 - 2025-03-11 10:21:42 [0.27ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (48607, 2, 73503, null, 2, 6, 5, 21, 21, 'OPEN', null, null, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 116 - 2025-03-11 10:21:42 [0.32ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587438, 'INITIATED', '2025-03-11 10:21:42', 5, 62, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 117 - 2025-03-11 10:21:42 [0.2ms] */
select * from `term` where `year` = 2023 and `quarter` = 3 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 118 - 2025-03-11 10:21:42 [0.2ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', '2S4-6947-249', 73503, 95, 48607, 6947, 587438, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 119 - 2025-03-11 10:21:42 [0.17ms] */
select * from `vehicle_tax` where `id` = 472203 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 120 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"2S4-6947-249","tax_sticker_id":null,"vehicle_id":73503,"term_id":95,"party_id":48607,"transaction_id":587438,"party_vehicle_id":6947,"exempt":"N","migration_id":null}}', 62, 'App\Models\User', 472203, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 121 - 2025-03-11 10:21:42 [0.23ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 122 - 2025-03-11 10:21:42 [0.21ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` is null and `service_id` = 2 and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 123 - 2025-03-11 10:21:42 [0.17ms] */
select * from `term` where `term`.`id` = 95 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 124 - 2025-03-11 10:21:42 [0.18ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 125 - 2025-03-11 10:21:42 [0.71ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587438, '2023-06-01 00:00:00', '2023-06-01 00:00:00', 'OPEN', 48607, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 126 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `id` = 562576 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 127 - 2025-03-11 10:21:42 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":587438,"party_id":48607,"invoice_amount":"0.00","invoice_date":"2023-06-01 00:00:00","due_date":"2023-06-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 62, 'App\Models\User', 562576, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 128 - 2025-03-11 10:21:42 [0.16ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly Tax Fee for Bajaaj Auto', 'Bajaaj Auto Fee', 1, 9.00, 9.00, 562576, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 129 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019698 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 130 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly Tax Fee for Bajaaj Auto","description":"Bajaaj Auto Fee","unit_price":"9.00","quantity":1,"total_price":"9.00","invoice_id":562576}}', 62, 'App\Models\User', 1019698, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 131 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 562576, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 132 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019699 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 133 - 2025-03-11 10:21:42 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":562576}}', 62, 'App\Models\User', 1019699, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 134 - 2025-03-11 10:21:42 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 562576 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 135 - 2025-03-11 10:21:42 [0.24ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 562576 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 136 - 2025-03-11 10:21:42 [0.22ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 562576 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 137 - 2025-03-11 10:21:42 [0.38ms] */
update `invoice` set `invoice_amount` = 17, `outstanding_balance` = 17, `discounts` = 0, `total_invoice_amount` = 17, `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562576;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 138 - 2025-03-11 10:21:42 [0.2ms] */
select * from `invoice` where `id` = 562576 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 139 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 62, 'App\Models\User', 562576, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 140 - 2025-03-11 10:21:42 [0.15ms] */
update `invoice` set `invoice_number` = 'INV-967-562576158', `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562576;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 141 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562576 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 142 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00","invoice_number":"INV-967-562576158","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 62, 'App\Models\User', 562576, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 143 - 2025-03-11 10:21:42 [0.19ms] */
update `transaction` set `party_vehicle_id` = 6947, `vehicle_tax_id` = 472203, `invoice_id` = 562576, `transaction`.`updated_at` = '2025-03-11 10:21:42' where `id` = 587438;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 144 - 2025-03-11 10:21:42 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2023 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 145 - 2025-03-11 10:21:42 [0.19ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 146 - 2025-03-11 10:21:42 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 147 - 2025-03-11 10:21:42 [0.26ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (48607, 2, 73503, null, 2, 6, 5, 21, 21, 'OPEN', null, null, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 148 - 2025-03-11 10:21:42 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587439, 'INITIATED', '2025-03-11 10:21:42', 5, 62, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 149 - 2025-03-11 10:21:42 [0.21ms] */
select * from `term` where `year` = 2023 and `quarter` = 4 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 150 - 2025-03-11 10:21:42 [0.35ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', '310-6947-372', 73503, 96, 48607, 6947, 587439, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 151 - 2025-03-11 10:21:42 [0.17ms] */
select * from `vehicle_tax` where `id` = 472204 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 152 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"310-6947-372","tax_sticker_id":null,"vehicle_id":73503,"term_id":96,"party_id":48607,"transaction_id":587439,"party_vehicle_id":6947,"exempt":"N","migration_id":null}}', 62, 'App\Models\User', 472204, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 153 - 2025-03-11 10:21:42 [0.22ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 154 - 2025-03-11 10:21:42 [0.19ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` is null and `service_id` = 2 and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 155 - 2025-03-11 10:21:42 [0.17ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 156 - 2025-03-11 10:21:42 [0.19ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 157 - 2025-03-11 10:21:42 [0.21ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587439, '2023-09-01 00:00:00', '2023-09-01 00:00:00', 'OPEN', 48607, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 158 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `id` = 562577 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 159 - 2025-03-11 10:21:42 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":587439,"party_id":48607,"invoice_amount":"0.00","invoice_date":"2023-09-01 00:00:00","due_date":"2023-09-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 62, 'App\Models\User', 562577, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 160 - 2025-03-11 10:21:42 [0.16ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly Tax Fee for Bajaaj Auto', 'Bajaaj Auto Fee', 1, 9.00, 9.00, 562577, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 161 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019700 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 162 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly Tax Fee for Bajaaj Auto","description":"Bajaaj Auto Fee","unit_price":"9.00","quantity":1,"total_price":"9.00","invoice_id":562577}}', 62, 'App\Models\User', 1019700, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 163 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 562577, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 164 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019701 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 165 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":562577}}', 62, 'App\Models\User', 1019701, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 166 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 562577 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 167 - 2025-03-11 10:21:42 [0.24ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 562577 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 168 - 2025-03-11 10:21:42 [0.22ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 562577 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 169 - 2025-03-11 10:21:42 [0.2ms] */
update `invoice` set `invoice_amount` = 17, `outstanding_balance` = 17, `discounts` = 0, `total_invoice_amount` = 17, `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562577;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 170 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562577 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 171 - 2025-03-11 10:21:42 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 62, 'App\Models\User', 562577, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 172 - 2025-03-11 10:21:42 [0.22ms] */
update `invoice` set `invoice_number` = 'INV-944-562577864', `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562577;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 173 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562577 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 174 - 2025-03-11 10:21:42 [0.29ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00","invoice_number":"INV-944-562577864","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 62, 'App\Models\User', 562577, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 175 - 2025-03-11 10:21:42 [0.2ms] */
update `transaction` set `party_vehicle_id` = 6947, `vehicle_tax_id` = 472204, `invoice_id` = 562577, `transaction`.`updated_at` = '2025-03-11 10:21:42' where `id` = 587439;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 176 - 2025-03-11 10:21:42 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2024 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 177 - 2025-03-11 10:21:42 [0.19ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 178 - 2025-03-11 10:21:42 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 179 - 2025-03-11 10:21:42 [0.26ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (48607, 2, 73503, null, 2, 6, 5, 21, 21, 'OPEN', null, null, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 180 - 2025-03-11 10:21:42 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587440, 'INITIATED', '2025-03-11 10:21:42', 5, 62, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 181 - 2025-03-11 10:21:42 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 182 - 2025-03-11 10:21:42 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 183 - 2025-03-11 10:21:42 [0.2ms] */
select * from `term` where `year` = 2024 and `quarter` = 1 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 184 - 2025-03-11 10:21:42 [0.2ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'A74-6947-145', 73503, 97, 48607, 6947, 587440, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 185 - 2025-03-11 10:21:42 [0.17ms] */
select * from `vehicle_tax` where `id` = 472205 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 186 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"A74-6947-145","tax_sticker_id":null,"vehicle_id":73503,"term_id":97,"party_id":48607,"transaction_id":587440,"party_vehicle_id":6947,"exempt":"N","migration_id":null}}', 62, 'App\Models\User', 472205, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 187 - 2025-03-11 10:21:42 [0.23ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 188 - 2025-03-11 10:21:42 [0.17ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 189 - 2025-03-11 10:21:42 [0.19ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 190 - 2025-03-11 10:21:42 [0.21ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587440, '2023-12-01 00:00:00', '2023-12-01 00:00:00', 'OPEN', 48607, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 191 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562578 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 192 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":587440,"party_id":48607,"invoice_amount":"0.00","invoice_date":"2023-12-01 00:00:00","due_date":"2023-12-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 62, 'App\Models\User', 562578, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 193 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Yearly tax fee for Bajaaj Auto', 'Yearly Tax Fee for Bajaaj Auto Subcategory', 1, 27.00, 27.00, 562578, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 194 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019702 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 195 - 2025-03-11 10:21:42 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Yearly tax fee for Bajaaj Auto","description":"Yearly Tax Fee for Bajaaj Auto Subcategory","unit_price":"27.00","quantity":1,"total_price":"27.00","invoice_id":562578}}', 62, 'App\Models\User', 1019702, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 196 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Yearly Tax', 'Service Fee for Yearly Tax', 1, 8.00, 8.00, 562578, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 197 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019703 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 198 - 2025-03-11 10:21:42 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Yearly Tax","description":"Service Fee for Yearly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":562578}}', 62, 'App\Models\User', 1019703, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 199 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 562578 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 200 - 2025-03-11 10:21:42 [0.24ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 562578 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 201 - 2025-03-11 10:21:42 [0.23ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 562578 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 202 - 2025-03-11 10:21:42 [0.21ms] */
update `invoice` set `invoice_amount` = 35, `outstanding_balance` = 35, `discounts` = 0, `total_invoice_amount` = 35, `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562578;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 203 - 2025-03-11 10:21:42 [0.2ms] */
select * from `invoice` where `id` = 562578 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 204 - 2025-03-11 10:21:42 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"35.00","outstanding_balance":"35.00","discounts":"0.00","total_invoice_amount":"35.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 62, 'App\Models\User', 562578, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 205 - 2025-03-11 10:21:42 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-989-562578716', `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562578;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 206 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562578 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 207 - 2025-03-11 10:21:42 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"35.00","outstanding_balance":"35.00","discounts":"0.00","total_invoice_amount":"35.00","invoice_number":"INV-989-562578716","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 62, 'App\Models\User', 562578, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 208 - 2025-03-11 10:21:42 [0.19ms] */
update `transaction` set `party_vehicle_id` = 6947, `vehicle_tax_id` = 472205, `invoice_id` = 562578, `transaction`.`updated_at` = '2025-03-11 10:21:42' where `id` = 587440;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 209 - 2025-03-11 10:21:42 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2024 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 210 - 2025-03-11 10:21:42 [0.19ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 211 - 2025-03-11 10:21:42 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 212 - 2025-03-11 10:21:42 [0.27ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (48607, 2, 73503, null, 2, 6, 5, 21, 21, 'OPEN', null, null, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 213 - 2025-03-11 10:21:42 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587441, 'INITIATED', '2025-03-11 10:21:42', 5, 62, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 214 - 2025-03-11 10:21:42 [0.2ms] */
select * from `term` where `year` = 2024 and `quarter` = 2 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 215 - 2025-03-11 10:21:42 [0.2ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'IN3-6947-775', 73503, 98, 48607, 6947, 587441, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 216 - 2025-03-11 10:21:42 [0.17ms] */
select * from `vehicle_tax` where `id` = 472206 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 217 - 2025-03-11 10:21:42 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"IN3-6947-775","tax_sticker_id":null,"vehicle_id":73503,"term_id":98,"party_id":48607,"transaction_id":587441,"party_vehicle_id":6947,"exempt":"N","migration_id":null}}', 62, 'App\Models\User', 472206, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 218 - 2025-03-11 10:21:42 [0.23ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 219 - 2025-03-11 10:21:42 [0.19ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` is null and `service_id` = 2 and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 220 - 2025-03-11 10:21:42 [0.17ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 221 - 2025-03-11 10:21:42 [0.19ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 222 - 2025-03-11 10:21:42 [0.22ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587441, '2024-03-01 00:00:00', '2024-03-01 00:00:00', 'OPEN', 48607, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 223 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562579 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 224 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":587441,"party_id":48607,"invoice_amount":"0.00","invoice_date":"2024-03-01 00:00:00","due_date":"2024-03-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 62, 'App\Models\User', 562579, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 225 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly Tax Fee for Bajaaj Auto', 'Bajaaj Auto Fee', 1, 9.00, 9.00, 562579, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 226 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019704 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 227 - 2025-03-11 10:21:42 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly Tax Fee for Bajaaj Auto","description":"Bajaaj Auto Fee","unit_price":"9.00","quantity":1,"total_price":"9.00","invoice_id":562579}}', 62, 'App\Models\User', 1019704, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 228 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 562579, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 229 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019705 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 230 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":562579}}', 62, 'App\Models\User', 1019705, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 231 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 562579 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 232 - 2025-03-11 10:21:42 [0.24ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 562579 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 233 - 2025-03-11 10:21:42 [0.22ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 562579 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 234 - 2025-03-11 10:21:42 [0.2ms] */
update `invoice` set `invoice_amount` = 17, `outstanding_balance` = 17, `discounts` = 0, `total_invoice_amount` = 17, `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562579;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 235 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562579 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 236 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 62, 'App\Models\User', 562579, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 237 - 2025-03-11 10:21:42 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-840-562579476', `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562579;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 238 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562579 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 239 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00","invoice_number":"INV-840-562579476","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 62, 'App\Models\User', 562579, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 240 - 2025-03-11 10:21:42 [0.2ms] */
update `transaction` set `party_vehicle_id` = 6947, `vehicle_tax_id` = 472206, `invoice_id` = 562579, `transaction`.`updated_at` = '2025-03-11 10:21:42' where `id` = 587441;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 241 - 2025-03-11 10:21:42 [0.25ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2024 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 242 - 2025-03-11 10:21:42 [0.19ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 243 - 2025-03-11 10:21:42 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 244 - 2025-03-11 10:21:42 [0.27ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (48607, 2, 73503, null, 2, 6, 5, 21, 21, 'OPEN', null, null, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 245 - 2025-03-11 10:21:42 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587442, 'INITIATED', '2025-03-11 10:21:42', 5, 62, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 246 - 2025-03-11 10:21:42 [0.2ms] */
select * from `term` where `year` = 2024 and `quarter` = 3 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 247 - 2025-03-11 10:21:42 [0.2ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', '3EK-6947-689', 73503, 99, 48607, 6947, 587442, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 248 - 2025-03-11 10:21:42 [0.17ms] */
select * from `vehicle_tax` where `id` = 472207 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 249 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"3EK-6947-689","tax_sticker_id":null,"vehicle_id":73503,"term_id":99,"party_id":48607,"transaction_id":587442,"party_vehicle_id":6947,"exempt":"N","migration_id":null}}', 62, 'App\Models\User', 472207, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 250 - 2025-03-11 10:21:42 [0.22ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 251 - 2025-03-11 10:21:42 [0.19ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` is null and `service_id` = 2 and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 252 - 2025-03-11 10:21:42 [0.17ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 253 - 2025-03-11 10:21:42 [0.18ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 254 - 2025-03-11 10:21:42 [0.21ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587442, '2024-06-01 00:00:00', '2024-06-01 00:00:00', 'OPEN', 48607, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 255 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562580 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 256 - 2025-03-11 10:21:42 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":587442,"party_id":48607,"invoice_amount":"0.00","invoice_date":"2024-06-01 00:00:00","due_date":"2024-06-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 62, 'App\Models\User', 562580, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 257 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly Tax Fee for Bajaaj Auto', 'Bajaaj Auto Fee', 1, 9.00, 9.00, 562580, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 258 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019706 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 259 - 2025-03-11 10:21:42 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly Tax Fee for Bajaaj Auto","description":"Bajaaj Auto Fee","unit_price":"9.00","quantity":1,"total_price":"9.00","invoice_id":562580}}', 62, 'App\Models\User', 1019706, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 260 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 562580, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 261 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019707 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 262 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":562580}}', 62, 'App\Models\User', 1019707, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 263 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 562580 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 264 - 2025-03-11 10:21:42 [0.24ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 562580 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 265 - 2025-03-11 10:21:42 [0.21ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 562580 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 266 - 2025-03-11 10:21:42 [0.2ms] */
update `invoice` set `invoice_amount` = 17, `outstanding_balance` = 17, `discounts` = 0, `total_invoice_amount` = 17, `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562580;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 267 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562580 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 268 - 2025-03-11 10:21:42 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 62, 'App\Models\User', 562580, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 269 - 2025-03-11 10:21:42 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-854-562580477', `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562580;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 270 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562580 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 271 - 2025-03-11 10:21:42 [0.34ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00","invoice_number":"INV-854-562580477","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 62, 'App\Models\User', 562580, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 272 - 2025-03-11 10:21:42 [0.19ms] */
update `transaction` set `party_vehicle_id` = 6947, `vehicle_tax_id` = 472207, `invoice_id` = 562580, `transaction`.`updated_at` = '2025-03-11 10:21:42' where `id` = 587442;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 273 - 2025-03-11 10:21:42 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2024 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 274 - 2025-03-11 10:21:42 [0.19ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 275 - 2025-03-11 10:21:42 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 276 - 2025-03-11 10:21:42 [0.28ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (48607, 2, 73503, null, 2, 6, 5, 21, 21, 'OPEN', null, null, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 277 - 2025-03-11 10:21:42 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587443, 'INITIATED', '2025-03-11 10:21:42', 5, 62, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 278 - 2025-03-11 10:21:42 [0.2ms] */
select * from `term` where `year` = 2024 and `quarter` = 4 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 279 - 2025-03-11 10:21:42 [0.21ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'EJS-6947-751', 73503, 100, 48607, 6947, 587443, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 280 - 2025-03-11 10:21:42 [0.17ms] */
select * from `vehicle_tax` where `id` = 472208 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 281 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"EJS-6947-751","tax_sticker_id":null,"vehicle_id":73503,"term_id":100,"party_id":48607,"transaction_id":587443,"party_vehicle_id":6947,"exempt":"N","migration_id":null}}', 62, 'App\Models\User', 472208, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 282 - 2025-03-11 10:21:42 [0.22ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 283 - 2025-03-11 10:21:42 [4.28ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` is null and `service_id` = 2 and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 284 - 2025-03-11 10:21:42 [0.21ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 285 - 2025-03-11 10:21:42 [0.18ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 286 - 2025-03-11 10:21:42 [0.23ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587443, '2024-09-01 00:00:00', '2024-09-01 00:00:00', 'OPEN', 48607, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 287 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `id` = 562581 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 288 - 2025-03-11 10:21:42 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":587443,"party_id":48607,"invoice_amount":"0.00","invoice_date":"2024-09-01 00:00:00","due_date":"2024-09-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 62, 'App\Models\User', 562581, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 289 - 2025-03-11 10:21:42 [0.16ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly Tax Fee for Bajaaj Auto', 'Bajaaj Auto Fee', 1, 9.00, 9.00, 562581, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 290 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019708 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 291 - 2025-03-11 10:21:42 [0.23ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly Tax Fee for Bajaaj Auto","description":"Bajaaj Auto Fee","unit_price":"9.00","quantity":1,"total_price":"9.00","invoice_id":562581}}', 62, 'App\Models\User', 1019708, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 292 - 2025-03-11 10:21:42 [0.44ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 562581, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 293 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019709 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 294 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":562581}}', 62, 'App\Models\User', 1019709, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 295 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 562581 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 296 - 2025-03-11 10:21:42 [0.24ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 562581 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 297 - 2025-03-11 10:21:42 [0.22ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 562581 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 298 - 2025-03-11 10:21:42 [0.26ms] */
update `invoice` set `invoice_amount` = 17, `outstanding_balance` = 17, `discounts` = 0, `total_invoice_amount` = 17, `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562581;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 299 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `id` = 562581 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 300 - 2025-03-11 10:21:42 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 62, 'App\Models\User', 562581, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 301 - 2025-03-11 10:21:42 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-838-562581685', `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562581;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 302 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562581 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 303 - 2025-03-11 10:21:42 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00","invoice_number":"INV-838-562581685","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 62, 'App\Models\User', 562581, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 304 - 2025-03-11 10:21:42 [0.19ms] */
update `transaction` set `party_vehicle_id` = 6947, `vehicle_tax_id` = 472208, `invoice_id` = 562581, `transaction`.`updated_at` = '2025-03-11 10:21:42' where `id` = 587443;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 305 - 2025-03-11 10:21:42 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2025 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 306 - 2025-03-11 10:21:42 [0.19ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 307 - 2025-03-11 10:21:42 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 308 - 2025-03-11 10:21:42 [0.28ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (48607, 2, 73503, null, 2, 6, 5, 21, 21, 'OPEN', null, null, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 309 - 2025-03-11 10:21:42 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587444, 'INITIATED', '2025-03-11 10:21:42', 5, 62, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 310 - 2025-03-11 10:21:42 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 311 - 2025-03-11 10:21:42 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 312 - 2025-03-11 10:21:42 [0.2ms] */
select * from `term` where `year` = 2025 and `quarter` = 1 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 313 - 2025-03-11 10:21:42 [0.21ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', '7HC-6947-734', 73503, 103, 48607, 6947, 587444, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 314 - 2025-03-11 10:21:42 [0.17ms] */
select * from `vehicle_tax` where `id` = 472209 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 315 - 2025-03-11 10:21:42 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"7HC-6947-734","tax_sticker_id":null,"vehicle_id":73503,"term_id":103,"party_id":48607,"transaction_id":587444,"party_vehicle_id":6947,"exempt":"N","migration_id":null}}', 62, 'App\Models\User', 472209, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 316 - 2025-03-11 10:21:42 [0.22ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 317 - 2025-03-11 10:21:42 [0.17ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 318 - 2025-03-11 10:21:42 [0.18ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 319 - 2025-03-11 10:21:42 [0.24ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587444, '2024-12-01 00:00:00', '2024-12-01 00:00:00', 'OPEN', 48607, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 320 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `id` = 562582 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 321 - 2025-03-11 10:21:42 [0.47ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":587444,"party_id":48607,"invoice_amount":"0.00","invoice_date":"2024-12-01 00:00:00","due_date":"2024-12-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 62, 'App\Models\User', 562582, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 322 - 2025-03-11 10:21:42 [0.17ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Yearly tax fee for Bajaaj Auto', 'Yearly Tax Fee for Bajaaj Auto Subcategory', 1, 27.00, 27.00, 562582, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 323 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019710 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 324 - 2025-03-11 10:21:42 [0.24ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Yearly tax fee for Bajaaj Auto","description":"Yearly Tax Fee for Bajaaj Auto Subcategory","unit_price":"27.00","quantity":1,"total_price":"27.00","invoice_id":562582}}', 62, 'App\Models\User', 1019710, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 325 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Yearly Tax', 'Service Fee for Yearly Tax', 1, 8.00, 8.00, 562582, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 326 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019711 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 327 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Yearly Tax","description":"Service Fee for Yearly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":562582}}', 62, 'App\Models\User', 1019711, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 328 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 562582 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 329 - 2025-03-11 10:21:42 [0.25ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 562582 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 330 - 2025-03-11 10:21:42 [0.21ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 562582 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 331 - 2025-03-11 10:21:42 [0.21ms] */
update `invoice` set `invoice_amount` = 35, `outstanding_balance` = 35, `discounts` = 0, `total_invoice_amount` = 35, `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562582;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 332 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562582 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 333 - 2025-03-11 10:21:42 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"35.00","outstanding_balance":"35.00","discounts":"0.00","total_invoice_amount":"35.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 62, 'App\Models\User', 562582, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 334 - 2025-03-11 10:21:42 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-813-562582920', `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562582;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 335 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562582 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 336 - 2025-03-11 10:21:42 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"35.00","outstanding_balance":"35.00","discounts":"0.00","total_invoice_amount":"35.00","invoice_number":"INV-813-562582920","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 62, 'App\Models\User', 562582, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 337 - 2025-03-11 10:21:42 [0.21ms] */
update `transaction` set `party_vehicle_id` = 6947, `vehicle_tax_id` = 472209, `invoice_id` = 562582, `transaction`.`updated_at` = '2025-03-11 10:21:42' where `id` = 587444;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 338 - 2025-03-11 10:21:42 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2025 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 339 - 2025-03-11 10:21:42 [0.21ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 340 - 2025-03-11 10:21:42 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 341 - 2025-03-11 10:21:42 [0.29ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (48607, 2, 73503, null, 2, 6, 5, 21, 21, 'OPEN', null, null, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 342 - 2025-03-11 10:21:42 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587445, 'INITIATED', '2025-03-11 10:21:42', 5, 62, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 343 - 2025-03-11 10:21:42 [0.2ms] */
select * from `term` where `year` = 2025 and `quarter` = 2 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 344 - 2025-03-11 10:21:42 [0.21ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'OCD-6947-326', 73503, 104, 48607, 6947, 587445, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 345 - 2025-03-11 10:21:42 [0.18ms] */
select * from `vehicle_tax` where `id` = 472210 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 346 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"OCD-6947-326","tax_sticker_id":null,"vehicle_id":73503,"term_id":104,"party_id":48607,"transaction_id":587445,"party_vehicle_id":6947,"exempt":"N","migration_id":null}}', 62, 'App\Models\User', 472210, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 347 - 2025-03-11 10:21:42 [0.23ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 348 - 2025-03-11 10:21:42 [0.19ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` is null and `service_id` = 2 and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 349 - 2025-03-11 10:21:42 [0.17ms] */
select * from `term` where `term`.`id` = 104 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 350 - 2025-03-11 10:21:42 [0.18ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 351 - 2025-03-11 10:21:42 [0.22ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587445, '2025-03-01 00:00:00', '2025-03-01 00:00:00', 'OPEN', 48607, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 352 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562583 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 353 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":587445,"party_id":48607,"invoice_amount":"0.00","invoice_date":"2025-03-01 00:00:00","due_date":"2025-03-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 62, 'App\Models\User', 562583, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 354 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly Tax Fee for Bajaaj Auto', 'Bajaaj Auto Fee', 1, 9.00, 9.00, 562583, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 355 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019712 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 356 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly Tax Fee for Bajaaj Auto","description":"Bajaaj Auto Fee","unit_price":"9.00","quantity":1,"total_price":"9.00","invoice_id":562583}}', 62, 'App\Models\User', 1019712, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 357 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 562583, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 358 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019713 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 359 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":562583}}', 62, 'App\Models\User', 1019713, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 360 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 562583 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 361 - 2025-03-11 10:21:42 [0.24ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 562583 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 362 - 2025-03-11 10:21:42 [0.21ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 562583 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 363 - 2025-03-11 10:21:42 [0.2ms] */
update `invoice` set `invoice_amount` = 17, `outstanding_balance` = 17, `discounts` = 0, `total_invoice_amount` = 17, `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562583;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 364 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `id` = 562583 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 365 - 2025-03-11 10:21:42 [0.42ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 62, 'App\Models\User', 562583, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 366 - 2025-03-11 10:21:42 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-982-562583241', `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562583;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 367 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562583 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 368 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00","invoice_number":"INV-982-562583241","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 62, 'App\Models\User', 562583, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 369 - 2025-03-11 10:21:42 [0.2ms] */
update `transaction` set `party_vehicle_id` = 6947, `vehicle_tax_id` = 472210, `invoice_id` = 562583, `transaction`.`updated_at` = '2025-03-11 10:21:42' where `id` = 587445;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 370 - 2025-03-11 10:21:42 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2025 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 371 - 2025-03-11 10:21:42 [0.2ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 372 - 2025-03-11 10:21:42 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 373 - 2025-03-11 10:21:42 [0.3ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (48607, 2, 73503, null, 2, 6, 5, 21, 21, 'OPEN', null, null, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 374 - 2025-03-11 10:21:42 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587446, 'INITIATED', '2025-03-11 10:21:42', 5, 62, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 375 - 2025-03-11 10:21:42 [0.2ms] */
select * from `term` where `year` = 2025 and `quarter` = 3 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 376 - 2025-03-11 10:21:42 [0.22ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'FTN-6947-653', 73503, 105, 48607, 6947, 587446, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 377 - 2025-03-11 10:21:42 [0.17ms] */
select * from `vehicle_tax` where `id` = 472211 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 378 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"FTN-6947-653","tax_sticker_id":null,"vehicle_id":73503,"term_id":105,"party_id":48607,"transaction_id":587446,"party_vehicle_id":6947,"exempt":"N","migration_id":null}}', 62, 'App\Models\User', 472211, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 379 - 2025-03-11 10:21:42 [0.23ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 380 - 2025-03-11 10:21:42 [0.19ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` is null and `service_id` = 2 and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 381 - 2025-03-11 10:21:42 [0.17ms] */
select * from `term` where `term`.`id` = 105 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 382 - 2025-03-11 10:21:42 [0.18ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 383 - 2025-03-11 10:21:42 [0.22ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587446, '2025-06-01 00:00:00', '2025-06-01 00:00:00', 'OPEN', 48607, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 384 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562584 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 385 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":587446,"party_id":48607,"invoice_amount":"0.00","invoice_date":"2025-06-01 00:00:00","due_date":"2025-06-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 62, 'App\Models\User', 562584, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 386 - 2025-03-11 10:21:42 [0.16ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly Tax Fee for Bajaaj Auto', 'Bajaaj Auto Fee', 1, 9.00, 9.00, 562584, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 387 - 2025-03-11 10:21:42 [0.17ms] */
select * from `invoice_item` where `id` = 1019714 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 388 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly Tax Fee for Bajaaj Auto","description":"Bajaaj Auto Fee","unit_price":"9.00","quantity":1,"total_price":"9.00","invoice_id":562584}}', 62, 'App\Models\User', 1019714, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 389 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 562584, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 390 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019715 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 391 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":562584}}', 62, 'App\Models\User', 1019715, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 392 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 562584 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 393 - 2025-03-11 10:21:42 [0.24ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 562584 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 394 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 562584 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 395 - 2025-03-11 10:21:42 [0.69ms] */
update `invoice` set `invoice_amount` = 17, `outstanding_balance` = 17, `discounts` = 0, `total_invoice_amount` = 17, `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562584;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 396 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562584 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 397 - 2025-03-11 10:21:42 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 62, 'App\Models\User', 562584, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 398 - 2025-03-11 10:21:42 [0.39ms] */
update `invoice` set `invoice_number` = 'INV-588-562584279', `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562584;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 399 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562584 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 400 - 2025-03-11 10:21:42 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00","invoice_number":"INV-588-562584279","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 62, 'App\Models\User', 562584, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 401 - 2025-03-11 10:21:42 [0.19ms] */
update `transaction` set `party_vehicle_id` = 6947, `vehicle_tax_id` = 472211, `invoice_id` = 562584, `transaction`.`updated_at` = '2025-03-11 10:21:42' where `id` = 587446;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 402 - 2025-03-11 10:21:42 [0.27ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2025 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 403 - 2025-03-11 10:21:42 [0.19ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 404 - 2025-03-11 10:21:42 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 405 - 2025-03-11 10:21:42 [0.29ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (48607, 2, 73503, null, 2, 6, 5, 21, 21, 'OPEN', null, null, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 406 - 2025-03-11 10:21:42 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587447, 'INITIATED', '2025-03-11 10:21:42', 5, 62, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 407 - 2025-03-11 10:21:42 [0.2ms] */
select * from `term` where `year` = 2025 and `quarter` = 4 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 408 - 2025-03-11 10:21:42 [0.23ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', '1ZI-6947-924', 73503, 106, 48607, 6947, 587447, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 409 - 2025-03-11 10:21:42 [0.17ms] */
select * from `vehicle_tax` where `id` = 472212 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 410 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"1ZI-6947-924","tax_sticker_id":null,"vehicle_id":73503,"term_id":106,"party_id":48607,"transaction_id":587447,"party_vehicle_id":6947,"exempt":"N","migration_id":null}}', 62, 'App\Models\User', 472212, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 411 - 2025-03-11 10:21:42 [0.23ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 412 - 2025-03-11 10:21:42 [0.19ms] */
(select * from `service_fee` where `sub_category_id` = 3 and `classification_id` is null and `service_id` = 2 and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 3 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 413 - 2025-03-11 10:21:42 [0.17ms] */
select * from `term` where `term`.`id` = 106 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 414 - 2025-03-11 10:21:42 [0.18ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 415 - 2025-03-11 10:21:42 [0.22ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (587447, '2025-09-01 00:00:00', '2025-09-01 00:00:00', 'OPEN', 48607, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 416 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562585 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 417 - 2025-03-11 10:21:42 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":587447,"party_id":48607,"invoice_amount":"0.00","invoice_date":"2025-09-01 00:00:00","due_date":"2025-09-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 62, 'App\Models\User', 562585, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 418 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly Tax Fee for Bajaaj Auto', 'Bajaaj Auto Fee', 1, 9.00, 9.00, 562585, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 419 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019716 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 420 - 2025-03-11 10:21:42 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly Tax Fee for Bajaaj Auto","description":"Bajaaj Auto Fee","unit_price":"9.00","quantity":1,"total_price":"9.00","invoice_id":562585}}', 62, 'App\Models\User', 1019716, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 421 - 2025-03-11 10:21:42 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 562585, 62, 62, '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 422 - 2025-03-11 10:21:42 [0.16ms] */
select * from `invoice_item` where `id` = 1019717 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 423 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":562585}}', 62, 'App\Models\User', 1019717, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 424 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 562585 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 425 - 2025-03-11 10:21:42 [0.24ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 562585 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 426 - 2025-03-11 10:21:42 [0.19ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 562585 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 427 - 2025-03-11 10:21:42 [0.19ms] */
update `invoice` set `invoice_amount` = 17, `outstanding_balance` = 17, `discounts` = 0, `total_invoice_amount` = 17, `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562585;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 428 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562585 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 429 - 2025-03-11 10:21:42 [0.34ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 62, 'App\Models\User', 562585, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 430 - 2025-03-11 10:21:42 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-567-562585432', `invoice`.`updated_at` = '2025-03-11 10:21:42' where `id` = 562585;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 431 - 2025-03-11 10:21:42 [0.18ms] */
select * from `invoice` where `id` = 562585 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 432 - 2025-03-11 10:21:42 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"17.00","outstanding_balance":"17.00","discounts":"0.00","total_invoice_amount":"17.00","invoice_number":"INV-567-562585432","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 62, 'App\Models\User', 562585, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:21:42', '2025-03-11 10:21:42');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 433 - 2025-03-11 10:21:42 [0.19ms] */
update `transaction` set `party_vehicle_id` = 6947, `vehicle_tax_id` = 472212, `invoice_id` = 562585, `transaction`.`updated_at` = '2025-03-11 10:21:42' where `id` = 587447;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 434 - 2025-03-11 10:21:42 [0.53ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 435 - 2025-03-11 10:21:42 [0.45ms] */
select * from `transaction` where `transaction`.`id` = 587435 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 436 - 2025-03-11 10:21:42 [0.51ms] */
select * from `transaction_workflow` where `transaction_id` = 587435 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 437 - 2025-03-11 10:21:42 [0.4ms] */
select * from `invoice` where `transaction_id` = 587435 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 438 - 2025-03-11 10:21:42 [0.79ms] */
select * from `payment_documents` where `transaction_id` = 587435;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 439 - 2025-03-11 10:21:42 [0.81ms] */
select * from `party_vehicle_purchase` where `transaction_id` = 587435 and `party_vehicle_purchase`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 440 - 2025-03-11 10:21:42 [0.16ms] */
select * from `service_workflow` where `service_workflow`.`id` = 7 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 441 - 2025-03-11 10:21:42 [0.12ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 442 - 2025-03-11 10:21:42 [0.45ms] */
select * from `transaction_workflow` where `transaction_id` = 587435 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 443 - 2025-03-11 10:21:43 [825.51ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 444 - 2025-03-11 10:21:43 [0.27ms] */
select * from `transaction_workflow` where `transaction_id` = 587435 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 445 - 2025-03-11 10:21:43 [0.15ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 446 - 2025-03-11 10:21:43 [0.17ms] */
select * from `transaction_workflow` where `transaction_id` = 587435 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 447 - 2025-03-11 10:21:43 [0.13ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 1 - 2025-03-11 10:21:43 [1.34ms] */
select * from `users` where `id` = 62 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 2 - 2025-03-11 10:21:43 [0.6ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 3 - 2025-03-11 10:21:43 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 4 - 2025-03-11 10:21:43 [0.47ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 5 - 2025-03-11 10:21:43 [0.35ms] */
select * from `transaction_workflow` where `transaction_id` = 587435 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 6 - 2025-03-11 10:21:43 [0.21ms] */
select * from `users` where `users`.`id` = 62 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 7 - 2025-03-11 10:21:43 [0.16ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 8 - 2025-03-11 10:21:43 [0.17ms] */
select * from `users` where `users`.`id` = 62 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 9 - 2025-03-11 10:21:43 [0.15ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 10 - 2025-03-11 10:21:43 [0.16ms] */
select * from `users` where `users`.`id` = 64 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 11 - 2025-03-11 10:21:43 [0.19ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 1 - 2025-03-11 10:21:43 [1.43ms] */
select * from `users` where `id` = 62 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 2 - 2025-03-11 10:21:43 [0.45ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 3 - 2025-03-11 10:21:43 [0.32ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 4 - 2025-03-11 10:21:43 [0.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 5 - 2025-03-11 10:21:43 [0.44ms] */
select * from `transaction` where `transaction`.`id` = 587435 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 6 - 2025-03-11 10:21:43 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` in (7) and `service_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 7 - 2025-03-11 10:21:43 [0.15ms] */
select * from `service` where `service`.`id` in (7) and `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 8 - 2025-03-11 10:21:43 [0.14ms] */
select * from `workflow` where `workflow`.`id` in (7) and `workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 9 - 2025-03-11 10:21:43 [0.15ms] */
select * from `users` where `users`.`id` in (null) and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 10 - 2025-03-11 10:21:43 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` in (31) and `workflow_definition`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 11 - 2025-03-11 10:21:43 [0.13ms] */
select * from `roles` where `roles`.`id` in (9);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 12 - 2025-03-11 10:21:43 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` in (73503) and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 13 - 2025-03-11 10:21:43 [0.31ms] */
select * from `party` where `party`.`id` in (48607) and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 14 - 2025-03-11 10:21:43 [0.29ms] */
select * from `party_vehicle` where `party_vehicle`.`id` in (6947) and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 15 - 2025-03-11 10:21:43 [0.15ms] */
select * from `workflow_definition` where `workflow_id` = 7 and `workflow_definition`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 16 - 2025-03-11 10:21:43 [0.26ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 17 - 2025-03-11 10:21:43 [0.16ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 18 - 2025-03-11 10:21:43 [0.16ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/logout
   Query 1 - 2025-03-11 10:21:46 [1.43ms] */
select * from `users` where `id` = 62 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/logout
   Query 2 - 2025-03-11 10:21:46 [0.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/logout
   Query 3 - 2025-03-11 10:21:46 [0.3ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/logout
   Query 4 - 2025-03-11 10:21:46 [0.33ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 1 - 2025-03-11 10:21:48 [1.37ms] */
select * from `users` where `email` = 'sahra.farah@puntlandgov.org' and `status` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 2 - 2025-03-11 10:21:48 [0.31ms] */
select * from `users` where `id` = 64 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 3 - 2025-03-11 10:21:48 [0.41ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 64 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 4 - 2025-03-11 10:21:48 [11.25ms] */
update `userprofiles` set `login_count` = 4209, `last_login` = '2025-03-11 10:21:48', `userprofiles`.`updated_at` = '2025-03-11 10:21:48' where `id` = 64;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 5 - 2025-03-11 10:21:48 [0.81ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 6 - 2025-03-11 10:21:48 [0.69ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 7 - 2025-03-11 10:21:48 [0.53ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 1 - 2025-03-11 10:21:49 [1.36ms] */
select * from `users` where `id` = 64 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 2 - 2025-03-11 10:21:49 [0.66ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 3 - 2025-03-11 10:21:49 [0.45ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 4 - 2025-03-11 10:21:49 [0.48ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 5 - 2025-03-11 10:21:49 [26.57ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 6 - 2025-03-11 10:21:49 [19.88ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-03-11' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 7 - 2025-03-11 10:21:49 [113.94ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 8 - 2025-03-11 10:21:49 [31.2ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-03-11' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 9 - 2025-03-11 10:21:49 [182.23ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `transaction`.`status` = 'END' and `payment_date` > '2025-03-10' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 10 - 2025-03-11 10:21:49 [52.95ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `transaction`.`status` = 'END' and `payment_date` > '2025-03-10' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 11 - 2025-03-11 10:21:50 [468.96ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-11' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 12 - 2025-03-11 10:21:52 [2313.95ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-11' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 13 - 2025-03-11 10:21:52 [0.28ms] */
select * from `district` where `district`.`id` = 21 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 14 - 2025-03-11 10:21:52 [0.14ms] */
select * from `region` where `region`.`id` = 5 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/TaxCollectionReport
   Query 1 - 2025-03-11 10:21:55 [1.52ms] */
select * from `users` where `id` = 95 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/TaxCollectionReport
   Query 2 - 2025-03-11 10:21:55 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/TaxCollectionReport
   Query 3 - 2025-03-11 10:21:55 [0.32ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/TaxCollectionReport
   Query 4 - 2025-03-11 10:21:55 [0.47ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/TitleCollectionReport
   Query 1 - 2025-03-11 10:22:00 [1.4ms] */
select * from `users` where `id` = 95 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/TitleCollectionReport
   Query 2 - 2025-03-11 10:22:00 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/TitleCollectionReport
   Query 3 - 2025-03-11 10:22:00 [0.32ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/TitleCollectionReport
   Query 4 - 2025-03-11 10:22:00 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 1 - 2025-03-11 10:22:01 [1.46ms] */
select * from `users` where `id` = 64 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 2 - 2025-03-11 10:22:01 [0.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 3 - 2025-03-11 10:22:01 [0.33ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 4 - 2025-03-11 10:22:01 [0.69ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 5 - 2025-03-11 10:22:01 [0.28ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 6 - 2025-03-11 10:22:01 [0.45ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 7 - 2025-03-11 10:22:01 [0.44ms] */
select `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` = 64 and `model_has_roles`.`model_type` = 'App\Models\User' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 8 - 2025-03-11 10:22:01 [0.26ms] */
select `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` = 64 and `model_has_roles`.`model_type` = 'App\Models\User' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 9 - 2025-03-11 10:22:02 [744.09ms] */
select count(*) as aggregate from `transaction` inner join `workflow_definition` on `workflow_definition`.`id` = `transaction`.`current_workflow_state_id` where `workflow_definition`.`role_id` in (5) and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `workflow_definition`.`role_id` = 5 and `deliver_district_id` = 21 and `status` != 'CANCELED' and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 10 - 2025-03-11 10:22:03 [1099.48ms] */
select `transaction`.* from `transaction` inner join `workflow_definition` on `workflow_definition`.`id` = `transaction`.`current_workflow_state_id` where `workflow_definition`.`role_id` in (5) and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `workflow_definition`.`role_id` = 5 and `deliver_district_id` = 21 and `status` != 'CANCELED' and `transaction`.`deleted_at` is null order by `transaction`.`created_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 11 - 2025-03-11 10:22:03 [0.98ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 12 - 2025-03-11 10:22:03 [0.22ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 13 - 2025-03-11 10:22:03 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 14 - 2025-03-11 10:22:03 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 15 - 2025-03-11 10:22:03 [0.53ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 16 - 2025-03-11 10:22:03 [0.25ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 17 - 2025-03-11 10:22:03 [0.22ms] */
select * from `person` where `person`.`id` = 48607 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 18 - 2025-03-11 10:22:03 [0.26ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 6947 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 19 - 2025-03-11 10:22:03 [0.18ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 20 - 2025-03-11 10:22:03 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 21 - 2025-03-11 10:22:03 [0.71ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 587436 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 22 - 2025-03-11 10:22:03 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 23 - 2025-03-11 10:22:03 [0.11ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 24 - 2025-03-11 10:22:03 [0.37ms] */
select * from `transaction_workflow` where `transaction_id` = 587436 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 25 - 2025-03-11 10:22:03 [0.29ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 26 - 2025-03-11 10:22:03 [0.22ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 27 - 2025-03-11 10:22:03 [0.21ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 28 - 2025-03-11 10:22:03 [0.16ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 29 - 2025-03-11 10:22:03 [0.14ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 30 - 2025-03-11 10:22:03 [0.16ms] */
select * from `person` where `person`.`id` = 48607 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 31 - 2025-03-11 10:22:03 [0.15ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 6947 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 32 - 2025-03-11 10:22:03 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 33 - 2025-03-11 10:22:03 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 34 - 2025-03-11 10:22:03 [0.34ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 587437 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 35 - 2025-03-11 10:22:03 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 36 - 2025-03-11 10:22:03 [0.11ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 37 - 2025-03-11 10:22:03 [0.26ms] */
select * from `transaction_workflow` where `transaction_id` = 587437 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 38 - 2025-03-11 10:22:03 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 39 - 2025-03-11 10:22:03 [0.11ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 40 - 2025-03-11 10:22:03 [0.11ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 41 - 2025-03-11 10:22:03 [0.12ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 42 - 2025-03-11 10:22:03 [0.12ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 43 - 2025-03-11 10:22:03 [0.13ms] */
select * from `person` where `person`.`id` = 48607 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 44 - 2025-03-11 10:22:03 [0.12ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 6947 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 45 - 2025-03-11 10:22:03 [0.11ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 46 - 2025-03-11 10:22:03 [0.11ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 47 - 2025-03-11 10:22:03 [0.27ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 587438 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 48 - 2025-03-11 10:22:03 [0.16ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 49 - 2025-03-11 10:22:03 [0.13ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 50 - 2025-03-11 10:22:03 [0.3ms] */
select * from `transaction_workflow` where `transaction_id` = 587438 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 51 - 2025-03-11 10:22:03 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 52 - 2025-03-11 10:22:03 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 53 - 2025-03-11 10:22:03 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 54 - 2025-03-11 10:22:03 [0.16ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 55 - 2025-03-11 10:22:03 [0.15ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 56 - 2025-03-11 10:22:03 [0.24ms] */
select * from `person` where `person`.`id` = 48607 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 57 - 2025-03-11 10:22:03 [0.16ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 6947 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 58 - 2025-03-11 10:22:03 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 59 - 2025-03-11 10:22:03 [0.15ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 60 - 2025-03-11 10:22:03 [0.23ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 587439 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 61 - 2025-03-11 10:22:03 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 62 - 2025-03-11 10:22:03 [0.14ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 63 - 2025-03-11 10:22:03 [0.28ms] */
select * from `transaction_workflow` where `transaction_id` = 587439 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 64 - 2025-03-11 10:22:03 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 65 - 2025-03-11 10:22:03 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 66 - 2025-03-11 10:22:03 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 67 - 2025-03-11 10:22:03 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 68 - 2025-03-11 10:22:03 [0.14ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 69 - 2025-03-11 10:22:03 [0.15ms] */
select * from `person` where `person`.`id` = 48607 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 70 - 2025-03-11 10:22:03 [0.14ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 6947 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 71 - 2025-03-11 10:22:03 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 72 - 2025-03-11 10:22:03 [0.12ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 73 - 2025-03-11 10:22:03 [0.28ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 587440 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 74 - 2025-03-11 10:22:03 [1.06ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 75 - 2025-03-11 10:22:03 [0.69ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 76 - 2025-03-11 10:22:03 [0.36ms] */
select * from `transaction_workflow` where `transaction_id` = 587440 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 77 - 2025-03-11 10:22:03 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 78 - 2025-03-11 10:22:03 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 79 - 2025-03-11 10:22:03 [0.11ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 80 - 2025-03-11 10:22:03 [0.13ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 81 - 2025-03-11 10:22:03 [0.13ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 82 - 2025-03-11 10:22:03 [0.13ms] */
select * from `person` where `person`.`id` = 48607 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 83 - 2025-03-11 10:22:03 [0.13ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 6947 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 84 - 2025-03-11 10:22:03 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 85 - 2025-03-11 10:22:03 [0.11ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 86 - 2025-03-11 10:22:03 [0.28ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 587441 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 87 - 2025-03-11 10:22:03 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 88 - 2025-03-11 10:22:03 [0.11ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 89 - 2025-03-11 10:22:03 [0.26ms] */
select * from `transaction_workflow` where `transaction_id` = 587441 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 90 - 2025-03-11 10:22:03 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 91 - 2025-03-11 10:22:03 [0.11ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 92 - 2025-03-11 10:22:03 [0.11ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 93 - 2025-03-11 10:22:03 [0.12ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 94 - 2025-03-11 10:22:03 [0.12ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 95 - 2025-03-11 10:22:03 [0.14ms] */
select * from `person` where `person`.`id` = 48607 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 96 - 2025-03-11 10:22:03 [0.12ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 6947 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 97 - 2025-03-11 10:22:03 [0.11ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 98 - 2025-03-11 10:22:03 [0.11ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 99 - 2025-03-11 10:22:03 [0.27ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 587442 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 100 - 2025-03-11 10:22:03 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 101 - 2025-03-11 10:22:03 [0.11ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 102 - 2025-03-11 10:22:03 [0.29ms] */
select * from `transaction_workflow` where `transaction_id` = 587442 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 103 - 2025-03-11 10:22:03 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 104 - 2025-03-11 10:22:03 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 105 - 2025-03-11 10:22:03 [0.11ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 106 - 2025-03-11 10:22:03 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 107 - 2025-03-11 10:22:03 [0.12ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 108 - 2025-03-11 10:22:03 [0.13ms] */
select * from `person` where `person`.`id` = 48607 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 109 - 2025-03-11 10:22:03 [0.13ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 6947 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 110 - 2025-03-11 10:22:03 [0.11ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 111 - 2025-03-11 10:22:03 [0.11ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 112 - 2025-03-11 10:22:03 [0.27ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 587443 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 113 - 2025-03-11 10:22:03 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 114 - 2025-03-11 10:22:03 [0.11ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 115 - 2025-03-11 10:22:03 [0.28ms] */
select * from `transaction_workflow` where `transaction_id` = 587443 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 116 - 2025-03-11 10:22:03 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 117 - 2025-03-11 10:22:03 [0.11ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 118 - 2025-03-11 10:22:03 [0.11ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 119 - 2025-03-11 10:22:03 [0.25ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 120 - 2025-03-11 10:22:03 [0.2ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 121 - 2025-03-11 10:22:03 [0.2ms] */
select * from `person` where `person`.`id` = 48607 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 122 - 2025-03-11 10:22:03 [0.2ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 6947 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 123 - 2025-03-11 10:22:03 [0.18ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 124 - 2025-03-11 10:22:03 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 125 - 2025-03-11 10:22:03 [0.34ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 587444 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 126 - 2025-03-11 10:22:03 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 127 - 2025-03-11 10:22:03 [0.13ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 128 - 2025-03-11 10:22:03 [0.24ms] */
select * from `transaction_workflow` where `transaction_id` = 587444 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 129 - 2025-03-11 10:22:03 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 130 - 2025-03-11 10:22:03 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 131 - 2025-03-11 10:22:03 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 132 - 2025-03-11 10:22:03 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 133 - 2025-03-11 10:22:03 [0.14ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 134 - 2025-03-11 10:22:03 [0.15ms] */
select * from `person` where `person`.`id` = 48607 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 135 - 2025-03-11 10:22:03 [0.14ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 6947 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 136 - 2025-03-11 10:22:03 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 137 - 2025-03-11 10:22:03 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 138 - 2025-03-11 10:22:03 [0.28ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 587445 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 139 - 2025-03-11 10:22:03 [0.16ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 140 - 2025-03-11 10:22:03 [0.15ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 141 - 2025-03-11 10:22:03 [0.24ms] */
select * from `transaction_workflow` where `transaction_id` = 587445 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 142 - 2025-03-11 10:22:03 [0.28ms] */
select * from `district` where `district`.`id` = 21 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 143 - 2025-03-11 10:22:03 [0.2ms] */
select * from `region` where `region`.`id` = 5 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/TaxCollectionReport
   Query 1 - 2025-03-11 10:22:06 [1.43ms] */
select * from `users` where `id` = 95 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/TaxCollectionReport
   Query 2 - 2025-03-11 10:22:06 [0.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/TaxCollectionReport
   Query 3 - 2025-03-11 10:22:06 [0.3ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/TaxCollectionReport
   Query 4 - 2025-03-11 10:22:06 [0.47ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 1 - 2025-03-11 10:22:10 [1.36ms] */
select * from `users` where `id` = 64 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 2 - 2025-03-11 10:22:10 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 3 - 2025-03-11 10:22:10 [0.32ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 4 - 2025-03-11 10:22:10 [0.47ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 5 - 2025-03-11 10:22:18 [7749.85ms] */
select count(*) as aggregate from `vehicle` inner join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` where `vehicle`.`id` in (select `vehicle_tax`.`vehicle_id` from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`status` = 'OPEN' and `term`.`first_date_of_quarter` <= '2025-03-11 10:22:10') and `ban_status` = 'GOOD_STANDING' and `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`provisional` = 'N' and `vehicle`.`provisional` = 'N' and `party_vehicle`.`status` = 'REGISTERED' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 6 - 2025-03-11 10:22:25 [7115.23ms] */
select `vehicle`.* from `vehicle` inner join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` where `vehicle`.`id` in (select `vehicle_tax`.`vehicle_id` from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`status` = 'OPEN' and `term`.`first_date_of_quarter` <= '2025-03-11 10:22:10') and `ban_status` = 'GOOD_STANDING' and `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`provisional` = 'N' and `vehicle`.`provisional` = 'N' and `party_vehicle`.`status` = 'REGISTERED' and `vehicle`.`deleted_at` is null order by `updated_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 7 - 2025-03-11 10:22:25 [1.35ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 73503 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 8 - 2025-03-11 10:22:25 [0.6ms] */
select * from `party_vehicle` where `vehicle_id` = 73503 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 9 - 2025-03-11 10:22:25 [0.35ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 10 - 2025-03-11 10:22:25 [0.21ms] */
select * from `person` where `person`.`id` = 48607 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 11 - 2025-03-11 10:22:25 [0.14ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 12 - 2025-03-11 10:22:25 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 13 - 2025-03-11 10:22:25 [0.9ms] */
select * from `model` where `model`.`id` = 1531 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 14 - 2025-03-11 10:22:25 [0.21ms] */
select * from `make` where `make`.`id` = 78 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 15 - 2025-03-11 10:22:25 [0.71ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 2 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 16 - 2025-03-11 10:22:25 [5.11ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 73503 and `term`.`first_date_of_quarter` <= '2025-03-11 10:22:25' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 17 - 2025-03-11 10:22:25 [0.29ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 18 - 2025-03-11 10:22:25 [0.21ms] */
select * from `term` where `term`.`id` = 94 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 19 - 2025-03-11 10:22:25 [0.2ms] */
select * from `term` where `term`.`id` = 95 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 20 - 2025-03-11 10:22:25 [1.65ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 21 - 2025-03-11 10:22:25 [0.12ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 22 - 2025-03-11 10:22:25 [0.12ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 23 - 2025-03-11 10:22:25 [0.12ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 24 - 2025-03-11 10:22:25 [0.12ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 25 - 2025-03-11 10:22:25 [0.12ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 26 - 2025-03-11 10:22:25 [1.63ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 78973 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 27 - 2025-03-11 10:22:25 [0.36ms] */
select * from `party_vehicle` where `vehicle_id` = 78973 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 28 - 2025-03-11 10:22:25 [0.4ms] */
select * from `party` where `party`.`id` = 50743 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 29 - 2025-03-11 10:22:25 [0.15ms] */
select * from `person` where `person`.`id` = 50743 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 30 - 2025-03-11 10:22:25 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 31 - 2025-03-11 10:22:25 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 32 - 2025-03-11 10:22:25 [0.13ms] */
select * from `model` where `model`.`id` = 1401 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 33 - 2025-03-11 10:22:25 [0.69ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 34 - 2025-03-11 10:22:25 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 35 - 2025-03-11 10:22:25 [2.58ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 78973 and `term`.`first_date_of_quarter` <= '2025-03-11 10:22:25' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 36 - 2025-03-11 10:22:25 [0.61ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 83461 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 37 - 2025-03-11 10:22:25 [0.35ms] */
select * from `party_vehicle` where `vehicle_id` = 83461 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 38 - 2025-03-11 10:22:25 [0.47ms] */
select * from `party` where `party`.`id` = 32340 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 39 - 2025-03-11 10:22:25 [0.16ms] */
select * from `person` where `person`.`id` = 32340 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 40 - 2025-03-11 10:22:25 [2.44ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 41 - 2025-03-11 10:22:25 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 9 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 42 - 2025-03-11 10:22:25 [0.13ms] */
select * from `model` where `model`.`id` = 1335 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 43 - 2025-03-11 10:22:25 [0.12ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 44 - 2025-03-11 10:22:25 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 7 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 45 - 2025-03-11 10:22:25 [3.13ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 83461 and `term`.`first_date_of_quarter` <= '2025-03-11 10:22:25' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 46 - 2025-03-11 10:22:25 [1.77ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 30567 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 47 - 2025-03-11 10:22:25 [0.35ms] */
select * from `party_vehicle` where `vehicle_id` = 30567 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 48 - 2025-03-11 10:22:25 [0.37ms] */
select * from `party` where `party`.`id` = 20254 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 49 - 2025-03-11 10:22:25 [0.17ms] */
select * from `person` where `person`.`id` = 20254 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 50 - 2025-03-11 10:22:25 [0.23ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 51 - 2025-03-11 10:22:25 [1.51ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 52 - 2025-03-11 10:22:25 [0.13ms] */
select * from `model` where `model`.`id` = 1528 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 53 - 2025-03-11 10:22:25 [0.12ms] */
select * from `make` where `make`.`id` = 77 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 54 - 2025-03-11 10:22:25 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 55 - 2025-03-11 10:22:25 [3.33ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 30567 and `term`.`first_date_of_quarter` <= '2025-03-11 10:22:25' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 56 - 2025-03-11 10:22:25 [0.76ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 97993 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 57 - 2025-03-11 10:22:25 [0.74ms] */
select * from `party_vehicle` where `vehicle_id` = 97993 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 58 - 2025-03-11 10:22:25 [0.77ms] */
select * from `party` where `party`.`id` = 63887 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 59 - 2025-03-11 10:22:25 [0.17ms] */
select * from `person` where `person`.`id` = 61297 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 60 - 2025-03-11 10:22:25 [0.14ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 61 - 2025-03-11 10:22:25 [0.32ms] */
select * from `sub_category` where `sub_category`.`id` = 14 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 62 - 2025-03-11 10:22:25 [0.14ms] */
select * from `model` where `model`.`id` = 4374 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 63 - 2025-03-11 10:22:25 [0.13ms] */
select * from `make` where `make`.`id` = 97 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 64 - 2025-03-11 10:22:25 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 29 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 65 - 2025-03-11 10:22:25 [7.14ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 97993 and `term`.`first_date_of_quarter` <= '2025-03-11 10:22:25' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 66 - 2025-03-11 10:22:25 [1.46ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 67 - 2025-03-11 10:22:25 [1.05ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 93422 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 68 - 2025-03-11 10:22:25 [1.97ms] */
select * from `party_vehicle` where `vehicle_id` = 93422 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 69 - 2025-03-11 10:22:25 [0.75ms] */
select * from `party` where `party`.`id` = 60588 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 70 - 2025-03-11 10:22:25 [1.09ms] */
select * from `person` where `person`.`id` = 58100 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 71 - 2025-03-11 10:22:25 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 72 - 2025-03-11 10:22:25 [0.37ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 73 - 2025-03-11 10:22:25 [0.7ms] */
select * from `model` where `model`.`id` = 1401 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 74 - 2025-03-11 10:22:25 [0.13ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 75 - 2025-03-11 10:22:25 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 14 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 76 - 2025-03-11 10:22:25 [2.16ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 93422 and `term`.`first_date_of_quarter` <= '2025-03-11 10:22:25' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 77 - 2025-03-11 10:22:25 [0.65ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 56562 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 78 - 2025-03-11 10:22:25 [1.74ms] */
select * from `party_vehicle` where `vehicle_id` = 56562 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 79 - 2025-03-11 10:22:25 [0.53ms] */
select * from `party` where `party`.`id` = 28616 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 80 - 2025-03-11 10:22:25 [0.66ms] */
select * from `person` where `person`.`id` = 28616 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 81 - 2025-03-11 10:22:25 [0.14ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 82 - 2025-03-11 10:22:25 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 83 - 2025-03-11 10:22:25 [0.24ms] */
select * from `model` where `model`.`id` = 1528 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 84 - 2025-03-11 10:22:25 [0.13ms] */
select * from `make` where `make`.`id` = 77 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 85 - 2025-03-11 10:22:25 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 86 - 2025-03-11 10:22:25 [1.43ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 56562 and `term`.`first_date_of_quarter` <= '2025-03-11 10:22:25' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 87 - 2025-03-11 10:22:25 [0.26ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 42670 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 88 - 2025-03-11 10:22:25 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 42670 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 89 - 2025-03-11 10:22:25 [0.26ms] */
select * from `party` where `party`.`id` = 32804 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 90 - 2025-03-11 10:22:25 [0.16ms] */
select * from `person` where `person`.`id` = 32804 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 91 - 2025-03-11 10:22:25 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 92 - 2025-03-11 10:22:25 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 93 - 2025-03-11 10:22:25 [0.13ms] */
select * from `model` where `model`.`id` = 1452 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 94 - 2025-03-11 10:22:25 [0.24ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 95 - 2025-03-11 10:22:25 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 96 - 2025-03-11 10:22:25 [1.49ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 42670 and `term`.`first_date_of_quarter` <= '2025-03-11 10:22:25' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 97 - 2025-03-11 10:22:25 [2.72ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 92410 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 98 - 2025-03-11 10:22:25 [0.81ms] */
select * from `party_vehicle` where `vehicle_id` = 92410 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 99 - 2025-03-11 10:22:25 [0.39ms] */
select * from `party` where `party`.`id` = 60022 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 100 - 2025-03-11 10:22:25 [0.16ms] */
select * from `person` where `person`.`id` = 57551 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 101 - 2025-03-11 10:22:25 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 102 - 2025-03-11 10:22:25 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 103 - 2025-03-11 10:22:25 [0.13ms] */
select * from `model` where `model`.`id` = 1528 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 104 - 2025-03-11 10:22:25 [0.13ms] */
select * from `make` where `make`.`id` = 77 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 105 - 2025-03-11 10:22:25 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 2 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 106 - 2025-03-11 10:22:25 [0.6ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 92410 and `term`.`first_date_of_quarter` <= '2025-03-11 10:22:25' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 107 - 2025-03-11 10:22:25 [0.24ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 84253 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 108 - 2025-03-11 10:22:25 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 84253 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 109 - 2025-03-11 10:22:25 [0.25ms] */
select * from `party` where `party`.`id` = 26186 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 110 - 2025-03-11 10:22:25 [0.16ms] */
select * from `person` where `person`.`id` = 26186 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 111 - 2025-03-11 10:22:25 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 112 - 2025-03-11 10:22:25 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 113 - 2025-03-11 10:22:25 [0.15ms] */
select * from `model` where `model`.`id` = 1396 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 114 - 2025-03-11 10:22:25 [0.13ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 115 - 2025-03-11 10:22:25 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 116 - 2025-03-11 10:22:25 [1.13ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 84253 and `term`.`first_date_of_quarter` <= '2025-03-11 10:22:25' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 117 - 2025-03-11 10:22:25 [1.92ms] */
select * from `district` where `district`.`id` = 21 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 118 - 2025-03-11 10:22:25 [2.14ms] */
select * from `region` where `region`.`id` = 5 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/service.tax-list-component
   Query 1 - 2025-03-11 10:22:29 [3.28ms] */
select * from `users` where `id` = 64 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/service.tax-list-component
   Query 2 - 2025-03-11 10:22:29 [0.45ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/service.tax-list-component
   Query 3 - 2025-03-11 10:22:29 [0.33ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/service.tax-list-component
   Query 4 - 2025-03-11 10:22:29 [0.53ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 1 - 2025-03-11 10:22:29 [1.35ms] */
select * from `users` where `id` = 64 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 2 - 2025-03-11 10:22:29 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 3 - 2025-03-11 10:22:29 [0.31ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 4 - 2025-03-11 10:22:29 [0.36ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 5 - 2025-03-11 10:22:29 [0.93ms] */
select * from `party_vehicle` where `vehicle_id` = 73503 and `party_vehicle`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 6 - 2025-03-11 10:22:29 [0.22ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 73503 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 7 - 2025-03-11 10:22:29 [0.25ms] */
select * from `party_vehicle` where `vehicle_id` = 73503 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 8 - 2025-03-11 10:22:29 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 6947 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 9 - 2025-03-11 10:22:29 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 1 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 10 - 2025-03-11 10:22:29 [0.16ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 11 - 2025-03-11 10:22:29 [0.27ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 12 - 2025-03-11 10:22:29 [0.28ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 13 - 2025-03-11 10:22:29 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 14 - 2025-03-11 10:22:29 [0.69ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2023 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 15 - 2025-03-11 10:22:29 [272.86ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 16 - 2025-03-11 10:22:29 [1.43ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2023 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 17 - 2025-03-11 10:22:29 [0.26ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 18 - 2025-03-11 10:22:29 [0.41ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2023 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 19 - 2025-03-11 10:22:29 [0.18ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 20 - 2025-03-11 10:22:29 [0.4ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2023 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 21 - 2025-03-11 10:22:29 [0.18ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 22 - 2025-03-11 10:22:29 [0.41ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2024 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 23 - 2025-03-11 10:22:29 [4.62ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 24 - 2025-03-11 10:22:29 [0.75ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2024 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 25 - 2025-03-11 10:22:29 [0.11ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 26 - 2025-03-11 10:22:29 [0.25ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2024 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 27 - 2025-03-11 10:22:29 [0.12ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 28 - 2025-03-11 10:22:29 [0.24ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2024 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 29 - 2025-03-11 10:22:29 [0.11ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 30 - 2025-03-11 10:22:29 [0.25ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2025 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 31 - 2025-03-11 10:22:29 [0.11ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 32 - 2025-03-11 10:22:29 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2025 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 33 - 2025-03-11 10:22:29 [0.11ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 34 - 2025-03-11 10:22:29 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2025 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 35 - 2025-03-11 10:22:29 [0.11ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 36 - 2025-03-11 10:22:29 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 73503 and `term`.`year` = 2025 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 37 - 2025-03-11 10:22:29 [0.11ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 38 - 2025-03-11 10:22:29 [0.13ms] */
select `id` from `term` where `year` < 2025 and `term`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 39 - 2025-03-11 10:22:29 [2.95ms] */
select * from `vehicle_tax` where `party_vehicle_id` = 6947 and `status` = 'OPEN' and `term_id` in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 40 - 2025-03-11 10:22:29 [0.22ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 472201 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 41 - 2025-03-11 10:22:30 [21.21ms] */
update `vehicle_tax` set `exempt` = 'Y', `updated_by` = 64, `vehicle_tax`.`updated_at` = '2025-03-11 10:22:29' where `id` = 472201;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 42 - 2025-03-11 10:22:30 [0.32ms] */
select * from `vehicle_tax` where `id` = 472201 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 43 - 2025-03-11 10:22:30 [3.96ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"exempt":"Y"},"old":{"exempt":"N"}}', 64, 'App\Models\User', 472201, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 44 - 2025-03-11 10:22:30 [0.34ms] */
select * from `invoice` where `transaction_id` = 587436 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 45 - 2025-03-11 10:22:30 [7.61ms] */
update `invoice` set `exempt` = 'Y', `updated_by` = 64, `invoice`.`updated_at` = '2025-03-11 10:22:30' where `id` = 562574;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 46 - 2025-03-11 10:22:30 [0.32ms] */
select * from `invoice` where `id` = 562574 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 47 - 2025-03-11 10:22:30 [3.09ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 64, 'App\Models\User', 562574, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 48 - 2025-03-11 10:22:30 [0.3ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 472202 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 49 - 2025-03-11 10:22:30 [3.06ms] */
update `vehicle_tax` set `exempt` = 'Y', `updated_by` = 64, `vehicle_tax`.`updated_at` = '2025-03-11 10:22:30' where `id` = 472202;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 50 - 2025-03-11 10:22:30 [0.6ms] */
select * from `vehicle_tax` where `id` = 472202 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 51 - 2025-03-11 10:22:30 [4.25ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"exempt":"Y"},"old":{"exempt":"N"}}', 64, 'App\Models\User', 472202, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 52 - 2025-03-11 10:22:30 [1.87ms] */
select * from `invoice` where `transaction_id` = 587437 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 53 - 2025-03-11 10:22:30 [3.03ms] */
update `invoice` set `exempt` = 'Y', `updated_by` = 64, `invoice`.`updated_at` = '2025-03-11 10:22:30' where `id` = 562575;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 54 - 2025-03-11 10:22:30 [0.27ms] */
select * from `invoice` where `id` = 562575 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 55 - 2025-03-11 10:22:30 [2.8ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 64, 'App\Models\User', 562575, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 56 - 2025-03-11 10:22:30 [0.26ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 472203 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 57 - 2025-03-11 10:22:30 [1.42ms] */
update `vehicle_tax` set `exempt` = 'Y', `updated_by` = 64, `vehicle_tax`.`updated_at` = '2025-03-11 10:22:30' where `id` = 472203;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 58 - 2025-03-11 10:22:30 [0.19ms] */
select * from `vehicle_tax` where `id` = 472203 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 59 - 2025-03-11 10:22:30 [2.64ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"exempt":"Y"},"old":{"exempt":"N"}}', 64, 'App\Models\User', 472203, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 60 - 2025-03-11 10:22:30 [0.31ms] */
select * from `invoice` where `transaction_id` = 587438 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 61 - 2025-03-11 10:22:30 [2.7ms] */
update `invoice` set `exempt` = 'Y', `updated_by` = 64, `invoice`.`updated_at` = '2025-03-11 10:22:30' where `id` = 562576;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 62 - 2025-03-11 10:22:30 [0.2ms] */
select * from `invoice` where `id` = 562576 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 63 - 2025-03-11 10:22:30 [2.62ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 64, 'App\Models\User', 562576, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 64 - 2025-03-11 10:22:30 [0.22ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 472204 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 65 - 2025-03-11 10:22:30 [2.58ms] */
update `vehicle_tax` set `exempt` = 'Y', `updated_by` = 64, `vehicle_tax`.`updated_at` = '2025-03-11 10:22:30' where `id` = 472204;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 66 - 2025-03-11 10:22:30 [0.19ms] */
select * from `vehicle_tax` where `id` = 472204 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 67 - 2025-03-11 10:22:30 [1.3ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"exempt":"Y"},"old":{"exempt":"N"}}', 64, 'App\Models\User', 472204, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 68 - 2025-03-11 10:22:30 [0.25ms] */
select * from `invoice` where `transaction_id` = 587439 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 69 - 2025-03-11 10:22:30 [2.81ms] */
update `invoice` set `exempt` = 'Y', `updated_by` = 64, `invoice`.`updated_at` = '2025-03-11 10:22:30' where `id` = 562577;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 70 - 2025-03-11 10:22:30 [0.42ms] */
select * from `invoice` where `id` = 562577 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 71 - 2025-03-11 10:22:30 [2.67ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 64, 'App\Models\User', 562577, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 72 - 2025-03-11 10:22:30 [0.22ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 472205 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 73 - 2025-03-11 10:22:30 [2.67ms] */
update `vehicle_tax` set `exempt` = 'Y', `updated_by` = 64, `vehicle_tax`.`updated_at` = '2025-03-11 10:22:30' where `id` = 472205;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 74 - 2025-03-11 10:22:30 [0.21ms] */
select * from `vehicle_tax` where `id` = 472205 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 75 - 2025-03-11 10:22:30 [2.65ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"exempt":"Y"},"old":{"exempt":"N"}}', 64, 'App\Models\User', 472205, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 76 - 2025-03-11 10:22:30 [0.25ms] */
select * from `invoice` where `transaction_id` = 587440 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 77 - 2025-03-11 10:22:30 [2.75ms] */
update `invoice` set `exempt` = 'Y', `updated_by` = 64, `invoice`.`updated_at` = '2025-03-11 10:22:30' where `id` = 562578;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 78 - 2025-03-11 10:22:30 [0.21ms] */
select * from `invoice` where `id` = 562578 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 79 - 2025-03-11 10:22:30 [1.36ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 64, 'App\Models\User', 562578, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 80 - 2025-03-11 10:22:30 [0.2ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 472206 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 81 - 2025-03-11 10:22:30 [2.64ms] */
update `vehicle_tax` set `exempt` = 'Y', `updated_by` = 64, `vehicle_tax`.`updated_at` = '2025-03-11 10:22:30' where `id` = 472206;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 82 - 2025-03-11 10:22:30 [0.19ms] */
select * from `vehicle_tax` where `id` = 472206 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 83 - 2025-03-11 10:22:30 [2.64ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"exempt":"Y"},"old":{"exempt":"N"}}', 64, 'App\Models\User', 472206, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 84 - 2025-03-11 10:22:30 [0.4ms] */
select * from `invoice` where `transaction_id` = 587441 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 85 - 2025-03-11 10:22:30 [2.77ms] */
update `invoice` set `exempt` = 'Y', `updated_by` = 64, `invoice`.`updated_at` = '2025-03-11 10:22:30' where `id` = 562579;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 86 - 2025-03-11 10:22:30 [0.26ms] */
select * from `invoice` where `id` = 562579 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 87 - 2025-03-11 10:22:30 [2.7ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 64, 'App\Models\User', 562579, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 88 - 2025-03-11 10:22:30 [0.21ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 472207 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 89 - 2025-03-11 10:22:30 [1.35ms] */
update `vehicle_tax` set `exempt` = 'Y', `updated_by` = 64, `vehicle_tax`.`updated_at` = '2025-03-11 10:22:30' where `id` = 472207;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 90 - 2025-03-11 10:22:30 [0.18ms] */
select * from `vehicle_tax` where `id` = 472207 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 91 - 2025-03-11 10:22:30 [2.75ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"exempt":"Y"},"old":{"exempt":"N"}}', 64, 'App\Models\User', 472207, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 92 - 2025-03-11 10:22:30 [0.42ms] */
select * from `invoice` where `transaction_id` = 587442 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 93 - 2025-03-11 10:22:30 [2.91ms] */
update `invoice` set `exempt` = 'Y', `updated_by` = 64, `invoice`.`updated_at` = '2025-03-11 10:22:30' where `id` = 562580;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 94 - 2025-03-11 10:22:30 [0.37ms] */
select * from `invoice` where `id` = 562580 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 95 - 2025-03-11 10:22:30 [3.13ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 64, 'App\Models\User', 562580, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 96 - 2025-03-11 10:22:30 [0.37ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 472208 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 97 - 2025-03-11 10:22:30 [2.87ms] */
update `vehicle_tax` set `exempt` = 'Y', `updated_by` = 64, `vehicle_tax`.`updated_at` = '2025-03-11 10:22:30' where `id` = 472208;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 98 - 2025-03-11 10:22:30 [0.33ms] */
select * from `vehicle_tax` where `id` = 472208 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 99 - 2025-03-11 10:22:30 [3.05ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"exempt":"Y"},"old":{"exempt":"N"}}', 64, 'App\Models\User', 472208, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 100 - 2025-03-11 10:22:30 [3.3ms] */
select * from `invoice` where `transaction_id` = 587443 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 101 - 2025-03-11 10:22:30 [3.91ms] */
update `invoice` set `exempt` = 'Y', `updated_by` = 64, `invoice`.`updated_at` = '2025-03-11 10:22:30' where `id` = 562581;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 102 - 2025-03-11 10:22:30 [0.22ms] */
select * from `invoice` where `id` = 562581 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 103 - 2025-03-11 10:22:30 [2.67ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 64, 'App\Models\User', 562581, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 104 - 2025-03-11 10:22:30 [20.36ms] */
select * from `discount` where `vehicle_tax` = 472201 and `discount`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 105 - 2025-03-11 10:22:30 [3.65ms] */
insert into `discount` (`description`, `service_id`, `vehicle_tax`, `vehicle_id`, `party_id`, `expiry_date`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Exempt Before 2025 Taxes', 2, '[472201,472202,472203,472204,472205,472206,472207,472208]', 73503, 48607, '2025-09-01 10:22:30', 64, 64, '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 106 - 2025-03-11 10:22:30 [0.26ms] */
select * from `discount` where `id` = 19892 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 107 - 2025-03-11 10:22:30 [3.66ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('discount', '{"attributes":{"description":"Exempt Before 2025 Taxes","percentage":null,"vehicle_id":73503,"amount":null,"expiry_date":"2025-09-01 10:22:30","party_id":48607,"service_id":2,"vehicle_tax":[472201,472202,472203,472204,472205,472206,472207,472208],"party_vehicle_id":null}}', 64, 'App\Models\User', 19892, 'Modules\Transaction\Entities\Discount', 'created', '2025-03-11 10:22:30', '2025-03-11 10:22:30');
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 108 - 2025-03-11 10:22:30 [0.34ms] */
select * from `vehicle_tax` where `status` = 'OPEN' and `vehicle_id` = 73503 and `vehicle_tax`.`deleted_at` is null order by `term_id` asc;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 109 - 2025-03-11 10:22:30 [0.38ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 73503 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 110 - 2025-03-11 10:22:30 [0.49ms] */
select * from `party_vehicle` where `vehicle_id` = 73503 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 111 - 2025-03-11 10:22:30 [0.2ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 112 - 2025-03-11 10:22:30 [0.19ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 113 - 2025-03-11 10:22:30 [0.82ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 73503 and `term`.`first_date_of_quarter` <= '2025-03-11 10:22:30' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 114 - 2025-03-11 10:22:30 [0.52ms] */
select `id` from `vehicle_tax` where `status` = 'OPEN' and `vehicle_id` = 73503 and `vehicle_tax`.`deleted_at` is null order by `term_id` asc;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 115 - 2025-03-11 10:22:30 [0.67ms] */
select sum(`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (472201, 472202, 472203, 472204, 472205, 472206, 472207, 472208, 472209) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 116 - 2025-03-11 10:22:30 [0.48ms] */
select * from `vehicle` where `vehicle`.`id` = 73503 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 117 - 2025-03-11 10:22:30 [0.25ms] */
select * from `model` where `model`.`id` = 1531 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 118 - 2025-03-11 10:22:30 [0.86ms] */
select * from `make` where `make`.`id` = 78 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 119 - 2025-03-11 10:22:30 [5.38ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 120 - 2025-03-11 10:22:30 [6.34ms] */
select * from `party_vehicle` where `party_vehicle`.`vehicle_id` = 73503 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 121 - 2025-03-11 10:22:30 [0.22ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 122 - 2025-03-11 10:22:30 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 2 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 123 - 2025-03-11 10:22:30 [0.27ms] */
select * from `vehicle_color` where `vehicle_color`.`id` = 37 and `vehicle_color`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 124 - 2025-03-11 10:22:30 [0.14ms] */
select * from `fuel_type` where `fuel_type`.`id` = 3 and `fuel_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 125 - 2025-03-11 10:22:30 [0.41ms] */
select * from `party` where `party`.`id` = 48607 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 126 - 2025-03-11 10:22:30 [0.29ms] */
select * from `person` where `person`.`id` = 48607 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 127 - 2025-03-11 10:22:30 [44.09ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 48607 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 128 - 2025-03-11 10:22:30 [0.34ms] */
select * from `address` where `address`.`id` = 48607 and `address`.`id` is not null and `address`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 129 - 2025-03-11 10:22:30 [0.21ms] */
select * from `district` where `district`.`id` = 21 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 130 - 2025-03-11 10:22:30 [0.22ms] */
select * from `region` where `region`.`id` = 5 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 131 - 2025-03-11 10:22:30 [0.2ms] */
select * from `region` where `region`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/start/73503
   Query 132 - 2025-03-11 10:22:30 [0.18ms] */
