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 (423207) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 39 - 2025-04-25 16:55:16 [0.24ms] */
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', 1, 31.00, 31, 590721, 97, 97, '2025-04-25 16:55:16', '2025-04-25 16:55:16');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 40 - 2025-04-25 16:55:16 [0.17ms] */
select * from `invoice_item` where `id` = 1064127 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 41 - 2025-04-25 16:55:16 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Quarterly Tax Fees","unit_price":"31.00","quantity":1,"total_price":"31.00","invoice_id":590721}}', 97, 'App\Models\User', 1064127, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 16:55:16', '2025-04-25 16:55:16');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 42 - 2025-04-25 16:55:16 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-639-590721730', `invoice`.`updated_at` = '2025-04-25 16:55:16' where `id` = 590721;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 43 - 2025-04-25 16:55:16 [0.19ms] */
select * from `invoice` where `id` = 590721 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 44 - 2025-04-25 16:55:16 [0.15ms] */
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-639-590721730"},"old":{"invoice_number":null}}', 97, 'App\Models\User', 590721, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 16:55:16', '2025-04-25 16:55:16');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 45 - 2025-04-25 16:55:16 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 423207 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 46 - 2025-04-25 16:55:16 [0.16ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 97, `vehicle_tax`.`updated_at` = '2025-04-25 16:55:16' where `id` = 423207;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 47 - 2025-04-25 16:55:16 [0.17ms] */
select * from `vehicle_tax` where `id` = 423207 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 48 - 2025-04-25 16:55:16 [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":"INPROGRESS"},"old":{"status":"OPEN"}}', 97, 'App\Models\User', 423207, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 16:55:16', '2025-04-25 16:55:16');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 49 - 2025-04-25 16:55:16 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 532691 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 50 - 2025-04-25 16:55:16 [0.24ms] */
update `transaction` set `tax_collection_point_id` = 27, `deliver_district_id` = 37, `parent_id` = 617014, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-25 16:55:16' where `id` = 532691;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 51 - 2025-04-25 16:55:16 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 508397 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 52 - 2025-04-25 16:55:16 [0.21ms] */
update `invoice` set `parent_id` = 590721, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-25 16:55:16' where `id` = 508397;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 53 - 2025-04-25 16:55:16 [0.19ms] */
select * from `invoice` where `id` = 508397 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 54 - 2025-04-25 16:55:16 [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":590721,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 97, 'App\Models\User', 508397, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 16:55:16', '2025-04-25 16:55:16');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 55 - 2025-04-25 16:55:16 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 532691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 56 - 2025-04-25 16:55:16 [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://rta2.puntlandgov.org/api/make_payment
   Query 57 - 2025-04-25 16:55:16 [0.24ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 58 - 2025-04-25 16:55:16 [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://rta2.puntlandgov.org/api/make_payment
   Query 59 - 2025-04-25 16:55:16 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 60 - 2025-04-25 16:55:16 [0.17ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 61 - 2025-04-25 16:55:16 [0.2ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (532691, 'APPROVED', '2025-04-25 16:55:16', 5, 97, null, 97, 97, '2025-04-25 16:55:16', '2025-04-25 16:55:16');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 62 - 2025-04-25 16:55:16 [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://rta2.puntlandgov.org/api/make_payment
   Query 63 - 2025-04-25 16:55:16 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 16:55:16' where `id` = 532691;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 64 - 2025-04-25 16:55:16 [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://rta2.puntlandgov.org/api/make_payment
   Query 65 - 2025-04-25 16:55:16 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 508397 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 66 - 2025-04-25 16:55:16 [0.18ms] */
update `transaction` set `invoice_id` = 590721, `transaction`.`updated_at` = '2025-04-25 16:55:16' where `id` = 617014;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 67 - 2025-04-25 16:55:16 [0.46ms] */
update `vehicle` set `updated_by` = 97, `vehicle`.`updated_at` = '2025-04-25 16:55:16' where `id` = 73235;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 68 - 2025-04-25 16:55:16 [0.19ms] */
select * from `vehicle` where `id` = 73235 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 69 - 2025-04-25 16:55:16 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 97, 'App\Models\User', 73235, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-04-25 16:55:16', '2025-04-25 16:55:16');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 70 - 2025-04-25 16:55:16 [0.27ms] */
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":97}', 'updated', 73235, 'Modules\Vehicle\Entities\Vehicle', 97, 'App\Models\User', null, '102.223.188.44', 'Dart/3.4 (dart:io)', 'https://rta2.puntlandgov.org/api/make_payment', '2025-04-25 16:55:16', '2025-04-25 16:55:16');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 71 - 2025-04-25 16:55:16 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 617014 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 72 - 2025-04-25 16:55:16 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 73 - 2025-04-25 16:55:16 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 74 - 2025-04-25 16:55:16 [0.17ms] */
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://rta2.puntlandgov.org/api/make_payment
   Query 75 - 2025-04-25 16:55:16 [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 (617014, 'APPROVED', '2025-04-25 16:55:16', 5, 97, null, 97, 97, '2025-04-25 16:55:16', '2025-04-25 16:55:16');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 76 - 2025-04-25 16:55:16 [0.19ms] */
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://rta2.puntlandgov.org/api/make_payment
   Query 77 - 2025-04-25 16:55:16 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 16:55:16' where `id` = 617014;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 78 - 2025-04-25 16:55:16 [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://rta2.puntlandgov.org/api/make_payment
   Query 79 - 2025-04-25 16:55:16 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 590721 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 80 - 2025-04-25 16:55:16 [0.19ms] */
select `transaction_id` from `vehicle_tax` where `id` in (423207) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 81 - 2025-04-25 16:55:16 [0.27ms] */
select * from `invoice` where `transaction_id` = 532691 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 82 - 2025-04-25 16:55:16 [0.29ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 508397 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 83 - 2025-04-25 16:55:16 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 532691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 84 - 2025-04-25 16:55:16 [3.25ms] */
update `transaction` set `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-25 16:55:16' where `id` = 532691;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 85 - 2025-04-25 16:55:16 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 86 - 2025-04-25 16:55:16 [0.15ms] */
select * from `user_accounts` where `user_id` = 97 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 87 - 2025-04-25 16:55:16 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 88 - 2025-04-25 16:55:16 [0.12ms] */
select * from `user_accounts` where `user_id` = 97 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-25 16:55:17 [2.29ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-25 16:55:17 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-25 16:55:17 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 4 - 2025-04-25 16:55:17 [0.32ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-25 16:55:17 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-25 16:55:17 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-25 16:55:17 [0.15ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 8 - 2025-04-25 16:55:17 [0.13ms] */
select `transaction_id` from `vehicle_tax` where `id` in (423207) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-25 16:55:17 [0.26ms] */
select `parent_id` from `transaction` where `id` in (532691) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-25 16:55:17 [134.1ms] */
select `id` from `transaction` where `parent_id` in (617014) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-25 16:55:17 [0.39ms] */
select * from `transaction` where `id` in (617014) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-25 16:55:17 [0.12ms] */
select `transaction_id` from `vehicle_tax` where `id` in (423207) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-25 16:55:17 [0.16ms] */
select * from `invoice` where `transaction_id` = 532691 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-25 16:55:17 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 508397 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-25 16:55:17 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 532691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-25 16:55:17 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-25 16:55:17 [0.14ms] */
select * from `user_accounts` where `user_id` = 97 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 18 - 2025-04-25 16:55:17 [0.12ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-25 16:55:17 [0.13ms] */
select * from `user_accounts` where `user_id` = 97 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 1 - 2025-04-25 16:55:18 [1.37ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 2 - 2025-04-25 16:55:18 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 3 - 2025-04-25 16:55:18 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 4 - 2025-04-25 16:55:18 [0.16ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 5 - 2025-04-25 16:55:18 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 6 - 2025-04-25 16:55:18 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 7 - 2025-04-25 16:55:18 [0.37ms] */
select * from `transaction` where `id` = 532691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 8 - 2025-04-25 16:55:18 [7.02ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 532691 and `payment_documents`.`transaction_id` is not null and `type` = 'SERVICE_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 9 - 2025-04-25 16:55:18 [5.91ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 532691 and `payment_documents`.`transaction_id` is not null and `type` = 'GOV_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 10 - 2025-04-25 16:55:18 [0.44ms] */
select * from `invoice` where `invoice`.`id` = 508397 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 11 - 2025-04-25 16:55:18 [0.57ms] */
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` = 508397 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 16:55:18 [1.97ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 16:55:18 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 16:55:18 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-25 16:55:18 [0.31ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 16:55:18 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 16:55:18 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 16:55:18 [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://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-25 16:55:20 [2.23ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 16:55:20 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 16:55:20 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-25 16:55:20 [0.32ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 16:55:20 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 16:55:20 [0.43ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-25 16:55:20 [0.39ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-25 16:55:20 [0.25ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-25 16:55:35 [2.01ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-25 16:55:35 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-25 16:55:35 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-25 16:55:35 [0.37ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-25 16:55:35 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-25 16:55:35 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-25 16:55:35 [7.28ms] */
delete from `payment_documents` where `transaction_id` = 532691 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-25 16:55:35 [8.84ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2520284;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-25 16:55:35 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 532691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-25 16:55:36 [416.4ms] */
select * from `transaction` where `parent_id` = 617014 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-25 16:55:36 [10.93ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (532691, 'GOV_RECEIPT_IMAGE', 2520284, 1, '2025-04-25 16:55:36', '2025-04-25 16:55:36');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-25 16:55:36 [3.3ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (617014, 'GOV_RECEIPT_IMAGE', 2520284, 1, '2025-04-25 16:55:36', '2025-04-25 16:55:36');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-25 16:55:36 [0.32ms] */
select * from `transaction` where `transaction`.`id` = 532691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-25 16:55:36 [3.42ms] */
update `transaction` set `paid_by` = 'axmed c laahi', `paid_by_mobile` = 7983422, `transaction`.`updated_at` = '2025-04-25 16:55:36' where `id` = 532691;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 15 - 2025-04-25 16:55:36 [10.4ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-25 16:55:36' where `receipt_number` = 2520284 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-25 16:55:38 [2.24ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 16:55:38 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 16:55:38 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-25 16:55:38 [0.36ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 16:55:38 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 16:55:38 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-25 16:55:38 [2.46ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-25 16:55:38 [2.35ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-25 16:55:39 [1.98ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-25 16:55:39 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-25 16:55:39 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-25 16:55:39 [0.31ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-25 16:55:39 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-25 16:55:39 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-25 16:55:39 [7.41ms] */
delete from `payment_documents` where `transaction_id` = 532691 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-25 16:55:39 [9.3ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 126433;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-25 16:55:39 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 532691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-25 16:55:40 [419.76ms] */
select * from `transaction` where `parent_id` = 617014 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-25 16:55:40 [6.11ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (532691, 'SERVICE_RECEIPT_IMAGE', 126433, 1, '2025-04-25 16:55:40', '2025-04-25 16:55:40');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-25 16:55:40 [3.01ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (617014, 'SERVICE_RECEIPT_IMAGE', 126433, 1, '2025-04-25 16:55:40', '2025-04-25 16:55:40');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-25 16:55:40 [7.33ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-25 16:55:40' where `receipt_number` = 126433 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-04-25 16:55:40 [1.51ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-04-25 16:55:40 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-04-25 16:55:40 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-04-25 16:55:40 [0.26ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-04-25 16:55:40 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-04-25 16:55:40 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-04-25 16:55:40 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 532691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-04-25 16:55:40 [0.5ms] */
select * from `transaction` where `transaction`.`id` = 617014 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-04-25 16:55:40 [0.4ms] */
select * from `invoice_payment` where `invoice_id` = 590721 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-04-25 16:55:40 [126.33ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 617014 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-04-25 16:55:40 [124.3ms] */
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` = 617014 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-04-25 16:55:40 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 617014 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-04-25 16:55:40 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-04-25 16:55:40 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 15 - 2025-04-25 16:55:40 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-04-25 16:55:40 [243.22ms] */
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` = 617014 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 17 - 2025-04-25 16:55:40 [0.63ms] */
select * from `party` where `party`.`id` = 36087 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 18 - 2025-04-25 16:55:40 [1.42ms] */
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-04-25 16:55:40', null, 2520284, 1, 31.00, 'axmed c laahi', 7983422, null, 37, 97, 97, 97, '2025-04-25 16:55:40', '2025-04-25 16:55:40');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-04-25 16:55:40 [0.2ms] */
select * from `Payment` where `id` = 193689 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-04-25 16:55:40 [1.11ms] */
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":"31.00","payment_date":"2025-04-25 16:55:40","external_payment_reference_no":null,"payment_receipt_number":"2520284","siinpay_payref_number":null,"paid_by":"axmed c laahi","paid_by_mobile":"7983422","district_id":37,"migration_id":null,"payment_collected_by":97}}', 97, 'App\Models\User', 193689, 'Modules\Transaction\Entities\Payment', 'created', '2025-04-25 16:55:40', '2025-04-25 16:55:40');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-04-25 16:55:40 [0.44ms] */
select * from `transaction` where `transaction`.`id` = 617014 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-04-25 16:55:40 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-04-25 16:55:40 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-04-25 16:55:40 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 508397 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-04-25 16:55:40 [0.68ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-25 16:55:40', 508397, 193689, '2025-04-25 16:55:40');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-04-25 16:55:40 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 508397 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-04-25 16:55:40 [0.28ms] */
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` = 508397 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-04-25 16:55:40 [0.57ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 508397 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 29 - 2025-04-25 16:55:40 [0.2ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 31, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-25 16:55:40' where `id` = 508397;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-04-25 16:55:40 [0.18ms] */
select * from `invoice` where `id` = 508397 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-04-25 16:55:40 [0.58ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"31.00","status":"OPEN"}}', 97, 'App\Models\User', 508397, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 16:55:40', '2025-04-25 16:55:40');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-04-25 16:55:40 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 532691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-04-25 16:55:40 [0.13ms] */
select * from `transaction` where `transaction`.`id` = 532691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-04-25 16:55:40 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 35 - 2025-04-25 16:55:40 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 36 - 2025-04-25 16:55:40 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 37 - 2025-04-25 16:55:40 [0.88ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (532691, 'PAID', '2025-04-25 16:55:40', 7, 97, null, 97, 97, '2025-04-25 16:55:40', '2025-04-25 16:55:40');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-04-25 16:55:40 [0.13ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 39 - 2025-04-25 16:55:40 [0.71ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-25 16:55:40' where `id` = 532691;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-04-25 16:55:40 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 41 - 2025-04-25 16:55:40 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 508397 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 42 - 2025-04-25 16:55:40 [0.24ms] */
select * from `vehicle_tax` where `transaction_id` = 532691 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-04-25 16:55:40 [0.46ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-04-25 16:55:40' where `id` = 423207;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-04-25 16:55:40 [1.13ms] */
select * from `vehicle_tax` where `id` = 423207 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-04-25 16:55:40 [0.67ms] */
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"}}', 97, 'App\Models\User', 423207, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 16:55:40', '2025-04-25 16:55:40');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-04-25 16:55:40 [0.79ms] */
select * from `invoice` where `invoice`.`id` = 590721 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 47 - 2025-04-25 16:55:40 [0.36ms] */
select * from `invoice` where `invoice`.`id` = 590721 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-04-25 16:55:40 [0.32ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-25 16:55:40', 590721, 193689, '2025-04-25 16:55:40');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-04-25 16:55:40 [0.37ms] */
select * from `invoice` where `invoice`.`id` = 590721 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-04-25 16:55:40 [0.54ms] */
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` = 590721 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-04-25 16:55:40 [0.33ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-25 16:55:40' where `id` = 590721;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-04-25 16:55:40 [0.36ms] */
select * from `invoice` where `id` = 590721 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-04-25 16:55:40 [0.66ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"31.00","status":"OPEN"}}', 97, 'App\Models\User', 590721, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 16:55:40', '2025-04-25 16:55:40');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-04-25 16:55:40 [0.42ms] */
select * from `transaction` where `transaction`.`id` = 617014 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-04-25 16:55:40 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 617014 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-04-25 16:55:40 [0.23ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-04-25 16:55:40 [0.23ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 58 - 2025-04-25 16:55:40 [0.3ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 59 - 2025-04-25 16:55:40 [0.52ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617014, 'PAID', '2025-04-25 16:55:40', 7, 97, null, 97, 97, '2025-04-25 16:55:40', '2025-04-25 16:55:40');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-04-25 16:55:40 [0.58ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-04-25 16:55:40 [0.3ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-25 16:55:40' where `id` = 617014;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-04-25 16:55:40 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-04-25 16:55:40 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 590721 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-04-25 16:55:40 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 617014 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-04-25 16:55:40 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 66 - 2025-04-25 16:55:40 [0.28ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617014, 'CLAIMED', '2025-04-25 16:55:40', 8, 97, 97, 97, '2025-04-25 16:55:40', '2025-04-25 16:55:40');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-04-25 16:55:40 [0.57ms] */
update `transaction` set `assigned_to` = 97, `transaction`.`updated_at` = '2025-04-25 16:55:40' where `id` = 617014;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 16:55:43 [2.22ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 16:55:43 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 16:55:43 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-25 16:55:43 [0.31ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 16:55:43 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 16:55:43 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 16:55:43 [0.29ms] */
select * from `vehicle_tax` where `id` = 423207 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 16:55:43 [0.69ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 16:55:45 [1.75ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 16:55:45 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 16:55:45 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-25 16:55:45 [0.31ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 16:55:45 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 16:55:45 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 16:55:45 [0.29ms] */
select * from `vehicle_tax` where `id` = 423207 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 16:55:45 [21.98ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-0163%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-04-25 16:55:49 [2.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-04-25 16:55:49 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-04-25 16:55:49 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-04-25 16:55:49 [0.24ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-04-25 16:55:49 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-04-25 16:55:49 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-04-25 16:55:49 [0.39ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 652738 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-04-25 16:55:49 [0.23ms] */
select * from `vehicle_tax` where `id` = 423207 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-04-25 16:55:49 [6.96ms] */
update `vehicle_tax` set `tax_sticker_id` = 652738, `vehicle_tax`.`updated_at` = '2025-04-25 16:55:49' where `id` = 423207;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-04-25 16:55:49 [0.23ms] */
select * from `vehicle_tax` where `id` = 423207 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-04-25 16:55:49 [3.01ms] */
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":652738},"old":{"tax_sticker_id":null}}', 97, 'App\Models\User', 423207, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 16:55:49', '2025-04-25 16:55:49');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-04-25 16:55:49 [3.23ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 97, `tax_sticker`.`updated_at` = '2025-04-25 16:55:49' where `id` = 652738;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-04-25 16:55:50 [2.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-04-25 16:55:50 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-04-25 16:55:50 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-04-25 16:55:50 [0.31ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-04-25 16:55:50 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 6 - 2025-04-25 16:55:50 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 7 - 2025-04-25 16:55:50 [0.29ms] */
select * from `vehicle_tax` where `id` in (423207) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 8 - 2025-04-25 16:55:50 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 532691 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 9 - 2025-04-25 16:55:50 [0.59ms] */
select * from `transaction` where `transaction`.`id` = 532691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 10 - 2025-04-25 16:55:50 [0.33ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 11 - 2025-04-25 16:55:50 [0.29ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 12 - 2025-04-25 16:55:50 [0.3ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 13 - 2025-04-25 16:55:50 [0.47ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (532691, 'APPROVED', '2025-04-25 16:55:50', 8, 97, null, 97, 97, '2025-04-25 16:55:50', '2025-04-25 16:55:50');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 14 - 2025-04-25 16:55:50 [0.29ms] */
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://rta2.puntlandgov.org/api/complete_transaction
   Query 15 - 2025-04-25 16:55:50 [0.43ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-25 16:55:50' where `id` = 532691;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-04-25 16:55:50 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 17 - 2025-04-25 16:55:50 [0.25ms] */
select * from `vehicle_tax` where `transaction_id` = 532691 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-04-25 16:55:50 [0.17ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-04-25 16:55:50' where `id` = 423207;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-04-25 16:55:50 [0.18ms] */
select * from `vehicle_tax` where `id` = 423207 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-04-25 16:55:50 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"ISSUED"},"old":{"status":"PAID"}}', 97, 'App\Models\User', 423207, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 16:55:50', '2025-04-25 16:55:50');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-04-25 16:55:50 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 508397 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 22 - 2025-04-25 16:55:50 [0.55ms] */
select * from `transaction` where `id` = 532691 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 23 - 2025-04-25 16:55:50 [0.35ms] */
select * from `transaction` where `transaction`.`id` = 617014 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 24 - 2025-04-25 16:55:50 [0.21ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 25 - 2025-04-25 16:55:50 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 26 - 2025-04-25 16:55:50 [0.27ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 27 - 2025-04-25 16:55:50 [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 (617014, 'APPROVED', '2025-04-25 16:55:50', 8, 97, null, 97, 97, '2025-04-25 16:55:50', '2025-04-25 16:55:50');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 28 - 2025-04-25 16:55:50 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 29 - 2025-04-25 16:55:50 [0.37ms] */
update `transaction` set `assigned_to` = null, `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-25 16:55:50' where `id` = 617014;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 30 - 2025-04-25 16:55:50 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 31 - 2025-04-25 16:55:50 [0.33ms] */
select * from `vehicle_tax` where `transaction_id` = 617014 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 32 - 2025-04-25 16:55:50 [0.36ms] */
select * from `invoice` where `invoice`.`id` = 590721 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 33 - 2025-04-25 16:55:50 [0.21ms] */
select * from `term` where `term`.`id` = 104 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 34 - 2025-04-25 16:55:50 [0.58ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 52341 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 35 - 2025-04-25 16:55:50 [0.23ms] */
select * from `party` where `party`.`id` = 36087 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 36 - 2025-04-25 16:55:50 [0.25ms] */
select * from `person` where `person`.`id` = 36087 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 37 - 2025-04-25 16:55:51 [0.61ms] */
select * from `vehicle` where `vehicle`.`id` = 73235 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 38 - 2025-04-25 16:55:51 [0.5ms] */
select * from `invoice` where `invoice`.`id` = 508397 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 39 - 2025-04-25 16:55:51 [0.55ms] */
select * from `invoice_payment` where `invoice_payment`.`invoice_id` = 508397 and `invoice_payment`.`invoice_id` is not null and `invoice_payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 40 - 2025-04-25 16:55:51 [0.53ms] */
select * from `Payment` where `Payment`.`id` = 193689 and `Payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 41 - 2025-04-25 16:55:51 [0.21ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 27 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 42 - 2025-04-25 16:55:51 [0.51ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 652738 and `tax_sticker`.`id` is not null and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-25 16:56:21 [2.29ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 16:56:21 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 16:56:21 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-25 16:56:21 [0.32ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-25 16:56:21 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-25 16:56:21 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-25 16:56:21 [1.02ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_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_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` = 'CR284' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-25 16:56:21 [0.25ms] */
select * from `party` where `party`.`id` = 20406 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-25 16:56:21 [0.24ms] */
select * from `vehicle` where `id` = 79626 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-25 16:56:21 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 79626 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 1 - 2025-04-25 16:56:22 [2ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-25 16:56:22 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-25 16:56:22 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 4 - 2025-04-25 16:56:22 [0.31ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 5 - 2025-04-25 16:56:22 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-25 16:56:22 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 7 - 2025-04-25 16:56:22 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 79626 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-25 16:56:22 [0.23ms] */
select * from `vehicle` where `id` = 79626 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 9 - 2025-04-25 16:56:22 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 79626 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 10 - 2025-04-25 16:56:22 [0.93ms] */
select `vehicle_tax`.`id`, `transaction`.`id` as `transaction_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` = 79626 and `vehicle_tax`.`exempt` = 'N' 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://rta2.puntlandgov.org/api/region-list
   Query 1 - 2025-04-25 16:56:23 [2ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 2 - 2025-04-25 16:56:23 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 3 - 2025-04-25 16:56:23 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 4 - 2025-04-25 16:56:23 [0.31ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 5 - 2025-04-25 16:56:23 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 6 - 2025-04-25 16:56:23 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 7 - 2025-04-25 16:56:23 [0.14ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 16:56:23 [1.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 16:56:23 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 16:56:23 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-25 16:56:23 [0.17ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 16:56:23 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 16:56:23 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 16:56:23 [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://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-25 17:00:33 [1.97ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 17:00:33 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 17:00:33 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-25 17:00:33 [0.36ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 17:00:33 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 17:00:33 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-25 17:00:33 [3.1ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-25 17:00:33 [2.28ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-25 17:00:33 [1.3ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-25 17:00:33 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-25 17:00:33 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 4 - 2025-04-25 17:00:33 [0.17ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-25 17:00:33 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-25 17:00:33 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-25 17:00:33 [0.15ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 8 - 2025-04-25 17:00:33 [0.35ms] */
select `transaction_id` from `vehicle_tax` where `id` in (426761) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-25 17:00:33 [0.23ms] */
select `parent_id` from `transaction` where `id` in (536255) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-25 17:00:33 [0.18ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-25 17:00:33 [0.23ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-25 17:00:33 [0.37ms] */
select * from `transaction` where `id` in (536255) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-25 17:00:33 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 511961 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-25 17:00:33 [3.64ms] */
update `invoice` set `updated_by` = 97, `invoice`.`updated_at` = '2025-04-25 17:00:33' where `id` = 511961;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-25 17:00:33 [0.25ms] */
select * from `invoice` where `id` = 511961 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-25 17:00:33 [7.29ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 97, 'App\Models\User', 511961, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-25 17:00:33 [0.15ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 18 - 2025-04-25 17:00:33 [0.15ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-25 17:00:33 [6.59ms] */
update `transaction` set `updated_by` = 97, `transaction`.`updated_at` = '2025-04-25 17:00:33' where `id` = 536255;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-25 17:00:33 [7.62ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-04-25 17:00:33' where `id` in (426761) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-25 17:00:33 [0.54ms] */
select * from `vehicle` where `vehicle`.`id` = 79626 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 22 - 2025-04-25 17:00:33 [0.29ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 23 - 2025-04-25 17:00:33 [0.49ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 79626 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 24 - 2025-04-25 17:00:33 [0.32ms] */
select * from `party_vehicle` where `vehicle_id` = 79626 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 25 - 2025-04-25 17:00:33 [0.27ms] */
select * from `party` where `party`.`id` = 20406 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 26 - 2025-04-25 17:00:33 [0.4ms] */
select * from `vehicle` where `vehicle`.`id` = 79626 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 27 - 2025-04-25 17:00:33 [0.14ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 28 - 2025-04-25 17:00:33 [0.13ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 29 - 2025-04-25 17:00:33 [0.14ms] */
select * from `branches` where `branches`.`id` = 15 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 30 - 2025-04-25 17:00:33 [0.66ms] */
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 (20406, 2, 79626, null, 2, 6, 15, 37, 37, 'OPEN', 27, null, 97, 97, '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 31 - 2025-04-25 17:00:33 [0.21ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617015, 'INITIATED', '2025-04-25 17:00:33', 5, 97, 97, 97, '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 32 - 2025-04-25 17:00:33 [0.2ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 59164, `transaction`.`updated_at` = '2025-04-25 17:00:33' where `id` = 617015;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 33 - 2025-04-25 17:00:33 [0.23ms] */
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 (426761) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 34 - 2025-04-25 17:00:33 [0.2ms] */
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 (426761) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 35 - 2025-04-25 17:00:33 [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 (617015, 20406, '2025-04-25 17:00:33', '2025-04-25 17:00:33', 31.00, 0, 31.00, 31.00, 0, 'OPEN', 'N', 'Y', 97, 97, '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 36 - 2025-04-25 17:00:33 [0.2ms] */
select * from `invoice` where `id` = 590722 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 37 - 2025-04-25 17:00:33 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":617015,"party_id":20406,"invoice_amount":"31.00","invoice_date":"2025-04-25 17:00:33","due_date":"2025-04-25 17:00:33","outstanding_balance":"31.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 97, 'App\Models\User', 590722, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 38 - 2025-04-25 17:00:33 [0.25ms] */
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 (426761) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 39 - 2025-04-25 17:00:33 [0.21ms] */
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', 1, 31.00, 31, 590722, 97, 97, '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 40 - 2025-04-25 17:00:33 [0.17ms] */
select * from `invoice_item` where `id` = 1064128 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 41 - 2025-04-25 17:00:33 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Quarterly Tax Fees","unit_price":"31.00","quantity":1,"total_price":"31.00","invoice_id":590722}}', 97, 'App\Models\User', 1064128, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 42 - 2025-04-25 17:00:33 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-559-590722323', `invoice`.`updated_at` = '2025-04-25 17:00:33' where `id` = 590722;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 43 - 2025-04-25 17:00:33 [0.19ms] */
select * from `invoice` where `id` = 590722 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 44 - 2025-04-25 17:00:33 [0.15ms] */
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-559-590722323"},"old":{"invoice_number":null}}', 97, 'App\Models\User', 590722, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 45 - 2025-04-25 17:00:33 [0.2ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 426761 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 46 - 2025-04-25 17:00:33 [0.16ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 97, `vehicle_tax`.`updated_at` = '2025-04-25 17:00:33' where `id` = 426761;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 47 - 2025-04-25 17:00:33 [0.18ms] */
select * from `vehicle_tax` where `id` = 426761 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 48 - 2025-04-25 17:00:33 [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"}}', 97, 'App\Models\User', 426761, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 49 - 2025-04-25 17:00:33 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 536255 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 50 - 2025-04-25 17:00:33 [0.22ms] */
update `transaction` set `tax_collection_point_id` = 27, `parent_id` = 617015, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-25 17:00:33' where `id` = 536255;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 51 - 2025-04-25 17:00:33 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 511961 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 52 - 2025-04-25 17:00:33 [0.22ms] */
update `invoice` set `parent_id` = 590722, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-25 17:00:33' where `id` = 511961;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 53 - 2025-04-25 17:00:33 [0.19ms] */
select * from `invoice` where `id` = 511961 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 54 - 2025-04-25 17:00:33 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":590722,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 97, 'App\Models\User', 511961, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 55 - 2025-04-25 17:00:33 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 536255 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 56 - 2025-04-25 17:00:33 [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://rta2.puntlandgov.org/api/make_payment
   Query 57 - 2025-04-25 17:00:33 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 58 - 2025-04-25 17:00:33 [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://rta2.puntlandgov.org/api/make_payment
   Query 59 - 2025-04-25 17:00:33 [0.38ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 60 - 2025-04-25 17:00:33 [0.17ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 61 - 2025-04-25 17:00:33 [0.2ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (536255, 'APPROVED', '2025-04-25 17:00:33', 5, 97, null, 97, 97, '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 62 - 2025-04-25 17:00:33 [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://rta2.puntlandgov.org/api/make_payment
   Query 63 - 2025-04-25 17:00:33 [0.22ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 17:00:33' where `id` = 536255;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 64 - 2025-04-25 17:00:33 [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://rta2.puntlandgov.org/api/make_payment
   Query 65 - 2025-04-25 17:00:33 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 511961 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 66 - 2025-04-25 17:00:33 [0.18ms] */
update `transaction` set `invoice_id` = 590722, `transaction`.`updated_at` = '2025-04-25 17:00:33' where `id` = 617015;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 67 - 2025-04-25 17:00:33 [0.27ms] */
update `vehicle` set `updated_by` = 97, `vehicle`.`updated_at` = '2025-04-25 17:00:33' where `id` = 79626;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 68 - 2025-04-25 17:00:33 [0.18ms] */
select * from `vehicle` where `id` = 79626 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 69 - 2025-04-25 17:00:33 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 97, 'App\Models\User', 79626, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 70 - 2025-04-25 17:00:33 [0.27ms] */
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":137}', '{"updated_by":97}', 'updated', 79626, 'Modules\Vehicle\Entities\Vehicle', 97, 'App\Models\User', null, '102.223.188.44', 'Dart/3.4 (dart:io)', 'https://rta2.puntlandgov.org/api/make_payment', '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 71 - 2025-04-25 17:00:33 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 617015 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 72 - 2025-04-25 17:00:33 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 73 - 2025-04-25 17:00:33 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 74 - 2025-04-25 17:00:33 [0.17ms] */
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://rta2.puntlandgov.org/api/make_payment
   Query 75 - 2025-04-25 17:00:33 [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 (617015, 'APPROVED', '2025-04-25 17:00:33', 5, 97, null, 97, 97, '2025-04-25 17:00:33', '2025-04-25 17:00:33');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 76 - 2025-04-25 17:00:33 [0.19ms] */
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://rta2.puntlandgov.org/api/make_payment
   Query 77 - 2025-04-25 17:00:33 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 17:00:33' where `id` = 617015;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 78 - 2025-04-25 17:00:33 [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://rta2.puntlandgov.org/api/make_payment
   Query 79 - 2025-04-25 17:00:33 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 590722 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 80 - 2025-04-25 17:00:33 [0.46ms] */
select `transaction_id` from `vehicle_tax` where `id` in (426761) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 81 - 2025-04-25 17:00:33 [0.28ms] */
select * from `invoice` where `transaction_id` = 536255 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 82 - 2025-04-25 17:00:33 [0.37ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 511961 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 83 - 2025-04-25 17:00:33 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 536255 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 84 - 2025-04-25 17:00:33 [7.59ms] */
update `transaction` set `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-25 17:00:33' where `id` = 536255;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 85 - 2025-04-25 17:00:33 [0.27ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 86 - 2025-04-25 17:00:33 [0.27ms] */
select * from `user_accounts` where `user_id` = 97 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 87 - 2025-04-25 17:00:33 [0.25ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 88 - 2025-04-25 17:00:33 [0.26ms] */
select * from `user_accounts` where `user_id` = 97 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-25 17:00:34 [2ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-25 17:00:34 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-25 17:00:34 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 4 - 2025-04-25 17:00:34 [0.25ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-25 17:00:34 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-25 17:00:34 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-25 17:00:34 [0.23ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 8 - 2025-04-25 17:00:34 [0.21ms] */
select `transaction_id` from `vehicle_tax` where `id` in (426761) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-25 17:00:34 [0.36ms] */
select `parent_id` from `transaction` where `id` in (536255) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-25 17:00:34 [138.46ms] */
select `id` from `transaction` where `parent_id` in (617015) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-25 17:00:34 [0.49ms] */
select * from `transaction` where `id` in (617015) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-25 17:00:34 [0.15ms] */
select `transaction_id` from `vehicle_tax` where `id` in (426761) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-25 17:00:34 [0.16ms] */
select * from `invoice` where `transaction_id` = 536255 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-25 17:00:34 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 511961 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-25 17:00:34 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 536255 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-25 17:00:34 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-25 17:00:34 [0.13ms] */
select * from `user_accounts` where `user_id` = 97 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 18 - 2025-04-25 17:00:34 [0.15ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-25 17:00:34 [0.13ms] */
select * from `user_accounts` where `user_id` = 97 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 1 - 2025-04-25 17:00:35 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 2 - 2025-04-25 17:00:35 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 3 - 2025-04-25 17:00:35 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 4 - 2025-04-25 17:00:35 [0.17ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 5 - 2025-04-25 17:00:35 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 6 - 2025-04-25 17:00:35 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 7 - 2025-04-25 17:00:35 [0.36ms] */
select * from `transaction` where `id` = 536255 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 8 - 2025-04-25 17:00:35 [6.69ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 536255 and `payment_documents`.`transaction_id` is not null and `type` = 'SERVICE_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 9 - 2025-04-25 17:00:35 [11.42ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 536255 and `payment_documents`.`transaction_id` is not null and `type` = 'GOV_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 10 - 2025-04-25 17:00:35 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 511961 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 11 - 2025-04-25 17:00:35 [0.4ms] */
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` = 511961 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 17:00:35 [2.22ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 17:00:35 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 17:00:35 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-25 17:00:35 [0.25ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 17:00:35 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 17:00:35 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 17:00:35 [0.27ms] */
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://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-25 17:00:37 [1.86ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 17:00:37 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 17:00:37 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-25 17:00:37 [0.25ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 17:00:37 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 17:00:37 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-25 17:00:37 [0.23ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-25 17:00:37 [0.2ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-25 17:00:56 [1.96ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-25 17:00:56 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-25 17:00:56 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-25 17:00:56 [0.32ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-25 17:00:56 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-25 17:00:56 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-25 17:00:56 [7.38ms] */
delete from `payment_documents` where `transaction_id` = 536255 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-25 17:00:56 [9.09ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2520285;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-25 17:00:56 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 536255 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-25 17:00:56 [409.08ms] */
select * from `transaction` where `parent_id` = 617015 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-25 17:00:56 [11.78ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (536255, 'GOV_RECEIPT_IMAGE', 2520285, 1, '2025-04-25 17:00:56', '2025-04-25 17:00:56');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-25 17:00:56 [3.26ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (617015, 'GOV_RECEIPT_IMAGE', 2520285, 1, '2025-04-25 17:00:56', '2025-04-25 17:00:56');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-25 17:00:56 [0.66ms] */
select * from `transaction` where `transaction`.`id` = 536255 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-25 17:00:56 [3.49ms] */
update `transaction` set `paid_by` = 'c laahi abshir', `paid_by_mobile` = 6520456, `transaction`.`updated_at` = '2025-04-25 17:00:56' where `id` = 536255;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 15 - 2025-04-25 17:00:56 [9.89ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-25 17:00:56' where `receipt_number` = 2520285 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-25 17:00:58 [2.2ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 17:00:58 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 17:00:58 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-25 17:00:58 [0.32ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 17:00:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 17:00:58 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-25 17:00:58 [2.48ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-25 17:00:58 [2.27ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-25 17:00:59 [1.29ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-25 17:00:59 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-25 17:00:59 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-25 17:00:59 [0.17ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-25 17:00:59 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-25 17:00:59 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-25 17:00:59 [7.54ms] */
delete from `payment_documents` where `transaction_id` = 536255 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-25 17:00:59 [9.56ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 126434;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-25 17:00:59 [0.45ms] */
select * from `transaction` where `transaction`.`id` = 536255 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-25 17:00:59 [426.74ms] */
select * from `transaction` where `parent_id` = 617015 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-25 17:00:59 [6.07ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (536255, 'SERVICE_RECEIPT_IMAGE', 126434, 1, '2025-04-25 17:00:59', '2025-04-25 17:00:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-25 17:00:59 [3.35ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (617015, 'SERVICE_RECEIPT_IMAGE', 126434, 1, '2025-04-25 17:00:59', '2025-04-25 17:00:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-25 17:00:59 [11.22ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-25 17:00:59' where `receipt_number` = 126434 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-04-25 17:01:00 [2.13ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-04-25 17:01:00 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-04-25 17:01:00 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-04-25 17:01:00 [0.3ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-04-25 17:01:00 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-04-25 17:01:00 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-04-25 17:01:00 [0.18ms] */
select * from `transaction` where `transaction`.`id` = 536255 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-04-25 17:01:00 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 617015 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-04-25 17:01:00 [0.31ms] */
select * from `invoice_payment` where `invoice_id` = 590722 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-04-25 17:01:00 [125.79ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 617015 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-04-25 17:01:00 [124.7ms] */
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` = 617015 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-04-25 17:01:00 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 617015 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-04-25 17:01:00 [0.44ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-04-25 17:01:00 [0.28ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 15 - 2025-04-25 17:01:00 [0.26ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-04-25 17:01:00 [240.72ms] */
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` = 617015 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 17 - 2025-04-25 17:01:00 [0.82ms] */
select * from `party` where `party`.`id` = 20406 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 18 - 2025-04-25 17:01:00 [0.69ms] */
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-04-25 17:01:00', null, 2520285, 1, 31.00, 'c laahi abshir', 6520456, null, 37, 97, 97, 97, '2025-04-25 17:01:00', '2025-04-25 17:01:00');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-04-25 17:01:00 [0.35ms] */
select * from `Payment` where `id` = 193690 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-04-25 17:01:00 [0.58ms] */
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":"31.00","payment_date":"2025-04-25 17:01:00","external_payment_reference_no":null,"payment_receipt_number":"2520285","siinpay_payref_number":null,"paid_by":"c laahi abshir","paid_by_mobile":"6520456","district_id":37,"migration_id":null,"payment_collected_by":97}}', 97, 'App\Models\User', 193690, 'Modules\Transaction\Entities\Payment', 'created', '2025-04-25 17:01:00', '2025-04-25 17:01:00');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-04-25 17:01:00 [0.52ms] */
select * from `transaction` where `transaction`.`id` = 617015 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-04-25 17:01:00 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-04-25 17:01:00 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-04-25 17:01:00 [0.31ms] */
select * from `invoice` where `invoice`.`id` = 511961 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-04-25 17:01:00 [4.54ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-25 17:01:00', 511961, 193690, '2025-04-25 17:01:00');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-04-25 17:01:00 [8.03ms] */
select * from `invoice` where `invoice`.`id` = 511961 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-04-25 17:01:00 [0.56ms] */
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` = 511961 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-04-25 17:01:00 [0.69ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 511961 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 29 - 2025-04-25 17:01:00 [0.34ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 31, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-25 17:01:00' where `id` = 511961;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-04-25 17:01:00 [0.29ms] */
select * from `invoice` where `id` = 511961 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-04-25 17:01:00 [2.27ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"31.00","status":"OPEN"}}', 97, 'App\Models\User', 511961, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 17:01:00', '2025-04-25 17:01:00');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-04-25 17:01:00 [0.38ms] */
select * from `transaction` where `transaction`.`id` = 536255 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-04-25 17:01:00 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 536255 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-04-25 17:01:00 [0.2ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 35 - 2025-04-25 17:01:00 [0.23ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 36 - 2025-04-25 17:01:00 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 37 - 2025-04-25 17:01:00 [0.48ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (536255, 'PAID', '2025-04-25 17:01:00', 7, 97, null, 97, 97, '2025-04-25 17:01:00', '2025-04-25 17:01:00');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-04-25 17:01:00 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 39 - 2025-04-25 17:01:00 [0.55ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-25 17:01:00' where `id` = 536255;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-04-25 17:01:00 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 41 - 2025-04-25 17:01:00 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 511961 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 42 - 2025-04-25 17:01:00 [0.27ms] */
select * from `vehicle_tax` where `transaction_id` = 536255 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-04-25 17:01:00 [0.17ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-04-25 17:01:00' where `id` = 426761;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-04-25 17:01:00 [0.16ms] */
select * from `vehicle_tax` where `id` = 426761 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-04-25 17:01:00 [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":"PAID"},"old":{"status":"INPROGRESS"}}', 97, 'App\Models\User', 426761, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 17:01:00', '2025-04-25 17:01:00');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-04-25 17:01:00 [0.39ms] */
select * from `invoice` where `invoice`.`id` = 590722 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 47 - 2025-04-25 17:01:00 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 590722 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-04-25 17:01:00 [0.16ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-25 17:01:00', 590722, 193690, '2025-04-25 17:01:00');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-04-25 17:01:00 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 590722 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-04-25 17:01:00 [0.27ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 590722 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-04-25 17:01:00 [0.16ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-25 17:01:00' where `id` = 590722;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-04-25 17:01:00 [0.19ms] */
select * from `invoice` where `id` = 590722 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-04-25 17:01:00 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"31.00","status":"OPEN"}}', 97, 'App\Models\User', 590722, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 17:01:00', '2025-04-25 17:01:00');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-04-25 17:01:00 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 617015 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-04-25 17:01:00 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 617015 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-04-25 17:01:00 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-04-25 17:01:00 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 58 - 2025-04-25 17:01:00 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 59 - 2025-04-25 17:01:00 [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 (617015, 'PAID', '2025-04-25 17:01:00', 7, 97, null, 97, 97, '2025-04-25 17:01:00', '2025-04-25 17:01:00');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-04-25 17:01:00 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-04-25 17:01:00 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-25 17:01:00' where `id` = 617015;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-04-25 17:01:00 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-04-25 17:01:00 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 590722 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-04-25 17:01:00 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 617015 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-04-25 17:01:00 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 66 - 2025-04-25 17:01:00 [0.2ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617015, 'CLAIMED', '2025-04-25 17:01:00', 8, 97, 97, 97, '2025-04-25 17:01:00', '2025-04-25 17:01:00');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-04-25 17:01:00 [0.23ms] */
update `transaction` set `assigned_to` = 97, `transaction`.`updated_at` = '2025-04-25 17:01:00' where `id` = 617015;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 17:01:03 [2ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 17:01:03 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 17:01:03 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-25 17:01:03 [0.25ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 17:01:03 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 17:01:03 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 17:01:03 [0.44ms] */
select * from `vehicle_tax` where `id` = 426761 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 17:01:03 [1.03ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 17:01:05 [1.96ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 17:01:05 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 17:01:05 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-25 17:01:05 [0.17ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 17:01:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 17:01:05 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 17:01:05 [0.16ms] */
select * from `vehicle_tax` where `id` = 426761 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 17:01:05 [15.99ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-0163%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-04-25 17:01:10 [1.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-04-25 17:01:10 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-04-25 17:01:10 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-04-25 17:01:10 [0.36ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-04-25 17:01:10 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-04-25 17:01:10 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-04-25 17:01:10 [0.32ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 652739 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-04-25 17:01:10 [0.16ms] */
select * from `vehicle_tax` where `id` = 426761 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-04-25 17:01:10 [3.06ms] */
update `vehicle_tax` set `tax_sticker_id` = 652739, `vehicle_tax`.`updated_at` = '2025-04-25 17:01:10' where `id` = 426761;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-04-25 17:01:10 [0.27ms] */
select * from `vehicle_tax` where `id` = 426761 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-04-25 17:01:10 [3.09ms] */
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":652739},"old":{"tax_sticker_id":null}}', 97, 'App\Models\User', 426761, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 17:01:10', '2025-04-25 17:01:10');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-04-25 17:01:10 [3.13ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 97, `tax_sticker`.`updated_at` = '2025-04-25 17:01:10' where `id` = 652739;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-04-25 17:01:11 [1.33ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-04-25 17:01:11 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-04-25 17:01:11 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-04-25 17:01:11 [0.16ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-04-25 17:01:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 6 - 2025-04-25 17:01:11 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 7 - 2025-04-25 17:01:11 [0.52ms] */
select * from `vehicle_tax` where `id` in (426761) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 8 - 2025-04-25 17:01:11 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 536255 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 9 - 2025-04-25 17:01:11 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 536255 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 10 - 2025-04-25 17:01:11 [0.16ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 11 - 2025-04-25 17:01:11 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 12 - 2025-04-25 17:01:11 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 13 - 2025-04-25 17:01:11 [0.27ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (536255, 'APPROVED', '2025-04-25 17:01:11', 8, 97, null, 97, 97, '2025-04-25 17:01:11', '2025-04-25 17:01:11');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 14 - 2025-04-25 17:01:11 [0.15ms] */
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://rta2.puntlandgov.org/api/complete_transaction
   Query 15 - 2025-04-25 17:01:11 [0.29ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-25 17:01:11' where `id` = 536255;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-04-25 17:01:11 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 17 - 2025-04-25 17:01:11 [0.22ms] */
select * from `vehicle_tax` where `transaction_id` = 536255 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-04-25 17:01:11 [0.17ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-04-25 17:01:11' where `id` = 426761;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-04-25 17:01:11 [0.18ms] */
select * from `vehicle_tax` where `id` = 426761 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-04-25 17:01:11 [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":"ISSUED"},"old":{"status":"PAID"}}', 97, 'App\Models\User', 426761, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 17:01:11', '2025-04-25 17:01:11');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-04-25 17:01:11 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 511961 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 22 - 2025-04-25 17:01:11 [0.47ms] */
select * from `transaction` where `id` = 536255 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 23 - 2025-04-25 17:01:11 [0.44ms] */
select * from `transaction` where `transaction`.`id` = 617015 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 24 - 2025-04-25 17:01:11 [0.27ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 25 - 2025-04-25 17:01:11 [0.25ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 26 - 2025-04-25 17:01:11 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 27 - 2025-04-25 17:01:11 [0.42ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617015, 'APPROVED', '2025-04-25 17:01:11', 8, 97, null, 97, 97, '2025-04-25 17:01:11', '2025-04-25 17:01:11');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 28 - 2025-04-25 17:01:11 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 29 - 2025-04-25 17:01:11 [0.39ms] */
update `transaction` set `assigned_to` = null, `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-25 17:01:11' where `id` = 617015;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 30 - 2025-04-25 17:01:11 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 31 - 2025-04-25 17:01:11 [0.34ms] */
select * from `vehicle_tax` where `transaction_id` = 617015 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 32 - 2025-04-25 17:01:11 [0.35ms] */
select * from `invoice` where `invoice`.`id` = 590722 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 33 - 2025-04-25 17:01:11 [0.21ms] */
select * from `term` where `term`.`id` = 104 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 34 - 2025-04-25 17:01:11 [0.43ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 59164 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 35 - 2025-04-25 17:01:11 [0.24ms] */
select * from `party` where `party`.`id` = 20406 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 36 - 2025-04-25 17:01:11 [0.45ms] */
select * from `person` where `person`.`id` = 20406 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 37 - 2025-04-25 17:01:11 [0.48ms] */
select * from `vehicle` where `vehicle`.`id` = 79626 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 38 - 2025-04-25 17:01:11 [0.35ms] */
select * from `invoice` where `invoice`.`id` = 511961 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 39 - 2025-04-25 17:01:11 [0.39ms] */
select * from `invoice_payment` where `invoice_payment`.`invoice_id` = 511961 and `invoice_payment`.`invoice_id` is not null and `invoice_payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 40 - 2025-04-25 17:01:11 [0.37ms] */
select * from `Payment` where `Payment`.`id` = 193690 and `Payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 41 - 2025-04-25 17:01:11 [0.22ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 27 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 42 - 2025-04-25 17:01:11 [0.37ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 652739 and `tax_sticker`.`id` is not null and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-25 17:02:06 [2.25ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 17:02:06 [0.63ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 17:02:06 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-25 17:02:06 [0.7ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-25 17:02:06 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-25 17:02:06 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-25 17:02:06 [0.66ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_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_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` = 'LTN879' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-25 17:02:06 [0.52ms] */
select * from `vehicle` where `license_plate` = 'LTN879' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-25 17:02:18 [1.71ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 17:02:18 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 17:02:18 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-25 17:02:18 [0.17ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-25 17:02:18 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-25 17:02:18 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-25 17:02:18 [0.34ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_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_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` = 'LTN879' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-25 17:02:18 [0.15ms] */
select * from `vehicle` where `license_plate` = 'LTN879' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-25 17:02:33 [2.07ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 17:02:33 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 17:02:33 [0.32ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-25 17:02:33 [0.33ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-25 17:02:33 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-25 17:02:33 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-25 17:02:33 [0.52ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_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_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` = 'LTN879' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-25 17:02:33 [0.27ms] */
select * from `vehicle` where `license_plate` = 'LTN879' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-25 17:09:33 [1.33ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 17:09:33 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 17:09:33 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-25 17:09:33 [0.26ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-25 17:09:33 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-25 17:09:33 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-25 17:09:33 [1.05ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_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_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` = 'E2102' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-25 17:09:33 [0.27ms] */
select * from `party` where `party`.`id` = 49804 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-25 17:09:33 [0.25ms] */
select * from `vehicle` where `id` = 76622 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-25 17:09:33 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 76622 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 1 - 2025-04-25 17:09:34 [2.39ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-25 17:09:34 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-25 17:09:34 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 4 - 2025-04-25 17:09:34 [0.32ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 5 - 2025-04-25 17:09:34 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-25 17:09:34 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 7 - 2025-04-25 17:09:34 [0.31ms] */
select * from `vehicle` where `vehicle`.`id` = 76622 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-25 17:09:34 [0.24ms] */
select * from `vehicle` where `id` = 76622 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 9 - 2025-04-25 17:09:34 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 76622 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 10 - 2025-04-25 17:09:34 [0.99ms] */
select `vehicle_tax`.`id`, `transaction`.`id` as `transaction_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` = 76622 and `vehicle_tax`.`exempt` = 'N' 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://rta2.puntlandgov.org/api/region-list
   Query 1 - 2025-04-25 17:09:34 [1.99ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 2 - 2025-04-25 17:09:34 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 3 - 2025-04-25 17:09:34 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 4 - 2025-04-25 17:09:34 [0.31ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 5 - 2025-04-25 17:09:34 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 6 - 2025-04-25 17:09:34 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 7 - 2025-04-25 17:09:34 [0.15ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 17:09:34 [1.28ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 17:09:34 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 17:09:34 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-25 17:09:34 [0.17ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 17:09:34 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 17:09:34 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 17:09:34 [0.21ms] */
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://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-25 17:10:59 [2.36ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 17:10:59 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 17:10:59 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-25 17:10:59 [0.22ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 17:10:59 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 17:10:59 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-25 17:10:59 [3.28ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 150 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-25 17:10:59 [2.28ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 150 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-25 17:10:59 [2.05ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-25 17:10:59 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-25 17:10:59 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 4 - 2025-04-25 17:10:59 [0.32ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-25 17:10:59 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-25 17:10:59 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-25 17:10:59 [0.16ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 8 - 2025-04-25 17:10:59 [0.27ms] */
select `transaction_id` from `vehicle_tax` where `id` in (335317) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-25 17:10:59 [0.2ms] */
select `parent_id` from `transaction` where `id` in (433391) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-25 17:10:59 [0.16ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-25 17:10:59 [0.21ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-25 17:10:59 [0.24ms] */
select * from `transaction` where `id` in (433391) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-25 17:10:59 [0.26ms] */
select * from `invoice` where `invoice`.`id` = 410913 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-25 17:10:59 [6.55ms] */
update `invoice` set `updated_by` = 150, `invoice`.`updated_at` = '2025-04-25 17:10:59' where `id` = 410913;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-25 17:10:59 [0.24ms] */
select * from `invoice` where `id` = 410913 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-25 17:10:59 [3.11ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 150, 'App\Models\User', 410913, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-25 17:10:59 [0.23ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 18 - 2025-04-25 17:10:59 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-25 17:10:59 [3.22ms] */
update `transaction` set `updated_by` = 150, `transaction`.`updated_at` = '2025-04-25 17:10:59' where `id` = 433391;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-25 17:10:59 [3.16ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-04-25 17:10:59' where `id` in (335317) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-25 17:10:59 [0.36ms] */
select * from `vehicle` where `vehicle`.`id` = 76622 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 22 - 2025-04-25 17:10:59 [0.23ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 23 - 2025-04-25 17:10:59 [0.38ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 76622 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 24 - 2025-04-25 17:10:59 [0.32ms] */
select * from `party_vehicle` where `vehicle_id` = 76622 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 25 - 2025-04-25 17:10:59 [0.28ms] */
select * from `party` where `party`.`id` = 49804 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 26 - 2025-04-25 17:10:59 [0.22ms] */
select * from `vehicle` where `vehicle`.`id` = 76622 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 27 - 2025-04-25 17:10:59 [0.14ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 28 - 2025-04-25 17:10:59 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 29 - 2025-04-25 17:10:59 [0.3ms] */
select * from `branches` where `branches`.`id` = 17 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 30 - 2025-04-25 17:10:59 [1ms] */
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 (49804, 2, 76622, null, 2, 6, 17, 37, 37, 'OPEN', 25, null, 150, 150, '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 31 - 2025-04-25 17:10:59 [0.39ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617016, 'INITIATED', '2025-04-25 17:10:59', 5, 150, 150, 150, '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 32 - 2025-04-25 17:10:59 [0.35ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 82191, `transaction`.`updated_at` = '2025-04-25 17:10:59' where `id` = 617016;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 33 - 2025-04-25 17:10:59 [0.4ms] */
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 (335317) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 34 - 2025-04-25 17:10:59 [0.32ms] */
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 (335317) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 35 - 2025-04-25 17:10:59 [0.44ms] */
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 (617016, 49804, '2025-04-25 17:10:59', '2025-04-25 17:10:59', 17.00, 0, 17.00, 17.00, 0, 'OPEN', 'N', 'Y', 150, 150, '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 36 - 2025-04-25 17:10:59 [0.34ms] */
select * from `invoice` where `id` = 590723 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 37 - 2025-04-25 17:10:59 [0.3ms] */
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":617016,"party_id":49804,"invoice_amount":"17.00","invoice_date":"2025-04-25 17:10:59","due_date":"2025-04-25 17:10:59","outstanding_balance":"17.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"17.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 150, 'App\Models\User', 590723, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 38 - 2025-04-25 17:10:59 [0.37ms] */
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 (335317) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 39 - 2025-04-25 17:10:59 [0.32ms] */
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', 1, 17.00, 17, 590723, 150, 150, '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 40 - 2025-04-25 17:10:59 [0.26ms] */
select * from `invoice_item` where `id` = 1064129 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 41 - 2025-04-25 17:10:59 [0.31ms] */
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":"17.00","quantity":1,"total_price":"17.00","invoice_id":590723}}', 150, 'App\Models\User', 1064129, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 42 - 2025-04-25 17:10:59 [0.25ms] */
update `invoice` set `invoice_number` = 'INV-512-590723194', `invoice`.`updated_at` = '2025-04-25 17:10:59' where `id` = 590723;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 43 - 2025-04-25 17:10:59 [0.3ms] */
select * from `invoice` where `id` = 590723 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 44 - 2025-04-25 17:10:59 [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":{"invoice_number":"INV-512-590723194"},"old":{"invoice_number":null}}', 150, 'App\Models\User', 590723, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 45 - 2025-04-25 17:10:59 [0.3ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 335317 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 46 - 2025-04-25 17:10:59 [0.25ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 150, `vehicle_tax`.`updated_at` = '2025-04-25 17:10:59' where `id` = 335317;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 47 - 2025-04-25 17:10:59 [0.27ms] */
select * from `vehicle_tax` where `id` = 335317 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 48 - 2025-04-25 17:10:59 [0.3ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 150, 'App\Models\User', 335317, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 49 - 2025-04-25 17:10:59 [0.37ms] */
select * from `transaction` where `transaction`.`id` = 433391 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 50 - 2025-04-25 17:10:59 [0.22ms] */
update `transaction` set `tax_collection_point_id` = 25, `parent_id` = 617016, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-25 17:10:59' where `id` = 433391;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 51 - 2025-04-25 17:10:59 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 410913 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 52 - 2025-04-25 17:10:59 [0.16ms] */
update `invoice` set `parent_id` = 590723, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-25 17:10:59' where `id` = 410913;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 53 - 2025-04-25 17:10:59 [0.19ms] */
select * from `invoice` where `id` = 410913 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 54 - 2025-04-25 17:10:59 [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":590723,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 150, 'App\Models\User', 410913, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 55 - 2025-04-25 17:10:59 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 433391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 56 - 2025-04-25 17:10:59 [0.21ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 57 - 2025-04-25 17:10:59 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 58 - 2025-04-25 17:10:59 [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://rta2.puntlandgov.org/api/make_payment
   Query 59 - 2025-04-25 17:10:59 [0.37ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 60 - 2025-04-25 17:10:59 [0.17ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 61 - 2025-04-25 17:10:59 [0.2ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (433391, 'APPROVED', '2025-04-25 17:10:59', 5, 150, null, 150, 150, '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 62 - 2025-04-25 17:10:59 [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://rta2.puntlandgov.org/api/make_payment
   Query 63 - 2025-04-25 17:10:59 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 17:10:59' where `id` = 433391;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 64 - 2025-04-25 17:10:59 [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://rta2.puntlandgov.org/api/make_payment
   Query 65 - 2025-04-25 17:10:59 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 410913 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 66 - 2025-04-25 17:10:59 [0.19ms] */
update `transaction` set `invoice_id` = 590723, `transaction`.`updated_at` = '2025-04-25 17:10:59' where `id` = 617016;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 67 - 2025-04-25 17:10:59 [0.39ms] */
update `vehicle` set `updated_by` = 150, `vehicle`.`updated_at` = '2025-04-25 17:10:59' where `id` = 76622;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 68 - 2025-04-25 17:10:59 [0.18ms] */
select * from `vehicle` where `id` = 76622 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 69 - 2025-04-25 17:10:59 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 150, 'App\Models\User', 76622, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 70 - 2025-04-25 17:10:59 [0.27ms] */
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":18}', '{"updated_by":150}', 'updated', 76622, 'Modules\Vehicle\Entities\Vehicle', 150, 'App\Models\User', null, '41.223.109.136', 'Dart/3.4 (dart:io)', 'https://rta2.puntlandgov.org/api/make_payment', '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 71 - 2025-04-25 17:10:59 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 617016 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 72 - 2025-04-25 17:10:59 [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://rta2.puntlandgov.org/api/make_payment
   Query 73 - 2025-04-25 17:10:59 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 74 - 2025-04-25 17:10:59 [0.17ms] */
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://rta2.puntlandgov.org/api/make_payment
   Query 75 - 2025-04-25 17:10:59 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617016, 'APPROVED', '2025-04-25 17:10:59', 5, 150, null, 150, 150, '2025-04-25 17:10:59', '2025-04-25 17:10:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 76 - 2025-04-25 17:10:59 [0.19ms] */
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://rta2.puntlandgov.org/api/make_payment
   Query 77 - 2025-04-25 17:10:59 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 17:10:59' where `id` = 617016;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 78 - 2025-04-25 17:10:59 [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://rta2.puntlandgov.org/api/make_payment
   Query 79 - 2025-04-25 17:10:59 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 590723 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 80 - 2025-04-25 17:10:59 [0.31ms] */
select `transaction_id` from `vehicle_tax` where `id` in (335317) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 81 - 2025-04-25 17:10:59 [0.4ms] */
select * from `invoice` where `transaction_id` = 433391 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 82 - 2025-04-25 17:10:59 [0.38ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 410913 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 83 - 2025-04-25 17:10:59 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 433391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 84 - 2025-04-25 17:10:59 [3.4ms] */
update `transaction` set `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-25 17:10:59' where `id` = 433391;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 85 - 2025-04-25 17:10:59 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 86 - 2025-04-25 17:10:59 [0.14ms] */
select * from `user_accounts` where `user_id` = 150 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 87 - 2025-04-25 17:10:59 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 88 - 2025-04-25 17:10:59 [0.13ms] */
select * from `user_accounts` where `user_id` = 150 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-25 17:11:00 [1.34ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-25 17:11:00 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-25 17:11:00 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 4 - 2025-04-25 17:11:00 [0.17ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-25 17:11:00 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-25 17:11:00 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-25 17:11:00 [0.15ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 8 - 2025-04-25 17:11:00 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (335317) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-25 17:11:00 [0.27ms] */
select `parent_id` from `transaction` where `id` in (433391) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-25 17:11:00 [132.28ms] */
select `id` from `transaction` where `parent_id` in (617016) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-25 17:11:00 [0.39ms] */
select * from `transaction` where `id` in (617016) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-25 17:11:00 [0.13ms] */
select `transaction_id` from `vehicle_tax` where `id` in (335317) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-25 17:11:00 [0.15ms] */
select * from `invoice` where `transaction_id` = 433391 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-25 17:11:00 [0.15ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 410913 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-25 17:11:00 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 433391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-25 17:11:00 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-25 17:11:00 [0.13ms] */
select * from `user_accounts` where `user_id` = 150 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 18 - 2025-04-25 17:11:00 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-25 17:11:00 [0.13ms] */
select * from `user_accounts` where `user_id` = 150 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 1 - 2025-04-25 17:11:01 [2.2ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 2 - 2025-04-25 17:11:01 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 3 - 2025-04-25 17:11:01 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 4 - 2025-04-25 17:11:01 [0.26ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 5 - 2025-04-25 17:11:01 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 6 - 2025-04-25 17:11:01 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 7 - 2025-04-25 17:11:01 [0.48ms] */
select * from `transaction` where `id` = 433391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 8 - 2025-04-25 17:11:01 [6.7ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 433391 and `payment_documents`.`transaction_id` is not null and `type` = 'SERVICE_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 9 - 2025-04-25 17:11:01 [5.74ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 433391 and `payment_documents`.`transaction_id` is not null and `type` = 'GOV_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 10 - 2025-04-25 17:11:01 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 410913 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 11 - 2025-04-25 17:11:01 [0.31ms] */
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` = 410913 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 17:11:01 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 17:11:01 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 17:11:01 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-25 17:11:01 [0.17ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 17:11:01 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 17:11:01 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 17:11:01 [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://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-25 17:11:02 [2.22ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 17:11:02 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 17:11:02 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-25 17:11:02 [0.31ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 17:11:02 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 17:11:02 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-25 17:11:02 [0.15ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 150 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-25 17:11:02 [0.13ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 150 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-25 17:11:38 [2.31ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-25 17:11:38 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-25 17:11:38 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-25 17:11:38 [0.21ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-25 17:11:38 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-25 17:11:38 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-25 17:11:38 [7.57ms] */
delete from `payment_documents` where `transaction_id` = 433391 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-25 17:11:38 [8.94ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2520440;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-25 17:11:38 [0.41ms] */
select * from `transaction` where `transaction`.`id` = 433391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-25 17:11:38 [413.5ms] */
select * from `transaction` where `parent_id` = 617016 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-25 17:11:39 [14.9ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (433391, 'GOV_RECEIPT_IMAGE', 2520440, 1, '2025-04-25 17:11:38', '2025-04-25 17:11:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-25 17:11:39 [7.23ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (617016, 'GOV_RECEIPT_IMAGE', 2520440, 1, '2025-04-25 17:11:39', '2025-04-25 17:11:39');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-25 17:11:39 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 433391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-25 17:11:39 [3.42ms] */
update `transaction` set `paid_by` = 'Axmed ibraahim', `paid_by_mobile` = 7602119, `transaction`.`updated_at` = '2025-04-25 17:11:39' where `id` = 433391;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 15 - 2025-04-25 17:11:39 [10.21ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-25 17:11:39' where `receipt_number` = 2520440 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-25 17:11:44 [2.24ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 17:11:44 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 17:11:44 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-25 17:11:44 [0.26ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 17:11:44 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 17:11:44 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-25 17:11:44 [2.9ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 150 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-25 17:11:44 [2.28ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 150 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-25 17:11:45 [2.03ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-25 17:11:45 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-25 17:11:45 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-25 17:11:45 [0.32ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-25 17:11:45 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-25 17:11:45 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-25 17:11:45 [7.44ms] */
delete from `payment_documents` where `transaction_id` = 433391 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-25 17:11:45 [15.5ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 126539;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-25 17:11:45 [0.35ms] */
select * from `transaction` where `transaction`.`id` = 433391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-25 17:11:46 [439.26ms] */
select * from `transaction` where `parent_id` = 617016 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-25 17:11:46 [3ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (433391, 'SERVICE_RECEIPT_IMAGE', 126539, 1, '2025-04-25 17:11:46', '2025-04-25 17:11:46');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-25 17:11:46 [2.68ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (617016, 'SERVICE_RECEIPT_IMAGE', 126539, 1, '2025-04-25 17:11:46', '2025-04-25 17:11:46');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-25 17:11:46 [7.4ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-25 17:11:46' where `receipt_number` = 126539 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-04-25 17:11:46 [1.86ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-04-25 17:11:46 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-04-25 17:11:46 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-04-25 17:11:46 [0.16ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-04-25 17:11:46 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-04-25 17:11:46 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-04-25 17:11:46 [0.18ms] */
select * from `transaction` where `transaction`.`id` = 433391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-04-25 17:11:46 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 617016 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-04-25 17:11:46 [0.24ms] */
select * from `invoice_payment` where `invoice_id` = 590723 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-04-25 17:11:46 [125.05ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 617016 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-04-25 17:11:46 [126.24ms] */
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` = 617016 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-04-25 17:11:46 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 617016 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-04-25 17:11:46 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-04-25 17:11:46 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 15 - 2025-04-25 17:11:46 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-04-25 17:11:46 [216.33ms] */
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` = 617016 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 17 - 2025-04-25 17:11:46 [0.39ms] */
select * from `party` where `party`.`id` = 49804 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 18 - 2025-04-25 17:11:46 [0.45ms] */
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-04-25 17:11:46', 1, 2520440, 1, 17.00, 'Axmed ibraahim', 7602119, null, 37, 150, 150, 150, '2025-04-25 17:11:46', '2025-04-25 17:11:46');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-04-25 17:11:46 [0.2ms] */
select * from `Payment` where `id` = 193691 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-04-25 17:11:46 [0.33ms] */
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":"17.00","payment_date":"2025-04-25 17:11:46","external_payment_reference_no":"1","payment_receipt_number":"2520440","siinpay_payref_number":null,"paid_by":"Axmed ibraahim","paid_by_mobile":"7602119","district_id":37,"migration_id":null,"payment_collected_by":150}}', 150, 'App\Models\User', 193691, 'Modules\Transaction\Entities\Payment', 'created', '2025-04-25 17:11:46', '2025-04-25 17:11:46');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-04-25 17:11:46 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 617016 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-04-25 17:11:46 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-04-25 17:11:46 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-04-25 17:11:46 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 410913 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-04-25 17:11:46 [0.31ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-25 17:11:46', 410913, 193691, '2025-04-25 17:11:46');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-04-25 17:11:46 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 410913 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-04-25 17:11:46 [0.24ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 410913 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-04-25 17:11:46 [0.3ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 410913 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 29 - 2025-04-25 17:11:46 [0.26ms] */
update `invoice` set `invoice_amount` = 17, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 17, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-25 17:11:46' where `id` = 410913;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-04-25 17:11:46 [0.18ms] */
select * from `invoice` where `id` = 410913 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-04-25 17:11:46 [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":"17.00","status":"OPEN"}}', 150, 'App\Models\User', 410913, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 17:11:46', '2025-04-25 17:11:46');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-04-25 17:11:46 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 433391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-04-25 17:11:46 [0.14ms] */
select * from `transaction` where `transaction`.`id` = 433391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-04-25 17:11:46 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 35 - 2025-04-25 17:11:46 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 36 - 2025-04-25 17:11:46 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 37 - 2025-04-25 17:11:46 [0.32ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (433391, 'PAID', '2025-04-25 17:11:46', 7, 150, null, 150, 150, '2025-04-25 17:11:46', '2025-04-25 17:11:46');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-04-25 17:11:46 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 39 - 2025-04-25 17:11:46 [0.31ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-25 17:11:46' where `id` = 433391;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-04-25 17:11:46 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 41 - 2025-04-25 17:11:46 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 410913 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 42 - 2025-04-25 17:11:46 [0.24ms] */
select * from `vehicle_tax` where `transaction_id` = 433391 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-04-25 17:11:46 [0.16ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-04-25 17:11:46' where `id` = 335317;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-04-25 17:11:46 [0.19ms] */
select * from `vehicle_tax` where `id` = 335317 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-04-25 17:11:46 [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"}}', 150, 'App\Models\User', 335317, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 17:11:46', '2025-04-25 17:11:46');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-04-25 17:11:46 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 590723 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 47 - 2025-04-25 17:11:46 [0.18ms] */
select * from `invoice` where `invoice`.`id` = 590723 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-04-25 17:11:46 [0.15ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-25 17:11:46', 590723, 193691, '2025-04-25 17:11:46');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-04-25 17:11:46 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 590723 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-04-25 17:11:46 [0.26ms] */
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` = 590723 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-04-25 17:11:46 [0.16ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-25 17:11:46' where `id` = 590723;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-04-25 17:11:46 [0.19ms] */
select * from `invoice` where `id` = 590723 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-04-25 17:11:46 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"17.00","status":"OPEN"}}', 150, 'App\Models\User', 590723, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 17:11:46', '2025-04-25 17:11:46');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-04-25 17:11:46 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 617016 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-04-25 17:11:46 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 617016 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-04-25 17:11:46 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-04-25 17:11:46 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 58 - 2025-04-25 17:11:46 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 59 - 2025-04-25 17:11:46 [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 (617016, 'PAID', '2025-04-25 17:11:46', 7, 150, null, 150, 150, '2025-04-25 17:11:46', '2025-04-25 17:11:46');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-04-25 17:11:46 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-04-25 17:11:46 [0.19ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-25 17:11:46' where `id` = 617016;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-04-25 17:11:46 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-04-25 17:11:46 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 590723 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-04-25 17:11:46 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 617016 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-04-25 17:11:46 [0.2ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 66 - 2025-04-25 17:11:46 [0.3ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617016, 'CLAIMED', '2025-04-25 17:11:46', 8, 150, 150, 150, '2025-04-25 17:11:46', '2025-04-25 17:11:46');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-04-25 17:11:46 [0.32ms] */
update `transaction` set `assigned_to` = 150, `transaction`.`updated_at` = '2025-04-25 17:11:46' where `id` = 617016;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 17:12:07 [1.33ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 17:12:07 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 17:12:07 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-25 17:12:07 [0.17ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 17:12:07 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 17:12:07 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 17:12:07 [0.3ms] */
select * from `vehicle_tax` where `id` = 335317 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 17:12:07 [0.76ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 17:12:09 [2ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 17:12:09 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 17:12:09 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-25 17:12:09 [0.26ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 17:12:09 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 17:12:09 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 17:12:09 [0.25ms] */
select * from `vehicle_tax` where `id` = 335317 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 17:12:09 [11.15ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-01%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 17:12:11 [1.25ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 17:12:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 17:12:11 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-25 17:12:11 [0.16ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 17:12:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 17:12:11 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 17:12:11 [0.16ms] */
select * from `vehicle_tax` where `id` = 335317 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 17:12:11 [14.23ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-0162%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-25 17:12:13 [1.92ms] */
select * from `oauth_access_tokens` where `id` = 'f25240b4e90d19d48cb15d3762ee5c701e7bc09a4f030563849f37bee2a47f99bb22f3a7dc6e557c' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 17:12:13 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'f25240b4e90d19d48cb15d3762ee5c701e7bc09a4f030563849f37bee2a47f99bb22f3a7dc6e557c' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 17:12:13 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-25 17:12:13 [0.27ms] */
select * from `users` where `id` = 176 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-25 17:12:13 [0.23ms] */
select * from `oauth_access_tokens` where `id` = 'f25240b4e90d19d48cb15d3762ee5c701e7bc09a4f030563849f37bee2a47f99bb22f3a7dc6e557c' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-25 17:12:13 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-25 17:12:13 [1.68ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_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_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` = 44125 and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-25 17:12:13 [0.25ms] */
select * from `party` where `party`.`id` = 56007 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-25 17:12:13 [0.23ms] */
select * from `company` where `company`.`id` = 294 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-25 17:12:13 [0.15ms] */
select * from `party` where `party`.`id` = 1 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 11 - 2025-04-25 17:12:13 [0.14ms] */
select * from `party` where `party`.`id` = 1 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 12 - 2025-04-25 17:12:13 [0.16ms] */
select * from `person` where `person`.`id` = 1 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 13 - 2025-04-25 17:12:13 [0.23ms] */
select * from `vehicle` where `id` = 489 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 14 - 2025-04-25 17:12:13 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 489 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-04-25 17:12:25 [1.98ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-04-25 17:12:25 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-04-25 17:12:25 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-04-25 17:12:25 [0.3ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-04-25 17:12:25 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-04-25 17:12:25 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-04-25 17:12:25 [0.4ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 652643 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-04-25 17:12:25 [0.15ms] */
select * from `vehicle_tax` where `id` = 335317 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-04-25 17:12:25 [19.32ms] */
update `vehicle_tax` set `tax_sticker_id` = 652643, `vehicle_tax`.`updated_at` = '2025-04-25 17:12:25' where `id` = 335317;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-04-25 17:12:25 [0.45ms] */
select * from `vehicle_tax` where `id` = 335317 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-04-25 17:12:25 [3.32ms] */
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":652643},"old":{"tax_sticker_id":null}}', 150, 'App\Models\User', 335317, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 17:12:25', '2025-04-25 17:12:25');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-04-25 17:12:25 [3.33ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 150, `tax_sticker`.`updated_at` = '2025-04-25 17:12:25' where `id` = 652643;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 1 - 2025-04-25 17:12:27 [1.98ms] */
select * from `oauth_access_tokens` where `id` = 'f25240b4e90d19d48cb15d3762ee5c701e7bc09a4f030563849f37bee2a47f99bb22f3a7dc6e557c' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-25 17:12:27 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'f25240b4e90d19d48cb15d3762ee5c701e7bc09a4f030563849f37bee2a47f99bb22f3a7dc6e557c' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-25 17:12:27 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 4 - 2025-04-25 17:12:27 [0.36ms] */
select * from `users` where `id` = 176 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 5 - 2025-04-25 17:12:27 [0.3ms] */
select * from `oauth_access_tokens` where `id` = 'f25240b4e90d19d48cb15d3762ee5c701e7bc09a4f030563849f37bee2a47f99bb22f3a7dc6e557c' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-25 17:12:27 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 7 - 2025-04-25 17:12:27 [0.32ms] */
select * from `vehicle` where `vehicle`.`id` = 489 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-25 17:12:27 [0.24ms] */
select * from `vehicle` where `id` = 489 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 9 - 2025-04-25 17:12:27 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 489 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 10 - 2025-04-25 17:12:27 [0.62ms] */
select `vehicle_tax`.`id`, `transaction`.`id` as `transaction_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` = 489 and `vehicle_tax`.`exempt` = 'N' 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://rta2.puntlandgov.org/api/region-list
   Query 1 - 2025-04-25 17:12:27 [1.34ms] */
select * from `oauth_access_tokens` where `id` = 'f25240b4e90d19d48cb15d3762ee5c701e7bc09a4f030563849f37bee2a47f99bb22f3a7dc6e557c' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 2 - 2025-04-25 17:12:27 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'f25240b4e90d19d48cb15d3762ee5c701e7bc09a4f030563849f37bee2a47f99bb22f3a7dc6e557c' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 3 - 2025-04-25 17:12:27 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 4 - 2025-04-25 17:12:27 [0.16ms] */
select * from `users` where `id` = 176 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 5 - 2025-04-25 17:12:27 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'f25240b4e90d19d48cb15d3762ee5c701e7bc09a4f030563849f37bee2a47f99bb22f3a7dc6e557c' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 6 - 2025-04-25 17:12:27 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 7 - 2025-04-25 17:12:27 [0.13ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 17:12:27 [1.93ms] */
select * from `oauth_access_tokens` where `id` = 'f25240b4e90d19d48cb15d3762ee5c701e7bc09a4f030563849f37bee2a47f99bb22f3a7dc6e557c' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 17:12:27 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'f25240b4e90d19d48cb15d3762ee5c701e7bc09a4f030563849f37bee2a47f99bb22f3a7dc6e557c' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 17:12:27 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-25 17:12:27 [0.24ms] */
select * from `users` where `id` = 176 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 17:12:27 [0.23ms] */
select * from `oauth_access_tokens` where `id` = 'f25240b4e90d19d48cb15d3762ee5c701e7bc09a4f030563849f37bee2a47f99bb22f3a7dc6e557c' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 17:12:27 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 17:12:27 [0.26ms] */
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://rta2.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-04-25 17:12:28 [1.89ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-04-25 17:12:28 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-04-25 17:12:28 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-04-25 17:12:28 [0.25ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-04-25 17:12:28 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 6 - 2025-04-25 17:12:28 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 7 - 2025-04-25 17:12:28 [0.45ms] */
select * from `vehicle_tax` where `id` in (335317) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 8 - 2025-04-25 17:12:28 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 433391 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 9 - 2025-04-25 17:12:28 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 433391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 10 - 2025-04-25 17:12:28 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 11 - 2025-04-25 17:12:28 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 12 - 2025-04-25 17:12:28 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 13 - 2025-04-25 17:12:28 [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 (433391, 'APPROVED', '2025-04-25 17:12:28', 8, 150, null, 150, 150, '2025-04-25 17:12:28', '2025-04-25 17:12:28');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 14 - 2025-04-25 17:12:28 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 15 - 2025-04-25 17:12:28 [0.3ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-25 17:12:28' where `id` = 433391;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-04-25 17:12:28 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 17 - 2025-04-25 17:12:28 [0.23ms] */
select * from `vehicle_tax` where `transaction_id` = 433391 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-04-25 17:12:28 [0.17ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-04-25 17:12:28' where `id` = 335317;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-04-25 17:12:28 [0.18ms] */
select * from `vehicle_tax` where `id` = 335317 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-04-25 17:12:28 [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":"ISSUED"},"old":{"status":"PAID"}}', 150, 'App\Models\User', 335317, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 17:12:28', '2025-04-25 17:12:28');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-04-25 17:12:28 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 410913 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 22 - 2025-04-25 17:12:28 [0.55ms] */
select * from `transaction` where `id` = 433391 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 23 - 2025-04-25 17:12:28 [0.5ms] */
select * from `transaction` where `transaction`.`id` = 617016 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 24 - 2025-04-25 17:12:28 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 25 - 2025-04-25 17:12:28 [0.29ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 26 - 2025-04-25 17:12:28 [0.31ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 27 - 2025-04-25 17:12:28 [0.34ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617016, 'APPROVED', '2025-04-25 17:12:28', 8, 150, null, 150, 150, '2025-04-25 17:12:28', '2025-04-25 17:12:28');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 28 - 2025-04-25 17:12:28 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 29 - 2025-04-25 17:12:28 [0.38ms] */
update `transaction` set `assigned_to` = null, `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-25 17:12:28' where `id` = 617016;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 30 - 2025-04-25 17:12:28 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 31 - 2025-04-25 17:12:28 [0.36ms] */
select * from `vehicle_tax` where `transaction_id` = 617016 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 32 - 2025-04-25 17:12:28 [0.33ms] */
select * from `invoice` where `invoice`.`id` = 590723 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 33 - 2025-04-25 17:12:28 [0.25ms] */
select * from `term` where `term`.`id` = 104 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 34 - 2025-04-25 17:12:28 [0.42ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 82191 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 35 - 2025-04-25 17:12:28 [0.26ms] */
select * from `party` where `party`.`id` = 49804 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 36 - 2025-04-25 17:12:28 [0.48ms] */
select * from `person` where `person`.`id` = 49804 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 37 - 2025-04-25 17:12:28 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 76622 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 38 - 2025-04-25 17:12:28 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 410913 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 39 - 2025-04-25 17:12:28 [0.3ms] */
select * from `invoice_payment` where `invoice_payment`.`invoice_id` = 410913 and `invoice_payment`.`invoice_id` is not null and `invoice_payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 40 - 2025-04-25 17:12:28 [0.26ms] */
select * from `Payment` where `Payment`.`id` = 193691 and `Payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 41 - 2025-04-25 17:12:28 [0.14ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 25 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 42 - 2025-04-25 17:12:28 [0.28ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 652643 and `tax_sticker`.`id` is not null and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-25 17:15:01 [1.29ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 17:15:01 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 17:15:01 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-25 17:15:01 [0.17ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-25 17:15:01 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-25 17:15:01 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-25 17:15:01 [0.81ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_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_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` = 'QE559' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-25 17:15:01 [0.24ms] */
select * from `party` where `party`.`id` = 54524 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-25 17:15:01 [0.24ms] */
select * from `vehicle` where `id` = 97719 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-25 17:15:01 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 97719 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 1 - 2025-04-25 17:15:02 [2.01ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-25 17:15:02 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-25 17:15:02 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 4 - 2025-04-25 17:15:02 [0.28ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 5 - 2025-04-25 17:15:02 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-25 17:15:02 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 7 - 2025-04-25 17:15:02 [0.46ms] */
select * from `vehicle` where `vehicle`.`id` = 97719 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-25 17:15:02 [0.36ms] */
select * from `vehicle` where `id` = 97719 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 9 - 2025-04-25 17:15:02 [0.42ms] */
select * from `party_vehicle` where `vehicle_id` = 97719 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 10 - 2025-04-25 17:15:02 [0.99ms] */
select `vehicle_tax`.`id`, `transaction`.`id` as `transaction_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` = 97719 and `vehicle_tax`.`exempt` = 'N' 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://rta2.puntlandgov.org/api/region-list
   Query 1 - 2025-04-25 17:15:03 [1.58ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 2 - 2025-04-25 17:15:03 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 3 - 2025-04-25 17:15:03 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 4 - 2025-04-25 17:15:03 [0.27ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 5 - 2025-04-25 17:15:03 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 6 - 2025-04-25 17:15:03 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 7 - 2025-04-25 17:15:03 [0.23ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 17:15:03 [1.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 17:15:03 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 17:15:03 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-25 17:15:03 [0.17ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 17:15:03 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 17:15:03 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 17:15:03 [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://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-25 17:17:21 [2.3ms] */
select * from `oauth_access_tokens` where `id` = '2d45b457060c57c8a17d199e2b0ba01dcc6b0f6177a3f75b024031e3533d7841d7c266c6b1e62666' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 17:17:21 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '2d45b457060c57c8a17d199e2b0ba01dcc6b0f6177a3f75b024031e3533d7841d7c266c6b1e62666' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 17:17:21 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-25 17:17:21 [0.4ms] */
select * from `users` where `id` = 173 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-25 17:17:21 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '2d45b457060c57c8a17d199e2b0ba01dcc6b0f6177a3f75b024031e3533d7841d7c266c6b1e62666' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-25 17:17:21 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-25 17:17:21 [0.76ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_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_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` = 'FC520' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-25 17:17:21 [0.23ms] */
select * from `party` where `party`.`id` = 37699 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-25 17:17:21 [0.26ms] */
select * from `vehicle` where `id` = 95309 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-25 17:17:21 [0.38ms] */
select * from `party_vehicle` where `vehicle_id` = 95309 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 1 - 2025-04-25 17:17:23 [2.02ms] */
select * from `oauth_access_tokens` where `id` = '2d45b457060c57c8a17d199e2b0ba01dcc6b0f6177a3f75b024031e3533d7841d7c266c6b1e62666' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-25 17:17:23 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '2d45b457060c57c8a17d199e2b0ba01dcc6b0f6177a3f75b024031e3533d7841d7c266c6b1e62666' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-25 17:17:23 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 4 - 2025-04-25 17:17:23 [0.32ms] */
select * from `users` where `id` = 173 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 5 - 2025-04-25 17:17:23 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '2d45b457060c57c8a17d199e2b0ba01dcc6b0f6177a3f75b024031e3533d7841d7c266c6b1e62666' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-25 17:17:23 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 7 - 2025-04-25 17:17:23 [0.29ms] */
select * from `vehicle` where `vehicle`.`id` = 95309 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-25 17:17:23 [0.23ms] */
select * from `vehicle` where `id` = 95309 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 9 - 2025-04-25 17:17:23 [0.35ms] */
select * from `party_vehicle` where `vehicle_id` = 95309 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 10 - 2025-04-25 17:17:23 [0.69ms] */
select `vehicle_tax`.`id`, `transaction`.`id` as `transaction_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` = 95309 and `vehicle_tax`.`exempt` = 'N' 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://rta2.puntlandgov.org/api/region-list
   Query 1 - 2025-04-25 17:17:24 [1.99ms] */
select * from `oauth_access_tokens` where `id` = '2d45b457060c57c8a17d199e2b0ba01dcc6b0f6177a3f75b024031e3533d7841d7c266c6b1e62666' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 2 - 2025-04-25 17:17:24 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '2d45b457060c57c8a17d199e2b0ba01dcc6b0f6177a3f75b024031e3533d7841d7c266c6b1e62666' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 3 - 2025-04-25 17:17:24 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 4 - 2025-04-25 17:17:24 [0.28ms] */
select * from `users` where `id` = 173 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 5 - 2025-04-25 17:17:24 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '2d45b457060c57c8a17d199e2b0ba01dcc6b0f6177a3f75b024031e3533d7841d7c266c6b1e62666' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 6 - 2025-04-25 17:17:24 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 7 - 2025-04-25 17:17:24 [0.2ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 17:17:25 [1.36ms] */
select * from `oauth_access_tokens` where `id` = '2d45b457060c57c8a17d199e2b0ba01dcc6b0f6177a3f75b024031e3533d7841d7c266c6b1e62666' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 17:17:25 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '2d45b457060c57c8a17d199e2b0ba01dcc6b0f6177a3f75b024031e3533d7841d7c266c6b1e62666' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 17:17:25 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-25 17:17:25 [0.17ms] */
select * from `users` where `id` = 173 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 17:17:25 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '2d45b457060c57c8a17d199e2b0ba01dcc6b0f6177a3f75b024031e3533d7841d7c266c6b1e62666' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 17:17:25 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 17:17:25 [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://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-25 17:17:50 [1.36ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 17:17:50 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 17:17:50 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-25 17:17:50 [0.17ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-25 17:17:50 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-25 17:17:50 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-25 17:17:50 [0.89ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_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_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` = 'RV445' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-25 17:17:50 [0.24ms] */
select * from `party` where `party`.`id` = 51899 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-25 17:17:50 [0.25ms] */
select * from `vehicle` where `id` = 94596 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-25 17:17:50 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 94596 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 1 - 2025-04-25 17:17:51 [1.26ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-25 17:17:51 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-25 17:17:51 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 4 - 2025-04-25 17:17:51 [0.17ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 5 - 2025-04-25 17:17:51 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-25 17:17:51 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 7 - 2025-04-25 17:17:51 [0.3ms] */
select * from `vehicle` where `vehicle`.`id` = 94596 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-25 17:17:51 [0.24ms] */
select * from `vehicle` where `id` = 94596 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 9 - 2025-04-25 17:17:51 [0.35ms] */
select * from `party_vehicle` where `vehicle_id` = 94596 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 10 - 2025-04-25 17:17:51 [0.65ms] */
select `vehicle_tax`.`id`, `transaction`.`id` as `transaction_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` = 94596 and `vehicle_tax`.`exempt` = 'N' 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://rta2.puntlandgov.org/api/region-list
   Query 1 - 2025-04-25 17:17:51 [2.26ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 2 - 2025-04-25 17:17:51 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 3 - 2025-04-25 17:17:51 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 4 - 2025-04-25 17:17:51 [0.16ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 5 - 2025-04-25 17:17:51 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 6 - 2025-04-25 17:17:51 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 7 - 2025-04-25 17:17:51 [0.13ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 17:17:52 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 17:17:52 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 17:17:52 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-25 17:17:52 [0.17ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 17:17:52 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 17:17:52 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 17:17:52 [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://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-25 17:20:27 [2ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 17:20:27 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 17:20:27 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-25 17:20:27 [0.3ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-25 17:20:27 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-25 17:20:27 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-25 17:20:27 [0.83ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_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_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` = 'HQ844' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-25 17:20:27 [0.23ms] */
select * from `party` where `party`.`id` = 59621 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-25 17:20:27 [0.26ms] */
select * from `vehicle` where `id` = 91647 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-25 17:20:27 [0.32ms] */
select * from `party_vehicle` where `vehicle_id` = 91647 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 1 - 2025-04-25 17:20:27 [2.03ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-25 17:20:27 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-25 17:20:27 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 4 - 2025-04-25 17:20:27 [0.36ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 5 - 2025-04-25 17:20:27 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-25 17:20:27 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 7 - 2025-04-25 17:20:27 [0.3ms] */
select * from `vehicle` where `vehicle`.`id` = 91647 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-25 17:20:27 [0.24ms] */
select * from `vehicle` where `id` = 91647 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 9 - 2025-04-25 17:20:27 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 91647 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 10 - 2025-04-25 17:20:27 [0.67ms] */
select `vehicle_tax`.`id`, `transaction`.`id` as `transaction_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` = 91647 and `vehicle_tax`.`exempt` = 'N' 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://rta2.puntlandgov.org/api/region-list
   Query 1 - 2025-04-25 17:20:28 [1.34ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 2 - 2025-04-25 17:20:28 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 3 - 2025-04-25 17:20:28 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 4 - 2025-04-25 17:20:28 [0.17ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 5 - 2025-04-25 17:20:28 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 6 - 2025-04-25 17:20:28 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 7 - 2025-04-25 17:20:28 [0.14ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 17:20:28 [1.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 17:20:28 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 17:20:28 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-25 17:20:28 [0.16ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 17:20:28 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 17:20:28 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 17:20:28 [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://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-25 17:22:48 [2.05ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 17:22:48 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 17:22:48 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-25 17:22:48 [0.35ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 17:22:48 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 17:22:48 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-25 17:22:48 [2.95ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-25 17:22:48 [2.28ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-25 17:22:49 [1.31ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-25 17:22:49 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-25 17:22:49 [0.14ms] */
