select * from `invoice` where `invoice`.`id` = 506753 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 47 - 2025-04-25 18:21:10 [0.15ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-25 18:21:10', 506753, 193696, '2025-04-25 18:21:10');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-04-25 18:21:10 [0.18ms] */
select * from `invoice` where `invoice`.`id` = 506753 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-04-25 18:21:10 [0.23ms] */
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` = 506753 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-04-25 18:21:10 [0.23ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 506753 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-04-25 18:21:10 [0.16ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 31, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-25 18:21:10' where `id` = 506753;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-04-25 18:21:10 [0.18ms] */
select * from `invoice` where `id` = 506753 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-04-25 18:21:10 [0.38ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"31.00","status":"OPEN"}}', 150, 'App\Models\User', 506753, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:10', '2025-04-25 18:21:10');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-04-25 18:21:10 [0.54ms] */
select * from `transaction` where `transaction`.`id` = 531047 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-04-25 18:21:10 [0.38ms] */
select * from `transaction` where `transaction`.`id` = 531047 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-04-25 18:21:10 [0.26ms] */
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/api/confirm_payment
   Query 57 - 2025-04-25 18:21:10 [0.24ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 58 - 2025-04-25 18:21:10 [0.35ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 59 - 2025-04-25 18:21:10 [0.34ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (531047, 'PAID', '2025-04-25 18:21:10', 7, 150, null, 150, 150, '2025-04-25 18:21:10', '2025-04-25 18:21:10');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-04-25 18:21:10 [0.42ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-04-25 18:21:10 [0.38ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-25 18:21:10' where `id` = 531047;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-04-25 18:21:10 [0.24ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-04-25 18:21:10 [0.33ms] */
select * from `invoice` where `invoice`.`id` = 506753 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-04-25 18:21:10 [0.19ms] */
select * from `vehicle_tax` where `transaction_id` = 531047 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-04-25 18:21:10 [0.14ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-04-25 18:21:10' where `id` = 421565;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 66 - 2025-04-25 18:21:10 [0.17ms] */
select * from `vehicle_tax` where `id` = 421565 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-04-25 18:21:10 [0.16ms] */
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":"PAID"},"old":{"status":"INPROGRESS"}}', 150, 'App\Models\User', 421565, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:21:10', '2025-04-25 18:21:10');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 68 - 2025-04-25 18:21:10 [0.18ms] */
select * from `invoice` where `invoice`.`id` = 590728 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 69 - 2025-04-25 18:21:10 [0.17ms] */
select * from `invoice` where `invoice`.`id` = 590728 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 70 - 2025-04-25 18:21:10 [0.15ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-25 18:21:10', 590728, 193696, '2025-04-25 18:21:10');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 71 - 2025-04-25 18:21:10 [0.35ms] */
select * from `invoice` where `invoice`.`id` = 590728 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 72 - 2025-04-25 18:21:10 [0.51ms] */
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` = 590728 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 73 - 2025-04-25 18:21:10 [0.31ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-25 18:21:10' where `id` = 590728;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 74 - 2025-04-25 18:21:10 [0.36ms] */
select * from `invoice` where `id` = 590728 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 75 - 2025-04-25 18:21:10 [0.4ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"95.00","status":"OPEN"}}', 150, 'App\Models\User', 590728, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:10', '2025-04-25 18:21:10');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 76 - 2025-04-25 18:21:10 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 617022 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 77 - 2025-04-25 18:21:10 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 617022 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 78 - 2025-04-25 18:21:10 [0.21ms] */
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/api/confirm_payment
   Query 79 - 2025-04-25 18:21:10 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 80 - 2025-04-25 18:21:10 [0.27ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 81 - 2025-04-25 18:21:10 [0.28ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617022, 'PAID', '2025-04-25 18:21:10', 7, 150, null, 150, 150, '2025-04-25 18:21:10', '2025-04-25 18:21:10');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 82 - 2025-04-25 18:21:10 [0.3ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 83 - 2025-04-25 18:21:10 [0.29ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-25 18:21:10' where `id` = 617022;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 84 - 2025-04-25 18:21:10 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 85 - 2025-04-25 18:21:10 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 590728 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 86 - 2025-04-25 18:21:10 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 617022 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 87 - 2025-04-25 18:21:10 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 88 - 2025-04-25 18:21:10 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617022, 'CLAIMED', '2025-04-25 18:21:10', 8, 150, 150, 150, '2025-04-25 18:21:10', '2025-04-25 18:21:10');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 89 - 2025-04-25 18:21:10 [0.22ms] */
update `transaction` set `assigned_to` = 150, `transaction`.`updated_at` = '2025-04-25 18:21:10' where `id` = 617022;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/impersonate/104
   Query 1 - 2025-04-25 18:21:12 [1.33ms] */
select * from `users` where `id` = 16 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/impersonate/104
   Query 2 - 2025-04-25 18:21:12 [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/impersonate/104
   Query 3 - 2025-04-25 18:21:12 [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/impersonate/104
   Query 4 - 2025-04-25 18:21:12 [0.4ms] */
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/impersonate/104
   Query 5 - 2025-04-25 18:21:12 [0.33ms] */
select * from `users` where `users`.`id` = 104 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 1 - 2025-04-25 18:21:12 [2.12ms] */
select * from `users` where `id` = 104 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 2 - 2025-04-25 18:21:12 [0.57ms] */
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-04-25 18:21:12 [0.46ms] */
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-04-25 18:21:12 [0.39ms] */
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-04-25 18:21:12 [0.28ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 6 - 2025-04-25 18:21:12 [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 7 - 2025-04-25 18:21:12 [0.39ms] */
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` = 104 and `model_has_roles`.`model_type` = 'App\Models\User' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 8 - 2025-04-25 18:21:12 [0.29ms] */
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` = 104 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-04-25 18:21:12 [6.73ms] */
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 (6) and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `workflow_definition`.`role_id` = 6 and `deliver_district_id` = 37 and `status` != 'CANCELED' and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 10 - 2025-04-25 18:21:12 [5.7ms] */
select `transaction`.* from `transaction` inner join `workflow_definition` on `workflow_definition`.`id` = `transaction`.`current_workflow_state_id` where `workflow_definition`.`role_id` in (6) and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `workflow_definition`.`role_id` = 6 and `deliver_district_id` = 37 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-04-25 18:21:12 [0.17ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 12 - 2025-04-25 18:21:12 [0.19ms] */
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): GET https://rta2.puntlandgov.org/w/wkflw
   Query 13 - 2025-04-25 18:21:12 [0.14ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 14 - 2025-04-25 18:21:12 [0.13ms] */
select * from `service` where `service`.`id` = 7 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-04-25 18:21:12 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 24265 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-04-25 18:21:12 [0.15ms] */
select * from `party` where `party`.`id` = 15655 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-04-25 18:21:12 [0.16ms] */
select * from `person` where `person`.`id` = 15655 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 18 - 2025-04-25 18:21:12 [0.3ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 76037 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 19 - 2025-04-25 18:21:12 [0.25ms] */
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-04-25 18:21:12 [0.25ms] */
select * from `sub_category` where `sub_category`.`id` = 11 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 21 - 2025-04-25 18:21:12 [0.47ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 617021 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-04-25 18:21:12 [0.21ms] */
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
   Query 23 - 2025-04-25 18:21:12 [0.19ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 24 - 2025-04-25 18:21:12 [0.26ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 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-04-25 18:21:12 [0.81ms] */
select * from `service_workflow` where `service_workflow`.`id` = 9 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-04-25 18:21:12 [0.66ms] */
select * from `service` where `service`.`id` = 9 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 27 - 2025-04-25 18:21:12 [0.58ms] */
select * from `service` where `service`.`id` = 9 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-04-25 18:21:12 [0.7ms] */
select * from `party` where `party`.`id` = 65772 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 29 - 2025-04-25 18:21:12 [0.8ms] */
select * from `person` where `person`.`id` = 63124 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 30 - 2025-04-25 18:21:12 [0.33ms] */
select * from `users` where `users`.`id` = 104 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 31 - 2025-04-25 18:21:12 [0.42ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 616254 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 32 - 2025-04-25 18:21:12 [0.33ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 36 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 33 - 2025-04-25 18:21:12 [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
   Query 34 - 2025-04-25 18:21:12 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 8 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 35 - 2025-04-25 18:21:12 [0.12ms] */
select * from `service` where `service`.`id` = 8 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 36 - 2025-04-25 18:21:12 [0.12ms] */
select * from `service` where `service`.`id` = 8 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 37 - 2025-04-25 18:21:12 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` = 82065 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 38 - 2025-04-25 18:21:12 [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
   Query 39 - 2025-04-25 18:21:12 [0.36ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 616243 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 40 - 2025-04-25 18:21:12 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 33 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 41 - 2025-04-25 18:21:12 [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
   Query 42 - 2025-04-25 18:21:12 [0.33ms] */
select * from `transaction_workflow` where `transaction_id` = 616243 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 43 - 2025-04-25 18:21:12 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 8 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 44 - 2025-04-25 18:21:12 [0.12ms] */
select * from `service` where `service`.`id` = 8 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 45 - 2025-04-25 18:21:12 [0.12ms] */
select * from `service` where `service`.`id` = 8 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 46 - 2025-04-25 18:21:12 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` = 79377 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 47 - 2025-04-25 18:21:12 [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/w/wkflw
   Query 48 - 2025-04-25 18:21:12 [0.38ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 616234 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 49 - 2025-04-25 18:21:12 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 33 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 50 - 2025-04-25 18:21:12 [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
   Query 51 - 2025-04-25 18:21:12 [0.34ms] */
select * from `transaction_workflow` where `transaction_id` = 616234 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 52 - 2025-04-25 18:21:12 [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): GET https://rta2.puntlandgov.org/w/wkflw
   Query 53 - 2025-04-25 18:21:12 [0.12ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 54 - 2025-04-25 18:21:12 [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): GET https://rta2.puntlandgov.org/w/wkflw
   Query 55 - 2025-04-25 18:21:12 [0.32ms] */
select * from `vehicle` where `vehicle`.`id` = 38869 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 56 - 2025-04-25 18:21:12 [0.33ms] */
select * from `party` where `party`.`id` = 27600 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 57 - 2025-04-25 18:21:12 [0.34ms] */
select * from `person` where `person`.`id` = 27600 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 58 - 2025-04-25 18:21:12 [0.33ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 18907 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 59 - 2025-04-25 18:21:12 [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 60 - 2025-04-25 18:21:12 [0.12ms] */
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/w/wkflw
   Query 61 - 2025-04-25 18:21:12 [0.37ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 615788 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 62 - 2025-04-25 18:21:12 [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): GET https://rta2.puntlandgov.org/w/wkflw
   Query 63 - 2025-04-25 18:21:12 [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
   Query 64 - 2025-04-25 18:21:12 [0.34ms] */
select * from `transaction_workflow` where `transaction_id` = 615788 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 65 - 2025-04-25 18:21:12 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 3 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 66 - 2025-04-25 18:21:12 [0.12ms] */
select * from `service` where `service`.`id` = 3 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 67 - 2025-04-25 18:21:12 [0.12ms] */
select * from `service` where `service`.`id` = 3 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 68 - 2025-04-25 18:21:12 [0.31ms] */
select * from `vehicle` where `vehicle`.`id` = 75040 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 69 - 2025-04-25 18:21:12 [0.31ms] */
select * from `party` where `party`.`id` = 65711 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 70 - 2025-04-25 18:21:12 [0.33ms] */
select * from `person` where `person`.`id` = 63066 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 71 - 2025-04-25 18:21:12 [0.33ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 101050 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 72 - 2025-04-25 18:21:12 [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 73 - 2025-04-25 18:21:12 [0.12ms] */
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/w/wkflw
   Query 74 - 2025-04-25 18:21:12 [0.38ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 614156 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 75 - 2025-04-25 18:21:12 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 11 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 76 - 2025-04-25 18:21:12 [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
   Query 77 - 2025-04-25 18:21:12 [0.35ms] */
select * from `transaction_workflow` where `transaction_id` = 614156 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 78 - 2025-04-25 18:21:12 [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): GET https://rta2.puntlandgov.org/w/wkflw
   Query 79 - 2025-04-25 18:21:12 [0.12ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 80 - 2025-04-25 18:21:12 [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): GET https://rta2.puntlandgov.org/w/wkflw
   Query 81 - 2025-04-25 18:21:12 [0.32ms] */
select * from `vehicle` where `vehicle`.`id` = 81696 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 82 - 2025-04-25 18:21:12 [0.35ms] */
select * from `party` where `party`.`id` = 51889 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 83 - 2025-04-25 18:21:12 [0.36ms] */
select * from `person` where `person`.`id` = 51889 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 84 - 2025-04-25 18:21:12 [0.34ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 73784 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 85 - 2025-04-25 18:21:12 [0.12ms] */
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 86 - 2025-04-25 18:21:12 [0.12ms] */
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/w/wkflw
   Query 87 - 2025-04-25 18:21:12 [0.38ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 613375 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 88 - 2025-04-25 18:21:12 [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): GET https://rta2.puntlandgov.org/w/wkflw
   Query 89 - 2025-04-25 18:21:12 [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
   Query 90 - 2025-04-25 18:21:12 [0.39ms] */
select * from `transaction_workflow` where `transaction_id` = 613375 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 91 - 2025-04-25 18:21:12 [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): GET https://rta2.puntlandgov.org/w/wkflw
   Query 92 - 2025-04-25 18:21:12 [0.12ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 93 - 2025-04-25 18:21:12 [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): GET https://rta2.puntlandgov.org/w/wkflw
   Query 94 - 2025-04-25 18:21:12 [0.32ms] */
select * from `vehicle` where `vehicle`.`id` = 75299 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 95 - 2025-04-25 18:21:12 [0.33ms] */
select * from `party` where `party`.`id` = 49288 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 96 - 2025-04-25 18:21:12 [0.34ms] */
select * from `person` where `person`.`id` = 49288 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 97 - 2025-04-25 18:21:12 [0.33ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 47856 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 98 - 2025-04-25 18:21:12 [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 99 - 2025-04-25 18:21:12 [0.12ms] */
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/w/wkflw
   Query 100 - 2025-04-25 18:21:12 [0.37ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 613223 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 101 - 2025-04-25 18:21:12 [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): GET https://rta2.puntlandgov.org/w/wkflw
   Query 102 - 2025-04-25 18:21:12 [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
   Query 103 - 2025-04-25 18:21:12 [0.34ms] */
select * from `transaction_workflow` where `transaction_id` = 613223 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 104 - 2025-04-25 18:21:12 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 3 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 105 - 2025-04-25 18:21:12 [0.12ms] */
select * from `service` where `service`.`id` = 3 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 106 - 2025-04-25 18:21:12 [0.12ms] */
select * from `service` where `service`.`id` = 3 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 107 - 2025-04-25 18:21:12 [0.34ms] */
select * from `vehicle` where `vehicle`.`id` = 99733 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 108 - 2025-04-25 18:21:12 [0.3ms] */
select * from `party` where `party`.`id` = 65670 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 109 - 2025-04-25 18:21:12 [0.32ms] */
select * from `person` where `person`.`id` = 63028 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 110 - 2025-04-25 18:21:12 [0.32ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 101005 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 111 - 2025-04-25 18:21:12 [0.12ms] */
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 112 - 2025-04-25 18:21:12 [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 113 - 2025-04-25 18:21:12 [0.37ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 612561 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 114 - 2025-04-25 18:21:12 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 11 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 115 - 2025-04-25 18:21:12 [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
   Query 116 - 2025-04-25 18:21:12 [0.35ms] */
select * from `transaction_workflow` where `transaction_id` = 612561 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 117 - 2025-04-25 18:21:12 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 8 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 118 - 2025-04-25 18:21:12 [0.12ms] */
select * from `service` where `service`.`id` = 8 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 119 - 2025-04-25 18:21:12 [0.12ms] */
select * from `service` where `service`.`id` = 8 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 120 - 2025-04-25 18:21:12 [0.37ms] */
select * from `vehicle` where `vehicle`.`id` = 50502 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 121 - 2025-04-25 18:21:12 [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/w/wkflw
   Query 122 - 2025-04-25 18:21:12 [0.37ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 609996 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 123 - 2025-04-25 18:21:12 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 33 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 124 - 2025-04-25 18:21:12 [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
   Query 125 - 2025-04-25 18:21:12 [0.33ms] */
select * from `transaction_workflow` where `transaction_id` = 609996 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 126 - 2025-04-25 18:21:12 [0.17ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw
   Query 127 - 2025-04-25 18:21:12 [0.14ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 18:21:23 [2.29ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 18:21:23 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 18:21:24 [0.34ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-25 18:21:24 [0.3ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 18:21:24 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 18:21:24 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 18:21:24 [0.35ms] */
select * from `vehicle_tax` where `id` = 421565 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 18:21:24 [0.68ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 18:21:26 [2.03ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 18:21:26 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 18:21:26 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-25 18:21:26 [0.38ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 18:21:26 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 18:21:26 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 18:21:26 [0.15ms] */
select * from `vehicle_tax` where `id` = 421565 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 18:21:26 [9.62ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-01%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 18:21:29 [2.31ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 18:21:29 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 18:21:29 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-25 18:21:29 [0.31ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 18:21:29 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 18:21:29 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 18:21:29 [0.15ms] */
select * from `vehicle_tax` where `id` = 421565 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 18:21:29 [14.02ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-016%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 18:21:29 [1.99ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 18:21:29 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 18:21:29 [0.31ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-25 18:21:29 [0.32ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 18:21:29 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 18:21:29 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 18:21:29 [0.25ms] */
select * from `vehicle_tax` where `id` = 421565 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 18:21:29 [16.13ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-0162%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.list-workflow-queue-component
   Query 1 - 2025-04-25 18:21:34 [1.31ms] */
select * from `users` where `id` = 104 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.list-workflow-queue-component
   Query 2 - 2025-04-25 18:21:34 [0.43ms] */
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.list-workflow-queue-component
   Query 3 - 2025-04-25 18:21:34 [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.list-workflow-queue-component
   Query 4 - 2025-04-25 18:21:34 [0.39ms] */
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.list-workflow-queue-component
   Query 5 - 2025-04-25 18:21:34 [0.23ms] */
select * from `service` where `service`.`id` in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.list-workflow-queue-component
   Query 6 - 2025-04-25 18:21:34 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 617021 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.list-workflow-queue-component
   Query 7 - 2025-04-25 18:21:34 [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.list-workflow-queue-component
   Query 8 - 2025-04-25 18:21:34 [0.14ms] */
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.list-workflow-queue-component
   Query 9 - 2025-04-25 18:21:34 [0.33ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617021, 'CLAIMED', '2025-04-25 18:21:34', 6, 104, 104, 104, '2025-04-25 18:21:34', '2025-04-25 18:21:34');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.list-workflow-queue-component
   Query 10 - 2025-04-25 18:21:34 [0.28ms] */
update `transaction` set `assigned_to` = 104, `updated_by` = 104, `transaction`.`updated_at` = '2025-04-25 18:21:34' where `id` = 617021;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 1 - 2025-04-25 18:21:34 [1.95ms] */
select * from `users` where `id` = 104 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 2 - 2025-04-25 18:21:34 [0.7ms] */
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/617021
   Query 3 - 2025-04-25 18:21:34 [0.65ms] */
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/617021
   Query 4 - 2025-04-25 18:21:34 [0.37ms] */
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/617021
   Query 5 - 2025-04-25 18:21:34 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 617021 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 6 - 2025-04-25 18:21:34 [0.32ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 7 - 2025-04-25 18:21:34 [0.31ms] */
select * from `invoice` where `transaction_id` = 617021 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 8 - 2025-04-25 18:21:34 [6.06ms] */
select * from `payment_documents` where `transaction_id` = 617021;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 9 - 2025-04-25 18:21:34 [0.27ms] */
select * from `party_vehicle_purchase` where `transaction_id` = 617021 and `party_vehicle_purchase`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 10 - 2025-04-25 18:21:34 [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): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 11 - 2025-04-25 18:21:34 [0.14ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 12 - 2025-04-25 18:21:34 [0.15ms] */
select * from `users` where `users`.`id` = 104 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 13 - 2025-04-25 18:21:34 [0.14ms] */
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/617021
   Query 14 - 2025-04-25 18:21:34 [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/617021
   Query 15 - 2025-04-25 18:21:34 [0.15ms] */
select * from `workflow` where `workflow`.`id` = 7 and `workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 16 - 2025-04-25 18:21:34 [0.31ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 17 - 2025-04-25 18:21:35 [296.3ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 18 - 2025-04-25 18:21:35 [0.32ms] */
select * from `vehicle` where `vehicle`.`id` = 24265 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 19 - 2025-04-25 18:21:35 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` = 24265 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 20 - 2025-04-25 18:21:35 [0.2ms] */
select * from `party_vehicle` where `vehicle_id` = 24265 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 21 - 2025-04-25 18:21:35 [0.58ms] */
select * from `activity_log` where `log_name` = 'vehicle' and `subject_id` = 24265 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 22 - 2025-04-25 18:21:35 [0.43ms] */
select * from `activity_log` where `log_name` = 'party_vehicle' and `subject_id` = 76037 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 23 - 2025-04-25 18:21:35 [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/617021
   Query 24 - 2025-04-25 18:21:35 [0.17ms] */
select * from `sub_category` where `sub_category`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 25 - 2025-04-25 18:21:35 [0.17ms] */
select * from `model` where `model`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 26 - 2025-04-25 18:21:35 [0.18ms] */
select * from `fuel_type` where `fuel_type`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 27 - 2025-04-25 18:21:35 [0.19ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 28 - 2025-04-25 18:21:35 [0.19ms] */
select * from `vehicle_color` where `vehicle_color`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 29 - 2025-04-25 18:21:35 [0.2ms] */
select * from `vehicle` where `vehicle`.`id` = 24265 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 30 - 2025-04-25 18:21:35 [0.2ms] */
select * from `party_vehicle` where `vehicle_id` = 24265 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 31 - 2025-04-25 18:21:35 [0.18ms] */
select * from `activity_log` where `log_name` = 'vehicle' and `subject_id` = 24265 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 32 - 2025-04-25 18:21:35 [0.18ms] */
select * from `activity_log` where `log_name` = 'party_vehicle' and `subject_id` = 76037 and `properties` != '{"attributes":[],"old":[]}' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 33 - 2025-04-25 18:21:35 [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/617021
   Query 34 - 2025-04-25 18:21:35 [0.17ms] */
select * from `sub_category` where `sub_category`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 35 - 2025-04-25 18:21:35 [0.17ms] */
select * from `model` where `model`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 36 - 2025-04-25 18:21:35 [0.14ms] */
select * from `fuel_type` where `fuel_type`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 37 - 2025-04-25 18:21:35 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 38 - 2025-04-25 18:21:35 [0.14ms] */
select * from `vehicle_color` where `vehicle_color`.`id` = 1 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 39 - 2025-04-25 18:21:35 [0.15ms] */
select * from `model` where `model`.`id` = 1562 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 40 - 2025-04-25 18:21:35 [0.15ms] */
select * from `make` where `make`.`id` = 52 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 41 - 2025-04-25 18:21:35 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 13 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 42 - 2025-04-25 18:21:35 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 11 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 43 - 2025-04-25 18:21:35 [0.17ms] */
select * from `vehicle_color` where `vehicle_color`.`id` = 50 and `vehicle_color`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 44 - 2025-04-25 18:21:35 [0.15ms] */
select * from `fuel_type` where `fuel_type`.`id` = 2 and `fuel_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 45 - 2025-04-25 18:21:35 [0.17ms] */
select * from `party_vehicle` where `party_vehicle`.`vehicle_id` = 24265 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/617021
   Query 46 - 2025-04-25 18:21:35 [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/w/wkflw/617021
   Query 47 - 2025-04-25 18:21:35 [0.16ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 48 - 2025-04-25 18:21:35 [0.14ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 49 - 2025-04-25 18:21:35 [0.16ms] */
select * from `party` where `party`.`id` = 15655 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 50 - 2025-04-25 18:21:35 [0.21ms] */
select * from `party` where `party`.`id` = 15655 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 51 - 2025-04-25 18:21:35 [0.24ms] */
select * from `person` where `person`.`id` = 15655 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 52 - 2025-04-25 18:21:35 [0.93ms] */
select * from `activity_log` where `log_name` = 'party' and `subject_id` = 15655 and `description` = 'updated' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 53 - 2025-04-25 18:21:35 [0.67ms] */
select * from `activity_log` where `log_name` = 'person' and `subject_id` = 15655 and `description` = 'updated' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 54 - 2025-04-25 18:21:35 [0.24ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 15655 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 55 - 2025-04-25 18:21:35 [0.21ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 56 - 2025-04-25 18:21:35 [0.16ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 57 - 2025-04-25 18:21:35 [0.18ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 76037 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 58 - 2025-04-25 18:21:35 [0.19ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 76037 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 59 - 2025-04-25 18:21:35 [0.36ms] */
select * from `activity_log` where `log_name` = 'party_vehicle' and `subject_id` = 76037 order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 60 - 2025-04-25 18:21:35 [0.19ms] */
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/617021
   Query 61 - 2025-04-25 18:21:35 [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/617021
   Query 62 - 2025-04-25 18:21:35 [0.35ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 63 - 2025-04-25 18:21:35 [0.21ms] */
select * from `users` where `users`.`id` = 104 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 64 - 2025-04-25 18:21:35 [0.16ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 65 - 2025-04-25 18:21:35 [0.28ms] */
select * from `users` where `users`.`id` = 137 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 66 - 2025-04-25 18:21:35 [0.16ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 67 - 2025-04-25 18:21:35 [0.17ms] */
select * from `workflow_definition` where `workflow_id` = 7 and `workflow_definition`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 68 - 2025-04-25 18:21:35 [0.17ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 69 - 2025-04-25 18:21:35 [0.17ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 70 - 2025-04-25 18:21:35 [0.16ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 71 - 2025-04-25 18:21:35 [0.26ms] */
(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/617021
   Query 72 - 2025-04-25 18:21:35 [0.18ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 73 - 2025-04-25 18:21:35 [0.2ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/w/wkflw/617021
   Query 74 - 2025-04-25 18:21:35 [0.18ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 1 - 2025-04-25 18:21:37 [1.97ms] */
select * from `users` where `id` = 83 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 2 - 2025-04-25 18:21:37 [0.78ms] */
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-04-25 18:21:37 [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/m/service/tax/list
   Query 4 - 2025-04-25 18:21:37 [0.41ms] */
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/api/assign_sticker_code
   Query 1 - 2025-04-25 18:21:38 [1.28ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-04-25 18:21:38 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-04-25 18:21:38 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-04-25 18:21:38 [0.17ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-04-25 18:21:38 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-04-25 18:21:38 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-04-25 18:21:38 [0.66ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 652645 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-04-25 18:21:38 [0.16ms] */
select * from `vehicle_tax` where `id` = 421565 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-04-25 18:21:38 [3.37ms] */
update `vehicle_tax` set `tax_sticker_id` = 652645, `vehicle_tax`.`updated_at` = '2025-04-25 18:21:38' where `id` = 421565;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-04-25 18:21:38 [0.26ms] */
select * from `vehicle_tax` where `id` = 421565 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-04-25 18:21:38 [3.08ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"tax_sticker_id":652645},"old":{"tax_sticker_id":null}}', 150, 'App\Models\User', 421565, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:21:38', '2025-04-25 18:21:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-04-25 18:21:38 [2.83ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 150, `tax_sticker`.`updated_at` = '2025-04-25 18:21:38' where `id` = 652645;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 5 - 2025-04-25 18:21:38 [1359.22ms] */
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-04-25 18:21:37') 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): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 1 - 2025-04-25 18:21:40 [1.33ms] */
select * from `users` where `id` = 104 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-04-25 18:21:40 [0.48ms] */
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-04-25 18:21:40 [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/workflow.view-workflow-transaction-component
   Query 4 - 2025-04-25 18:21:40 [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/list
   Query 6 - 2025-04-25 18:21:40 [1571.4ms] */
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-04-25 18:21:37') 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-04-25 18:21:40 [0.24ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 67138 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-04-25 18:21:40 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 67138 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-04-25 18:21:40 [0.15ms] */
select * from `party` where `party`.`id` = 44127 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-04-25 18:21:40 [0.16ms] */
select * from `person` where `person`.`id` = 44127 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 11 - 2025-04-25 18:21:40 [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 12 - 2025-04-25 18:21:40 [0.14ms] */
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 13 - 2025-04-25 18:21:40 [0.2ms] */
select * from `model` where `model`.`id` = 1371 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 14 - 2025-04-25 18:21:40 [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 15 - 2025-04-25 18:21:40 [0.24ms] */
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 16 - 2025-04-25 18:21:40 [2.97ms] */
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` = 67138 and `term`.`first_date_of_quarter` <= '2025-04-25 18:21:40' 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-04-25 18:21:40 [0.25ms] */
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 18 - 2025-04-25 18:21:40 [0.2ms] */
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 19 - 2025-04-25 18:21:40 [0.22ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 489 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 20 - 2025-04-25 18:21:40 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 489 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 21 - 2025-04-25 18:21:40 [0.24ms] */
select * from `party` where `party`.`id` = 56007 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 22 - 2025-04-25 18:21:40 [0.24ms] */
select * from `company` where `company`.`id` = 294 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 23 - 2025-04-25 18:21:40 [0.24ms] */
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 24 - 2025-04-25 18:21:40 [0.22ms] */
select * from `sub_category` where `sub_category`.`id` = 11 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 25 - 2025-04-25 18:21:40 [0.21ms] */
select * from `model` where `model`.`id` = 1056 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 26 - 2025-04-25 18:21:40 [0.21ms] */
select * from `make` where `make`.`id` = 52 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 27 - 2025-04-25 18:21:40 [0.21ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 13 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 28 - 2025-04-25 18:21:40 [1.47ms] */
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` = 489 and `term`.`first_date_of_quarter` <= '2025-04-25 18:21:40' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 29 - 2025-04-25 18:21:40 [0.19ms] */
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 30 - 2025-04-25 18:21:40 [0.16ms] */
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 31 - 2025-04-25 18:21:40 [0.15ms] */
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 32 - 2025-04-25 18:21:40 [0.14ms] */
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 33 - 2025-04-25 18:21:40 [0.14ms] */
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 34 - 2025-04-25 18:21:40 [0.14ms] */
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 35 - 2025-04-25 18:21:40 [0.16ms] */
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 36 - 2025-04-25 18:21:40 [0.15ms] */
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 37 - 2025-04-25 18:21:40 [0.16ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 91647 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 38 - 2025-04-25 18:21:40 [0.2ms] */
select * from `party_vehicle` where `vehicle_id` = 91647 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 39 - 2025-04-25 18:21:40 [0.17ms] */
select * from `party` where `party`.`id` = 59621 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 40 - 2025-04-25 18:21:40 [0.2ms] */
select * from `person` where `person`.`id` = 57166 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 41 - 2025-04-25 18:21:40 [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/m/service/tax/list
   Query 42 - 2025-04-25 18:21:40 [0.1ms] */
select * from `sub_category` where `sub_category`.`id` = 13 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 43 - 2025-04-25 18:21:40 [0.1ms] */
select * from `model` where `model`.`id` = 1056 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 44 - 2025-04-25 18:21:40 [0.1ms] */
select * from `make` where `make`.`id` = 52 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 45 - 2025-04-25 18:21:40 [0.1ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 23 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 46 - 2025-04-25 18:21:40 [1.45ms] */
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` = 91647 and `term`.`first_date_of_quarter` <= '2025-04-25 18:21:40' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 47 - 2025-04-25 18:21:40 [0.15ms] */
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 48 - 2025-04-25 18:21:40 [0.15ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 6065 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 49 - 2025-04-25 18:21:40 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 6065 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 50 - 2025-04-25 18:21:40 [0.15ms] */
select * from `party` where `party`.`id` = 2905 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 51 - 2025-04-25 18:21:40 [0.15ms] */
select * from `person` where `person`.`id` = 2905 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 52 - 2025-04-25 18:21:40 [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 53 - 2025-04-25 18:21:40 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 13 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 54 - 2025-04-25 18:21:40 [0.13ms] */
select * from `model` where `model`.`id` = 1562 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 55 - 2025-04-25 18:21:40 [0.12ms] */
select * from `make` where `make`.`id` = 52 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 56 - 2025-04-25 18:21:40 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 13 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 57 - 2025-04-25 18:21:40 [1.28ms] */
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` = 6065 and `term`.`first_date_of_quarter` <= '2025-04-25 18:21:40' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 58 - 2025-04-25 18:21:40 [0.15ms] */
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 59 - 2025-04-25 18:21:40 [0.13ms] */
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 60 - 2025-04-25 18:21:40 [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 61 - 2025-04-25 18:21:40 [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 62 - 2025-04-25 18:21:40 [0.13ms] */
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 63 - 2025-04-25 18:21:40 [0.2ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 86011 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 64 - 2025-04-25 18:21:40 [0.2ms] */
select * from `party_vehicle` where `vehicle_id` = 86011 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 65 - 2025-04-25 18:21:40 [0.19ms] */
select * from `party` where `party`.`id` = 54538 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 66 - 2025-04-25 18:21:40 [0.21ms] */
select * from `person` where `person`.`id` = 54538 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 67 - 2025-04-25 18:21:40 [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/m/service/tax/list
   Query 68 - 2025-04-25 18:21:40 [0.17ms] */
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 69 - 2025-04-25 18:21:40 [0.16ms] */
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 70 - 2025-04-25 18:21:40 [0.17ms] */
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 71 - 2025-04-25 18:21:40 [0.17ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 16 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 72 - 2025-04-25 18:21:40 [0.73ms] */
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` = 86011 and `term`.`first_date_of_quarter` <= '2025-04-25 18:21:40' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 73 - 2025-04-25 18:21:40 [0.19ms] */
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 74 - 2025-04-25 18:21:40 [0.15ms] */
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 75 - 2025-04-25 18:21:40 [0.14ms] */
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 76 - 2025-04-25 18:21:40 [0.13ms] */
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 77 - 2025-04-25 18:21:40 [0.14ms] */
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 5 - 2025-04-25 18:21:40 [0.41ms] */
select * from `transaction` where `transaction`.`id` = 617021 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 78 - 2025-04-25 18:21:40 [0.13ms] */
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 79 - 2025-04-25 18:21:40 [0.13ms] */
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 6 - 2025-04-25 18:21:40 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` in (7) and `service_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 80 - 2025-04-25 18:21:40 [0.13ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 77445 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 81 - 2025-04-25 18:21:40 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 77445 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 7 - 2025-04-25 18:21:40 [0.14ms] */
select * from `service` where `service`.`id` in (7) and `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 82 - 2025-04-25 18:21:40 [0.14ms] */
select * from `party` where `party`.`id` = 29335 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 8 - 2025-04-25 18:21:40 [0.14ms] */
select * from `workflow` where `workflow`.`id` in (7) and `workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 83 - 2025-04-25 18:21:40 [0.15ms] */
select * from `person` where `person`.`id` = 29335 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 9 - 2025-04-25 18:21:40 [0.24ms] */
select * from `users` where `users`.`id` in (104) and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 84 - 2025-04-25 18:21:40 [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): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 10 - 2025-04-25 18:21:40 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` in (30) and `workflow_definition`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 85 - 2025-04-25 18:21:40 [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 86 - 2025-04-25 18:21:40 [0.13ms] */
select * from `model` where `model`.`id` = 1396 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 11 - 2025-04-25 18:21:40 [0.15ms] */
select * from `roles` where `roles`.`id` in (6);
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 87 - 2025-04-25 18:21:40 [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 88 - 2025-04-25 18:21:40 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 12 - 2025-04-25 18:21:40 [0.23ms] */
select * from `vehicle` where `vehicle`.`id` in (24265) and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 13 - 2025-04-25 18:21:40 [0.15ms] */
select * from `party` where `party`.`id` in (15655) and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 14 - 2025-04-25 18:21:40 [0.23ms] */
select * from `party_vehicle` where `party_vehicle`.`id` in (76037) and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 89 - 2025-04-25 18:21:40 [1.63ms] */
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` = 77445 and `term`.`first_date_of_quarter` <= '2025-04-25 18:21:40' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 90 - 2025-04-25 18:21:40 [0.17ms] */
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 15 - 2025-04-25 18:21:40 [0.17ms] */
select * from `transaction` where `transaction`.`id` = 617021 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-04-25 18:21:40 [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): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 91 - 2025-04-25 18:21:40 [0.15ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 74393 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 17 - 2025-04-25 18:21:40 [0.13ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 92 - 2025-04-25 18:21:40 [0.17ms] */
select * from `party_vehicle` where `vehicle_id` = 74393 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 18 - 2025-04-25 18:21:40 [0.13ms] */
select * from `service` where `service`.`id` = 7 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 93 - 2025-04-25 18:21:40 [0.21ms] */
select * from `party` where `party`.`id` = 48970 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 19 - 2025-04-25 18:21:40 [0.16ms] */
select * from `transaction` where `transaction`.`id` = 617021 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 94 - 2025-04-25 18:21:40 [0.2ms] */
select * from `person` where `person`.`id` = 48970 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 20 - 2025-04-25 18:21:40 [0.14ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 95 - 2025-04-25 18:21:40 [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): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 21 - 2025-04-25 18:21:40 [0.16ms] */
select * from `invoice` where `transaction_id` = 617021 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-04-25 18:21:40 [0.13ms] */
select * from `payment_documents` where `transaction_id` = 617021;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 96 - 2025-04-25 18:21:40 [0.17ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 23 - 2025-04-25 18:21:40 [0.14ms] */
select * from `party_vehicle_purchase` where `transaction_id` = 617021 and `party_vehicle_purchase`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 97 - 2025-04-25 18:21:40 [0.16ms] */
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 98 - 2025-04-25 18:21:40 [0.15ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 24 - 2025-04-25 18:21:40 [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): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 99 - 2025-04-25 18:21:40 [0.16ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 20 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 25 - 2025-04-25 18:21:40 [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-04-25 18:21:40 [0.15ms] */
select * from `users` where `users`.`id` = 104 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-04-25 18:21:40 [0.14ms] */
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-04-25 18:21:40 [0.13ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 100 - 2025-04-25 18:21:40 [0.74ms] */
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` = 74393 and `term`.`first_date_of_quarter` <= '2025-04-25 18:21:40' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 101 - 2025-04-25 18:21:40 [0.18ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 91189 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 102 - 2025-04-25 18:21:40 [0.2ms] */
select * from `party_vehicle` where `vehicle_id` = 91189 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 103 - 2025-04-25 18:21:40 [0.19ms] */
select * from `party` where `party`.`id` = 59377 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 104 - 2025-04-25 18:21:40 [0.2ms] */
select * from `person` where `person`.`id` = 56931 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 105 - 2025-04-25 18:21:40 [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/m/service/tax/list
   Query 106 - 2025-04-25 18:21:40 [0.18ms] */
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 107 - 2025-04-25 18:21:40 [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 108 - 2025-04-25 18:21:40 [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 109 - 2025-04-25 18:21:40 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 24 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 110 - 2025-04-25 18:21:40 [0.64ms] */
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` = 91189 and `term`.`first_date_of_quarter` <= '2025-04-25 18:21:40' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 111 - 2025-04-25 18:21:40 [0.16ms] */
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 112 - 2025-04-25 18:21:40 [0.14ms] */
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 113 - 2025-04-25 18:21:40 [0.15ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 77773 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 114 - 2025-04-25 18:21:40 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 77773 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 115 - 2025-04-25 18:21:40 [0.15ms] */
select * from `party` where `party`.`id` = 57290 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 116 - 2025-04-25 18:21:40 [0.14ms] */
select * from `company` where `company`.`id` = 1577 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 117 - 2025-04-25 18:21:40 [0.16ms] */
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 118 - 2025-04-25 18:21:40 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 11 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 119 - 2025-04-25 18:21:40 [0.12ms] */
select * from `model` where `model`.`id` = 1056 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 120 - 2025-04-25 18:21:40 [0.13ms] */
select * from `make` where `make`.`id` = 52 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 121 - 2025-04-25 18:21:40 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 23 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 122 - 2025-04-25 18:21:40 [0.99ms] */
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` = 77773 and `term`.`first_date_of_quarter` <= '2025-04-25 18:21:40' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 123 - 2025-04-25 18:21:40 [0.16ms] */
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 124 - 2025-04-25 18:21:40 [0.14ms] */
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 125 - 2025-04-25 18:21:40 [0.13ms] */
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 126 - 2025-04-25 18:21:40 [0.13ms] */
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 127 - 2025-04-25 18:21:40 [0.13ms] */
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 128 - 2025-04-25 18:21:40 [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 129 - 2025-04-25 18:21:40 [0.13ms] */
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 130 - 2025-04-25 18:21:40 [0.13ms] */
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 29 - 2025-04-25 18:21:40 [0.16ms] */
select * from `workflow` where `workflow`.`id` = 7 and `workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 131 - 2025-04-25 18:21:40 [0.14ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 51688 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 132 - 2025-04-25 18:21:40 [0.17ms] */
select * from `party_vehicle` where `vehicle_id` = 51688 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 133 - 2025-04-25 18:21:40 [0.16ms] */
select * from `party` where `party`.`id` = 39703 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 134 - 2025-04-25 18:21:40 [0.16ms] */
select * from `person` where `person`.`id` = 39703 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 135 - 2025-04-25 18:21:40 [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 136 - 2025-04-25 18:21:40 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 13 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 137 - 2025-04-25 18:21:40 [0.13ms] */
select * from `model` where `model`.`id` = 1093 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 138 - 2025-04-25 18:21:40 [0.13ms] */
select * from `make` where `make`.`id` = 52 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 139 - 2025-04-25 18:21:40 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 23 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 140 - 2025-04-25 18:21:40 [0.72ms] */
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` = 51688 and `term`.`first_date_of_quarter` <= '2025-04-25 18:21:40' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 141 - 2025-04-25 18:21:40 [0.17ms] */
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 142 - 2025-04-25 18:21:40 [0.15ms] */
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 143 - 2025-04-25 18:21:40 [0.13ms] */
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 144 - 2025-04-25 18:21:40 [0.13ms] */
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 145 - 2025-04-25 18:21:40 [0.13ms] */
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 146 - 2025-04-25 18:21:40 [0.13ms] */
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 147 - 2025-04-25 18:21:40 [0.13ms] */
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 148 - 2025-04-25 18:21:40 [0.13ms] */
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 30 - 2025-04-25 18:21:40 [0.15ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 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-04-25 18:21:40 [0.12ms] */
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-04-25 18:21:40 [0.14ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 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-04-25 18:21:40 [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-04-25 18:21:40 [0.14ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 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-04-25 18:21:40 [0.11ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 149 - 2025-04-25 18:21:40 [0.26ms] */
select * from `district` where `district`.`id` = 2 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/m/service/tax/list
   Query 150 - 2025-04-25 18:21:40 [0.16ms] */
select * from `region` where `region`.`id` = 1 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 1 - 2025-04-25 18:21:40 [1.34ms] */
select * from `users` where `id` = 104 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 2 - 2025-04-25 18:21:40 [0.66ms] */
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-04-25 18:21:40 [0.5ms] */
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-04-25 18:21:40 [0.5ms] */
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-04-25 18:21:40 [0.33ms] */
(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-04-25 18:21:40 [0.26ms] */
(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-04-25 18:21:43 [1.34ms] */
select * from `users` where `id` = 104 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-checklist-component
   Query 2 - 2025-04-25 18:21:43 [0.42ms] */
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-04-25 18:21:43 [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-04-25 18:21:43 [0.36ms] */
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-04-25 18:21:43 [0.28ms] */
(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-04-25 18:21:43 [2.07ms] */
select * from `users` where `id` = 104 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-04-25 18:21:43 [0.63ms] */
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-04-25 18:21:43 [0.51ms] */
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-04-25 18:21:43 [0.4ms] */
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-04-25 18:21:44 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 617021 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 6 - 2025-04-25 18:21:44 [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-04-25 18:21:44 [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-04-25 18:21:44 [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-04-25 18:21:44 [0.15ms] */
select * from `users` where `users`.`id` in (104) and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 10 - 2025-04-25 18:21:44 [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-04-25 18:21:44 [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-04-25 18:21:44 [0.17ms] */
select * from `transaction` where `transaction`.`id` = 617021 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-04-25 18:21:44 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 617021 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-04-25 18:21:44 [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-04-25 18:21:44 [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 16 - 2025-04-25 18:21:44 [0.14ms] */
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-04-25 18:21:44 [0.12ms] */
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-04-25 18:21:44 [1.54ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617021, 'APPROVED', '2025-04-25 18:21:44', 6, 104, null, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 19 - 2025-04-25 18:21:44 [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-04-25 18:21:44 [0.39ms] */
update `transaction` set `assigned_to` = null, `current_workflow_state_id` = 31, `status` = 'END', `transaction`.`updated_at` = '2025-04-25 18:21:44' where `id` = 617021;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 21 - 2025-04-25 18:21:44 [0.13ms] */
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-04-25 18:21:44 [0.15ms] */
select * from `party` where `party`.`id` = 15655 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-04-25 18:21:44 [0.23ms] */
select * from `vehicle` where `vehicle`.`id` = 24265 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-04-25 18:21:44 [0.17ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 76037 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-04-25 18:21:44 [0.28ms] */
update `party_vehicle` set `updated_by` = 104, `party_vehicle`.`updated_at` = '2025-04-25 18:21:44' where `id` = 76037;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 26 - 2025-04-25 18:21:44 [0.2ms] */
select * from `party_vehicle` where `id` = 76037 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 27 - 2025-04-25 18:21:44 [1.07ms] */
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":[]}', 104, 'App\Models\User', 76037, 'Modules\Vehicle\Entities\PartyVehicle', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 28 - 2025-04-25 18:21:44 [0.24ms] */
update `vehicle` set `provisional` = 'N', `updated_by` = 104, `vehicle`.`updated_at` = '2025-04-25 18:21:44' where `id` = 24265;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 29 - 2025-04-25 18:21:44 [0.18ms] */
select * from `vehicle` where `id` = 24265 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 30 - 2025-04-25 18:21:44 [0.6ms] */
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"}}', 104, 'App\Models\User', 24265, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 31 - 2025-04-25 18:21:44 [1.2ms] */
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":137}', '{"provisional":"N","updated_by":104}', 'updated', 24265, 'Modules\Vehicle\Entities\Vehicle', 104, 'App\Models\User', null, '102.223.188.83', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36', 'https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 32 - 2025-04-25 18:21:44 [0.8ms] */
select * from `party_vehicle` where `vehicle_id` = 24265 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 33 - 2025-04-25 18:21:44 [0.21ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 24265 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 34 - 2025-04-25 18:21:44 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 24265 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 35 - 2025-04-25 18:21:44 [0.45ms] */
select * from `transaction` where `transaction`.`id` = 76037 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 36 - 2025-04-25 18:21:44 [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 37 - 2025-04-25 18:21:44 [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 38 - 2025-04-25 18:21:44 [0.43ms] */
select * from `party` where `party`.`id` = 15655 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 39 - 2025-04-25 18:21:44 [0.2ms] */
select * from `vehicle` where `vehicle`.`id` = 24265 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 40 - 2025-04-25 18:21:44 [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 41 - 2025-04-25 18:21:44 [0.46ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 24265 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 42 - 2025-04-25 18:21:44 [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 43 - 2025-04-25 18:21:44 [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 44 - 2025-04-25 18:21:44 [0.15ms] */
select * from `branches` where `branches`.`id` = 14 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 45 - 2025-04-25 18:21:44 [3.49ms] */
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 (15655, 2, 24265, null, 2, 6, 14, 37, 37, 'OPEN', null, null, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 46 - 2025-04-25 18:21:44 [0.51ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617023, 'INITIATED', '2025-04-25 18:21:44', 5, 104, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 47 - 2025-04-25 18:21:44 [0.32ms] */
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 48 - 2025-04-25 18:21:44 [0.33ms] */
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 49 - 2025-04-25 18:21:44 [0.26ms] */
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 50 - 2025-04-25 18:21:44 [1.59ms] */
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', 'M0L-76037-571', 24265, 93, 15655, 76037, 617023, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 51 - 2025-04-25 18:21:44 [0.37ms] */
select * from `vehicle_tax` where `id` = 488376 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 52 - 2025-04-25 18:21:44 [0.61ms] */
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":"M0L-76037-571","tax_sticker_id":null,"vehicle_id":24265,"term_id":93,"party_id":15655,"transaction_id":617023,"party_vehicle_id":76037,"exempt":"N","migration_id":null}}', 104, 'App\Models\User', 488376, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 53 - 2025-04-25 18:21:44 [0.28ms] */
select * from `sub_category` where `sub_category`.`id` = 11 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 54 - 2025-04-25 18:21:44 [0.41ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 55 - 2025-04-25 18:21:44 [0.32ms] */
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 56 - 2025-04-25 18:21:44 [0.4ms] */
select * from `party` where `party`.`id` = 15655 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 57 - 2025-04-25 18:21:44 [1.17ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617023, '2023-01-01 00:00:00', '2022-12-01 00:00:00', 'OPEN', 15655, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 58 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice` where `id` = 590729 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 59 - 2025-04-25 18:21:44 [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":617023,"party_id":15655,"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}}', 104, 'App\Models\User', 590729, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 60 - 2025-04-25 18:21:44 [0.95ms] */
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 4 TANS', 'Yearly tax fee for 4 TANS', 1, 70.00, 70.00, 590729, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 61 - 2025-04-25 18:21:44 [0.17ms] */
select * from `invoice_item` where `id` = 1064135 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 62 - 2025-04-25 18:21:44 [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 4 TANS","description":"Yearly tax fee for 4 TANS","unit_price":"70.00","quantity":1,"total_price":"70.00","invoice_id":590729}}', 104, 'App\Models\User', 1064135, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 63 - 2025-04-25 18:21:44 [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, 590729, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 64 - 2025-04-25 18:21:44 [0.17ms] */
select * from `invoice_item` where `id` = 1064136 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 65 - 2025-04-25 18:21:44 [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":590729}}', 104, 'App\Models\User', 1064136, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 66 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 590729 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 67 - 2025-04-25 18:21:44 [0.75ms] */
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` = 590729 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 68 - 2025-04-25 18:21:44 [0.41ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 590729 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 69 - 2025-04-25 18:21:44 [0.19ms] */
update `invoice` set `invoice_amount` = 78, `outstanding_balance` = 78, `discounts` = 0, `total_invoice_amount` = 78, `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590729;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 70 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `id` = 590729 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 71 - 2025-04-25 18:21:44 [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":"78.00","outstanding_balance":"78.00","discounts":"0.00","total_invoice_amount":"78.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 104, 'App\Models\User', 590729, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 72 - 2025-04-25 18:21:44 [0.17ms] */
update `invoice` set `invoice_number` = 'INV-913-590729578', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590729;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 73 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `id` = 590729 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 74 - 2025-04-25 18:21:44 [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":"78.00","outstanding_balance":"78.00","discounts":"0.00","total_invoice_amount":"78.00","invoice_number":"INV-913-590729578","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 104, 'App\Models\User', 590729, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 75 - 2025-04-25 18:21:44 [0.41ms] */
update `transaction` set `party_vehicle_id` = 76037, `vehicle_tax_id` = 488376, `invoice_id` = 590729, `transaction`.`updated_at` = '2025-04-25 18:21:44' where `id` = 617023;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 76 - 2025-04-25 18:21:44 [0.24ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 24265 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 77 - 2025-04-25 18:21:44 [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 78 - 2025-04-25 18:21:44 [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 79 - 2025-04-25 18:21:44 [0.24ms] */
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 (15655, 2, 24265, null, 2, 6, 14, 37, 37, 'OPEN', null, null, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 80 - 2025-04-25 18:21:44 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617024, 'INITIATED', '2025-04-25 18:21:44', 5, 104, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 81 - 2025-04-25 18:21:44 [0.21ms] */
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 82 - 2025-04-25 18:21:44 [0.19ms] */
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', 'V3V-76037-358', 24265, 94, 15655, 76037, 617024, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 83 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `id` = 488377 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 84 - 2025-04-25 18:21:44 [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":"V3V-76037-358","tax_sticker_id":null,"vehicle_id":24265,"term_id":94,"party_id":15655,"transaction_id":617024,"party_vehicle_id":76037,"exempt":"N","migration_id":null}}', 104, 'App\Models\User', 488377, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 85 - 2025-04-25 18:21:44 [0.23ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 86 - 2025-04-25 18:21:44 [0.2ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 87 - 2025-04-25 18:21:44 [0.19ms] */
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 88 - 2025-04-25 18:21:44 [0.19ms] */
select * from `party` where `party`.`id` = 15655 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 89 - 2025-04-25 18:21:44 [0.18ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617024, '2023-03-01 00:00:00', '2023-03-01 00:00:00', 'OPEN', 15655, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 90 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `id` = 590730 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 91 - 2025-04-25 18:21:44 [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":617024,"party_id":15655,"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}}', 104, 'App\Models\User', 590730, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 92 - 2025-04-25 18:21:44 [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 TaxFee for 4 TANS', '4 TANS Quarterly Tax', 1, 37.00, 37.00, 590730, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 93 - 2025-04-25 18:21:44 [0.17ms] */
select * from `invoice_item` where `id` = 1064137 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 94 - 2025-04-25 18:21:44 [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 TaxFee for 4 TANS","description":"4 TANS Quarterly Tax","unit_price":"37.00","quantity":1,"total_price":"37.00","invoice_id":590730}}', 104, 'App\Models\User', 1064137, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 95 - 2025-04-25 18:21:44 [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, 590730, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 96 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice_item` where `id` = 1064138 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 97 - 2025-04-25 18:21:44 [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 Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":590730}}', 104, 'App\Models\User', 1064138, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 98 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 590730 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 99 - 2025-04-25 18:21:44 [0.27ms] */
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` = 590730 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 100 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 590730 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 101 - 2025-04-25 18:21:44 [0.18ms] */
update `invoice` set `invoice_amount` = 45, `outstanding_balance` = 45, `discounts` = 0, `total_invoice_amount` = 45, `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590730;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 102 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `id` = 590730 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 103 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 104, 'App\Models\User', 590730, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 104 - 2025-04-25 18:21:44 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-805-590730697', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590730;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 105 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice` where `id` = 590730 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 106 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00","invoice_number":"INV-805-590730697","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 104, 'App\Models\User', 590730, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 107 - 2025-04-25 18:21:44 [0.2ms] */
update `transaction` set `party_vehicle_id` = 76037, `vehicle_tax_id` = 488377, `invoice_id` = 590730, `transaction`.`updated_at` = '2025-04-25 18:21:44' where `id` = 617024;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 108 - 2025-04-25 18:21:44 [0.23ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 24265 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 109 - 2025-04-25 18:21:44 [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 110 - 2025-04-25 18:21:44 [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 111 - 2025-04-25 18:21:44 [0.23ms] */
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 (15655, 2, 24265, null, 2, 6, 14, 37, 37, 'OPEN', null, null, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 112 - 2025-04-25 18:21:44 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617025, 'INITIATED', '2025-04-25 18:21:44', 5, 104, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 113 - 2025-04-25 18:21:44 [0.25ms] */
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 114 - 2025-04-25 18:21:44 [0.34ms] */
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', 'DNW-76037-211', 24265, 95, 15655, 76037, 617025, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 115 - 2025-04-25 18:21:44 [0.31ms] */
select * from `vehicle_tax` where `id` = 488378 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 116 - 2025-04-25 18:21:44 [0.31ms] */
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":"DNW-76037-211","tax_sticker_id":null,"vehicle_id":24265,"term_id":95,"party_id":15655,"transaction_id":617025,"party_vehicle_id":76037,"exempt":"N","migration_id":null}}', 104, 'App\Models\User', 488378, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 117 - 2025-04-25 18:21:44 [0.42ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 118 - 2025-04-25 18:21:44 [0.35ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 119 - 2025-04-25 18:21:44 [0.3ms] */
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 120 - 2025-04-25 18:21:44 [0.34ms] */
select * from `party` where `party`.`id` = 15655 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 121 - 2025-04-25 18:21:44 [0.35ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617025, '2023-06-01 00:00:00', '2023-06-01 00:00:00', 'OPEN', 15655, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 122 - 2025-04-25 18:21:44 [0.36ms] */
select * from `invoice` where `id` = 590731 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 123 - 2025-04-25 18:21:44 [0.33ms] */
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":617025,"party_id":15655,"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}}', 104, 'App\Models\User', 590731, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 124 - 2025-04-25 18:21:44 [0.28ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 4 TANS', '4 TANS Quarterly Tax', 1, 37.00, 37.00, 590731, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 125 - 2025-04-25 18:21:44 [0.32ms] */
select * from `invoice_item` where `id` = 1064139 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 126 - 2025-04-25 18:21:44 [0.36ms] */
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 TaxFee for 4 TANS","description":"4 TANS Quarterly Tax","unit_price":"37.00","quantity":1,"total_price":"37.00","invoice_id":590731}}', 104, 'App\Models\User', 1064139, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 127 - 2025-04-25 18:21:44 [0.24ms] */
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, 590731, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 128 - 2025-04-25 18:21:44 [0.16ms] */
select * from `invoice_item` where `id` = 1064140 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 129 - 2025-04-25 18:21:44 [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":590731}}', 104, 'App\Models\User', 1064140, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 130 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 590731 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 131 - 2025-04-25 18:21:44 [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` = 590731 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 132 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 590731 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 133 - 2025-04-25 18:21:44 [0.16ms] */
update `invoice` set `invoice_amount` = 45, `outstanding_balance` = 45, `discounts` = 0, `total_invoice_amount` = 45, `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590731;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 134 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590731 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 135 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 104, 'App\Models\User', 590731, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 136 - 2025-04-25 18:21:44 [0.15ms] */
update `invoice` set `invoice_number` = 'INV-875-590731657', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590731;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 137 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590731 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 138 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00","invoice_number":"INV-875-590731657","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 104, 'App\Models\User', 590731, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 139 - 2025-04-25 18:21:44 [0.19ms] */
update `transaction` set `party_vehicle_id` = 76037, `vehicle_tax_id` = 488378, `invoice_id` = 590731, `transaction`.`updated_at` = '2025-04-25 18:21:44' where `id` = 617025;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 140 - 2025-04-25 18:21:44 [0.22ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 24265 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 141 - 2025-04-25 18:21:44 [0.18ms] */
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 142 - 2025-04-25 18:21:44 [0.19ms] */
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 143 - 2025-04-25 18:21:44 [0.23ms] */
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 (15655, 2, 24265, null, 2, 6, 14, 37, 37, 'OPEN', null, null, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 144 - 2025-04-25 18:21:44 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617026, 'INITIATED', '2025-04-25 18:21:44', 5, 104, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 145 - 2025-04-25 18:21:44 [0.19ms] */
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 146 - 2025-04-25 18:21:44 [0.48ms] */
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', 'RG3-76037-122', 24265, 96, 15655, 76037, 617026, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 147 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `id` = 488379 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 148 - 2025-04-25 18:21:44 [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":"RG3-76037-122","tax_sticker_id":null,"vehicle_id":24265,"term_id":96,"party_id":15655,"transaction_id":617026,"party_vehicle_id":76037,"exempt":"N","migration_id":null}}', 104, 'App\Models\User', 488379, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 149 - 2025-04-25 18:21:44 [0.21ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 150 - 2025-04-25 18:21:44 [0.18ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 151 - 2025-04-25 18:21:44 [0.16ms] */
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 152 - 2025-04-25 18:21:44 [0.18ms] */
select * from `party` where `party`.`id` = 15655 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 153 - 2025-04-25 18:21:44 [0.18ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617026, '2023-09-01 00:00:00', '2023-09-01 00:00:00', 'OPEN', 15655, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 154 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590732 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 155 - 2025-04-25 18:21:44 [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":617026,"party_id":15655,"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}}', 104, 'App\Models\User', 590732, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 156 - 2025-04-25 18:21:44 [0.14ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 4 TANS', '4 TANS Quarterly Tax', 1, 37.00, 37.00, 590732, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 157 - 2025-04-25 18:21:44 [0.17ms] */
select * from `invoice_item` where `id` = 1064141 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 158 - 2025-04-25 18:21:44 [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 TaxFee for 4 TANS","description":"4 TANS Quarterly Tax","unit_price":"37.00","quantity":1,"total_price":"37.00","invoice_id":590732}}', 104, 'App\Models\User', 1064141, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 159 - 2025-04-25 18:21:44 [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, 590732, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 160 - 2025-04-25 18:21:44 [0.17ms] */
select * from `invoice_item` where `id` = 1064142 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 161 - 2025-04-25 18:21:44 [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":590732}}', 104, 'App\Models\User', 1064142, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 162 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 590732 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 163 - 2025-04-25 18:21:44 [0.47ms] */
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` = 590732 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 164 - 2025-04-25 18:21:44 [0.38ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 590732 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 165 - 2025-04-25 18:21:44 [0.34ms] */
update `invoice` set `invoice_amount` = 45, `outstanding_balance` = 45, `discounts` = 0, `total_invoice_amount` = 45, `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590732;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 166 - 2025-04-25 18:21:44 [0.35ms] */
select * from `invoice` where `id` = 590732 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 167 - 2025-04-25 18:21:44 [0.41ms] */
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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 104, 'App\Models\User', 590732, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 168 - 2025-04-25 18:21:44 [0.35ms] */
update `invoice` set `invoice_number` = 'INV-638-590732860', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590732;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 169 - 2025-04-25 18:21:44 [0.4ms] */
select * from `invoice` where `id` = 590732 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 170 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00","invoice_number":"INV-638-590732860","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 104, 'App\Models\User', 590732, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 171 - 2025-04-25 18:21:44 [0.3ms] */
update `transaction` set `party_vehicle_id` = 76037, `vehicle_tax_id` = 488379, `invoice_id` = 590732, `transaction`.`updated_at` = '2025-04-25 18:21:44' where `id` = 617026;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 172 - 2025-04-25 18:21:44 [0.36ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 24265 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 173 - 2025-04-25 18:21:44 [0.29ms] */
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 174 - 2025-04-25 18:21:44 [0.33ms] */
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 175 - 2025-04-25 18:21:44 [0.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 (15655, 2, 24265, null, 2, 6, 14, 37, 37, 'OPEN', null, null, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 176 - 2025-04-25 18:21:44 [0.27ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617027, 'INITIATED', '2025-04-25 18:21:44', 5, 104, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 177 - 2025-04-25 18:21:44 [0.27ms] */
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 178 - 2025-04-25 18:21:44 [0.27ms] */
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 179 - 2025-04-25 18:21:44 [0.34ms] */
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 180 - 2025-04-25 18:21:44 [0.33ms] */
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', '308-76037-841', 24265, 97, 15655, 76037, 617027, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 181 - 2025-04-25 18:21:44 [0.28ms] */
select * from `vehicle_tax` where `id` = 488380 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 182 - 2025-04-25 18:21:44 [0.34ms] */
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":"308-76037-841","tax_sticker_id":null,"vehicle_id":24265,"term_id":97,"party_id":15655,"transaction_id":617027,"party_vehicle_id":76037,"exempt":"N","migration_id":null}}', 104, 'App\Models\User', 488380, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 183 - 2025-04-25 18:21:44 [0.34ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 184 - 2025-04-25 18:21:44 [0.26ms] */
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 185 - 2025-04-25 18:21:44 [0.29ms] */
select * from `party` where `party`.`id` = 15655 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 186 - 2025-04-25 18:21:44 [0.19ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617027, '2023-12-01 00:00:00', '2023-12-01 00:00:00', 'OPEN', 15655, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 187 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice` where `id` = 590733 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 188 - 2025-04-25 18:21:44 [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":617027,"party_id":15655,"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}}', 104, 'App\Models\User', 590733, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 189 - 2025-04-25 18:21:44 [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 4 TANS', 'Yearly tax fee for 4 TANS', 1, 70.00, 70.00, 590733, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 190 - 2025-04-25 18:21:44 [0.16ms] */
select * from `invoice_item` where `id` = 1064143 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 191 - 2025-04-25 18:21:44 [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":"Yearly tax fee for 4 TANS","description":"Yearly tax fee for 4 TANS","unit_price":"70.00","quantity":1,"total_price":"70.00","invoice_id":590733}}', 104, 'App\Models\User', 1064143, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 192 - 2025-04-25 18:21:44 [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, 590733, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 193 - 2025-04-25 18:21:44 [0.16ms] */
select * from `invoice_item` where `id` = 1064144 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 194 - 2025-04-25 18:21:44 [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":590733}}', 104, 'App\Models\User', 1064144, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 195 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 590733 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 196 - 2025-04-25 18:21:44 [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` = 590733 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 197 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 590733 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 198 - 2025-04-25 18:21:44 [0.17ms] */
update `invoice` set `invoice_amount` = 78, `outstanding_balance` = 78, `discounts` = 0, `total_invoice_amount` = 78, `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590733;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 199 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `id` = 590733 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 200 - 2025-04-25 18:21:44 [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":"78.00","outstanding_balance":"78.00","discounts":"0.00","total_invoice_amount":"78.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 104, 'App\Models\User', 590733, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 201 - 2025-04-25 18:21:44 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-474-590733978', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590733;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 202 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `id` = 590733 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 203 - 2025-04-25 18:21:44 [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":"78.00","outstanding_balance":"78.00","discounts":"0.00","total_invoice_amount":"78.00","invoice_number":"INV-474-590733978","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 104, 'App\Models\User', 590733, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 204 - 2025-04-25 18:21:44 [0.2ms] */
update `transaction` set `party_vehicle_id` = 76037, `vehicle_tax_id` = 488380, `invoice_id` = 590733, `transaction`.`updated_at` = '2025-04-25 18:21:44' where `id` = 617027;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 205 - 2025-04-25 18:21:44 [0.24ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 24265 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 206 - 2025-04-25 18:21:44 [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 207 - 2025-04-25 18:21:44 [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 208 - 2025-04-25 18:21:44 [0.24ms] */
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 (15655, 2, 24265, null, 2, 6, 14, 37, 37, 'OPEN', null, null, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 209 - 2025-04-25 18:21:44 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617028, 'INITIATED', '2025-04-25 18:21:44', 5, 104, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 210 - 2025-04-25 18:21:44 [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 211 - 2025-04-25 18:21:44 [0.19ms] */
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', '6IK-76037-596', 24265, 98, 15655, 76037, 617028, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 212 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `id` = 488381 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 213 - 2025-04-25 18:21:44 [0.19ms] */
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":"6IK-76037-596","tax_sticker_id":null,"vehicle_id":24265,"term_id":98,"party_id":15655,"transaction_id":617028,"party_vehicle_id":76037,"exempt":"N","migration_id":null}}', 104, 'App\Models\User', 488381, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 214 - 2025-04-25 18:21:44 [0.21ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 215 - 2025-04-25 18:21:44 [0.2ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 216 - 2025-04-25 18:21:44 [0.18ms] */
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 217 - 2025-04-25 18:21:44 [0.21ms] */
select * from `party` where `party`.`id` = 15655 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 218 - 2025-04-25 18:21:44 [0.19ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617028, '2024-03-01 00:00:00', '2024-03-01 00:00:00', 'OPEN', 15655, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 219 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `id` = 590734 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 220 - 2025-04-25 18:21:44 [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":617028,"party_id":15655,"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}}', 104, 'App\Models\User', 590734, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 221 - 2025-04-25 18:21:44 [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 TaxFee for 4 TANS', '4 TANS Quarterly Tax', 1, 37.00, 37.00, 590734, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 222 - 2025-04-25 18:21:44 [0.16ms] */
select * from `invoice_item` where `id` = 1064145 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 223 - 2025-04-25 18:21:44 [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 TaxFee for 4 TANS","description":"4 TANS Quarterly Tax","unit_price":"37.00","quantity":1,"total_price":"37.00","invoice_id":590734}}', 104, 'App\Models\User', 1064145, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 224 - 2025-04-25 18:21:44 [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, 590734, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 225 - 2025-04-25 18:21:44 [0.16ms] */
select * from `invoice_item` where `id` = 1064146 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 226 - 2025-04-25 18:21:44 [1.3ms] */
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":590734}}', 104, 'App\Models\User', 1064146, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 227 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 590734 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 228 - 2025-04-25 18:21:44 [0.27ms] */
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` = 590734 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 229 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 590734 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 230 - 2025-04-25 18:21:44 [0.17ms] */
update `invoice` set `invoice_amount` = 45, `outstanding_balance` = 45, `discounts` = 0, `total_invoice_amount` = 45, `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590734;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 231 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590734 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 232 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 104, 'App\Models\User', 590734, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 233 - 2025-04-25 18:21:44 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-173-590734309', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590734;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 234 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590734 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 235 - 2025-04-25 18:21:44 [0.5ms] */
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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00","invoice_number":"INV-173-590734309","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 104, 'App\Models\User', 590734, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 236 - 2025-04-25 18:21:44 [0.39ms] */
update `transaction` set `party_vehicle_id` = 76037, `vehicle_tax_id` = 488381, `invoice_id` = 590734, `transaction`.`updated_at` = '2025-04-25 18:21:44' where `id` = 617028;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 237 - 2025-04-25 18:21:44 [0.24ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 24265 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 238 - 2025-04-25 18:21:44 [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 239 - 2025-04-25 18:21:44 [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 240 - 2025-04-25 18:21:44 [0.25ms] */
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 (15655, 2, 24265, null, 2, 6, 14, 37, 37, 'OPEN', null, null, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 241 - 2025-04-25 18:21:44 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617029, 'INITIATED', '2025-04-25 18:21:44', 5, 104, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 242 - 2025-04-25 18:21:44 [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 243 - 2025-04-25 18:21:44 [0.19ms] */
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', 'QB1-76037-856', 24265, 99, 15655, 76037, 617029, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 244 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `id` = 488382 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 245 - 2025-04-25 18:21:44 [0.19ms] */
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":"QB1-76037-856","tax_sticker_id":null,"vehicle_id":24265,"term_id":99,"party_id":15655,"transaction_id":617029,"party_vehicle_id":76037,"exempt":"N","migration_id":null}}', 104, 'App\Models\User', 488382, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 246 - 2025-04-25 18:21:44 [0.22ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 247 - 2025-04-25 18:21:44 [0.21ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 248 - 2025-04-25 18:21:44 [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 249 - 2025-04-25 18:21:44 [0.32ms] */
select * from `party` where `party`.`id` = 15655 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 250 - 2025-04-25 18:21:44 [0.35ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617029, '2024-06-01 00:00:00', '2024-06-01 00:00:00', 'OPEN', 15655, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 251 - 2025-04-25 18:21:44 [0.35ms] */
select * from `invoice` where `id` = 590735 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 252 - 2025-04-25 18:21:44 [0.41ms] */
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":617029,"party_id":15655,"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}}', 104, 'App\Models\User', 590735, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 253 - 2025-04-25 18:21:44 [0.3ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 4 TANS', '4 TANS Quarterly Tax', 1, 37.00, 37.00, 590735, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 254 - 2025-04-25 18:21:44 [0.31ms] */
select * from `invoice_item` where `id` = 1064147 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 255 - 2025-04-25 18:21:44 [0.38ms] */
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 TaxFee for 4 TANS","description":"4 TANS Quarterly Tax","unit_price":"37.00","quantity":1,"total_price":"37.00","invoice_id":590735}}', 104, 'App\Models\User', 1064147, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 256 - 2025-04-25 18:21:44 [0.28ms] */
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, 590735, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 257 - 2025-04-25 18:21:44 [0.33ms] */
select * from `invoice_item` where `id` = 1064148 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 258 - 2025-04-25 18:21:44 [0.35ms] */
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":590735}}', 104, 'App\Models\User', 1064148, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 259 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 590735 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 260 - 2025-04-25 18:21:44 [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` = 590735 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 261 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 590735 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 262 - 2025-04-25 18:21:44 [0.17ms] */
update `invoice` set `invoice_amount` = 45, `outstanding_balance` = 45, `discounts` = 0, `total_invoice_amount` = 45, `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590735;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 263 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590735 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 264 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 104, 'App\Models\User', 590735, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 265 - 2025-04-25 18:21:44 [0.17ms] */
update `invoice` set `invoice_number` = 'INV-991-590735316', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590735;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 266 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590735 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 267 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00","invoice_number":"INV-991-590735316","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 104, 'App\Models\User', 590735, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 268 - 2025-04-25 18:21:44 [0.2ms] */
update `transaction` set `party_vehicle_id` = 76037, `vehicle_tax_id` = 488382, `invoice_id` = 590735, `transaction`.`updated_at` = '2025-04-25 18:21:44' where `id` = 617029;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 269 - 2025-04-25 18:21:44 [0.24ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 24265 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 270 - 2025-04-25 18:21:44 [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 271 - 2025-04-25 18:21:44 [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 272 - 2025-04-25 18:21:44 [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 (15655, 2, 24265, null, 2, 6, 14, 37, 37, 'OPEN', null, null, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 273 - 2025-04-25 18:21:44 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617030, 'INITIATED', '2025-04-25 18:21:44', 5, 104, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 274 - 2025-04-25 18:21:44 [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 275 - 2025-04-25 18:21:44 [0.52ms] */
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', 'I7Z-76037-447', 24265, 100, 15655, 76037, 617030, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 276 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `id` = 488383 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 277 - 2025-04-25 18:21:44 [0.42ms] */
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":"I7Z-76037-447","tax_sticker_id":null,"vehicle_id":24265,"term_id":100,"party_id":15655,"transaction_id":617030,"party_vehicle_id":76037,"exempt":"N","migration_id":null}}', 104, 'App\Models\User', 488383, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 278 - 2025-04-25 18:21:44 [0.21ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 279 - 2025-04-25 18:21:44 [0.2ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 280 - 2025-04-25 18:21:44 [0.17ms] */
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 281 - 2025-04-25 18:21:44 [0.19ms] */
select * from `party` where `party`.`id` = 15655 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 282 - 2025-04-25 18:21:44 [0.19ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617030, '2024-09-01 00:00:00', '2024-09-01 00:00:00', 'OPEN', 15655, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 283 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590736 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 284 - 2025-04-25 18:21:44 [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":617030,"party_id":15655,"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}}', 104, 'App\Models\User', 590736, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 285 - 2025-04-25 18:21:44 [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 TaxFee for 4 TANS', '4 TANS Quarterly Tax', 1, 37.00, 37.00, 590736, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 286 - 2025-04-25 18:21:44 [0.17ms] */
select * from `invoice_item` where `id` = 1064149 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 287 - 2025-04-25 18:21:44 [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":"Quarterly TaxFee for 4 TANS","description":"4 TANS Quarterly Tax","unit_price":"37.00","quantity":1,"total_price":"37.00","invoice_id":590736}}', 104, 'App\Models\User', 1064149, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 288 - 2025-04-25 18:21:44 [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, 590736, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 289 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice_item` where `id` = 1064150 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 290 - 2025-04-25 18:21:44 [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":590736}}', 104, 'App\Models\User', 1064150, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 291 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 590736 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 292 - 2025-04-25 18:21:44 [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` = 590736 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 293 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 590736 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 294 - 2025-04-25 18:21:44 [0.17ms] */
update `invoice` set `invoice_amount` = 45, `outstanding_balance` = 45, `discounts` = 0, `total_invoice_amount` = 45, `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590736;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 295 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590736 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 296 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 104, 'App\Models\User', 590736, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 297 - 2025-04-25 18:21:44 [0.17ms] */
update `invoice` set `invoice_number` = 'INV-424-590736431', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590736;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 298 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice` where `id` = 590736 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 299 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00","invoice_number":"INV-424-590736431","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 104, 'App\Models\User', 590736, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 300 - 2025-04-25 18:21:44 [0.19ms] */
update `transaction` set `party_vehicle_id` = 76037, `vehicle_tax_id` = 488383, `invoice_id` = 590736, `transaction`.`updated_at` = '2025-04-25 18:21:44' where `id` = 617030;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 301 - 2025-04-25 18:21:44 [0.24ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 24265 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 302 - 2025-04-25 18:21:44 [0.18ms] */
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 303 - 2025-04-25 18:21:44 [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 304 - 2025-04-25 18:21:44 [0.25ms] */
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 (15655, 2, 24265, null, 2, 6, 14, 37, 37, 'OPEN', null, null, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 305 - 2025-04-25 18:21:44 [0.31ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617031, 'INITIATED', '2025-04-25 18:21:44', 5, 104, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 306 - 2025-04-25 18:21:44 [0.32ms] */
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 307 - 2025-04-25 18:21:44 [0.31ms] */
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 308 - 2025-04-25 18:21:44 [0.4ms] */
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 309 - 2025-04-25 18:21:44 [0.37ms] */
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', 'C3J-76037-668', 24265, 103, 15655, 76037, 617031, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 310 - 2025-04-25 18:21:44 [0.38ms] */
select * from `vehicle_tax` where `id` = 488384 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 311 - 2025-04-25 18:21:44 [0.38ms] */
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":"C3J-76037-668","tax_sticker_id":null,"vehicle_id":24265,"term_id":103,"party_id":15655,"transaction_id":617031,"party_vehicle_id":76037,"exempt":"N","migration_id":null}}', 104, 'App\Models\User', 488384, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 312 - 2025-04-25 18:21:44 [0.4ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 313 - 2025-04-25 18:21:44 [0.33ms] */
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 314 - 2025-04-25 18:21:44 [0.43ms] */
select * from `party` where `party`.`id` = 15655 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 315 - 2025-04-25 18:21:44 [0.42ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617031, '2024-12-01 00:00:00', '2024-12-01 00:00:00', 'OPEN', 15655, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 316 - 2025-04-25 18:21:44 [0.4ms] */
select * from `invoice` where `id` = 590737 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 317 - 2025-04-25 18:21:44 [0.45ms] */
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":617031,"party_id":15655,"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}}', 104, 'App\Models\User', 590737, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 318 - 2025-04-25 18:21:44 [0.38ms] */
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 4 TANS', 'Yearly tax fee for 4 TANS', 1, 70.00, 70.00, 590737, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 319 - 2025-04-25 18:21:44 [0.36ms] */
select * from `invoice_item` where `id` = 1064151 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 320 - 2025-04-25 18:21:44 [0.87ms] */
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 4 TANS","description":"Yearly tax fee for 4 TANS","unit_price":"70.00","quantity":1,"total_price":"70.00","invoice_id":590737}}', 104, 'App\Models\User', 1064151, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 321 - 2025-04-25 18:21:44 [0.28ms] */
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, 590737, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 322 - 2025-04-25 18:21:44 [0.3ms] */
select * from `invoice_item` where `id` = 1064152 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 323 - 2025-04-25 18:21:44 [0.38ms] */
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":590737}}', 104, 'App\Models\User', 1064152, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 324 - 2025-04-25 18:21:44 [0.36ms] */
select * from `invoice` where `invoice`.`id` = 590737 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 325 - 2025-04-25 18:21:44 [0.44ms] */
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` = 590737 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 326 - 2025-04-25 18:21:44 [0.43ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 590737 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 327 - 2025-04-25 18:21:44 [0.31ms] */
update `invoice` set `invoice_amount` = 78, `outstanding_balance` = 78, `discounts` = 0, `total_invoice_amount` = 78, `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590737;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 328 - 2025-04-25 18:21:44 [0.3ms] */
select * from `invoice` where `id` = 590737 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 329 - 2025-04-25 18:21:44 [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":"78.00","outstanding_balance":"78.00","discounts":"0.00","total_invoice_amount":"78.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 104, 'App\Models\User', 590737, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 330 - 2025-04-25 18:21:44 [0.81ms] */
update `invoice` set `invoice_number` = 'INV-909-590737797', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590737;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 331 - 2025-04-25 18:21:44 [0.32ms] */
select * from `invoice` where `id` = 590737 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 332 - 2025-04-25 18:21:44 [0.99ms] */
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":"78.00","outstanding_balance":"78.00","discounts":"0.00","total_invoice_amount":"78.00","invoice_number":"INV-909-590737797","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 104, 'App\Models\User', 590737, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 333 - 2025-04-25 18:21:44 [0.79ms] */
update `transaction` set `party_vehicle_id` = 76037, `vehicle_tax_id` = 488384, `invoice_id` = 590737, `transaction`.`updated_at` = '2025-04-25 18:21:44' where `id` = 617031;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 334 - 2025-04-25 18:21:44 [0.43ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 24265 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 335 - 2025-04-25 18:21:44 [0.31ms] */
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 336 - 2025-04-25 18:21:44 [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 337 - 2025-04-25 18:21:44 [0.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 (15655, 2, 24265, null, 2, 6, 14, 37, 37, 'OPEN', null, null, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 338 - 2025-04-25 18:21:44 [0.31ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617032, 'INITIATED', '2025-04-25 18:21:44', 5, 104, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 339 - 2025-04-25 18:21:44 [0.34ms] */
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 340 - 2025-04-25 18:21:44 [0.97ms] */
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', 'DH6-76037-292', 24265, 104, 15655, 76037, 617032, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 341 - 2025-04-25 18:21:44 [0.18ms] */
select * from `vehicle_tax` where `id` = 488385 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 342 - 2025-04-25 18:21:44 [0.19ms] */
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":"DH6-76037-292","tax_sticker_id":null,"vehicle_id":24265,"term_id":104,"party_id":15655,"transaction_id":617032,"party_vehicle_id":76037,"exempt":"N","migration_id":null}}', 104, 'App\Models\User', 488385, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 343 - 2025-04-25 18:21:44 [0.26ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 344 - 2025-04-25 18:21:44 [0.19ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 345 - 2025-04-25 18:21:44 [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 346 - 2025-04-25 18:21:44 [0.19ms] */
select * from `party` where `party`.`id` = 15655 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 347 - 2025-04-25 18:21:44 [0.19ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617032, '2025-03-01 00:00:00', '2025-03-01 00:00:00', 'OPEN', 15655, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 348 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `id` = 590738 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 349 - 2025-04-25 18:21:44 [0.46ms] */
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":617032,"party_id":15655,"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}}', 104, 'App\Models\User', 590738, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 350 - 2025-04-25 18:21:44 [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 TaxFee for 4 TANS', '4 TANS Quarterly Tax', 1, 37.00, 37.00, 590738, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 351 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice_item` where `id` = 1064153 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 352 - 2025-04-25 18:21:44 [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 TaxFee for 4 TANS","description":"4 TANS Quarterly Tax","unit_price":"37.00","quantity":1,"total_price":"37.00","invoice_id":590738}}', 104, 'App\Models\User', 1064153, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 353 - 2025-04-25 18:21:44 [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, 590738, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 354 - 2025-04-25 18:21:44 [0.16ms] */
select * from `invoice_item` where `id` = 1064154 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 355 - 2025-04-25 18:21:44 [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":590738}}', 104, 'App\Models\User', 1064154, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 356 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 590738 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 357 - 2025-04-25 18:21:44 [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` = 590738 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 358 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 590738 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 359 - 2025-04-25 18:21:44 [0.17ms] */
update `invoice` set `invoice_amount` = 45, `outstanding_balance` = 45, `discounts` = 0, `total_invoice_amount` = 45, `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590738;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 360 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice` where `id` = 590738 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 361 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 104, 'App\Models\User', 590738, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 362 - 2025-04-25 18:21:44 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-497-590738722', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590738;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 363 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590738 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 364 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00","invoice_number":"INV-497-590738722","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 104, 'App\Models\User', 590738, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 365 - 2025-04-25 18:21:44 [0.2ms] */
update `transaction` set `party_vehicle_id` = 76037, `vehicle_tax_id` = 488385, `invoice_id` = 590738, `transaction`.`updated_at` = '2025-04-25 18:21:44' where `id` = 617032;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 366 - 2025-04-25 18:21:44 [0.25ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 24265 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 367 - 2025-04-25 18:21:44 [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 368 - 2025-04-25 18:21:44 [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 369 - 2025-04-25 18:21:44 [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 (15655, 2, 24265, null, 2, 6, 14, 37, 37, 'OPEN', null, null, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 370 - 2025-04-25 18:21:44 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617033, 'INITIATED', '2025-04-25 18:21:44', 5, 104, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 371 - 2025-04-25 18:21:44 [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 372 - 2025-04-25 18:21:44 [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', 'G42-76037-363', 24265, 105, 15655, 76037, 617033, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 373 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `id` = 488386 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 374 - 2025-04-25 18:21:44 [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":"G42-76037-363","tax_sticker_id":null,"vehicle_id":24265,"term_id":105,"party_id":15655,"transaction_id":617033,"party_vehicle_id":76037,"exempt":"N","migration_id":null}}', 104, 'App\Models\User', 488386, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 375 - 2025-04-25 18:21:44 [0.21ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 376 - 2025-04-25 18:21:44 [0.19ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 377 - 2025-04-25 18:21:44 [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 378 - 2025-04-25 18:21:44 [0.19ms] */
select * from `party` where `party`.`id` = 15655 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 379 - 2025-04-25 18:21:44 [0.19ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617033, '2025-06-01 00:00:00', '2025-06-01 00:00:00', 'OPEN', 15655, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 380 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590739 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 381 - 2025-04-25 18:21:44 [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":617033,"party_id":15655,"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}}', 104, 'App\Models\User', 590739, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 382 - 2025-04-25 18:21:44 [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 TaxFee for 4 TANS', '4 TANS Quarterly Tax', 1, 37.00, 37.00, 590739, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 383 - 2025-04-25 18:21:44 [0.16ms] */
select * from `invoice_item` where `id` = 1064155 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 384 - 2025-04-25 18:21:44 [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 TaxFee for 4 TANS","description":"4 TANS Quarterly Tax","unit_price":"37.00","quantity":1,"total_price":"37.00","invoice_id":590739}}', 104, 'App\Models\User', 1064155, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 385 - 2025-04-25 18:21:44 [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, 590739, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 386 - 2025-04-25 18:21:44 [0.17ms] */
select * from `invoice_item` where `id` = 1064156 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 387 - 2025-04-25 18:21:44 [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":590739}}', 104, 'App\Models\User', 1064156, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 388 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 590739 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 389 - 2025-04-25 18:21:44 [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` = 590739 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 390 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 590739 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 391 - 2025-04-25 18:21:44 [0.17ms] */
update `invoice` set `invoice_amount` = 45, `outstanding_balance` = 45, `discounts` = 0, `total_invoice_amount` = 45, `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590739;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 392 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590739 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 393 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 104, 'App\Models\User', 590739, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 394 - 2025-04-25 18:21:44 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-372-590739139', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590739;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 395 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `id` = 590739 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 396 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00","invoice_number":"INV-372-590739139","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 104, 'App\Models\User', 590739, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 397 - 2025-04-25 18:21:44 [0.19ms] */
update `transaction` set `party_vehicle_id` = 76037, `vehicle_tax_id` = 488386, `invoice_id` = 590739, `transaction`.`updated_at` = '2025-04-25 18:21:44' where `id` = 617033;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 398 - 2025-04-25 18:21:44 [0.25ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 24265 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 399 - 2025-04-25 18:21:44 [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 400 - 2025-04-25 18:21:44 [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 401 - 2025-04-25 18:21:44 [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 (15655, 2, 24265, null, 2, 6, 14, 37, 37, 'OPEN', null, null, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 402 - 2025-04-25 18:21:44 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617034, 'INITIATED', '2025-04-25 18:21:44', 5, 104, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 403 - 2025-04-25 18:21:44 [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 404 - 2025-04-25 18:21:44 [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', '8G0-76037-840', 24265, 106, 15655, 76037, 617034, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 405 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `id` = 488387 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 406 - 2025-04-25 18:21:44 [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":"8G0-76037-840","tax_sticker_id":null,"vehicle_id":24265,"term_id":106,"party_id":15655,"transaction_id":617034,"party_vehicle_id":76037,"exempt":"N","migration_id":null}}', 104, 'App\Models\User', 488387, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 407 - 2025-04-25 18:21:44 [0.21ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 408 - 2025-04-25 18:21:44 [0.19ms] */
(select * from `service_fee` where `sub_category_id` = 11 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` = 11 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 409 - 2025-04-25 18:21:44 [0.16ms] */
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 410 - 2025-04-25 18:21:44 [0.19ms] */
select * from `party` where `party`.`id` = 15655 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 411 - 2025-04-25 18:21:44 [0.19ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617034, '2025-09-01 00:00:00', '2025-09-01 00:00:00', 'OPEN', 15655, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 412 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `id` = 590740 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 413 - 2025-04-25 18:21:44 [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":617034,"party_id":15655,"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}}', 104, 'App\Models\User', 590740, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 414 - 2025-04-25 18:21:44 [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 TaxFee for 4 TANS', '4 TANS Quarterly Tax', 1, 37.00, 37.00, 590740, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 415 - 2025-04-25 18:21:44 [0.16ms] */
select * from `invoice_item` where `id` = 1064157 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 416 - 2025-04-25 18:21:44 [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 TaxFee for 4 TANS","description":"4 TANS Quarterly Tax","unit_price":"37.00","quantity":1,"total_price":"37.00","invoice_id":590740}}', 104, 'App\Models\User', 1064157, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 417 - 2025-04-25 18:21:44 [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, 590740, 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 418 - 2025-04-25 18:21:44 [0.16ms] */
select * from `invoice_item` where `id` = 1064158 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 419 - 2025-04-25 18:21:44 [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":590740}}', 104, 'App\Models\User', 1064158, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 420 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 590740 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 421 - 2025-04-25 18:21:44 [0.23ms] */
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` = 590740 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 422 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 590740 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 423 - 2025-04-25 18:21:44 [0.17ms] */
update `invoice` set `invoice_amount` = 45, `outstanding_balance` = 45, `discounts` = 0, `total_invoice_amount` = 45, `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590740;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 424 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590740 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 425 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 104, 'App\Models\User', 590740, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 426 - 2025-04-25 18:21:44 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-225-590740164', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590740;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 427 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590740 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 428 - 2025-04-25 18:21:44 [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":"45.00","outstanding_balance":"45.00","discounts":"0.00","total_invoice_amount":"45.00","invoice_number":"INV-225-590740164","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 104, 'App\Models\User', 590740, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 429 - 2025-04-25 18:21:44 [0.19ms] */
update `transaction` set `party_vehicle_id` = 76037, `vehicle_tax_id` = 488387, `invoice_id` = 590740, `transaction`.`updated_at` = '2025-04-25 18:21:44' where `id` = 617034;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 430 - 2025-04-25 18:21:44 [0.2ms] */
select `id` from `term` where `year` < 2025 and `term`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 431 - 2025-04-25 18:21:44 [9.61ms] */
select * from `vehicle_tax` where `party_vehicle_id` = 76037 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): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 432 - 2025-04-25 18:21:44 [0.25ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 488376 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 433 - 2025-04-25 18:21:44 [0.18ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-25 18:21:44' where `id` = 488376;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 434 - 2025-04-25 18:21:44 [0.16ms] */
select * from `vehicle_tax` where `id` = 488376 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 435 - 2025-04-25 18:21:44 [0.19ms] */
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"}}', 104, 'App\Models\User', 488376, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 436 - 2025-04-25 18:21:44 [0.41ms] */
select * from `invoice` where `transaction_id` = 617023 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 437 - 2025-04-25 18:21:44 [0.16ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590729;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 438 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590729 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 439 - 2025-04-25 18:21:44 [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":[],"old":[]}', 104, 'App\Models\User', 590729, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 440 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 488377 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 441 - 2025-04-25 18:21:44 [0.16ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-25 18:21:44' where `id` = 488377;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 442 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `id` = 488377 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 443 - 2025-04-25 18:21:44 [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":{"exempt":"Y"},"old":{"exempt":"N"}}', 104, 'App\Models\User', 488377, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 444 - 2025-04-25 18:21:44 [0.2ms] */
select * from `invoice` where `transaction_id` = 617024 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 445 - 2025-04-25 18:21:44 [0.15ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590730;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 446 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590730 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 447 - 2025-04-25 18:21:44 [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":[],"old":[]}', 104, 'App\Models\User', 590730, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 448 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 488378 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 449 - 2025-04-25 18:21:44 [0.14ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-25 18:21:44' where `id` = 488378;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 450 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `id` = 488378 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 451 - 2025-04-25 18:21:44 [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":{"exempt":"Y"},"old":{"exempt":"N"}}', 104, 'App\Models\User', 488378, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 452 - 2025-04-25 18:21:44 [0.22ms] */
select * from `invoice` where `transaction_id` = 617025 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 453 - 2025-04-25 18:21:44 [0.15ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590731;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 454 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590731 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 455 - 2025-04-25 18:21:44 [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":[],"old":[]}', 104, 'App\Models\User', 590731, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 456 - 2025-04-25 18:21:44 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 488379 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 457 - 2025-04-25 18:21:44 [0.15ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-25 18:21:44' where `id` = 488379;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 458 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `id` = 488379 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 459 - 2025-04-25 18:21:44 [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":{"exempt":"Y"},"old":{"exempt":"N"}}', 104, 'App\Models\User', 488379, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 460 - 2025-04-25 18:21:44 [0.21ms] */
select * from `invoice` where `transaction_id` = 617026 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 461 - 2025-04-25 18:21:44 [0.15ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590732;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 462 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `id` = 590732 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 463 - 2025-04-25 18:21:44 [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":[],"old":[]}', 104, 'App\Models\User', 590732, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 464 - 2025-04-25 18:21:44 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 488380 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 465 - 2025-04-25 18:21:44 [0.15ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-25 18:21:44' where `id` = 488380;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 466 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `id` = 488380 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 467 - 2025-04-25 18:21:44 [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":{"exempt":"Y"},"old":{"exempt":"N"}}', 104, 'App\Models\User', 488380, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 468 - 2025-04-25 18:21:44 [0.21ms] */
select * from `invoice` where `transaction_id` = 617027 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 469 - 2025-04-25 18:21:44 [0.15ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590733;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 470 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590733 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 471 - 2025-04-25 18:21:44 [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":[],"old":[]}', 104, 'App\Models\User', 590733, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 472 - 2025-04-25 18:21:44 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 488381 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 473 - 2025-04-25 18:21:44 [0.15ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-25 18:21:44' where `id` = 488381;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 474 - 2025-04-25 18:21:44 [0.17ms] */
select * from `vehicle_tax` where `id` = 488381 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 475 - 2025-04-25 18:21:44 [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":{"exempt":"Y"},"old":{"exempt":"N"}}', 104, 'App\Models\User', 488381, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 476 - 2025-04-25 18:21:44 [0.21ms] */
select * from `invoice` where `transaction_id` = 617028 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 477 - 2025-04-25 18:21:44 [0.15ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590734;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 478 - 2025-04-25 18:21:44 [0.19ms] */
select * from `invoice` where `id` = 590734 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 479 - 2025-04-25 18:21:44 [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":[],"old":[]}', 104, 'App\Models\User', 590734, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 480 - 2025-04-25 18:21:44 [0.46ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 488382 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 481 - 2025-04-25 18:21:44 [0.37ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-25 18:21:44' where `id` = 488382;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 482 - 2025-04-25 18:21:44 [0.34ms] */
select * from `vehicle_tax` where `id` = 488382 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 483 - 2025-04-25 18:21:44 [0.39ms] */
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"}}', 104, 'App\Models\User', 488382, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 484 - 2025-04-25 18:21:44 [0.43ms] */
select * from `invoice` where `transaction_id` = 617029 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 485 - 2025-04-25 18:21:44 [0.33ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590735;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 486 - 2025-04-25 18:21:44 [0.36ms] */
select * from `invoice` where `id` = 590735 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 487 - 2025-04-25 18:21:44 [0.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":[]}', 104, 'App\Models\User', 590735, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 488 - 2025-04-25 18:21:44 [0.35ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 488383 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 489 - 2025-04-25 18:21:44 [0.29ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-25 18:21:44' where `id` = 488383;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 490 - 2025-04-25 18:21:44 [0.36ms] */
select * from `vehicle_tax` where `id` = 488383 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 491 - 2025-04-25 18:21:44 [0.35ms] */
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"}}', 104, 'App\Models\User', 488383, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 492 - 2025-04-25 18:21:44 [0.3ms] */
select * from `invoice` where `transaction_id` = 617030 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 493 - 2025-04-25 18:21:44 [0.15ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-25 18:21:44' where `id` = 590736;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 494 - 2025-04-25 18:21:44 [0.18ms] */
select * from `invoice` where `id` = 590736 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 495 - 2025-04-25 18:21:44 [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":[],"old":[]}', 104, 'App\Models\User', 590736, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 496 - 2025-04-25 18:21:44 [37.99ms] */
select * from `discount` where `vehicle_tax` = 488376 and `discount`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 497 - 2025-04-25 18:21:44 [0.59ms] */
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, '[488376,488377,488378,488379,488380,488381,488382,488383]', 24265, 15655, '2025-09-01 18:21:44', 104, 104, '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 498 - 2025-04-25 18:21:44 [0.21ms] */
select * from `discount` where `id` = 23519 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 499 - 2025-04-25 18:21:44 [0.39ms] */
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":24265,"amount":null,"expiry_date":"2025-09-01 18:21:44","party_id":15655,"service_id":2,"vehicle_tax":[488376,488377,488378,488379,488380,488381,488382,488383],"party_vehicle_id":null}}', 104, 'App\Models\User', 23519, 'Modules\Transaction\Entities\Discount', 'created', '2025-04-25 18:21:44', '2025-04-25 18:21:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 500 - 2025-04-25 18:21:44 [0.36ms] */
select * from `vehicle` where `vehicle`.`id` = 24265 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 501 - 2025-04-25 18:21:44 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 617021 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 502 - 2025-04-25 18:21:44 [0.29ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 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 503 - 2025-04-25 18:21:44 [0.22ms] */
select * from `invoice` where `transaction_id` = 617021 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 504 - 2025-04-25 18:21:44 [17.28ms] */
select * from `payment_documents` where `transaction_id` = 617021;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 505 - 2025-04-25 18:21:44 [0.7ms] */
select * from `party_vehicle_purchase` where `transaction_id` = 617021 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 506 - 2025-04-25 18:21:44 [0.17ms] */
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 507 - 2025-04-25 18:21:44 [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 508 - 2025-04-25 18:21:44 [0.34ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 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 509 - 2025-04-25 18:21:44 [395.58ms] */
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 510 - 2025-04-25 18:21:44 [0.29ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 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 511 - 2025-04-25 18:21:44 [0.14ms] */
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 512 - 2025-04-25 18:21:44 [0.13ms] */
select * from `transaction_workflow` where `transaction_id` = 617021 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 513 - 2025-04-25 18:21:44 [0.1ms] */
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-04-25 18:21:45 [1.33ms] */
select * from `users` where `id` = 104 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 2 - 2025-04-25 18:21:45 [0.43ms] */
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-04-25 18:21:45 [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-history-component
   Query 4 - 2025-04-25 18:21:45 [0.4ms] */
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-04-25 18:21:45 [0.21ms] */
