update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-03-08 07:24:12' where `id` = 123810;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-03-08 07:24:12 [0.38ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 17 - 2025-03-08 07:24:12 [0.51ms] */
select * from `vehicle_tax` where `transaction_id` = 123810 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-03-08 07:24:12 [0.34ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-03-08 07:24:12' where `id` = 121511;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-03-08 07:24:12 [0.36ms] */
select * from `vehicle_tax` where `id` = 121511 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-03-08 07:24:12 [0.36ms] */
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":"ISSUED"},"old":{"status":"PAID"}}', 5, 'App\Models\User', 121511, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:24:12', '2025-03-08 07:24:12');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-03-08 07:24:12 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 122582 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 22 - 2025-03-08 07:24:12 [0.48ms] */
select * from `transaction` where `transaction`.`id` = 123811 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 23 - 2025-03-08 07:24:12 [0.43ms] */
select * from `transaction` where `transaction`.`id` = 123811 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 24 - 2025-03-08 07:24:12 [0.28ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 25 - 2025-03-08 07:24:12 [0.26ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 26 - 2025-03-08 07:24:12 [0.29ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 27 - 2025-03-08 07:24:12 [0.29ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (123811, 'APPROVED', '2025-03-08 07:24:12', 8, 5, null, 5, 5, '2025-03-08 07:24:12', '2025-03-08 07:24:12');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 28 - 2025-03-08 07:24:12 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 29 - 2025-03-08 07:24:12 [0.5ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-03-08 07:24:12' where `id` = 123811;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 30 - 2025-03-08 07:24:12 [0.29ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 31 - 2025-03-08 07:24:12 [0.46ms] */
select * from `vehicle_tax` where `transaction_id` = 123811 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 32 - 2025-03-08 07:24:12 [0.33ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-03-08 07:24:12' where `id` = 121512;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 33 - 2025-03-08 07:24:12 [0.36ms] */
select * from `vehicle_tax` where `id` = 121512 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 34 - 2025-03-08 07:24:12 [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":"ISSUED"},"old":{"status":"PAID"}}', 5, 'App\Models\User', 121512, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:24:12', '2025-03-08 07:24:12');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 35 - 2025-03-08 07:24:12 [0.48ms] */
select * from `invoice` where `invoice`.`id` = 122583 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 36 - 2025-03-08 07:24:12 [0.39ms] */
select * from `transaction` where `transaction`.`id` = 233037 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 37 - 2025-03-08 07:24:12 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 233037 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 38 - 2025-03-08 07:24:12 [0.22ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 39 - 2025-03-08 07:24:12 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 40 - 2025-03-08 07:24:12 [0.22ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 41 - 2025-03-08 07:24:12 [0.3ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (233037, 'APPROVED', '2025-03-08 07:24:12', 8, 5, null, 5, 5, '2025-03-08 07:24:12', '2025-03-08 07:24:12');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 42 - 2025-03-08 07:24:12 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 43 - 2025-03-08 07:24:12 [0.99ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-03-08 07:24:12' where `id` = 233037;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 44 - 2025-03-08 07:24:12 [0.21ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 45 - 2025-03-08 07:24:12 [0.33ms] */
select * from `vehicle_tax` where `transaction_id` = 233037 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 46 - 2025-03-08 07:24:12 [0.27ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-03-08 07:24:12' where `id` = 189916;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 47 - 2025-03-08 07:24:12 [0.28ms] */
select * from `vehicle_tax` where `id` = 189916 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 48 - 2025-03-08 07:24:12 [0.26ms] */
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":"ISSUED"},"old":{"status":"PAID"}}', 5, 'App\Models\User', 189916, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:24:12', '2025-03-08 07:24:12');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 49 - 2025-03-08 07:24:12 [0.34ms] */
select * from `invoice` where `invoice`.`id` = 217527 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 50 - 2025-03-08 07:24:12 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 233038 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 51 - 2025-03-08 07:24:12 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 233038 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 52 - 2025-03-08 07:24:12 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 53 - 2025-03-08 07:24:12 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 54 - 2025-03-08 07:24:12 [0.14ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 55 - 2025-03-08 07:24:12 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (233038, 'APPROVED', '2025-03-08 07:24:12', 8, 5, null, 5, 5, '2025-03-08 07:24:12', '2025-03-08 07:24:12');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 56 - 2025-03-08 07:24:12 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 57 - 2025-03-08 07:24:12 [0.22ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-03-08 07:24:12' where `id` = 233038;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 58 - 2025-03-08 07:24:12 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 59 - 2025-03-08 07:24:12 [0.21ms] */
select * from `vehicle_tax` where `transaction_id` = 233038 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 60 - 2025-03-08 07:24:12 [0.15ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-03-08 07:24:12' where `id` = 189917;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 61 - 2025-03-08 07:24:12 [0.2ms] */
select * from `vehicle_tax` where `id` = 189917 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 62 - 2025-03-08 07:24:12 [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":"ISSUED"},"old":{"status":"PAID"}}', 5, 'App\Models\User', 189917, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:24:12', '2025-03-08 07:24:12');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 63 - 2025-03-08 07:24:12 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 217528 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-08 07:24:40 [1.31ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-08 07:24:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-08 07:24:40 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-08 07:24:40 [0.16ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-08 07:24:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-08 07:24:40 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-08 07:24:40 [1.11ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'GI556' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-08 07:24:40 [0.23ms] */
select * from `vehicle` where `id` = 87938 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-08 07:24:40 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 87938 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-03-08 07:24:41 [1.29ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-08 07:24:41 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-08 07:24:41 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-08 07:24:41 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-03-08 07:24:41 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-08 07:24:41 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-08 07:24:41 [0.29ms] */
select * from `vehicle` where `vehicle`.`id` = 87938 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-08 07:24:41 [0.23ms] */
select * from `vehicle` where `id` = 87938 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-03-08 07:24:41 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 87938 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-03-08 07:24:41 [0.78ms] */
select `vehicle_tax`.`id`, `term`.`year`, `term`.`quarter`, `invoice`.`invoice_amount`, `invoice`.`outstanding_balance`, `vehicle_tax`.`exempt`, `invoice`.`status`, `tax_sticker`.`name` as `tax_sticker`, CASE
                WHEN term.quarter = 1 THEN DATE_FORMAT(CONCAT(term.year, "-03-31"), "%d-%m-%Y")
                WHEN term.quarter = 2 THEN DATE_FORMAT(CONCAT(term.year, "-06-30"), "%d-%m-%Y")
                WHEN term.quarter = 3 THEN DATE_FORMAT(CONCAT(term.year, "-09-30"), "%d-%m-%Y")
                WHEN term.quarter = 4 THEN DATE_FORMAT(CONCAT(term.year, "-12-31"), "%d-%m-%Y")
                ELSE NULL
                END as due_date from `vehicle_tax` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `transaction` on `vehicle_tax`.`transaction_id` = `transaction`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `tax_sticker` on `vehicle_tax`.`tax_sticker_id` = `tax_sticker`.`id` where `vehicle_tax`.`vehicle_id` = 87938 and `vehicle_tax`.`deleted_at` is null and `transaction`.`deleted_at` is null and `invoice`.`deleted_at` is null order by `term`.`year` asc, `term`.`quarter` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-03-08 07:24:42 [1.32ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-03-08 07:24:42 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-03-08 07:24:42 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-03-08 07:24:42 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-03-08 07:24:42 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-03-08 07:24:42 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-03-08 07:24:42 [0.14ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-08 07:24:42 [1.27ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-08 07:24:42 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-08 07:24:42 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-08 07:24:42 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-08 07:24:42 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-08 07:24:42 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-08 07:24:42 [0.18ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-03-08 07:24:44 [1.33ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-08 07:24:44 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-08 07:24:44 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-03-08 07:24:44 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-03-08 07:24:44 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-08 07:24:44 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-03-08 07:24:44 [0.16ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-03-08 07:24:44 [0.3ms] */
select `transaction_id` from `vehicle_tax` where `id` in (147505, 147506, 147507, 147508, 159565, 159566, 159567) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-08 07:24:44 [0.42ms] */
select `parent_id` from `transaction` where `id` in (170227, 170228, 170229, 170230, 194389, 194390, 194391) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-08 07:24:44 [103.14ms] */
select `id` from `transaction` where `parent_id` in (170248) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-03-08 07:24:44 [0.36ms] */
select * from `transaction` where `id` in (170248) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-03-08 07:24:44 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 159693 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-08 07:24:44 [5.89ms] */
update `invoice` set `updated_by` = 5, `deleted_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:24:44' where `id` = 159693;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-03-08 07:24:44 [0.33ms] */
select * from `invoice` where `id` = 159693 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-03-08 07:24:44 [3.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 159693, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:24:44', '2025-03-08 07:24:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-08 07:24:44 [3.1ms] */
update `invoice` set `deleted_at` = '2025-03-08 07:24:44', `invoice`.`updated_at` = '2025-03-08 07:24:44' where `id` = 159693;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-03-08 07:24:44 [0.32ms] */
select * from `invoice` where `id` = 159693 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-03-08 07:24:44 [5.1ms] */
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":170248,"party_id":58008,"invoice_amount":"96.00","invoice_date":"2023-10-06 07:10:45","due_date":"2023-10-06 07:10:45","outstanding_balance":"96.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"96.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-775-159693190","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 159693, 'Modules\Transaction\Entities\Invoice', 'deleted', '2025-03-08 07:24:44', '2025-03-08 07:24:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-03-08 07:24:45 [4.01ms] */
update `transaction` set `updated_by` = 5, `deleted_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:24:44' where `id` = 170248;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-03-08 07:24:45 [9.82ms] */
update `transaction` set `deleted_at` = '2025-03-08 07:24:45', `transaction`.`updated_at` = '2025-03-08 07:24:45' where `id` = 170248;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-03-08 07:24:45 [0.83ms] */
select * from `transaction` where `id` in (170227, 170228, 170229, 170230, 194389, 194390, 194391) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-03-08 07:24:45 [0.75ms] */
select * from `invoice` where `invoice`.`id` = 159672 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-03-08 07:24:45 [4.7ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:24:45' where `id` = 159672;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-03-08 07:24:45 [0.56ms] */
select * from `invoice` where `id` = 159672 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-03-08 07:24:45 [3.1ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":null,"grouped":"N"},"old":{"parent_id":159693,"grouped":"Y"}}', 5, 'App\Models\User', 159672, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:24:45', '2025-03-08 07:24:45');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-03-08 07:24:45 [0.22ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-03-08 07:24:45 [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://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-03-08 07:24:45 [3.54ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:24:45' where `id` = 170227;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-03-08 07:24:45 [0.54ms] */
select * from `invoice` where `invoice`.`id` = 159673 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-03-08 07:24:45 [3.18ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:24:45' where `id` = 159673;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-03-08 07:24:45 [0.53ms] */
select * from `invoice` where `id` = 159673 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-03-08 07:24:45 [3.12ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":null,"grouped":"N"},"old":{"parent_id":159693,"grouped":"Y"}}', 5, 'App\Models\User', 159673, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:24:45', '2025-03-08 07:24:45');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-03-08 07:24:45 [0.21ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-03-08 07:24:45 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-03-08 07:24:45 [3.29ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:24:45' where `id` = 170228;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-03-08 07:24:45 [0.52ms] */
select * from `invoice` where `invoice`.`id` = 159674 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-03-08 07:24:45 [4.55ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:24:45' where `id` = 159674;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-03-08 07:24:45 [0.5ms] */
select * from `invoice` where `id` = 159674 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-03-08 07:24:45 [3.09ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":null,"grouped":"N"},"old":{"parent_id":159693,"grouped":"Y"}}', 5, 'App\Models\User', 159674, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:24:45', '2025-03-08 07:24:45');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-03-08 07:24:45 [0.2ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-03-08 07:24:45 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-03-08 07:24:45 [3.01ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:24:45' where `id` = 170229;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-03-08 07:24:45 [0.36ms] */
select * from `invoice` where `invoice`.`id` = 159675 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-03-08 07:24:45 [2.8ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:24:45' where `id` = 159675;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-03-08 07:24:45 [0.35ms] */
select * from `invoice` where `id` = 159675 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-03-08 07:24:45 [2.77ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":null,"grouped":"N"},"old":{"parent_id":159693,"grouped":"Y"}}', 5, 'App\Models\User', 159675, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:24:45', '2025-03-08 07:24:45');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-03-08 07:24:45 [0.2ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-03-08 07:24:45 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-03-08 07:24:45 [2.86ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:24:45' where `id` = 170230;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-03-08 07:24:45 [0.38ms] */
select * from `invoice` where `invoice`.`id` = 181130 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-03-08 07:24:45 [2.9ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:24:45' where `id` = 181130;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-03-08 07:24:45 [0.34ms] */
select * from `invoice` where `id` = 181130 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-03-08 07:24:45 [2.98ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 181130, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:24:45', '2025-03-08 07:24:45');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-03-08 07:24:45 [0.22ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-03-08 07:24:45 [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://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-03-08 07:24:45 [2.88ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:24:45' where `id` = 194389;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-03-08 07:24:45 [0.35ms] */
select * from `invoice` where `invoice`.`id` = 181131 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-03-08 07:24:45 [2.91ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:24:45' where `id` = 181131;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-03-08 07:24:45 [0.33ms] */
select * from `invoice` where `id` = 181131 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-03-08 07:24:45 [2.86ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 181131, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:24:45', '2025-03-08 07:24:45');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-03-08 07:24:45 [0.2ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-03-08 07:24:45 [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://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-03-08 07:24:45 [3ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:24:45' where `id` = 194390;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-03-08 07:24:45 [0.33ms] */
select * from `invoice` where `invoice`.`id` = 181132 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-03-08 07:24:45 [3.14ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:24:45' where `id` = 181132;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 66 - 2025-03-08 07:24:45 [0.39ms] */
select * from `invoice` where `id` = 181132 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-03-08 07:24:45 [2.93ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 181132, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:24:45', '2025-03-08 07:24:45');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-03-08 07:24:45 [0.24ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-03-08 07:24:45 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-03-08 07:24:45 [2.95ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:24:45' where `id` = 194391;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-03-08 07:24:45 [3.19ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-03-08 07:24:45' where `id` in (147505, 147506, 147507, 147508, 159565, 159566, 159567) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-03-08 07:24:45 [0.41ms] */
select * from `transaction` where `id` in (170248) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-03-08 07:24:45 [0.32ms] */
select `transaction_id` from `vehicle_tax` where `id` in (147505, 147506, 147507, 147508, 159565, 159566, 159567) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-03-08 07:24:45 [0.38ms] */
select * from `invoice` where `transaction_id` = 170227 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-03-08 07:24:45 [0.52ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 159672 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2025-03-08 07:24:45 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 170227 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 77 - 2025-03-08 07:24:45 [3.55ms] */
update `transaction` set `tax_collection_point_id` = null, `transaction`.`updated_at` = '2025-03-08 07:24:45' where `id` = 170227;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2025-03-08 07:24:45 [0.35ms] */
select * from `invoice` where `transaction_id` = 170228 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-03-08 07:24:45 [0.3ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 159673 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2025-03-08 07:24:45 [0.75ms] */
select * from `transaction` where `transaction`.`id` = 170228 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-03-08 07:24:45 [3.4ms] */
update `transaction` set `tax_collection_point_id` = null, `transaction`.`updated_at` = '2025-03-08 07:24:45' where `id` = 170228;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-03-08 07:24:45 [0.7ms] */
select * from `invoice` where `transaction_id` = 170229 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 83 - 2025-03-08 07:24:45 [0.63ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 159674 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 84 - 2025-03-08 07:24:45 [0.68ms] */
select * from `transaction` where `transaction`.`id` = 170229 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 85 - 2025-03-08 07:24:45 [3.51ms] */
update `transaction` set `tax_collection_point_id` = null, `transaction`.`updated_at` = '2025-03-08 07:24:45' where `id` = 170229;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 86 - 2025-03-08 07:24:45 [0.5ms] */
select * from `invoice` where `transaction_id` = 170230 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2025-03-08 07:24:45 [0.46ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 159675 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2025-03-08 07:24:45 [0.5ms] */
select * from `transaction` where `transaction`.`id` = 170230 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 89 - 2025-03-08 07:24:45 [3.12ms] */
update `transaction` set `tax_collection_point_id` = null, `transaction`.`updated_at` = '2025-03-08 07:24:45' where `id` = 170230;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 90 - 2025-03-08 07:24:45 [0.64ms] */
select * from `invoice` where `transaction_id` = 194389 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 91 - 2025-03-08 07:24:45 [0.51ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 181130 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 92 - 2025-03-08 07:24:45 [0.37ms] */
select * from `transaction` where `transaction`.`id` = 194389 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 93 - 2025-03-08 07:24:45 [0.32ms] */
select * from `invoice` where `transaction_id` = 194390 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 94 - 2025-03-08 07:24:45 [0.3ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 181131 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 95 - 2025-03-08 07:24:45 [0.37ms] */
select * from `transaction` where `transaction`.`id` = 194390 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 96 - 2025-03-08 07:24:45 [0.32ms] */
select * from `invoice` where `transaction_id` = 194391 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 97 - 2025-03-08 07:24:45 [0.3ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 181132 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2025-03-08 07:24:45 [0.35ms] */
select * from `transaction` where `transaction`.`id` = 194391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 99 - 2025-03-08 07:24:45 [0.23ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 100 - 2025-03-08 07:24:45 [0.2ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-08 07:24:45 [1.28ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-08 07:24:45 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-08 07:24:45 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-08 07:24:45 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-08 07:24:45 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-08 07:24:45 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-08 07:24:45 [0.18ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-08 07:25:15 [1.99ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-08 07:25:15 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-08 07:25:15 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-08 07:25:15 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-08 07:25:15 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-08 07:25:15 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-08 07:25:15 [0.27ms] */
delete from `payment_documents` where `transaction_id` = 194391 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-08 07:25:15 [0.29ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2498315;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-03-08 07:25:15 [5.98ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (194391, 'GOV_RECEIPT_IMAGE', 2498315, 1, '2025-03-08 07:25:15', '2025-03-08 07:25:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-08 07:25:48 [1.3ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-08 07:25:48 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-08 07:25:48 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-08 07:25:48 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-08 07:25:48 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-08 07:25:48 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-08 07:25:48 [0.28ms] */
delete from `payment_documents` where `transaction_id` = 194391 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-08 07:25:48 [0.28ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 2499120;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-08 07:26:08 [1.37ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-08 07:26:08 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-08 07:26:08 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-08 07:26:08 [0.2ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-08 07:26:08 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-08 07:26:08 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-08 07:26:08 [0.23ms] */
delete from `payment_documents` where `transaction_id` = 194391 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-08 07:26:08 [0.37ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 2499121;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-03-08 07:26:08 [12.03ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (194391, 'SERVICE_RECEIPT_IMAGE', 2499121, 1, '2025-03-08 07:26:08', '2025-03-08 07:26:08');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-03-08 07:26:23 [1.39ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-03-08 07:26:23 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-03-08 07:26:23 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-03-08 07:26:23 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-03-08 07:26:23 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-03-08 07:26:23 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-03-08 07:26:23 [0.64ms] */
select * from `transaction` where `transaction`.`id` = 194391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-03-08 07:26:23 [0.5ms] */
select * from `transaction` where `transaction`.`id` is null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-03-08 07:26:29 [1.31ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-03-08 07:26:29 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-03-08 07:26:29 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-03-08 07:26:29 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-03-08 07:26:29 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-03-08 07:26:29 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-03-08 07:26:29 [0.45ms] */
select * from `vehicle_tax` where `id` = 147505 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-03-08 07:26:29 [25.89ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 93 and `name` like '%2023-Q1%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-03-08 07:26:38 [1.38ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-03-08 07:26:38 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-03-08 07:26:38 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-03-08 07:26:38 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-03-08 07:26:38 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-03-08 07:26:38 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-03-08 07:26:40 [2ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-03-08 07:26:40 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-03-08 07:26:40 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-03-08 07:26:40 [0.3ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-03-08 07:26:40 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-03-08 07:26:40 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-03-08 07:26:40 [0.31ms] */
select * from `vehicle_tax` where `id` = 147505 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-03-08 07:26:40 [5.27ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 93 and `name` like '%2023-Q1%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-03-08 07:26:49 [1.73ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-03-08 07:26:49 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-03-08 07:26:49 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-03-08 07:26:49 [0.31ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-03-08 07:26:49 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-03-08 07:26:49 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-03-08 07:26:49 [0.93ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 416002 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-03-08 07:26:49 [0.17ms] */
select * from `vehicle_tax` where `id` = 147505 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-03-08 07:26:49 [15.62ms] */
update `vehicle_tax` set `updated_by` = 5, `tax_sticker_id` = 416002, `vehicle_tax`.`updated_at` = '2025-03-08 07:26:49' where `id` = 147505;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-03-08 07:26:49 [1.69ms] */
select * from `vehicle_tax` where `id` = 147505 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-03-08 07:26:49 [5.51ms] */
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":416002},"old":{"tax_sticker_id":null}}', 5, 'App\Models\User', 147505, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:26:49', '2025-03-08 07:26:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-03-08 07:26:49 [3.69ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 5, `tax_sticker`.`updated_at` = '2025-03-08 07:26:49' where `id` = 416002;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-03-08 07:26:51 [1.33ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-03-08 07:26:51 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-03-08 07:26:51 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-03-08 07:26:51 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-03-08 07:26:51 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 6 - 2025-03-08 07:26:51 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 7 - 2025-03-08 07:26:51 [0.44ms] */
select * from `vehicle_tax` where `id` in (147505, 147506, 147507, 147508, 159565, 159566, 159567) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 8 - 2025-03-08 07:26:51 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 170227 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 9 - 2025-03-08 07:26:51 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 170227 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 10 - 2025-03-08 07:26:51 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 11 - 2025-03-08 07:26:51 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 12 - 2025-03-08 07:26:51 [0.27ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 13 - 2025-03-08 07:26:51 [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 (170227, 'APPROVED', '2025-03-08 07:26:51', 5, 5, null, 5, 5, '2025-03-08 07:26:51', '2025-03-08 07:26:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 14 - 2025-03-08 07:26:51 [0.27ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 15 - 2025-03-08 07:26:51 [0.3ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:26:51' where `id` = 170227;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-03-08 07:26:51 [0.14ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 17 - 2025-03-08 07:26:51 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 159672 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-03-08 07:26:51 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 170228 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-03-08 07:26:51 [0.45ms] */
select * from `transaction` where `transaction`.`id` = 170228 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-03-08 07:26:51 [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://testtra.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-03-08 07:26:51 [0.24ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 22 - 2025-03-08 07:26:51 [0.27ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 23 - 2025-03-08 07:26:51 [0.36ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (170228, 'APPROVED', '2025-03-08 07:26:51', 5, 5, null, 5, 5, '2025-03-08 07:26:51', '2025-03-08 07:26:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 24 - 2025-03-08 07:26:51 [0.26ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 25 - 2025-03-08 07:26:51 [0.44ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:26:51' where `id` = 170228;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 26 - 2025-03-08 07:26:51 [0.32ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 27 - 2025-03-08 07:26:51 [0.35ms] */
select * from `invoice` where `invoice`.`id` = 159673 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 28 - 2025-03-08 07:26:51 [0.77ms] */
select * from `transaction` where `transaction`.`id` = 170229 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 29 - 2025-03-08 07:26:51 [0.48ms] */
select * from `transaction` where `transaction`.`id` = 170229 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 30 - 2025-03-08 07:26:51 [0.3ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 31 - 2025-03-08 07:26:51 [0.29ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 32 - 2025-03-08 07:26:51 [0.22ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 33 - 2025-03-08 07:26:51 [0.3ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (170229, 'APPROVED', '2025-03-08 07:26:51', 5, 5, null, 5, 5, '2025-03-08 07:26:51', '2025-03-08 07:26:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 34 - 2025-03-08 07:26:51 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 35 - 2025-03-08 07:26:51 [0.34ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:26:51' where `id` = 170229;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 36 - 2025-03-08 07:26:51 [0.23ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 37 - 2025-03-08 07:26:51 [0.31ms] */
select * from `invoice` where `invoice`.`id` = 159674 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 38 - 2025-03-08 07:26:51 [0.51ms] */
select * from `transaction` where `transaction`.`id` = 170230 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 39 - 2025-03-08 07:26:51 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 170230 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 40 - 2025-03-08 07:26:51 [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://testtra.puntlandgov.org/api/complete_transaction
   Query 41 - 2025-03-08 07:26:51 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 42 - 2025-03-08 07:26:51 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 43 - 2025-03-08 07:26:51 [0.3ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (170230, 'APPROVED', '2025-03-08 07:26:51', 5, 5, null, 5, 5, '2025-03-08 07:26:51', '2025-03-08 07:26:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 44 - 2025-03-08 07:26:51 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 45 - 2025-03-08 07:26:51 [0.33ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:26:51' where `id` = 170230;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 46 - 2025-03-08 07:26:51 [0.21ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 47 - 2025-03-08 07:26:51 [0.34ms] */
select * from `invoice` where `invoice`.`id` = 159675 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 48 - 2025-03-08 07:26:51 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 194389 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 49 - 2025-03-08 07:26:51 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 194389 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 50 - 2025-03-08 07:26:51 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 51 - 2025-03-08 07:26:51 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 52 - 2025-03-08 07:26:51 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 53 - 2025-03-08 07:26:51 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (194389, 'APPROVED', '2025-03-08 07:26:51', 5, 5, null, 5, 5, '2025-03-08 07:26:51', '2025-03-08 07:26:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 54 - 2025-03-08 07:26:51 [0.13ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 55 - 2025-03-08 07:26:51 [0.22ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:26:51' where `id` = 194389;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 56 - 2025-03-08 07:26:51 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 57 - 2025-03-08 07:26:51 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 181130 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 58 - 2025-03-08 07:26:51 [0.38ms] */
select * from `transaction` where `transaction`.`id` = 194390 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 59 - 2025-03-08 07:26:51 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 194390 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 60 - 2025-03-08 07:26:51 [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://testtra.puntlandgov.org/api/complete_transaction
   Query 61 - 2025-03-08 07:26:51 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 62 - 2025-03-08 07:26:51 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 63 - 2025-03-08 07:26:51 [0.29ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (194390, 'APPROVED', '2025-03-08 07:26:51', 5, 5, null, 5, 5, '2025-03-08 07:26:51', '2025-03-08 07:26:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 64 - 2025-03-08 07:26:51 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 65 - 2025-03-08 07:26:51 [0.34ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:26:51' where `id` = 194390;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 66 - 2025-03-08 07:26:51 [0.21ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 67 - 2025-03-08 07:26:51 [0.32ms] */
select * from `invoice` where `invoice`.`id` = 181131 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 68 - 2025-03-08 07:26:51 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 194391 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 69 - 2025-03-08 07:26:51 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 194391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 70 - 2025-03-08 07:26:51 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 71 - 2025-03-08 07:26:51 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 72 - 2025-03-08 07:26:51 [0.15ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 73 - 2025-03-08 07:26:51 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (194391, 'APPROVED', '2025-03-08 07:26:51', 5, 5, null, 5, 5, '2025-03-08 07:26:51', '2025-03-08 07:26:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 74 - 2025-03-08 07:26:51 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 75 - 2025-03-08 07:26:51 [0.22ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:26:51' where `id` = 194391;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 76 - 2025-03-08 07:26:51 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 77 - 2025-03-08 07:26:51 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 181132 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 1 - 2025-03-08 07:27:52 [1.3ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 2 - 2025-03-08 07:27:52 [0.45ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 3 - 2025-03-08 07:27:52 [0.33ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 4 - 2025-03-08 07:27:52 [0.33ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 5 - 2025-03-08 07:27:53 [562.87ms] */
select count(*) as aggregate from `vehicle` inner join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` where `vehicle`.`id` in (select `vehicle_tax`.`vehicle_id` from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`status` = 'OPEN' and `term`.`first_date_of_quarter` <= '2025-03-08 07:27:52') 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://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 6 - 2025-03-08 07:27:53 [426.74ms] */
select `vehicle`.* from `vehicle` inner join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` where `vehicle`.`id` in (select `vehicle_tax`.`vehicle_id` from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`status` = 'OPEN' and `term`.`first_date_of_quarter` <= '2025-03-08 07:27:52') 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 40;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 7 - 2025-03-08 07:27:53 [0.4ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 85456 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 8 - 2025-03-08 07:27:53 [0.3ms] */
select * from `party_vehicle` where `vehicle_id` = 85456 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 9 - 2025-03-08 07:27:53 [0.44ms] */
select * from `party` where `party`.`id` = 38857 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 10 - 2025-03-08 07:27:53 [0.42ms] */
select * from `person` where `person`.`id` = 38857 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 11 - 2025-03-08 07:27:53 [0.2ms] */
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://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 12 - 2025-03-08 07:27:53 [0.18ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 13 - 2025-03-08 07:27:53 [0.19ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 14 - 2025-03-08 07:27:53 [0.17ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 15 - 2025-03-08 07:27:53 [0.17ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 16 - 2025-03-08 07:27:53 [0.58ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 85456 and `term`.`first_date_of_quarter` <= '2025-03-08 07:27:53' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 17 - 2025-03-08 07:27:53 [0.2ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 18 - 2025-03-08 07:27:53 [0.31ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 86742 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 19 - 2025-03-08 07:27:53 [0.36ms] */
select * from `party_vehicle` where `vehicle_id` = 86742 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 20 - 2025-03-08 07:27:53 [0.34ms] */
select * from `party` where `party`.`id` = 54233 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 21 - 2025-03-08 07:27:53 [0.31ms] */
select * from `person` where `person`.`id` = 54233 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 22 - 2025-03-08 07:27:53 [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://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 23 - 2025-03-08 07:27:53 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 24 - 2025-03-08 07:27:53 [0.15ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 25 - 2025-03-08 07:27:53 [0.14ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 26 - 2025-03-08 07:27:53 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 25 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 27 - 2025-03-08 07:27:53 [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` = 86742 and `term`.`first_date_of_quarter` <= '2025-03-08 07:27:53' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 28 - 2025-03-08 07:27:53 [0.17ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 29 - 2025-03-08 07:27:53 [0.16ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 30 - 2025-03-08 07:27:53 [0.25ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 86492 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 31 - 2025-03-08 07:27:53 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 86492 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 32 - 2025-03-08 07:27:53 [0.28ms] */
select * from `party` where `party`.`id` = 54124 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 33 - 2025-03-08 07:27:53 [0.29ms] */
select * from `person` where `person`.`id` = 54124 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 34 - 2025-03-08 07:27:53 [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): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 35 - 2025-03-08 07:27:53 [0.2ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 36 - 2025-03-08 07:27:53 [0.18ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 37 - 2025-03-08 07:27:53 [0.17ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 38 - 2025-03-08 07:27:53 [0.17ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 24 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 39 - 2025-03-08 07:27:53 [0.75ms] */
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` = 86492 and `term`.`first_date_of_quarter` <= '2025-03-08 07:27:53' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 40 - 2025-03-08 07:27:53 [0.21ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 41 - 2025-03-08 07:27:53 [0.18ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 42 - 2025-03-08 07:27:53 [0.28ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 84960 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 43 - 2025-03-08 07:27:53 [0.34ms] */
select * from `party_vehicle` where `vehicle_id` = 84960 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 44 - 2025-03-08 07:27:53 [0.22ms] */
select * from `party` where `party`.`id` = 57721 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 45 - 2025-03-08 07:27:53 [0.2ms] */
select * from `company` where `company`.`id` = 2008 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 46 - 2025-03-08 07:27:53 [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): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 47 - 2025-03-08 07:27:53 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 48 - 2025-03-08 07:27:53 [0.14ms] */
select * from `model` where `model`.`id` = 1562 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 49 - 2025-03-08 07:27:53 [0.14ms] */
select * from `make` where `make`.`id` = 52 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 50 - 2025-03-08 07:27:53 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 51 - 2025-03-08 07:27:53 [0.51ms] */
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` = 84960 and `term`.`first_date_of_quarter` <= '2025-03-08 07:27:53' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 52 - 2025-03-08 07:27:53 [0.17ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 53 - 2025-03-08 07:27:53 [0.14ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 54 - 2025-03-08 07:27:53 [0.15ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 55 - 2025-03-08 07:27:53 [0.14ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 56 - 2025-03-08 07:27:53 [0.24ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 87264 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 57 - 2025-03-08 07:27:53 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 87264 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 58 - 2025-03-08 07:27:53 [0.27ms] */
select * from `party` where `party`.`id` = 54542 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 59 - 2025-03-08 07:27:53 [0.29ms] */
select * from `person` where `person`.`id` = 54542 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 60 - 2025-03-08 07:27:53 [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://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 61 - 2025-03-08 07:27:53 [0.15ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 62 - 2025-03-08 07:27:53 [0.15ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 63 - 2025-03-08 07:27:53 [0.14ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 64 - 2025-03-08 07:27:53 [0.25ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 25 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 65 - 2025-03-08 07:27:53 [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` = 87264 and `term`.`first_date_of_quarter` <= '2025-03-08 07:27:53' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 66 - 2025-03-08 07:27:53 [0.25ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 67 - 2025-03-08 07:27:53 [0.21ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 68 - 2025-03-08 07:27:53 [0.19ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 69 - 2025-03-08 07:27:53 [0.2ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 70 - 2025-03-08 07:27:53 [0.19ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 71 - 2025-03-08 07:27:53 [0.31ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 85485 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 72 - 2025-03-08 07:27:53 [0.38ms] */
select * from `party_vehicle` where `vehicle_id` = 85485 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 73 - 2025-03-08 07:27:53 [0.39ms] */
select * from `party` where `party`.`id` = 33790 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 74 - 2025-03-08 07:27:53 [0.39ms] */
select * from `person` where `person`.`id` = 33790 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 75 - 2025-03-08 07:27:53 [0.2ms] */
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://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 76 - 2025-03-08 07:27:53 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 77 - 2025-03-08 07:27:53 [0.42ms] */
select * from `model` where `model`.`id` = 1298 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 78 - 2025-03-08 07:27:53 [0.19ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 79 - 2025-03-08 07:27:53 [0.17ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 80 - 2025-03-08 07:27:53 [0.7ms] */
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` = 85485 and `term`.`first_date_of_quarter` <= '2025-03-08 07:27:53' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 81 - 2025-03-08 07:27:53 [0.21ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 82 - 2025-03-08 07:27:53 [0.17ms] */
select * from `term` where `term`.`id` = 94 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 83 - 2025-03-08 07:27:53 [0.18ms] */
select * from `term` where `term`.`id` = 95 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 84 - 2025-03-08 07:27:53 [0.17ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 85 - 2025-03-08 07:27:53 [0.17ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 86 - 2025-03-08 07:27:53 [0.17ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 87 - 2025-03-08 07:27:53 [0.18ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 88 - 2025-03-08 07:27:53 [0.14ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 89 - 2025-03-08 07:27:53 [0.26ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 84213 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 90 - 2025-03-08 07:27:53 [0.31ms] */
select * from `party_vehicle` where `vehicle_id` = 84213 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 91 - 2025-03-08 07:27:53 [0.18ms] */
select * from `party` where `party`.`id` = 57876 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 92 - 2025-03-08 07:27:53 [0.15ms] */
select * from `company` where `company`.`id` = 2163 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 93 - 2025-03-08 07:27:53 [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): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 94 - 2025-03-08 07:27:53 [0.15ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 95 - 2025-03-08 07:27:53 [0.17ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 96 - 2025-03-08 07:27:53 [0.14ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 97 - 2025-03-08 07:27:53 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 24 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 98 - 2025-03-08 07:27:53 [0.57ms] */
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` = 84213 and `term`.`first_date_of_quarter` <= '2025-03-08 07:27:53' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 99 - 2025-03-08 07:27:53 [0.16ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 100 - 2025-03-08 07:27:53 [0.15ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 101 - 2025-03-08 07:27:53 [0.27ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 84214 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 102 - 2025-03-08 07:27:53 [0.3ms] */
select * from `party_vehicle` where `vehicle_id` = 84214 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 103 - 2025-03-08 07:27:53 [0.18ms] */
select * from `party` where `party`.`id` = 57876 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 104 - 2025-03-08 07:27:53 [0.15ms] */
select * from `company` where `company`.`id` = 2163 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 105 - 2025-03-08 07:27:53 [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): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 106 - 2025-03-08 07:27:53 [0.15ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 107 - 2025-03-08 07:27:53 [0.14ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 108 - 2025-03-08 07:27:53 [0.14ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 109 - 2025-03-08 07:27:53 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 24 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 110 - 2025-03-08 07:27:53 [0.38ms] */
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` = 84214 and `term`.`first_date_of_quarter` <= '2025-03-08 07:27:53' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 111 - 2025-03-08 07:27:53 [0.26ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 85238 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 112 - 2025-03-08 07:27:53 [0.3ms] */
select * from `party_vehicle` where `vehicle_id` = 85238 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 113 - 2025-03-08 07:27:53 [0.17ms] */
select * from `party` where `party`.`id` = 57876 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 114 - 2025-03-08 07:27:53 [0.15ms] */
select * from `company` where `company`.`id` = 2163 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 115 - 2025-03-08 07:27:53 [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): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 116 - 2025-03-08 07:27:53 [0.15ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 117 - 2025-03-08 07:27:53 [0.14ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 118 - 2025-03-08 07:27:53 [0.14ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 119 - 2025-03-08 07:27:53 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 120 - 2025-03-08 07:27:53 [0.5ms] */
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` = 85238 and `term`.`first_date_of_quarter` <= '2025-03-08 07:27:53' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 121 - 2025-03-08 07:27:53 [0.16ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 122 - 2025-03-08 07:27:53 [0.14ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 123 - 2025-03-08 07:27:53 [0.27ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 87033 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 124 - 2025-03-08 07:27:53 [0.29ms] */
select * from `party_vehicle` where `vehicle_id` = 87033 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 125 - 2025-03-08 07:27:53 [0.27ms] */
select * from `party` where `party`.`id` = 54369 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 126 - 2025-03-08 07:27:53 [0.31ms] */
select * from `person` where `person`.`id` = 54369 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 127 - 2025-03-08 07:27:53 [0.22ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 128 - 2025-03-08 07:27:53 [0.21ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 129 - 2025-03-08 07:27:53 [0.26ms] */
select * from `model` where `model`.`id` = 1356 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 130 - 2025-03-08 07:27:53 [0.2ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 131 - 2025-03-08 07:27:53 [0.19ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 132 - 2025-03-08 07:27:54 [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` = 87033 and `term`.`first_date_of_quarter` <= '2025-03-08 07:27:53' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 133 - 2025-03-08 07:27:54 [0.27ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 134 - 2025-03-08 07:27:54 [0.21ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 135 - 2025-03-08 07:27:54 [0.2ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-08 07:28:02 [1.34ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-08 07:28:02 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-08 07:28:02 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-08 07:28:02 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-08 07:28:02 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-08 07:28:02 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-08 07:28:02 [1.85ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'NC982' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-08 07:28:02 [0.61ms] */
select * from `vehicle` where `id` = 84213 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-08 07:28:02 [0.49ms] */
select * from `party_vehicle` where `vehicle_id` = 84213 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-03-08 07:28:03 [1.41ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-08 07:28:03 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-08 07:28:03 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-08 07:28:03 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-03-08 07:28:03 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-08 07:28:03 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-08 07:28:03 [0.29ms] */
select * from `vehicle` where `vehicle`.`id` = 84213 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-08 07:28:03 [0.22ms] */
select * from `vehicle` where `id` = 84213 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-03-08 07:28:03 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 84213 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-03-08 07:28:03 [0.86ms] */
select `vehicle_tax`.`id`, `term`.`year`, `term`.`quarter`, `invoice`.`invoice_amount`, `invoice`.`outstanding_balance`, `vehicle_tax`.`exempt`, `invoice`.`status`, `tax_sticker`.`name` as `tax_sticker`, CASE
                WHEN term.quarter = 1 THEN DATE_FORMAT(CONCAT(term.year, "-03-31"), "%d-%m-%Y")
                WHEN term.quarter = 2 THEN DATE_FORMAT(CONCAT(term.year, "-06-30"), "%d-%m-%Y")
                WHEN term.quarter = 3 THEN DATE_FORMAT(CONCAT(term.year, "-09-30"), "%d-%m-%Y")
                WHEN term.quarter = 4 THEN DATE_FORMAT(CONCAT(term.year, "-12-31"), "%d-%m-%Y")
                ELSE NULL
                END as due_date from `vehicle_tax` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `transaction` on `vehicle_tax`.`transaction_id` = `transaction`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `tax_sticker` on `vehicle_tax`.`tax_sticker_id` = `tax_sticker`.`id` where `vehicle_tax`.`vehicle_id` = 84213 and `vehicle_tax`.`deleted_at` is null and `transaction`.`deleted_at` is null and `invoice`.`deleted_at` is null order by `term`.`year` asc, `term`.`quarter` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-03-08 07:28:04 [2.09ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-03-08 07:28:04 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-03-08 07:28:04 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-03-08 07:28:04 [0.27ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-03-08 07:28:04 [0.24ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-03-08 07:28:04 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-03-08 07:28:04 [0.19ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-08 07:28:04 [1.3ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-08 07:28:04 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-08 07:28:04 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-08 07:28:04 [0.18ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-08 07:28:04 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-08 07:28:04 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-08 07:28:04 [0.19ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-03-08 07:28:06 [2.26ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-08 07:28:06 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-08 07:28:06 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-03-08 07:28:06 [0.56ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-03-08 07:28:06 [0.31ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-08 07:28:06 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-03-08 07:28:06 [0.28ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-03-08 07:28:06 [0.57ms] */
select `transaction_id` from `vehicle_tax` where `id` in (191246, 191247) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-08 07:28:06 [0.33ms] */
select `parent_id` from `transaction` where `id` in (234729, 234730) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-08 07:28:06 [0.15ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-03-08 07:28:06 [0.21ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-03-08 07:28:06 [0.24ms] */
select * from `transaction` where `id` in (234729, 234730) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-08 07:28:06 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 219160 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-03-08 07:28:06 [11.7ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:28:06' where `id` = 219160;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-03-08 07:28:06 [0.34ms] */
select * from `invoice` where `id` = 219160 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-08 07:28:06 [3.6ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 219160, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-03-08 07:28:06 [0.23ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-03-08 07:28:06 [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://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-03-08 07:28:06 [3.23ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:28:06' where `id` = 234729;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-03-08 07:28:06 [0.34ms] */
select * from `invoice` where `invoice`.`id` = 219161 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-03-08 07:28:06 [3.26ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:28:06' where `id` = 219161;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-03-08 07:28:06 [0.31ms] */
select * from `invoice` where `id` = 219161 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-03-08 07:28:06 [3.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 219161, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-03-08 07:28:06 [0.21ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-03-08 07:28:06 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-03-08 07:28:06 [5.08ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:28:06' where `id` = 234730;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-03-08 07:28:06 [3.41ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-03-08 07:28:06' where `id` in (191246, 191247) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-03-08 07:28:06 [0.46ms] */
select * from `vehicle` where `vehicle`.`id` = 84213 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-03-08 07:28:06 [0.22ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-03-08 07:28:06 [0.35ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 84213 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-03-08 07:28:06 [0.34ms] */
select * from `party_vehicle` where `vehicle_id` = 84213 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-03-08 07:28:06 [0.23ms] */
select * from `party` where `party`.`id` = 57876 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-03-08 07:28:06 [0.21ms] */
select * from `vehicle` where `vehicle`.`id` = 84213 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-03-08 07:28:06 [0.13ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-03-08 07:28:06 [0.14ms] */
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://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-03-08 07:28:06 [0.62ms] */
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 (57876, 2, 84213, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-03-08 07:28:06 [0.33ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510540, 'INITIATED', '2025-03-08 07:28:06', 5, 5, 5, 5, '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-03-08 07:28:06 [0.19ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 31656, `transaction`.`updated_at` = '2025-03-08 07:28:06' where `id` = 510540;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-03-08 07:28:06 [0.25ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (191246, 191247) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-03-08 07:28:06 [0.21ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (191246, 191247) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-03-08 07:28:06 [0.27ms] */
insert into `invoice` (`transaction_id`, `party_id`, `invoice_date`, `due_date`, `invoice_amount`, `discounts`, `total_invoice_amount`, `outstanding_balance`, `taxes`, `status`, `grouped`, `parent`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510540, 57876, '2025-03-08 07:28:06', '2025-03-08 07:28:06', 48.00, 0, 48.00, 48.00, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-03-08 07:28:06 [0.2ms] */
select * from `invoice` where `id` = 486223 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-03-08 07:28:06 [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":510540,"party_id":57876,"invoice_amount":"48.00","invoice_date":"2025-03-08 07:28:06","due_date":"2025-03-08 07:28:06","outstanding_balance":"48.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"48.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 486223, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-03-08 07:28:06 [0.26ms] */
select `invoice`.* from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (191246, 191247) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-03-08 07:28:06 [0.25ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Tax Service Fee', 'Combined Quarterly Tax Fees', 2, 24.00, 48, 486223, 5, 5, '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-03-08 07:28:06 [0.17ms] */
select * from `invoice_item` where `id` = 872005 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-03-08 07:28:06 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Quarterly Tax Fees","unit_price":"24.00","quantity":2,"total_price":"48.00","invoice_id":486223}}', 5, 'App\Models\User', 872005, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-03-08 07:28:06 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-759-486223965', `invoice`.`updated_at` = '2025-03-08 07:28:06' where `id` = 486223;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-03-08 07:28:06 [0.18ms] */
select * from `invoice` where `id` = 486223 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-03-08 07:28:06 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-759-486223965"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 486223, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-03-08 07:28:06 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 191246 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-03-08 07:28:06 [0.16ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-03-08 07:28:06' where `id` = 191246;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-03-08 07:28:06 [0.17ms] */
select * from `vehicle_tax` where `id` = 191246 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-03-08 07:28:06 [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":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 191246, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-03-08 07:28:06 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 234729 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-03-08 07:28:06 [0.18ms] */
update `transaction` set `parent_id` = 510540, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-08 07:28:06' where `id` = 234729;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-03-08 07:28:06 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 219160 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-03-08 07:28:06 [0.16ms] */
update `invoice` set `parent_id` = 486223, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-08 07:28:06' where `id` = 219160;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-03-08 07:28:06 [0.18ms] */
select * from `invoice` where `id` = 219160 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-03-08 07:28:06 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":486223,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 219160, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-03-08 07:28:06 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 234729 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-03-08 07:28:06 [0.19ms] */
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://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-03-08 07:28:06 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-03-08 07:28:06 [0.19ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-03-08 07:28:06 [0.37ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 66 - 2025-03-08 07:28:06 [0.17ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-03-08 07:28:06 [0.36ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (234729, 'APPROVED', '2025-03-08 07:28:06', 5, 5, null, 5, 5, '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-03-08 07:28:06 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-03-08 07:28:06 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:28:06' where `id` = 234729;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-03-08 07:28:06 [0.17ms] */
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://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-03-08 07:28:06 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 219160 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-03-08 07:28:06 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 191247 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-03-08 07:28:06 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-03-08 07:28:06' where `id` = 191247;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-03-08 07:28:06 [0.17ms] */
select * from `vehicle_tax` where `id` = 191247 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-03-08 07:28:06 [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":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 191247, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2025-03-08 07:28:06 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 234730 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 77 - 2025-03-08 07:28:06 [0.18ms] */
update `transaction` set `parent_id` = 510540, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-08 07:28:06' where `id` = 234730;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2025-03-08 07:28:06 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 219161 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-03-08 07:28:06 [0.16ms] */
update `invoice` set `parent_id` = 486223, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-08 07:28:06' where `id` = 219161;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2025-03-08 07:28:06 [0.18ms] */
select * from `invoice` where `id` = 219161 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-03-08 07:28:06 [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":{"parent_id":486223,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 219161, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-03-08 07:28:06 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 234730 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 83 - 2025-03-08 07:28:06 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 84 - 2025-03-08 07:28:06 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 85 - 2025-03-08 07:28:06 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 86 - 2025-03-08 07:28:06 [0.16ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2025-03-08 07:28:06 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (234730, 'APPROVED', '2025-03-08 07:28:06', 5, 5, null, 5, 5, '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2025-03-08 07:28:06 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 89 - 2025-03-08 07:28:06 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:28:06' where `id` = 234730;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 90 - 2025-03-08 07:28:06 [0.17ms] */
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://testtra.puntlandgov.org/api/make_payment
   Query 91 - 2025-03-08 07:28:06 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 219161 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 92 - 2025-03-08 07:28:06 [0.17ms] */
update `transaction` set `invoice_id` = 486223, `transaction`.`updated_at` = '2025-03-08 07:28:06' where `id` = 510540;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 93 - 2025-03-08 07:28:06 [0.29ms] */
update `vehicle` set `updated_by` = 5, `vehicle`.`updated_at` = '2025-03-08 07:28:06' where `id` = 84213;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 94 - 2025-03-08 07:28:06 [0.18ms] */
select * from `vehicle` where `id` = 84213 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 95 - 2025-03-08 07:28:06 [0.31ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 84213, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 96 - 2025-03-08 07:28:06 [0.56ms] */
insert into `audits` (`old_values`, `new_values`, `event`, `auditable_id`, `auditable_type`, `user_id`, `user_type`, `tags`, `ip_address`, `user_agent`, `url`, `updated_at`, `created_at`) values ('{"updated_by":1}', '{"updated_by":5}', 'updated', 84213, 'Modules\Vehicle\Entities\Vehicle', 5, 'App\Models\User', null, '157.49.104.70', 'Dart/3.4 (dart:io)', 'https://testtra.puntlandgov.org/api/make_payment', '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 97 - 2025-03-08 07:28:06 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 510540 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2025-03-08 07:28:06 [0.18ms] */
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://testtra.puntlandgov.org/api/make_payment
   Query 99 - 2025-03-08 07:28:06 [0.19ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 100 - 2025-03-08 07:28:06 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 101 - 2025-03-08 07:28:06 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510540, 'APPROVED', '2025-03-08 07:28:06', 5, 5, null, 5, 5, '2025-03-08 07:28:06', '2025-03-08 07:28:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 102 - 2025-03-08 07:28:06 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 103 - 2025-03-08 07:28:06 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:28:06' where `id` = 510540;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 104 - 2025-03-08 07:28:06 [0.17ms] */
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://testtra.puntlandgov.org/api/make_payment
   Query 105 - 2025-03-08 07:28:06 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486223 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 106 - 2025-03-08 07:28:06 [0.24ms] */
select `transaction_id` from `vehicle_tax` where `id` in (191246, 191247) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 107 - 2025-03-08 07:28:06 [0.3ms] */
select * from `invoice` where `transaction_id` = 234729 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 108 - 2025-03-08 07:28:06 [0.47ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 219160 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 109 - 2025-03-08 07:28:06 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 234729 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 110 - 2025-03-08 07:28:06 [0.34ms] */
select * from `invoice` where `transaction_id` = 234730 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 111 - 2025-03-08 07:28:06 [0.35ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 219161 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 112 - 2025-03-08 07:28:06 [0.35ms] */
select * from `transaction` where `transaction`.`id` = 234730 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 113 - 2025-03-08 07:28:06 [0.21ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 114 - 2025-03-08 07:28:06 [0.2ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-08 07:28:06 [1.9ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-08 07:28:06 [0.24ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-08 07:28:06 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-08 07:28:06 [0.31ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-08 07:28:06 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-08 07:28:06 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-08 07:28:06 [0.37ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-08 07:28:42 [1.82ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-08 07:28:42 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-08 07:28:42 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-08 07:28:42 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-08 07:28:42 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-08 07:28:42 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-08 07:28:42 [0.25ms] */
delete from `payment_documents` where `transaction_id` = 234730 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-08 07:28:42 [0.3ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2498315;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-08 07:29:05 [1.33ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-08 07:29:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-08 07:29:05 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-08 07:29:05 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-08 07:29:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-08 07:29:05 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-08 07:29:05 [0.26ms] */
delete from `payment_documents` where `transaction_id` = 234730 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-08 07:29:05 [0.27ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2498316;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-03-08 07:29:05 [3.23ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (234730, 'GOV_RECEIPT_IMAGE', 2498316, 1, '2025-03-08 07:29:05', '2025-03-08 07:29:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-08 07:29:48 [2.04ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-08 07:29:48 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-08 07:29:48 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-08 07:29:48 [0.32ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-08 07:29:48 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-08 07:29:48 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-08 07:29:48 [0.25ms] */
delete from `payment_documents` where `transaction_id` = 234730 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-08 07:29:48 [0.24ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 2499122;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-03-08 07:29:48 [11.5ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (234730, 'SERVICE_RECEIPT_IMAGE', 2499122, 1, '2025-03-08 07:29:48', '2025-03-08 07:29:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-03-08 07:30:17 [1.32ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-03-08 07:30:17 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-03-08 07:30:17 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-03-08 07:30:17 [0.22ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-03-08 07:30:17 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-03-08 07:30:17 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-03-08 07:30:17 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 234730 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-03-08 07:30:17 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 510540 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-03-08 07:30:17 [0.33ms] */
select * from `invoice_payment` where `invoice_id` = 486223 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-03-08 07:30:17 [101.89ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 510540 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-03-08 07:30:17 [108.4ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 510540 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-03-08 07:30:18 [0.4ms] */
select * from `transaction` where `transaction`.`id` = 510540 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-03-08 07:30:18 [0.28ms] */
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://testtra.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-03-08 07:30:18 [0.3ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 15 - 2025-03-08 07:30:18 [0.25ms] */
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://testtra.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-03-08 07:30:18 [121.04ms] */
select sum(`invoice`.`invoice_amount`) as aggregate 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 `transaction`.`parent_id` = 510540 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 17 - 2025-03-08 07:30:18 [0.31ms] */
select * from `party` where `party`.`id` = 57876 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 18 - 2025-03-08 07:30:18 [0.63ms] */
insert into `Payment` (`payment_date`, `external_payment_reference_no`, `payment_receipt_number`, `payment_method_id`, `payment_amount`, `paid_by`, `paid_by_mobile`, `siinpay_payref_number`, `district_id`, `payment_collected_by`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('2025-03-08 07:30:18', '#67CBC7DA1F6C3', 2498316, 1, 48.00, 'ajith', 7654321, null, 37, 5, 5, 5, '2025-03-08 07:30:18', '2025-03-08 07:30:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-03-08 07:30:18 [0.27ms] */
select * from `Payment` where `id` = 177516 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-03-08 07:30:18 [0.32ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('Payment', '{"attributes":{"payment_method_id":1,"payment_amount":"48.00","payment_date":"2025-03-08 07:30:18","external_payment_reference_no":"#67CBC7DA1F6C3","payment_receipt_number":"2498316","siinpay_payref_number":null,"paid_by":"ajith","paid_by_mobile":"7654321","district_id":37,"migration_id":null,"payment_collected_by":5}}', 5, 'App\Models\User', 177516, 'Modules\Transaction\Entities\Payment', 'created', '2025-03-08 07:30:18', '2025-03-08 07:30:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-03-08 07:30:18 [0.59ms] */
select * from `transaction` where `transaction`.`id` = 510540 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-03-08 07:30:18 [0.3ms] */
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://testtra.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-03-08 07:30:18 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-03-08 07:30:18 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 219160 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-03-08 07:30:18 [0.29ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-03-08 07:30:18', 219160, 177516, '2025-03-08 07:30:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-03-08 07:30:18 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 219160 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-03-08 07:30:18 [0.29ms] */
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` = 219160 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-03-08 07:30:18 [0.27ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 219160 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 29 - 2025-03-08 07:30:18 [0.2ms] */
update `invoice` set `invoice_amount` = 24, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 24, `status` = 'PAID', `invoice`.`updated_at` = '2025-03-08 07:30:18' where `id` = 219160;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-03-08 07:30:18 [0.19ms] */
select * from `invoice` where `id` = 219160 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-03-08 07:30:18 [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":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"24.00","status":"OPEN"}}', 5, 'App\Models\User', 219160, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:30:18', '2025-03-08 07:30:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-03-08 07:30:18 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 234729 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-03-08 07:30:18 [0.15ms] */
select * from `transaction` where `transaction`.`id` = 234729 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-03-08 07:30:18 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 35 - 2025-03-08 07:30:18 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 36 - 2025-03-08 07:30:18 [0.16ms] */
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://testtra.puntlandgov.org/api/confirm_payment
   Query 37 - 2025-03-08 07:30:18 [0.21ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (234729, 'PAID', '2025-03-08 07:30:18', 7, 5, null, 5, 5, '2025-03-08 07:30:18', '2025-03-08 07:30:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-03-08 07:30:18 [0.14ms] */
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://testtra.puntlandgov.org/api/confirm_payment
   Query 39 - 2025-03-08 07:30:18 [0.44ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-03-08 07:30:18' where `id` = 234729;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-03-08 07:30:18 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 41 - 2025-03-08 07:30:18 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 219160 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 42 - 2025-03-08 07:30:18 [0.29ms] */
select * from `vehicle_tax` where `transaction_id` = 234729 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-03-08 07:30:18 [0.16ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-03-08 07:30:18' where `id` = 191246;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-03-08 07:30:18 [0.18ms] */
select * from `vehicle_tax` where `id` = 191246 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-03-08 07:30:18 [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":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 191246, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:30:18', '2025-03-08 07:30:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-03-08 07:30:18 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 219161 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 47 - 2025-03-08 07:30:18 [0.16ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-03-08 07:30:18', 219161, 177516, '2025-03-08 07:30:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-03-08 07:30:18 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 219161 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-03-08 07:30:18 [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` = 219161 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-03-08 07:30:18 [0.22ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 219161 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-03-08 07:30:18 [0.18ms] */
update `invoice` set `invoice_amount` = 24, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 24, `status` = 'PAID', `invoice`.`updated_at` = '2025-03-08 07:30:18' where `id` = 219161;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-03-08 07:30:18 [0.19ms] */
select * from `invoice` where `id` = 219161 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-03-08 07:30:18 [0.16ms] */
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":"24.00","status":"OPEN"}}', 5, 'App\Models\User', 219161, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:30:18', '2025-03-08 07:30:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-03-08 07:30:18 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 234730 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-03-08 07:30:18 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 234730 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-03-08 07:30:18 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-03-08 07:30:18 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 58 - 2025-03-08 07:30:18 [0.19ms] */
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://testtra.puntlandgov.org/api/confirm_payment
   Query 59 - 2025-03-08 07:30:18 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (234730, 'PAID', '2025-03-08 07:30:18', 7, 5, null, 5, 5, '2025-03-08 07:30:18', '2025-03-08 07:30:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-03-08 07:30:18 [0.2ms] */
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://testtra.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-03-08 07:30:18 [0.52ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-03-08 07:30:18' where `id` = 234730;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-03-08 07:30:18 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-03-08 07:30:18 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 219161 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-03-08 07:30:18 [0.2ms] */
select * from `vehicle_tax` where `transaction_id` = 234730 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-03-08 07:30:18 [0.15ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-03-08 07:30:18' where `id` = 191247;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 66 - 2025-03-08 07:30:18 [0.18ms] */
select * from `vehicle_tax` where `id` = 191247 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-03-08 07:30:18 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 191247, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:30:18', '2025-03-08 07:30:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 68 - 2025-03-08 07:30:18 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 486223 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 69 - 2025-03-08 07:30:18 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 486223 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 70 - 2025-03-08 07:30:18 [0.16ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-03-08 07:30:18', 486223, 177516, '2025-03-08 07:30:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 71 - 2025-03-08 07:30:18 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486223 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 72 - 2025-03-08 07:30:18 [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` = 486223 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 73 - 2025-03-08 07:30:18 [0.16ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-03-08 07:30:18' where `id` = 486223;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 74 - 2025-03-08 07:30:18 [0.19ms] */
select * from `invoice` where `id` = 486223 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 75 - 2025-03-08 07:30:18 [0.16ms] */
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":"48.00","status":"OPEN"}}', 5, 'App\Models\User', 486223, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:30:18', '2025-03-08 07:30:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 76 - 2025-03-08 07:30:18 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 510540 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 77 - 2025-03-08 07:30:18 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 510540 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 78 - 2025-03-08 07:30:18 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 79 - 2025-03-08 07:30:18 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 80 - 2025-03-08 07:30:18 [0.18ms] */
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://testtra.puntlandgov.org/api/confirm_payment
   Query 81 - 2025-03-08 07:30:18 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510540, 'PAID', '2025-03-08 07:30:18', 7, 5, null, 5, 5, '2025-03-08 07:30:18', '2025-03-08 07:30:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 82 - 2025-03-08 07:30:18 [0.2ms] */
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://testtra.puntlandgov.org/api/confirm_payment
   Query 83 - 2025-03-08 07:30:18 [0.19ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-03-08 07:30:18' where `id` = 510540;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 84 - 2025-03-08 07:30:18 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 85 - 2025-03-08 07:30:18 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486223 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 86 - 2025-03-08 07:30:18 [5.48ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-03-08 07:30:18' where `receipt_number` = 2498316 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 87 - 2025-03-08 07:30:18 [4.79ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-03-08 07:30:18' where `receipt_number` = 2499122 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-08 07:30:20 [1.34ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-08 07:30:20 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-08 07:30:20 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-08 07:30:20 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-08 07:30:20 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-08 07:30:20 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-08 07:30:20 [3.49ms] */
select * from `receipts` where `used` = 'No' and `user_id` = 5 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-03-08 07:30:58 [2.04ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-03-08 07:30:58 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-03-08 07:30:58 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-03-08 07:30:58 [0.25ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-03-08 07:30:58 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-03-08 07:30:58 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-03-08 07:30:58 [0.46ms] */
select * from `vehicle_tax` where `id` = 191246 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-03-08 07:30:58 [27.12ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 99 and `name` like '%2024-Q3%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-03-08 07:31:07 [1.37ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-03-08 07:31:07 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-03-08 07:31:07 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-03-08 07:31:07 [0.16ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-03-08 07:31:07 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-03-08 07:31:07 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-03-08 07:31:07 [0.31ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 563705 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-03-08 07:31:07 [0.15ms] */
select * from `vehicle_tax` where `id` = 191246 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-03-08 07:31:08 [11.32ms] */
update `vehicle_tax` set `tax_sticker_id` = 563705, `vehicle_tax`.`updated_at` = '2025-03-08 07:31:07' where `id` = 191246;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-03-08 07:31:08 [0.44ms] */
select * from `vehicle_tax` where `id` = 191246 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-03-08 07:31:08 [3.52ms] */
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":563705},"old":{"tax_sticker_id":null}}', 5, 'App\Models\User', 191246, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:31:08', '2025-03-08 07:31:08');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-03-08 07:31:08 [3.38ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 5, `tax_sticker`.`updated_at` = '2025-03-08 07:31:08' where `id` = 563705;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-03-08 07:31:10 [1.99ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-03-08 07:31:10 [0.32ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-03-08 07:31:10 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-03-08 07:31:10 [0.34ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-03-08 07:31:10 [0.31ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-03-08 07:31:10 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-03-08 07:31:10 [0.27ms] */
select * from `vehicle_tax` where `id` = 191247 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-03-08 07:31:10 [28.21ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 100 and `name` like '%2024-Q4%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-03-08 07:31:21 [2.06ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-03-08 07:31:21 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-03-08 07:31:21 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-03-08 07:31:21 [0.31ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-03-08 07:31:21 [0.29ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-03-08 07:31:21 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-03-08 07:31:21 [0.28ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 586314 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-03-08 07:31:21 [0.15ms] */
select * from `vehicle_tax` where `id` = 191247 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-03-08 07:31:21 [3.45ms] */
update `vehicle_tax` set `tax_sticker_id` = 586314, `vehicle_tax`.`updated_at` = '2025-03-08 07:31:21' where `id` = 191247;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-03-08 07:31:21 [0.21ms] */
select * from `vehicle_tax` where `id` = 191247 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-03-08 07:31:21 [2.99ms] */
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":586314},"old":{"tax_sticker_id":null}}', 5, 'App\Models\User', 191247, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:31:21', '2025-03-08 07:31:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-03-08 07:31:21 [3.2ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 5, `tax_sticker`.`updated_at` = '2025-03-08 07:31:21' where `id` = 586314;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-03-08 07:31:27 [1.29ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-03-08 07:31:27 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-03-08 07:31:27 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-03-08 07:31:27 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-03-08 07:31:27 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 6 - 2025-03-08 07:31:27 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 7 - 2025-03-08 07:31:27 [0.32ms] */
select * from `vehicle_tax` where `id` in (191246, 191247) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 8 - 2025-03-08 07:31:27 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 234729 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 9 - 2025-03-08 07:31:27 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 234729 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 10 - 2025-03-08 07:31:27 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 11 - 2025-03-08 07:31:27 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 12 - 2025-03-08 07:31:27 [0.15ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 13 - 2025-03-08 07:31:27 [0.26ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (234729, 'APPROVED', '2025-03-08 07:31:27', 8, 5, null, 5, 5, '2025-03-08 07:31:27', '2025-03-08 07:31:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 14 - 2025-03-08 07:31:27 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 15 - 2025-03-08 07:31:27 [0.48ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-03-08 07:31:27' where `id` = 234729;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-03-08 07:31:27 [0.14ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 17 - 2025-03-08 07:31:27 [0.21ms] */
select * from `vehicle_tax` where `transaction_id` = 234729 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-03-08 07:31:27 [0.16ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-03-08 07:31:27' where `id` = 191246;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-03-08 07:31:27 [0.18ms] */
select * from `vehicle_tax` where `id` = 191246 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-03-08 07:31:27 [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":"ISSUED"},"old":{"status":"PAID"}}', 5, 'App\Models\User', 191246, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:31:27', '2025-03-08 07:31:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-03-08 07:31:27 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 219160 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 22 - 2025-03-08 07:31:27 [0.5ms] */
select * from `transaction` where `transaction`.`id` = 234730 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 23 - 2025-03-08 07:31:27 [0.47ms] */
select * from `transaction` where `transaction`.`id` = 234730 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 24 - 2025-03-08 07:31:27 [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://testtra.puntlandgov.org/api/complete_transaction
   Query 25 - 2025-03-08 07:31:27 [0.26ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 26 - 2025-03-08 07:31:27 [0.28ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 27 - 2025-03-08 07:31:27 [0.73ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (234730, 'APPROVED', '2025-03-08 07:31:27', 8, 5, null, 5, 5, '2025-03-08 07:31:27', '2025-03-08 07:31:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 28 - 2025-03-08 07:31:27 [0.27ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 29 - 2025-03-08 07:31:27 [0.45ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-03-08 07:31:27' where `id` = 234730;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 30 - 2025-03-08 07:31:27 [0.3ms] */
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://testtra.puntlandgov.org/api/complete_transaction
   Query 31 - 2025-03-08 07:31:27 [0.2ms] */
select * from `vehicle_tax` where `transaction_id` = 234730 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 32 - 2025-03-08 07:31:27 [0.15ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-03-08 07:31:27' where `id` = 191247;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 33 - 2025-03-08 07:31:27 [0.18ms] */
select * from `vehicle_tax` where `id` = 191247 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 34 - 2025-03-08 07:31:27 [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":"ISSUED"},"old":{"status":"PAID"}}', 5, 'App\Models\User', 191247, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:31:27', '2025-03-08 07:31:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 35 - 2025-03-08 07:31:27 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 219161 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-08 07:31:53 [2.66ms] */
select * from `oauth_access_tokens` where `id` = '7cb75700e453fda57eda78d22fe1541c2c9f45761fa837578fea749b23d902a9a8b0b92324d1fd77' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-08 07:31:53 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '7cb75700e453fda57eda78d22fe1541c2c9f45761fa837578fea749b23d902a9a8b0b92324d1fd77' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-08 07:31:53 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-08 07:31:53 [0.24ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-08 07:31:53 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '7cb75700e453fda57eda78d22fe1541c2c9f45761fa837578fea749b23d902a9a8b0b92324d1fd77' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-08 07:31:53 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-08 07:31:53 [3.76ms] */
select * from `receipts` where `used` = 'No' and `user_id` = 5 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-08 07:33:58 [2.34ms] */
select * from `oauth_access_tokens` where `id` = '7cb75700e453fda57eda78d22fe1541c2c9f45761fa837578fea749b23d902a9a8b0b92324d1fd77' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-08 07:33:58 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '7cb75700e453fda57eda78d22fe1541c2c9f45761fa837578fea749b23d902a9a8b0b92324d1fd77' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-08 07:33:58 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-08 07:33:58 [0.31ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-08 07:33:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '7cb75700e453fda57eda78d22fe1541c2c9f45761fa837578fea749b23d902a9a8b0b92324d1fd77' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-08 07:33:58 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-08 07:33:58 [3.09ms] */
select * from `receipts` where `used` = 'No' and `user_id` = 5 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 1 - 2025-03-08 07:36:43 [1.32ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 2 - 2025-03-08 07:36:43 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 3 - 2025-03-08 07:36:43 [0.33ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 4 - 2025-03-08 07:36:43 [0.36ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 5 - 2025-03-08 07:36:44 [517.03ms] */
select count(*) as aggregate from `vehicle` inner join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` where `vehicle`.`id` in (select `vehicle_tax`.`vehicle_id` from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`status` = 'OPEN' and `term`.`first_date_of_quarter` <= '2025-03-08 07:36:43') 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://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 6 - 2025-03-08 07:36:44 [409.63ms] */
select `vehicle`.* from `vehicle` inner join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` where `vehicle`.`id` in (select `vehicle_tax`.`vehicle_id` from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`status` = 'OPEN' and `term`.`first_date_of_quarter` <= '2025-03-08 07:36:43') 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 50;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 7 - 2025-03-08 07:36:44 [0.52ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 88828 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 8 - 2025-03-08 07:36:44 [0.35ms] */
select * from `party_vehicle` where `vehicle_id` = 88828 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 9 - 2025-03-08 07:36:44 [0.68ms] */
select * from `party` where `party`.`id` = 22785 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 10 - 2025-03-08 07:36:44 [0.6ms] */
select * from `person` where `person`.`id` = 22785 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 11 - 2025-03-08 07:36:44 [0.2ms] */
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://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 12 - 2025-03-08 07:36:44 [0.2ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 13 - 2025-03-08 07:36:44 [0.18ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 14 - 2025-03-08 07:36:44 [0.17ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 15 - 2025-03-08 07:36:44 [0.18ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 25 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 16 - 2025-03-08 07:36:44 [0.9ms] */
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` = 88828 and `term`.`first_date_of_quarter` <= '2025-03-08 07:36:44' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 17 - 2025-03-08 07:36:44 [0.18ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 18 - 2025-03-08 07:36:44 [0.32ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 78081 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 19 - 2025-03-08 07:36:44 [0.29ms] */
select * from `party_vehicle` where `vehicle_id` = 78081 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 20 - 2025-03-08 07:36:44 [0.28ms] */
select * from `party` where `party`.`id` = 50367 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 21 - 2025-03-08 07:36:44 [0.3ms] */
select * from `person` where `person`.`id` = 50367 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 22 - 2025-03-08 07:36:44 [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://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 23 - 2025-03-08 07:36:44 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 24 - 2025-03-08 07:36:44 [0.15ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 25 - 2025-03-08 07:36:44 [0.15ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 26 - 2025-03-08 07:36:44 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 25 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 27 - 2025-03-08 07:36:44 [0.49ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 78081 and `term`.`first_date_of_quarter` <= '2025-03-08 07:36:44' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 28 - 2025-03-08 07:36:44 [0.17ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 29 - 2025-03-08 07:36:44 [0.15ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 30 - 2025-03-08 07:36:44 [0.15ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 31 - 2025-03-08 07:36:44 [0.15ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 32 - 2025-03-08 07:36:44 [0.25ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 82945 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 33 - 2025-03-08 07:36:44 [0.32ms] */
select * from `party_vehicle` where `vehicle_id` = 82945 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 34 - 2025-03-08 07:36:44 [0.31ms] */
select * from `party` where `party`.`id` = 47068 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 35 - 2025-03-08 07:36:44 [0.33ms] */
select * from `person` where `person`.`id` = 47068 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 36 - 2025-03-08 07:36:44 [0.2ms] */
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://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 37 - 2025-03-08 07:36:44 [0.2ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 38 - 2025-03-08 07:36:44 [0.18ms] */
select * from `model` where `model`.`id` = 1371 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 39 - 2025-03-08 07:36:44 [0.17ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 40 - 2025-03-08 07:36:44 [0.17ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 41 - 2025-03-08 07:36:44 [0.54ms] */
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` = 82945 and `term`.`first_date_of_quarter` <= '2025-03-08 07:36:44' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 42 - 2025-03-08 07:36:44 [0.2ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 43 - 2025-03-08 07:36:44 [0.18ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 44 - 2025-03-08 07:36:44 [0.29ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 75278 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 45 - 2025-03-08 07:36:44 [0.31ms] */
select * from `party_vehicle` where `vehicle_id` = 75278 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 46 - 2025-03-08 07:36:44 [0.26ms] */
select * from `party` where `party`.`id` = 34207 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 47 - 2025-03-08 07:36:44 [0.28ms] */
select * from `person` where `person`.`id` = 34207 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 48 - 2025-03-08 07:36:44 [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): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 49 - 2025-03-08 07:36:44 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 50 - 2025-03-08 07:36:44 [0.15ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 51 - 2025-03-08 07:36:44 [0.14ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 52 - 2025-03-08 07:36:44 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 53 - 2025-03-08 07:36:44 [0.59ms] */
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` = 75278 and `term`.`first_date_of_quarter` <= '2025-03-08 07:36:44' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 54 - 2025-03-08 07:36:44 [0.17ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 55 - 2025-03-08 07:36:44 [0.14ms] */
select * from `term` where `term`.`id` = 94 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 56 - 2025-03-08 07:36:44 [0.15ms] */
select * from `term` where `term`.`id` = 95 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 57 - 2025-03-08 07:36:44 [0.14ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 58 - 2025-03-08 07:36:44 [0.14ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 59 - 2025-03-08 07:36:44 [0.24ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 60 - 2025-03-08 07:36:44 [0.2ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 61 - 2025-03-08 07:36:44 [0.2ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 62 - 2025-03-08 07:36:44 [0.34ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 81168 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 63 - 2025-03-08 07:36:44 [0.37ms] */
select * from `party_vehicle` where `vehicle_id` = 81168 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 64 - 2025-03-08 07:36:44 [0.36ms] */
select * from `party` where `party`.`id` = 57777 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 65 - 2025-03-08 07:36:44 [0.45ms] */
select * from `company` where `company`.`id` = 2064 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 66 - 2025-03-08 07:36:44 [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): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 67 - 2025-03-08 07:36:44 [0.24ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 68 - 2025-03-08 07:36:44 [0.22ms] */
select * from `model` where `model`.`id` = 1371 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 69 - 2025-03-08 07:36:44 [0.14ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 70 - 2025-03-08 07:36:44 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 71 - 2025-03-08 07:36:44 [0.43ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 81168 and `term`.`first_date_of_quarter` <= '2025-03-08 07:36:44' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 72 - 2025-03-08 07:36:44 [0.18ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 73 - 2025-03-08 07:36:44 [0.28ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 76562 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 74 - 2025-03-08 07:36:44 [0.29ms] */
select * from `party_vehicle` where `vehicle_id` = 76562 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 75 - 2025-03-08 07:36:44 [0.27ms] */
select * from `party` where `party`.`id` = 19390 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 76 - 2025-03-08 07:36:44 [0.31ms] */
select * from `person` where `person`.`id` = 19390 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 77 - 2025-03-08 07:36:44 [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): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 78 - 2025-03-08 07:36:44 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 79 - 2025-03-08 07:36:44 [0.15ms] */
select * from `model` where `model`.`id` = 1371 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 80 - 2025-03-08 07:36:44 [0.15ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 81 - 2025-03-08 07:36:44 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 82 - 2025-03-08 07:36:44 [0.56ms] */
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` = 76562 and `term`.`first_date_of_quarter` <= '2025-03-08 07:36:44' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 83 - 2025-03-08 07:36:44 [0.17ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 84 - 2025-03-08 07:36:44 [0.15ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 85 - 2025-03-08 07:36:44 [0.14ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 86 - 2025-03-08 07:36:44 [0.14ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 87 - 2025-03-08 07:36:44 [0.14ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 88 - 2025-03-08 07:36:44 [0.26ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 81176 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 89 - 2025-03-08 07:36:44 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 81176 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 90 - 2025-03-08 07:36:44 [0.27ms] */
select * from `party` where `party`.`id` = 64741 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 91 - 2025-03-08 07:36:44 [0.36ms] */
select * from `person` where `person`.`id` = 62122 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 92 - 2025-03-08 07:36:44 [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): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 93 - 2025-03-08 07:36:44 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 94 - 2025-03-08 07:36:44 [0.14ms] */
select * from `model` where `model`.`id` = 1307 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 95 - 2025-03-08 07:36:44 [0.14ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 96 - 2025-03-08 07:36:44 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 97 - 2025-03-08 07:36:44 [0.65ms] */
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` = 81176 and `term`.`first_date_of_quarter` <= '2025-03-08 07:36:44' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 98 - 2025-03-08 07:36:44 [0.17ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 99 - 2025-03-08 07:36:44 [0.15ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 100 - 2025-03-08 07:36:44 [0.27ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 72478 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 101 - 2025-03-08 07:36:44 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 72478 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 102 - 2025-03-08 07:36:44 [0.28ms] */
select * from `party` where `party`.`id` = 46624 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 103 - 2025-03-08 07:36:44 [0.35ms] */
select * from `person` where `person`.`id` = 46624 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 104 - 2025-03-08 07:36:44 [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): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 105 - 2025-03-08 07:36:44 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 106 - 2025-03-08 07:36:44 [0.38ms] */
select * from `model` where `model`.`id` = 1425 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 107 - 2025-03-08 07:36:44 [0.15ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 108 - 2025-03-08 07:36:44 [0.35ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 16 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 109 - 2025-03-08 07:36:44 [0.49ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 72478 and `term`.`first_date_of_quarter` <= '2025-03-08 07:36:44' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 110 - 2025-03-08 07:36:44 [0.17ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 111 - 2025-03-08 07:36:44 [0.27ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 75303 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 112 - 2025-03-08 07:36:44 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 75303 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 113 - 2025-03-08 07:36:44 [0.33ms] */
select * from `party` where `party`.`id` = 39617 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 114 - 2025-03-08 07:36:44 [0.29ms] */
select * from `person` where `person`.`id` = 39617 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 115 - 2025-03-08 07:36:44 [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): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 116 - 2025-03-08 07:36:44 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 117 - 2025-03-08 07:36:44 [0.17ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 118 - 2025-03-08 07:36:44 [0.18ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 119 - 2025-03-08 07:36:44 [0.18ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 120 - 2025-03-08 07:36:44 [0.53ms] */
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` = 75303 and `term`.`first_date_of_quarter` <= '2025-03-08 07:36:44' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 121 - 2025-03-08 07:36:44 [0.2ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 122 - 2025-03-08 07:36:44 [0.28ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 74536 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 123 - 2025-03-08 07:36:44 [0.33ms] */
select * from `party_vehicle` where `vehicle_id` = 74536 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 124 - 2025-03-08 07:36:44 [0.31ms] */
select * from `party` where `party`.`id` = 49015 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 125 - 2025-03-08 07:36:44 [0.38ms] */
select * from `person` where `person`.`id` = 49015 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 126 - 2025-03-08 07:36:44 [0.2ms] */
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://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 127 - 2025-03-08 07:36:44 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 128 - 2025-03-08 07:36:44 [0.18ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 129 - 2025-03-08 07:36:44 [0.18ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 130 - 2025-03-08 07:36:44 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 24 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 131 - 2025-03-08 07:36:44 [0.65ms] */
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` = 74536 and `term`.`first_date_of_quarter` <= '2025-03-08 07:36:44' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 132 - 2025-03-08 07:36:44 [0.14ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 133 - 2025-03-08 07:36:44 [0.13ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-08 07:36:57 [1.47ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-08 07:36:57 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-08 07:36:57 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-08 07:36:57 [0.2ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-08 07:36:57 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-08 07:36:57 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-08 07:36:57 [1.58ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'QG624' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-08 07:36:57 [0.31ms] */
select * from `vehicle` where `id` = 76562 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-08 07:36:57 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 76562 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-03-08 07:36:58 [1.39ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-08 07:36:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-08 07:36:58 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-08 07:36:58 [0.16ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-03-08 07:36:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-08 07:36:58 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-08 07:36:58 [0.32ms] */
select * from `vehicle` where `vehicle`.`id` = 76562 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-08 07:36:58 [0.24ms] */
select * from `vehicle` where `id` = 76562 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-03-08 07:36:58 [0.36ms] */
select * from `party_vehicle` where `vehicle_id` = 76562 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-03-08 07:36:58 [0.96ms] */
select `vehicle_tax`.`id`, `term`.`year`, `term`.`quarter`, `invoice`.`invoice_amount`, `invoice`.`outstanding_balance`, `vehicle_tax`.`exempt`, `invoice`.`status`, `tax_sticker`.`name` as `tax_sticker`, CASE
                WHEN term.quarter = 1 THEN DATE_FORMAT(CONCAT(term.year, "-03-31"), "%d-%m-%Y")
                WHEN term.quarter = 2 THEN DATE_FORMAT(CONCAT(term.year, "-06-30"), "%d-%m-%Y")
                WHEN term.quarter = 3 THEN DATE_FORMAT(CONCAT(term.year, "-09-30"), "%d-%m-%Y")
                WHEN term.quarter = 4 THEN DATE_FORMAT(CONCAT(term.year, "-12-31"), "%d-%m-%Y")
                ELSE NULL
                END as due_date from `vehicle_tax` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `transaction` on `vehicle_tax`.`transaction_id` = `transaction`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `tax_sticker` on `vehicle_tax`.`tax_sticker_id` = `tax_sticker`.`id` where `vehicle_tax`.`vehicle_id` = 76562 and `vehicle_tax`.`deleted_at` is null and `transaction`.`deleted_at` is null and `invoice`.`deleted_at` is null order by `term`.`year` asc, `term`.`quarter` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-03-08 07:36:59 [1.31ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-03-08 07:36:59 [0.13ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-03-08 07:36:59 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-03-08 07:36:59 [0.16ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-03-08 07:36:59 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-03-08 07:36:59 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-03-08 07:36:59 [0.13ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-08 07:36:59 [2.2ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-08 07:36:59 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-08 07:36:59 [0.32ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-08 07:36:59 [0.32ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-08 07:36:59 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-08 07:36:59 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-08 07:36:59 [0.17ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-03-08 07:38:33 [1.31ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-08 07:38:33 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-08 07:38:33 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-03-08 07:38:33 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-03-08 07:38:33 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'a1a30e84cdd2dff5779f5341b54fd5d4a495a85b05e75f7de146bf9443f5cda72b119e1d07c29ab4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-08 07:38:33 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-03-08 07:38:33 [0.16ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-03-08 07:38:33 [0.29ms] */
select `transaction_id` from `vehicle_tax` where `id` in (120385, 318362, 318363, 318364, 318365) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-08 07:38:33 [0.2ms] */
select `parent_id` from `transaction` where `id` in (121671, 416415, 416416, 416417, 416418) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-08 07:38:33 [0.14ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-03-08 07:38:33 [0.19ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-03-08 07:38:33 [0.3ms] */
select * from `transaction` where `id` in (121671, 416415, 416416, 416417, 416418) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-08 07:38:33 [0.29ms] */
select * from `invoice` where `invoice`.`id` = 121020 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-03-08 07:38:33 [15.91ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:38:33' where `id` = 121020;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-03-08 07:38:33 [0.67ms] */
select * from `invoice` where `id` = 121020 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-08 07:38:33 [11.96ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 121020, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-03-08 07:38:33 [0.28ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-03-08 07:38:33 [0.28ms] */
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://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-03-08 07:38:33 [12.21ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 121671;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-03-08 07:38:33 [0.53ms] */
select * from `invoice` where `invoice`.`id` = 393944 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-03-08 07:38:33 [12.5ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:38:33' where `id` = 393944;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-03-08 07:38:33 [0.41ms] */
select * from `invoice` where `id` = 393944 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-03-08 07:38:33 [8.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":[]}', 5, 'App\Models\User', 393944, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-03-08 07:38:33 [0.2ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-03-08 07:38:33 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-03-08 07:38:33 [3.52ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 416415;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-03-08 07:38:33 [0.35ms] */
select * from `invoice` where `invoice`.`id` = 393945 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-03-08 07:38:33 [5.53ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:38:33' where `id` = 393945;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-03-08 07:38:33 [0.65ms] */
select * from `invoice` where `id` = 393945 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-03-08 07:38:33 [4.06ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 393945, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-03-08 07:38:33 [0.22ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-03-08 07:38:33 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-03-08 07:38:33 [3.18ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 416416;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-03-08 07:38:33 [0.43ms] */
select * from `invoice` where `invoice`.`id` = 393946 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-03-08 07:38:33 [2.93ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:38:33' where `id` = 393946;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-03-08 07:38:33 [0.33ms] */
select * from `invoice` where `id` = 393946 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-03-08 07:38:33 [3.02ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 393946, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-03-08 07:38:33 [0.21ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-03-08 07:38:33 [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://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-03-08 07:38:33 [4.96ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 416417;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-03-08 07:38:33 [0.36ms] */
select * from `invoice` where `invoice`.`id` = 393947 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-03-08 07:38:33 [2.97ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-08 07:38:33' where `id` = 393947;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-03-08 07:38:33 [0.34ms] */
select * from `invoice` where `id` = 393947 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-03-08 07:38:33 [2.85ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 393947, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-03-08 07:38:33 [0.2ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-03-08 07:38:33 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-03-08 07:38:33 [2.95ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 416418;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-03-08 07:38:33 [1.7ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-03-08 07:38:33' where `id` in (120385, 318362, 318363, 318364, 318365) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-03-08 07:38:33 [0.38ms] */
select * from `vehicle` where `vehicle`.`id` = 76562 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-03-08 07:38:33 [0.23ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-03-08 07:38:33 [0.35ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 76562 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-03-08 07:38:33 [0.37ms] */
select * from `party_vehicle` where `vehicle_id` = 76562 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-03-08 07:38:33 [0.35ms] */
select * from `party` where `party`.`id` = 19390 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-03-08 07:38:33 [0.41ms] */
select * from `vehicle` where `vehicle`.`id` = 76562 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-03-08 07:38:33 [0.13ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-03-08 07:38:33 [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://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-03-08 07:38:33 [2.22ms] */
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 (19390, 2, 76562, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-03-08 07:38:33 [1.23ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510541, 'INITIATED', '2025-03-08 07:38:33', 5, 5, 5, 5, '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-03-08 07:38:33 [0.31ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 62272, `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 510541;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-03-08 07:38:33 [0.44ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (120385, 318362, 318363, 318364, 318365) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-03-08 07:38:33 [0.33ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (120385, 318362, 318363, 318364, 318365) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-03-08 07:38:33 [0.67ms] */
insert into `invoice` (`transaction_id`, `party_id`, `invoice_date`, `due_date`, `invoice_amount`, `discounts`, `total_invoice_amount`, `outstanding_balance`, `taxes`, `status`, `grouped`, `parent`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510541, 19390, '2025-03-08 07:38:33', '2025-03-08 07:38:33', 153.00, 0, 153.00, 153.00, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-03-08 07:38:33 [0.4ms] */
select * from `invoice` where `id` = 486224 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-03-08 07:38:33 [0.49ms] */
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":510541,"party_id":19390,"invoice_amount":"153.00","invoice_date":"2025-03-08 07:38:33","due_date":"2025-03-08 07:38:33","outstanding_balance":"153.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"153.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 486224, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-03-08 07:38:33 [0.54ms] */
select `invoice`.* from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (120385, 318362, 318363, 318364, 318365) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 66 - 2025-03-08 07:38:33 [0.79ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Tax Service Fee', 'Combined Quarterly Tax Fees', 5, 24.00, 153, 486224, 5, 5, '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-03-08 07:38:33 [0.32ms] */
select * from `invoice_item` where `id` = 872006 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-03-08 07:38:33 [0.49ms] */
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":"Tax Service Fee","description":"Combined Quarterly Tax Fees","unit_price":"24.00","quantity":5,"total_price":"153.00","invoice_id":486224}}', 5, 'App\Models\User', 872006, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-03-08 07:38:33 [0.3ms] */
update `invoice` set `invoice_number` = 'INV-516-486224333', `invoice`.`updated_at` = '2025-03-08 07:38:33' where `id` = 486224;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-03-08 07:38:33 [0.34ms] */
select * from `invoice` where `id` = 486224 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-03-08 07:38:33 [0.39ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-516-486224333"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 486224, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-03-08 07:38:33 [0.35ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 120385 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-03-08 07:38:33 [0.26ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-03-08 07:38:33' where `id` = 120385;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-03-08 07:38:33 [0.37ms] */
select * from `vehicle_tax` where `id` = 120385 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-03-08 07:38:33 [0.7ms] */
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":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 120385, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2025-03-08 07:38:33 [0.38ms] */
select * from `transaction` where `transaction`.`id` = 121671 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 77 - 2025-03-08 07:38:33 [0.29ms] */
update `transaction` set `parent_id` = 510541, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 121671;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2025-03-08 07:38:33 [0.31ms] */
select * from `invoice` where `invoice`.`id` = 121020 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-03-08 07:38:33 [0.25ms] */
update `invoice` set `parent_id` = 486224, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-08 07:38:33' where `id` = 121020;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2025-03-08 07:38:33 [0.29ms] */
select * from `invoice` where `id` = 121020 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-03-08 07:38:33 [0.28ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":486224,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 121020, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-03-08 07:38:33 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 121671 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 83 - 2025-03-08 07:38:33 [0.23ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 84 - 2025-03-08 07:38:33 [0.22ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 85 - 2025-03-08 07:38:33 [0.22ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 86 - 2025-03-08 07:38:33 [0.52ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2025-03-08 07:38:33 [0.27ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2025-03-08 07:38:33 [0.25ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (121671, 'APPROVED', '2025-03-08 07:38:33', 5, 5, null, 5, 5, '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 89 - 2025-03-08 07:38:33 [0.4ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 90 - 2025-03-08 07:38:33 [0.45ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 121671;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 91 - 2025-03-08 07:38:33 [0.22ms] */
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://testtra.puntlandgov.org/api/make_payment
   Query 92 - 2025-03-08 07:38:33 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 121020 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 93 - 2025-03-08 07:38:33 [0.21ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 318362 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 94 - 2025-03-08 07:38:33 [0.19ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-03-08 07:38:33' where `id` = 318362;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 95 - 2025-03-08 07:38:33 [0.27ms] */
select * from `vehicle_tax` where `id` = 318362 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 96 - 2025-03-08 07:38:33 [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":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 318362, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 97 - 2025-03-08 07:38:33 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 416415 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2025-03-08 07:38:33 [0.76ms] */
update `transaction` set `parent_id` = 510541, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 416415;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 99 - 2025-03-08 07:38:33 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 393944 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 100 - 2025-03-08 07:38:33 [0.22ms] */
update `invoice` set `parent_id` = 486224, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-08 07:38:33' where `id` = 393944;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 101 - 2025-03-08 07:38:33 [0.22ms] */
select * from `invoice` where `id` = 393944 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 102 - 2025-03-08 07:38:33 [0.23ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":486224,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 393944, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 103 - 2025-03-08 07:38:33 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 416415 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 104 - 2025-03-08 07:38:33 [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://testtra.puntlandgov.org/api/make_payment
   Query 105 - 2025-03-08 07:38:33 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 106 - 2025-03-08 07:38:33 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 107 - 2025-03-08 07:38:33 [0.19ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 108 - 2025-03-08 07:38:33 [0.23ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (416415, 'APPROVED', '2025-03-08 07:38:33', 5, 5, null, 5, 5, '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 109 - 2025-03-08 07:38:33 [0.24ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 110 - 2025-03-08 07:38:33 [0.5ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 416415;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 111 - 2025-03-08 07:38:33 [0.25ms] */
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://testtra.puntlandgov.org/api/make_payment
   Query 112 - 2025-03-08 07:38:33 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 393944 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 113 - 2025-03-08 07:38:33 [0.24ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 318363 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 114 - 2025-03-08 07:38:33 [0.22ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-03-08 07:38:33' where `id` = 318363;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 115 - 2025-03-08 07:38:33 [0.3ms] */
select * from `vehicle_tax` where `id` = 318363 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 116 - 2025-03-08 07:38:33 [0.24ms] */
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":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 318363, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 117 - 2025-03-08 07:38:33 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 416416 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 118 - 2025-03-08 07:38:33 [0.34ms] */
update `transaction` set `parent_id` = 510541, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 416416;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 119 - 2025-03-08 07:38:33 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 393945 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 120 - 2025-03-08 07:38:33 [0.23ms] */
update `invoice` set `parent_id` = 486224, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-08 07:38:33' where `id` = 393945;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 121 - 2025-03-08 07:38:33 [0.25ms] */
select * from `invoice` where `id` = 393945 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 122 - 2025-03-08 07:38:33 [0.25ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":486224,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 393945, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 123 - 2025-03-08 07:38:33 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 416416 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 124 - 2025-03-08 07:38:33 [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://testtra.puntlandgov.org/api/make_payment
   Query 125 - 2025-03-08 07:38:33 [0.19ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 126 - 2025-03-08 07:38:33 [0.22ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 127 - 2025-03-08 07:38:33 [0.19ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 128 - 2025-03-08 07:38:33 [0.23ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (416416, 'APPROVED', '2025-03-08 07:38:33', 5, 5, null, 5, 5, '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 129 - 2025-03-08 07:38:33 [0.25ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 130 - 2025-03-08 07:38:33 [0.34ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 416416;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 131 - 2025-03-08 07:38:33 [0.22ms] */
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://testtra.puntlandgov.org/api/make_payment
   Query 132 - 2025-03-08 07:38:33 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 393945 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 133 - 2025-03-08 07:38:33 [0.22ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 318364 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 134 - 2025-03-08 07:38:33 [0.19ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-03-08 07:38:33' where `id` = 318364;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 135 - 2025-03-08 07:38:33 [0.21ms] */
select * from `vehicle_tax` where `id` = 318364 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 136 - 2025-03-08 07:38:33 [0.23ms] */
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":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 318364, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 137 - 2025-03-08 07:38:33 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 416417 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 138 - 2025-03-08 07:38:33 [0.32ms] */
update `transaction` set `parent_id` = 510541, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 416417;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 139 - 2025-03-08 07:38:33 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 393946 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 140 - 2025-03-08 07:38:33 [0.24ms] */
update `invoice` set `parent_id` = 486224, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-08 07:38:33' where `id` = 393946;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 141 - 2025-03-08 07:38:33 [0.26ms] */
select * from `invoice` where `id` = 393946 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 142 - 2025-03-08 07:38:33 [0.26ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":486224,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 393946, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 143 - 2025-03-08 07:38:33 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 416417 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 144 - 2025-03-08 07:38:33 [0.24ms] */
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://testtra.puntlandgov.org/api/make_payment
   Query 145 - 2025-03-08 07:38:33 [0.25ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 146 - 2025-03-08 07:38:33 [0.26ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 147 - 2025-03-08 07:38:33 [0.22ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 148 - 2025-03-08 07:38:33 [0.25ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (416417, 'APPROVED', '2025-03-08 07:38:33', 5, 5, null, 5, 5, '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 149 - 2025-03-08 07:38:33 [0.29ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 150 - 2025-03-08 07:38:33 [0.33ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 416417;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 151 - 2025-03-08 07:38:33 [0.22ms] */
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://testtra.puntlandgov.org/api/make_payment
   Query 152 - 2025-03-08 07:38:33 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 393946 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 153 - 2025-03-08 07:38:33 [0.22ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 318365 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 154 - 2025-03-08 07:38:33 [0.19ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-03-08 07:38:33' where `id` = 318365;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 155 - 2025-03-08 07:38:33 [0.21ms] */
select * from `vehicle_tax` where `id` = 318365 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 156 - 2025-03-08 07:38:33 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 318365, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 157 - 2025-03-08 07:38:33 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 416418 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 158 - 2025-03-08 07:38:33 [0.3ms] */
update `transaction` set `parent_id` = 510541, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 416418;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 159 - 2025-03-08 07:38:33 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 393947 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 160 - 2025-03-08 07:38:33 [0.22ms] */
update `invoice` set `parent_id` = 486224, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-08 07:38:33' where `id` = 393947;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 161 - 2025-03-08 07:38:33 [0.22ms] */
select * from `invoice` where `id` = 393947 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 162 - 2025-03-08 07:38:33 [0.25ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":486224,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 393947, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 163 - 2025-03-08 07:38:33 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 416418 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 164 - 2025-03-08 07:38:33 [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://testtra.puntlandgov.org/api/make_payment
   Query 165 - 2025-03-08 07:38:33 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 166 - 2025-03-08 07:38:33 [0.22ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 167 - 2025-03-08 07:38:33 [0.23ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 168 - 2025-03-08 07:38:33 [0.25ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (416418, 'APPROVED', '2025-03-08 07:38:33', 5, 5, null, 5, 5, '2025-03-08 07:38:33', '2025-03-08 07:38:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 169 - 2025-03-08 07:38:33 [0.28ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 170 - 2025-03-08 07:38:33 [0.35ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 416418;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 171 - 2025-03-08 07:38:33 [0.25ms] */
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://testtra.puntlandgov.org/api/make_payment
   Query 172 - 2025-03-08 07:38:33 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 393947 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 173 - 2025-03-08 07:38:33 [0.24ms] */
update `transaction` set `invoice_id` = 486224, `transaction`.`updated_at` = '2025-03-08 07:38:33' where `id` = 510541;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 174 - 2025-03-08 07:38:33 [0.31ms] */
update `vehicle` set `updated_by` = 5, `vehicle`.`updated_at` = '2025-03-08 07:38:33' where `id` = 76562;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 175 - 2025-03-08 07:38:33 [0.28ms] */
select * from `vehicle` where `id` = 76562 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 176 - 2025-03-08 07:38:33 [0.34ms] */
