select * from `transaction` where `transaction`.`id` = 400320 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 42 - 2025-04-25 18:51:43 [5.01ms] */
update `transaction` set `tax_collection_point_id` = 13, `deliver_district_id` = 33, `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-25 18:51:43' where `id` = 400320;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 43 - 2025-04-25 18:51:43 [0.5ms] */
select * from `invoice` where `transaction_id` = 400321 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 44 - 2025-04-25 18:51:43 [0.48ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 377856 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 45 - 2025-04-25 18:51:43 [0.53ms] */
select * from `transaction` where `transaction`.`id` = 400321 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 46 - 2025-04-25 18:51:43 [3.48ms] */
update `transaction` set `tax_collection_point_id` = 13, `deliver_district_id` = 33, `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-25 18:51:43' where `id` = 400321;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 47 - 2025-04-25 18:51:43 [0.2ms] */
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 48 - 2025-04-25 18:51:43 [0.2ms] */
select * from `user_accounts` where `user_id` = 156 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 49 - 2025-04-25 18:51:43 [0.18ms] */
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 50 - 2025-04-25 18:51:43 [0.18ms] */
select * from `user_accounts` where `user_id` = 156 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 18:51:43 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-25 18:51:43 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-25 18:51:43 [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 18:51:43 [0.16ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-25 18:51:43 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-25 18:51:43 [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 18:51:44 [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 18:51:44 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (302283, 302284) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-25 18:51:44 [0.27ms] */
select `parent_id` from `transaction` where `id` in (400320, 400321) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-25 18:51:44 [0.15ms] */
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 18:51:44 [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 18:51:44 [0.24ms] */
select * from `transaction` where `id` in (400320, 400321) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-25 18:51:44 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 377855 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 18:51:44 [0.14ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-25 18:51:44 [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 16 - 2025-04-25 18:51:44 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 377856 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 17 - 2025-04-25 18:51:44 [0.13ms] */
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 18:51:44 [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 19 - 2025-04-25 18:51:44 [6.89ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-04-25 18:51:44' where `id` in (302283, 302284) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-25 18:51:44 [0.67ms] */
select * from `vehicle` where `vehicle`.`id` = 85475 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-25 18:51:44 [0.26ms] */
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 22 - 2025-04-25 18:51:44 [0.35ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 85475 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 23 - 2025-04-25 18:51:44 [0.25ms] */
select * from `party_vehicle` where `vehicle_id` = 85475 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 24 - 2025-04-25 18:51:44 [0.31ms] */
select * from `party` where `party`.`id` = 57921 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 25 - 2025-04-25 18:51:44 [0.23ms] */
select * from `vehicle` where `vehicle`.`id` = 85475 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 26 - 2025-04-25 18:51:44 [0.14ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 27 - 2025-04-25 18:51:44 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 28 - 2025-04-25 18:51:44 [0.59ms] */
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 (57921, 2, 85475, null, 2, 6, null, 33, 33, 'OPEN', 13, null, 156, 156, '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 29 - 2025-04-25 18:51:44 [0.28ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617038, 'INITIATED', '2025-04-25 18:51:44', 5, 156, 156, 156, '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 30 - 2025-04-25 18:51:44 [0.23ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 44982, `transaction`.`updated_at` = '2025-04-25 18:51:44' where `id` = 617038;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 31 - 2025-04-25 18:51:44 [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 (302283, 302284) 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 32 - 2025-04-25 18:51:44 [0.22ms] */
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 (302283, 302284) 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 33 - 2025-04-25 18:51:44 [0.33ms] */
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 (617038, 57921, '2025-04-25 18:51:44', '2025-04-25 18:51:44', 91.00, 0, 91.00, 91.00, 0, 'OPEN', 'N', 'Y', 156, 156, '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 34 - 2025-04-25 18:51:44 [0.21ms] */
select * from `invoice` where `id` = 590744 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 35 - 2025-04-25 18:51:44 [0.38ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":617038,"party_id":57921,"invoice_amount":"91.00","invoice_date":"2025-04-25 18:51:44","due_date":"2025-04-25 18:51:44","outstanding_balance":"91.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"91.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 156, 'App\Models\User', 590744, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 36 - 2025-04-25 18:51:44 [0.33ms] */
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 (302283, 302284) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 37 - 2025-04-25 18:51:44 [0.26ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Tax Service Fee', 'Combined Quarterly Tax Fees', 2, 62.00, 91, 590744, 156, 156, '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 38 - 2025-04-25 18:51:44 [0.19ms] */
select * from `invoice_item` where `id` = 1064162 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 39 - 2025-04-25 18:51:44 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Quarterly Tax Fees","unit_price":"62.00","quantity":2,"total_price":"91.00","invoice_id":590744}}', 156, 'App\Models\User', 1064162, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 40 - 2025-04-25 18:51:44 [0.18ms] */
update `invoice` set `invoice_number` = 'INV-412-590744861', `invoice`.`updated_at` = '2025-04-25 18:51:44' where `id` = 590744;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 41 - 2025-04-25 18:51:44 [0.2ms] */
select * from `invoice` where `id` = 590744 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 42 - 2025-04-25 18:51:44 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-412-590744861"},"old":{"invoice_number":null}}', 156, 'App\Models\User', 590744, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 43 - 2025-04-25 18:51:44 [0.23ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 302283 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 44 - 2025-04-25 18:51:44 [0.17ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 156, `vehicle_tax`.`updated_at` = '2025-04-25 18:51:44' where `id` = 302283;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 45 - 2025-04-25 18:51:44 [0.18ms] */
select * from `vehicle_tax` where `id` = 302283 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 46 - 2025-04-25 18:51:44 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 156, 'App\Models\User', 302283, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 47 - 2025-04-25 18:51:44 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 400320 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 48 - 2025-04-25 18:51:44 [0.19ms] */
update `transaction` set `parent_id` = 617038, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-25 18:51:44' where `id` = 400320;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 49 - 2025-04-25 18:51:44 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 377855 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 50 - 2025-04-25 18:51:44 [0.17ms] */
update `invoice` set `parent_id` = 590744, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-25 18:51:44' where `id` = 377855;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 51 - 2025-04-25 18:51:44 [0.19ms] */
select * from `invoice` where `id` = 377855 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 52 - 2025-04-25 18:51:44 [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":590744,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 156, 'App\Models\User', 377855, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 53 - 2025-04-25 18:51:44 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 400320 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 54 - 2025-04-25 18:51:44 [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 55 - 2025-04-25 18:51:44 [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 56 - 2025-04-25 18:51:44 [0.19ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 57 - 2025-04-25 18:51:44 [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 58 - 2025-04-25 18:51:44 [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 59 - 2025-04-25 18:51:44 [0.22ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (400320, 'APPROVED', '2025-04-25 18:51:44', 5, 156, null, 156, 156, '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 60 - 2025-04-25 18:51:44 [0.22ms] */
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 61 - 2025-04-25 18:51:44 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 18:51:44' where `id` = 400320;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 62 - 2025-04-25 18:51:44 [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 63 - 2025-04-25 18:51:44 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 377855 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 64 - 2025-04-25 18:51:44 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 302284 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 65 - 2025-04-25 18:51:44 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 156, `vehicle_tax`.`updated_at` = '2025-04-25 18:51:44' where `id` = 302284;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 66 - 2025-04-25 18:51:44 [0.19ms] */
select * from `vehicle_tax` where `id` = 302284 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 67 - 2025-04-25 18:51:44 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 156, 'App\Models\User', 302284, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 68 - 2025-04-25 18:51:44 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 400321 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 69 - 2025-04-25 18:51:44 [0.18ms] */
update `transaction` set `parent_id` = 617038, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-25 18:51:44' where `id` = 400321;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 70 - 2025-04-25 18:51:44 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 377856 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 71 - 2025-04-25 18:51:44 [0.17ms] */
update `invoice` set `parent_id` = 590744, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-25 18:51:44' where `id` = 377856;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 72 - 2025-04-25 18:51:44 [0.21ms] */
select * from `invoice` where `id` = 377856 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 73 - 2025-04-25 18:51:44 [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":590744,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 156, 'App\Models\User', 377856, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 74 - 2025-04-25 18:51:44 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 400321 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 75 - 2025-04-25 18:51:44 [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 76 - 2025-04-25 18:51:44 [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 77 - 2025-04-25 18:51:44 [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 78 - 2025-04-25 18:51:44 [0.15ms] */
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 79 - 2025-04-25 18:51:44 [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 (400321, 'APPROVED', '2025-04-25 18:51:44', 5, 156, null, 156, 156, '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 80 - 2025-04-25 18:51:44 [0.22ms] */
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 81 - 2025-04-25 18:51:44 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 18:51:44' where `id` = 400321;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 82 - 2025-04-25 18:51:44 [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 83 - 2025-04-25 18:51:44 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 377856 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 84 - 2025-04-25 18:51:44 [0.19ms] */
update `transaction` set `invoice_id` = 590744, `transaction`.`updated_at` = '2025-04-25 18:51:44' where `id` = 617038;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 85 - 2025-04-25 18:51:44 [0.5ms] */
update `vehicle` set `updated_by` = 156, `vehicle`.`updated_at` = '2025-04-25 18:51:44' where `id` = 85475;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 86 - 2025-04-25 18:51:44 [0.18ms] */
select * from `vehicle` where `id` = 85475 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 87 - 2025-04-25 18:51:44 [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":[]}', 156, 'App\Models\User', 85475, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 88 - 2025-04-25 18:51:44 [0.28ms] */
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":83}', '{"updated_by":156}', 'updated', 85475, 'Modules\Vehicle\Entities\Vehicle', 156, 'App\Models\User', null, '102.223.188.31', 'Dart/3.4 (dart:io)', 'https://rta2.puntlandgov.org/api/make_payment', '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 89 - 2025-04-25 18:51:44 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 617038 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 90 - 2025-04-25 18:51:44 [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 91 - 2025-04-25 18:51:44 [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 92 - 2025-04-25 18:51:44 [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 93 - 2025-04-25 18:51:44 [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 (617038, 'APPROVED', '2025-04-25 18:51:44', 5, 156, null, 156, 156, '2025-04-25 18:51:44', '2025-04-25 18:51:44');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 94 - 2025-04-25 18:51:44 [0.22ms] */
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 95 - 2025-04-25 18:51:44 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 18:51:44' where `id` = 617038;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 96 - 2025-04-25 18:51:44 [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 97 - 2025-04-25 18:51:44 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 590744 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 98 - 2025-04-25 18:51:44 [0.37ms] */
select `transaction_id` from `vehicle_tax` where `id` in (302283, 302284) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 99 - 2025-04-25 18:51:44 [0.35ms] */
select * from `invoice` where `transaction_id` = 400320 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 100 - 2025-04-25 18:51:44 [0.38ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 377855 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 101 - 2025-04-25 18:51:44 [0.35ms] */
select * from `transaction` where `transaction`.`id` = 400320 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 102 - 2025-04-25 18:51:44 [0.36ms] */
select * from `invoice` where `transaction_id` = 400321 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 103 - 2025-04-25 18:51:44 [0.32ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 377856 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 104 - 2025-04-25 18:51:44 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 400321 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 105 - 2025-04-25 18:51:44 [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 106 - 2025-04-25 18:51:44 [0.21ms] */
select * from `user_accounts` where `user_id` = 156 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 107 - 2025-04-25 18:51:44 [0.21ms] */
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 108 - 2025-04-25 18:51:44 [0.2ms] */
select * from `user_accounts` where `user_id` = 156 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 18:51:44 [1.96ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 2 - 2025-04-25 18:51:44 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 3 - 2025-04-25 18:51:44 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 4 - 2025-04-25 18:51:44 [0.36ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 5 - 2025-04-25 18:51:44 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 6 - 2025-04-25 18:51:44 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 7 - 2025-04-25 18:51:44 [0.32ms] */
select * from `transaction` where `id` = 400321 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 8 - 2025-04-25 18:51:44 [6.77ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 400321 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 18:51:44 [12.24ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 400321 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 18:51:44 [0.47ms] */
select * from `invoice` where `invoice`.`id` = 377856 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 18:51:44 [0.59ms] */
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` = 377856 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 18:51:44 [1.91ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 18:51:44 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 18:51:44 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-25 18:51:45 [0.29ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 18:51:45 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 18:51:45 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 18:51:45 [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/vehicle
   Query 1 - 2025-04-25 18:54:05 [2.01ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 18:54:05 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 18:54:05 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-25 18:54:05 [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 18:54:05 [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 18:54:05 [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 18:54:05 [0.82ms] */
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` = 'TN879' 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 18:54:05 [0.72ms] */
select * from `party` where `party`.`id` = 61774 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-25 18:54:05 [0.62ms] */
select * from `vehicle` where `id` = 98960 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 18:54:05 [0.69ms] */
select * from `party_vehicle` where `vehicle_id` = 98960 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 18:54:05 [1.64ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-25 18:54:05 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-25 18:54:05 [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 18:54:05 [0.27ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 5 - 2025-04-25 18:54:05 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-25 18:54:05 [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 18:54:05 [0.44ms] */
select * from `vehicle` where `vehicle`.`id` = 98960 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-25 18:54:05 [0.33ms] */
select * from `vehicle` where `id` = 98960 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 18:54:05 [0.4ms] */
select * from `party_vehicle` where `vehicle_id` = 98960 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 18:54:05 [0.94ms] */
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` = 98960 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 18:54:06 [1.35ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 2 - 2025-04-25 18:54:06 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 3 - 2025-04-25 18:54:06 [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 18:54:06 [0.17ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 5 - 2025-04-25 18:54:06 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 6 - 2025-04-25 18:54:06 [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 18:54:06 [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 18:54:06 [2.04ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 18:54:06 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 18:54:06 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-25 18:54:06 [0.33ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 18:54:06 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 18:54:06 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 18:54:06 [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 18:54:19 [1.99ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 18:54:19 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 18:54:19 [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 18:54:19 [0.28ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 18:54:19 [0.24ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 18:54:19 [0.21ms] */
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 18:54:19 [1.61ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 166 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 18:54:19 [2.58ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 166 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 18:54:20 [1.33ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-25 18:54:20 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-25 18:54:20 [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 18:54:20 [0.17ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-25 18:54:20 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-25 18:54:20 [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 18:54:20 [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 18:54:20 [0.27ms] */
select `transaction_id` from `vehicle_tax` where `id` in (453018) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-25 18:54:20 [0.2ms] */
select `parent_id` from `transaction` where `id` in (562587) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-25 18:54:20 [0.22ms] */
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 18:54:20 [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 18:54:20 [0.25ms] */
select * from `transaction` where `id` in (562587) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-25 18:54:20 [0.26ms] */
select * from `invoice` where `invoice`.`id` = 538287 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 18:54:20 [13.55ms] */
update `invoice` set `updated_by` = 166, `invoice`.`updated_at` = '2025-04-25 18:54:20' where `id` = 538287;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-25 18:54:20 [0.45ms] */
select * from `invoice` where `id` = 538287 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-25 18:54:20 [3.41ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 166, 'App\Models\User', 538287, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-25 18:54:20 [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 18:54:20 [0.23ms] */
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 18:54:20 [4.43ms] */
update `transaction` set `updated_by` = 166, `transaction`.`updated_at` = '2025-04-25 18:54:20' where `id` = 562587;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-25 18:54:20 [3.26ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-04-25 18:54:20' where `id` in (453018) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-25 18:54:20 [0.6ms] */
select * from `vehicle` where `vehicle`.`id` = 94766 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 22 - 2025-04-25 18:54:20 [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 18:54:20 [0.4ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 94766 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 18:54:20 [0.36ms] */
select * from `party_vehicle` where `vehicle_id` = 94766 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 18:54:20 [0.39ms] */
select * from `party` where `party`.`id` = 61344 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 18:54:20 [0.51ms] */
select * from `vehicle` where `vehicle`.`id` = 94766 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 18:54:20 [0.31ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 28 - 2025-04-25 18:54:20 [0.26ms] */
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 18:54:20 [0.61ms] */
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 (61344, 2, 94766, null, 2, 6, null, 18, 18, 'OPEN', 35, null, 166, 166, '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 30 - 2025-04-25 18:54:20 [0.33ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617039, 'INITIATED', '2025-04-25 18:54:20', 5, 166, 166, 166, '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 31 - 2025-04-25 18:54:20 [0.34ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 94589, `transaction`.`updated_at` = '2025-04-25 18:54:20' where `id` = 617039;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 32 - 2025-04-25 18:54:20 [0.38ms] */
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 (453018) 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 33 - 2025-04-25 18:54:20 [0.33ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (453018) 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 34 - 2025-04-25 18:54:20 [0.45ms] */
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 (617039, 61344, '2025-04-25 18:54:20', '2025-04-25 18:54:20', 31.00, 0, 31.00, 31.00, 0, 'OPEN', 'N', 'Y', 166, 166, '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 35 - 2025-04-25 18:54:20 [0.33ms] */
select * from `invoice` where `id` = 590745 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 36 - 2025-04-25 18:54:20 [0.34ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":617039,"party_id":61344,"invoice_amount":"31.00","invoice_date":"2025-04-25 18:54:20","due_date":"2025-04-25 18:54:20","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}}', 166, 'App\Models\User', 590745, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 37 - 2025-04-25 18:54:20 [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 (453018) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 38 - 2025-04-25 18:54:20 [0.26ms] */
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, 590745, 166, 166, '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 39 - 2025-04-25 18:54:20 [0.26ms] */
select * from `invoice_item` where `id` = 1064163 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 40 - 2025-04-25 18:54:20 [0.26ms] */
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":590745}}', 166, 'App\Models\User', 1064163, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 41 - 2025-04-25 18:54:20 [0.25ms] */
update `invoice` set `invoice_number` = 'INV-247-590745259', `invoice`.`updated_at` = '2025-04-25 18:54:20' where `id` = 590745;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 42 - 2025-04-25 18:54:20 [0.29ms] */
select * from `invoice` where `id` = 590745 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 43 - 2025-04-25 18:54:20 [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-247-590745259"},"old":{"invoice_number":null}}', 166, 'App\Models\User', 590745, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 44 - 2025-04-25 18:54:20 [0.34ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 453018 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 45 - 2025-04-25 18:54:20 [0.25ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 166, `vehicle_tax`.`updated_at` = '2025-04-25 18:54:20' where `id` = 453018;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 46 - 2025-04-25 18:54:20 [0.29ms] */
select * from `vehicle_tax` where `id` = 453018 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 47 - 2025-04-25 18:54:20 [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"}}', 166, 'App\Models\User', 453018, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 48 - 2025-04-25 18:54:20 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 562587 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 49 - 2025-04-25 18:54:20 [0.22ms] */
update `transaction` set `tax_collection_point_id` = 35, `deliver_district_id` = 18, `parent_id` = 617039, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-25 18:54:20' where `id` = 562587;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 50 - 2025-04-25 18:54:20 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 538287 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 51 - 2025-04-25 18:54:20 [0.28ms] */
update `invoice` set `parent_id` = 590745, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-25 18:54:20' where `id` = 538287;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 52 - 2025-04-25 18:54:20 [0.19ms] */
select * from `invoice` where `id` = 538287 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 53 - 2025-04-25 18:54:20 [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":590745,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 166, 'App\Models\User', 538287, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 54 - 2025-04-25 18:54:20 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 562587 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 55 - 2025-04-25 18:54:20 [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/make_payment
   Query 56 - 2025-04-25 18:54:20 [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 57 - 2025-04-25 18:54:20 [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 58 - 2025-04-25 18:54:20 [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 59 - 2025-04-25 18:54:20 [0.16ms] */
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 60 - 2025-04-25 18:54:20 [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 (562587, 'APPROVED', '2025-04-25 18:54:20', 5, 166, null, 166, 166, '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 61 - 2025-04-25 18:54:20 [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 62 - 2025-04-25 18:54:20 [0.26ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 18:54:20' where `id` = 562587;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 63 - 2025-04-25 18:54:20 [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 64 - 2025-04-25 18:54:20 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 538287 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 65 - 2025-04-25 18:54:20 [0.18ms] */
update `transaction` set `invoice_id` = 590745, `transaction`.`updated_at` = '2025-04-25 18:54:20' where `id` = 617039;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 66 - 2025-04-25 18:54:20 [0.24ms] */
update `vehicle` set `updated_by` = 166, `vehicle`.`updated_at` = '2025-04-25 18:54:20' where `id` = 94766;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 67 - 2025-04-25 18:54:20 [0.18ms] */
select * from `vehicle` where `id` = 94766 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 68 - 2025-04-25 18:54:20 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 166, 'App\Models\User', 94766, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 69 - 2025-04-25 18:54:20 [0.23ms] */
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":89}', '{"updated_by":166}', 'updated', 94766, 'Modules\Vehicle\Entities\Vehicle', 166, 'App\Models\User', null, '102.220.40.172', 'Dart/3.4 (dart:io)', 'https://rta2.puntlandgov.org/api/make_payment', '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 70 - 2025-04-25 18:54:20 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 617039 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 71 - 2025-04-25 18:54:20 [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 72 - 2025-04-25 18:54:20 [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 73 - 2025-04-25 18:54:20 [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 74 - 2025-04-25 18:54:20 [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 (617039, 'APPROVED', '2025-04-25 18:54:20', 5, 166, null, 166, 166, '2025-04-25 18:54:20', '2025-04-25 18:54:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 75 - 2025-04-25 18:54:20 [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 76 - 2025-04-25 18:54:20 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 18:54:20' where `id` = 617039;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 77 - 2025-04-25 18:54:20 [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 78 - 2025-04-25 18:54:20 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 590745 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 79 - 2025-04-25 18:54:20 [0.18ms] */
select `transaction_id` from `vehicle_tax` where `id` in (453018) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 80 - 2025-04-25 18:54:20 [0.29ms] */
select * from `invoice` where `transaction_id` = 562587 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 81 - 2025-04-25 18:54:20 [0.29ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 538287 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 82 - 2025-04-25 18:54:20 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 562587 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 83 - 2025-04-25 18:54:20 [2.83ms] */
update `transaction` set `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-25 18:54:20' where `id` = 562587;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 84 - 2025-04-25 18:54:20 [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 85 - 2025-04-25 18:54:20 [0.24ms] */
select * from `user_accounts` where `user_id` = 166 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 86 - 2025-04-25 18:54:20 [0.2ms] */
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 87 - 2025-04-25 18:54:20 [0.38ms] */
select * from `user_accounts` where `user_id` = 166 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 18:54:21 [1.36ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-25 18:54:21 [0.35ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-25 18:54:21 [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 18:54:21 [0.36ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-25 18:54:21 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-25 18:54:21 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-25 18:54:21 [0.24ms] */
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 18:54:21 [0.22ms] */
select `transaction_id` from `vehicle_tax` where `id` in (453018) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-25 18:54:21 [0.53ms] */
select `parent_id` from `transaction` where `id` in (562587) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-25 18:54:21 [148.26ms] */
select `id` from `transaction` where `parent_id` in (617039) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-25 18:54:21 [0.39ms] */
select * from `transaction` where `id` in (617039) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-25 18:54:21 [0.12ms] */
select `transaction_id` from `vehicle_tax` where `id` in (453018) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-25 18:54:21 [0.16ms] */
select * from `invoice` where `transaction_id` = 562587 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-25 18:54:21 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 538287 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 18:54:21 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 562587 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-25 18:54:21 [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 17 - 2025-04-25 18:54:21 [0.13ms] */
select * from `user_accounts` where `user_id` = 166 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 18:54:21 [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 18:54:21 [0.12ms] */
select * from `user_accounts` where `user_id` = 166 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 18:54:34 [1.32ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 2 - 2025-04-25 18:54:34 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 3 - 2025-04-25 18:54:34 [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 18:54:34 [0.17ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 5 - 2025-04-25 18:54:34 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 6 - 2025-04-25 18:54:34 [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 18:54:34 [0.56ms] */
select * from `transaction` where `id` = 562587 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 8 - 2025-04-25 18:54:34 [6.07ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 562587 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 18:54:34 [5.8ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 562587 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 18:54:34 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 538287 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 18:54:34 [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` = 538287 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 18:54:35 [1.3ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 18:54:35 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 18:54:35 [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 18:54:35 [0.17ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 18:54:35 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 18:54:35 [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 18:54:35 [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 18:54:39 [1.28ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 18:54:39 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 18:54:39 [0.15ms] */
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 18:54:39 [0.2ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 18:54:39 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 18:54:39 [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 18:54:39 [0.15ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 166 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 18:54:39 [0.13ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 166 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 18:55:42 [2.39ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-25 18:55:42 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-25 18:55:42 [0.25ms] */
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 18:55:42 [0.39ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-25 18:55:42 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-25 18:55:42 [0.25ms] */
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 18:55:42 [10.48ms] */
delete from `payment_documents` where `transaction_id` = 562587 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-25 18:55:42 [8.96ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2518371;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-25 18:55:42 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 562587 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-25 18:55:43 [410.03ms] */
select * from `transaction` where `parent_id` = 617039 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-25 18:55:43 [5.99ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (562587, 'GOV_RECEIPT_IMAGE', 2518371, 1, '2025-04-25 18:55:43', '2025-04-25 18:55:43');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-25 18:55:43 [3.02ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (617039, 'GOV_RECEIPT_IMAGE', 2518371, 1, '2025-04-25 18:55:43', '2025-04-25 18:55:43');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-25 18:55:43 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 562587 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-25 18:55:43 [3.35ms] */
update `transaction` set `paid_by` = 'liibaan', `paid_by_mobile` = 7077960, `transaction`.`updated_at` = '2025-04-25 18:55:43' where `id` = 562587;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 15 - 2025-04-25 18:55:43 [10.93ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-25 18:55:43' where `receipt_number` = 2518371 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 18:56:05 [1.98ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 18:56:05 [0.3ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 18:56:05 [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 18:56:05 [0.33ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 18:56:05 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 18:56:05 [0.24ms] */
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 18:56:05 [1.02ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 166 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 18:56:05 [2.36ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 166 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 18:56:13 [2.04ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-25 18:56:13 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-25 18:56:13 [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 18:56:13 [0.32ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-25 18:56:13 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-25 18:56:13 [0.26ms] */
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 18:56:13 [7.42ms] */
delete from `payment_documents` where `transaction_id` = 562587 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-25 18:56:13 [9.29ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 119831;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-25 18:56:13 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 562587 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-25 18:56:14 [413.49ms] */
select * from `transaction` where `parent_id` = 617039 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-25 18:56:14 [11.59ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (562587, 'SERVICE_RECEIPT_IMAGE', 119831, 1, '2025-04-25 18:56:14', '2025-04-25 18:56:14');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-25 18:56:14 [3.56ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (617039, 'SERVICE_RECEIPT_IMAGE', 119831, 1, '2025-04-25 18:56:14', '2025-04-25 18:56:14');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-25 18:56:14 [10.73ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-25 18:56:14' where `receipt_number` = 119831 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 18:56:14 [1.27ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-04-25 18:56:14 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-04-25 18:56:14 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-04-25 18:56:14 [0.17ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-04-25 18:56:14 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-04-25 18:56:14 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-04-25 18:56:14 [0.18ms] */
select * from `transaction` where `transaction`.`id` = 562587 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-04-25 18:56:14 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 617039 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-04-25 18:56:14 [0.3ms] */
select * from `invoice_payment` where `invoice_id` = 590745 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-04-25 18:56:14 [127.3ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 617039 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-04-25 18:56:14 [128.61ms] */
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` = 617039 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-04-25 18:56:14 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 617039 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-04-25 18:56:14 [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 18:56:14 [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 18:56:14 [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 18:56:15 [339.81ms] */
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` = 617039 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 18:56:15 [0.52ms] */
select * from `party` where `party`.`id` = 61344 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 18:56:15 [0.44ms] */
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 18:56:15', 1, 2518371, 1, 31.00, 'liibaan', 7077960, null, 18, 166, 166, 166, '2025-04-25 18:56:15', '2025-04-25 18:56:15');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-04-25 18:56:15 [0.2ms] */
select * from `Payment` where `id` = 193700 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-04-25 18:56:15 [0.32ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('Payment', '{"attributes":{"payment_method_id":1,"payment_amount":"31.00","payment_date":"2025-04-25 18:56:15","external_payment_reference_no":"1","payment_receipt_number":"2518371","siinpay_payref_number":null,"paid_by":"liibaan","paid_by_mobile":"7077960","district_id":18,"migration_id":null,"payment_collected_by":166}}', 166, 'App\Models\User', 193700, 'Modules\Transaction\Entities\Payment', 'created', '2025-04-25 18:56:15', '2025-04-25 18:56:15');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-04-25 18:56:15 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 617039 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-04-25 18:56:15 [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 18:56:15 [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 18:56:15 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 538287 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-04-25 18:56:15 [0.25ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-25 18:56:15', 538287, 193700, '2025-04-25 18:56:15');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-04-25 18:56:15 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 538287 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-04-25 18:56:15 [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` = 538287 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-04-25 18:56:15 [0.38ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 538287 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 18:56:15 [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 18:56:15' where `id` = 538287;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-04-25 18:56:15 [0.19ms] */
select * from `invoice` where `id` = 538287 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-04-25 18:56:15 [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":"31.00","status":"OPEN"}}', 166, 'App\Models\User', 538287, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:56:15', '2025-04-25 18:56:15');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-04-25 18:56:15 [0.41ms] */
select * from `transaction` where `transaction`.`id` = 562587 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-04-25 18:56:15 [0.14ms] */
select * from `transaction` where `transaction`.`id` = 562587 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-04-25 18:56:15 [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 18:56:15 [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 18:56:15 [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 18:56:15 [0.33ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (562587, 'PAID', '2025-04-25 18:56:15', 7, 166, null, 166, 166, '2025-04-25 18:56:15', '2025-04-25 18:56:15');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-04-25 18:56:15 [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 18:56:15 [0.31ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-25 18:56:15' where `id` = 562587;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-04-25 18:56:15 [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 18:56:15 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 538287 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 18:56:15 [0.3ms] */
select * from `vehicle_tax` where `transaction_id` = 562587 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-04-25 18:56:15 [0.16ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-04-25 18:56:15' where `id` = 453018;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-04-25 18:56:15 [0.19ms] */
select * from `vehicle_tax` where `id` = 453018 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-04-25 18:56:15 [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":"PAID"},"old":{"status":"INPROGRESS"}}', 166, 'App\Models\User', 453018, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:56:15', '2025-04-25 18:56:15');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-04-25 18:56:15 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 590745 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 18:56:15 [0.18ms] */
select * from `invoice` where `invoice`.`id` = 590745 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-04-25 18:56:15 [0.15ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-25 18:56:15', 590745, 193700, '2025-04-25 18:56:15');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-04-25 18:56:15 [0.18ms] */
select * from `invoice` where `invoice`.`id` = 590745 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-04-25 18:56:15 [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` = 590745 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-04-25 18:56:15 [0.17ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-25 18:56:15' where `id` = 590745;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-04-25 18:56:15 [0.19ms] */
select * from `invoice` where `id` = 590745 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-04-25 18:56:15 [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":"31.00","status":"OPEN"}}', 166, 'App\Models\User', 590745, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:56:15', '2025-04-25 18:56:15');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-04-25 18:56:15 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 617039 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-04-25 18:56:15 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 617039 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-04-25 18:56:15 [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 18:56:15 [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 18:56:15 [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 18:56:15 [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 (617039, 'PAID', '2025-04-25 18:56:15', 7, 166, null, 166, 166, '2025-04-25 18:56:15', '2025-04-25 18:56:15');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-04-25 18:56:15 [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 18:56:15 [0.19ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-25 18:56:15' where `id` = 617039;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-04-25 18:56:15 [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 18:56:15 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 590745 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-04-25 18:56:15 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 617039 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-04-25 18:56:15 [0.23ms] */
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 18:56:15 [0.3ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617039, 'CLAIMED', '2025-04-25 18:56:15', 8, 166, 166, 166, '2025-04-25 18:56:15', '2025-04-25 18:56:15');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-04-25 18:56:15 [0.33ms] */
update `transaction` set `assigned_to` = 166, `transaction`.`updated_at` = '2025-04-25 18:56:15' where `id` = 617039;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 18:56:20 [1.28ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 18:56:20 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 18:56:20 [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 18:56:20 [0.17ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 18:56:20 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 18:56:20 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 18:56:20 [0.34ms] */
select * from `vehicle_tax` where `id` = 453018 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 18:56:20 [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 18:56:24 [1.29ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 18:56:24 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 18:56:24 [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 18:56:24 [0.16ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 18:56:24 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 18:56:24 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 18:56:24 [0.16ms] */
select * from `vehicle_tax` where `id` = 453018 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 18:56:24 [9.6ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-01%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 18:56:24 [1.94ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 18:56:24 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 18:56:24 [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 18:56:24 [0.32ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 18:56:24 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 18:56:24 [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 18:56:24 [0.16ms] */
select * from `vehicle_tax` where `id` = 453018 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 18:56:24 [10.81ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-012%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 18:56:42 [1.26ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 18:56:42 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 18:56:42 [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 18:56:42 [0.16ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 18:56:42 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 18:56:42 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 18:56:42 [0.16ms] */
select * from `vehicle_tax` where `id` = 453018 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 18:56:42 [10.41ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-0129%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 18:56:42 [2.4ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 18:56:42 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 18:56:42 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-25 18:56:42 [0.24ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 18:56:42 [0.21ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 18:56:42 [0.38ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-25 18:56:42 [0.31ms] */
select * from `vehicle_tax` where `id` = 453018 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-25 18:56:42 [26.01ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-012970%' 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 18:56:47 [2.26ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-04-25 18:56:47 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-04-25 18:56:47 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-04-25 18:56:47 [0.22ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-04-25 18:56:47 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-04-25 18:56:47 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-04-25 18:56:47 [0.3ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 649373 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-04-25 18:56:47 [0.17ms] */
select * from `vehicle_tax` where `id` = 453018 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-04-25 18:56:47 [11.64ms] */
update `vehicle_tax` set `tax_sticker_id` = 649373, `vehicle_tax`.`updated_at` = '2025-04-25 18:56:47' where `id` = 453018;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-04-25 18:56:47 [0.46ms] */
select * from `vehicle_tax` where `id` = 453018 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-04-25 18:56:47 [3.5ms] */
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":649373},"old":{"tax_sticker_id":null}}', 166, 'App\Models\User', 453018, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:56:47', '2025-04-25 18:56:47');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-04-25 18:56:47 [3.57ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 166, `tax_sticker`.`updated_at` = '2025-04-25 18:56:47' where `id` = 649373;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-04-25 18:57:00 [2.51ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-04-25 18:57:00 [0.42ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-04-25 18:57:00 [0.37ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-04-25 18:57:00 [0.21ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-04-25 18:57:00 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 6 - 2025-04-25 18:57:00 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 7 - 2025-04-25 18:57:00 [0.57ms] */
select * from `vehicle_tax` where `id` in (453018) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 8 - 2025-04-25 18:57:00 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 562587 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 18:57:00 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 562587 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 10 - 2025-04-25 18:57:00 [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 18:57:00 [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 18:57:00 [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 18:57:00 [0.28ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (562587, 'APPROVED', '2025-04-25 18:57:00', 8, 166, null, 166, 166, '2025-04-25 18:57:00', '2025-04-25 18:57:00');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 14 - 2025-04-25 18:57:00 [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 18:57:00 [0.34ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-25 18:57:00' where `id` = 562587;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-04-25 18:57:00 [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/complete_transaction
   Query 17 - 2025-04-25 18:57:00 [0.27ms] */
select * from `vehicle_tax` where `transaction_id` = 562587 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-04-25 18:57:00 [0.18ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-04-25 18:57:00' where `id` = 453018;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-04-25 18:57:00 [0.18ms] */
select * from `vehicle_tax` where `id` = 453018 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-04-25 18:57:00 [0.25ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"ISSUED"},"old":{"status":"PAID"}}', 166, 'App\Models\User', 453018, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:57:00', '2025-04-25 18:57:00');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-04-25 18:57:00 [0.34ms] */
select * from `invoice` where `invoice`.`id` = 538287 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 18:57:00 [0.3ms] */
select * from `transaction` where `id` = 562587 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 23 - 2025-04-25 18:57:00 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 617039 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 24 - 2025-04-25 18:57:00 [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/complete_transaction
   Query 25 - 2025-04-25 18:57: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/complete_transaction
   Query 26 - 2025-04-25 18:57:00 [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 27 - 2025-04-25 18:57:00 [0.22ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617039, 'APPROVED', '2025-04-25 18:57:00', 8, 166, null, 166, 166, '2025-04-25 18:57:00', '2025-04-25 18:57:00');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 28 - 2025-04-25 18:57:00 [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 29 - 2025-04-25 18:57:00 [0.3ms] */
update `transaction` set `assigned_to` = null, `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-25 18:57:00' where `id` = 617039;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 30 - 2025-04-25 18:57:00 [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 31 - 2025-04-25 18:57:00 [0.33ms] */
select * from `vehicle_tax` where `transaction_id` = 617039 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 32 - 2025-04-25 18:57:00 [0.33ms] */
select * from `invoice` where `invoice`.`id` = 590745 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 18:57:00 [0.24ms] */
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 18:57:00 [0.41ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 94589 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 18:57:00 [0.23ms] */
select * from `party` where `party`.`id` = 61344 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 18:57:00 [0.45ms] */
select * from `person` where `person`.`id` = 58831 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 37 - 2025-04-25 18:57:00 [0.44ms] */
select * from `vehicle` where `vehicle`.`id` = 94766 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 18:57:00 [0.33ms] */
select * from `invoice` where `invoice`.`id` = 538287 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 18:57:00 [0.35ms] */
select * from `invoice_payment` where `invoice_payment`.`invoice_id` = 538287 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 18:57:00 [0.37ms] */
select * from `Payment` where `Payment`.`id` = 193700 and `Payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 41 - 2025-04-25 18:57:00 [0.35ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 35 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 42 - 2025-04-25 18:57:00 [0.43ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 649373 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 18:57:21 [2.24ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 18:57:21 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 18:57: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 18:57:21 [0.32ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-25 18:57:21 [0.29ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-25 18:57:21 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-25 18:57:21 [0.92ms] */
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` = 'RV473' 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 18:57:21 [0.15ms] */
select * from `party` where `party`.`id` = 61344 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-25 18:57:21 [0.23ms] */
select * from `vehicle` where `id` = 94766 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 18:57:21 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 94766 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 18:57:34 [1.97ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-25 18:57:34 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-25 18:57:34 [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 18:57:34 [0.32ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 5 - 2025-04-25 18:57:34 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-25 18:57:34 [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 18:57:34 [0.52ms] */
select * from `vehicle` where `vehicle`.`id` = 94766 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-25 18:57:34 [0.25ms] */
select * from `vehicle` where `id` = 94766 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 18:57:34 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 94766 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 18:57:34 [0.64ms] */
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` = 94766 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 18:57:35 [1.91ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 2 - 2025-04-25 18:57:35 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 3 - 2025-04-25 18:57:35 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 4 - 2025-04-25 18:57:35 [0.22ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 5 - 2025-04-25 18:57:35 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 6 - 2025-04-25 18:57:35 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 7 - 2025-04-25 18:57:35 [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 18:57:35 [1.22ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 18:57:35 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 18:57:35 [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 18:57:35 [0.16ms] */
select * from `users` where `id` = 166 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 18:57:35 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'ac6e20a64600b0ff723bbec28c6c78cb10bf91fedef3396a623a313d7f37a1a3650df0a982f7b139' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 18:57:35 [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 18:57:35 [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 18:57:39 [1.31ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 18:57:39 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 18:57:39 [0.14ms] */
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 18:57:39 [0.17ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 18:57:39 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 18:57:39 [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 18:57:39 [1.1ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 167 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 18:57:39 [2.49ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 167 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 18:57:52 [1.28ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-25 18:57:52 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-25 18:57:52 [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 18:57:52 [0.16ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-25 18:57:52 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-25 18:57:52 [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 18:57:52 [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 18:57:52 [0.24ms] */
select `transaction_id` from `vehicle_tax` where `id` in (462739) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-25 18:57:52 [0.23ms] */
select `parent_id` from `transaction` where `id` in (572325) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-25 18:57:52 [0.15ms] */
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 18:57:52 [0.27ms] */
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 18:57:52 [0.22ms] */
select * from `transaction` where `id` in (572325) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-25 18:57:52 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 548025 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 18:57:52 [14.24ms] */
update `invoice` set `updated_by` = 167, `invoice`.`updated_at` = '2025-04-25 18:57:52' where `id` = 548025;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-25 18:57:52 [0.42ms] */
select * from `invoice` where `id` = 548025 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-25 18:57:52 [3.83ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 167, 'App\Models\User', 548025, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-25 18:57:52 [0.32ms] */
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 18:57:52 [0.33ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-25 18:57:52 [3.72ms] */
update `transaction` set `updated_by` = 167, `transaction`.`updated_at` = '2025-04-25 18:57:52' where `id` = 572325;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-25 18:57:52 [3.46ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-04-25 18:57:52' where `id` in (462739) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-25 18:57:52 [0.53ms] */
select * from `vehicle` where `vehicle`.`id` = 98960 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 22 - 2025-04-25 18:57:52 [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 18:57:52 [0.4ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 98960 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 18:57:52 [0.36ms] */
select * from `party_vehicle` where `vehicle_id` = 98960 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 18:57:52 [0.38ms] */
select * from `party` where `party`.`id` = 61774 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 18:57:52 [0.32ms] */
select * from `vehicle` where `vehicle`.`id` = 98960 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 18:57:52 [0.22ms] */
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 18:57:52 [0.25ms] */
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 18:57:52 [0.87ms] */
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 (61774, 2, 98960, null, 2, 6, null, 43, 43, 'OPEN', 36, null, 167, 167, '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 30 - 2025-04-25 18:57:52 [0.31ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617040, 'INITIATED', '2025-04-25 18:57:52', 5, 167, 167, 167, '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 31 - 2025-04-25 18:57:52 [0.33ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 99230, `transaction`.`updated_at` = '2025-04-25 18:57:52' where `id` = 617040;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 32 - 2025-04-25 18:57:52 [0.34ms] */
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 (462739) 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 33 - 2025-04-25 18:57:52 [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 (462739) 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 34 - 2025-04-25 18:57:52 [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 (617040, 61774, '2025-04-25 18:57:52', '2025-04-25 18:57:52', 31.00, 0, 31.00, 31.00, 0, 'OPEN', 'N', 'Y', 167, 167, '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 35 - 2025-04-25 18:57:52 [0.2ms] */
select * from `invoice` where `id` = 590746 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 36 - 2025-04-25 18:57:52 [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":617040,"party_id":61774,"invoice_amount":"31.00","invoice_date":"2025-04-25 18:57:52","due_date":"2025-04-25 18:57:52","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}}', 167, 'App\Models\User', 590746, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 37 - 2025-04-25 18:57:52 [0.24ms] */
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 (462739) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 38 - 2025-04-25 18:57:52 [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, 590746, 167, 167, '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 39 - 2025-04-25 18:57:52 [0.17ms] */
select * from `invoice_item` where `id` = 1064164 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 40 - 2025-04-25 18:57:52 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Quarterly Tax Fees","unit_price":"31.00","quantity":1,"total_price":"31.00","invoice_id":590746}}', 167, 'App\Models\User', 1064164, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 41 - 2025-04-25 18:57:52 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-961-590746253', `invoice`.`updated_at` = '2025-04-25 18:57:52' where `id` = 590746;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 42 - 2025-04-25 18:57:52 [0.19ms] */
select * from `invoice` where `id` = 590746 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 43 - 2025-04-25 18:57:52 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-961-590746253"},"old":{"invoice_number":null}}', 167, 'App\Models\User', 590746, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 44 - 2025-04-25 18:57:52 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 462739 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 45 - 2025-04-25 18:57:52 [0.16ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 167, `vehicle_tax`.`updated_at` = '2025-04-25 18:57:52' where `id` = 462739;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 46 - 2025-04-25 18:57:52 [0.19ms] */
select * from `vehicle_tax` where `id` = 462739 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 47 - 2025-04-25 18:57:52 [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":"INPROGRESS"},"old":{"status":"OPEN"}}', 167, 'App\Models\User', 462739, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 48 - 2025-04-25 18:57:52 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 572325 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 49 - 2025-04-25 18:57:52 [0.25ms] */
update `transaction` set `tax_collection_point_id` = 36, `deliver_district_id` = 43, `parent_id` = 617040, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-25 18:57:52' where `id` = 572325;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 50 - 2025-04-25 18:57:52 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 548025 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 51 - 2025-04-25 18:57:52 [0.22ms] */
update `invoice` set `parent_id` = 590746, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-25 18:57:52' where `id` = 548025;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 52 - 2025-04-25 18:57:52 [0.19ms] */
select * from `invoice` where `id` = 548025 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 53 - 2025-04-25 18:57:52 [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":590746,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 167, 'App\Models\User', 548025, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 54 - 2025-04-25 18:57:52 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 572325 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 55 - 2025-04-25 18:57:52 [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 56 - 2025-04-25 18:57:52 [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 57 - 2025-04-25 18:57:52 [0.2ms] */
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 58 - 2025-04-25 18:57:52 [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 59 - 2025-04-25 18:57:52 [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 60 - 2025-04-25 18:57:52 [0.21ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (572325, 'APPROVED', '2025-04-25 18:57:52', 5, 167, null, 167, 167, '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 61 - 2025-04-25 18:57:52 [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 62 - 2025-04-25 18:57:52 [0.22ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 18:57:52' where `id` = 572325;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 63 - 2025-04-25 18:57:52 [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 64 - 2025-04-25 18:57:52 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 548025 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 65 - 2025-04-25 18:57:52 [0.19ms] */
update `transaction` set `invoice_id` = 590746, `transaction`.`updated_at` = '2025-04-25 18:57:52' where `id` = 617040;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 66 - 2025-04-25 18:57:52 [0.25ms] */
update `vehicle` set `updated_by` = 167, `vehicle`.`updated_at` = '2025-04-25 18:57:52' where `id` = 98960;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 67 - 2025-04-25 18:57:52 [0.19ms] */
select * from `vehicle` where `id` = 98960 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 68 - 2025-04-25 18:57:52 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 167, 'App\Models\User', 98960, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 69 - 2025-04-25 18:57:52 [0.28ms] */
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":79}', '{"updated_by":167}', 'updated', 98960, 'Modules\Vehicle\Entities\Vehicle', 167, 'App\Models\User', null, '102.220.40.171', 'Dart/3.4 (dart:io)', 'https://rta2.puntlandgov.org/api/make_payment', '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 70 - 2025-04-25 18:57:52 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 617040 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 71 - 2025-04-25 18:57:52 [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 72 - 2025-04-25 18:57:52 [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 73 - 2025-04-25 18:57:52 [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 74 - 2025-04-25 18:57:52 [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 (617040, 'APPROVED', '2025-04-25 18:57:52', 5, 167, null, 167, 167, '2025-04-25 18:57:52', '2025-04-25 18:57:52');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 75 - 2025-04-25 18:57:52 [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 76 - 2025-04-25 18:57:52 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 18:57:52' where `id` = 617040;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 77 - 2025-04-25 18:57:52 [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 78 - 2025-04-25 18:57:52 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 590746 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 79 - 2025-04-25 18:57:52 [0.37ms] */
select `transaction_id` from `vehicle_tax` where `id` in (462739) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 80 - 2025-04-25 18:57:52 [0.28ms] */
select * from `invoice` where `transaction_id` = 572325 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 81 - 2025-04-25 18:57:52 [0.34ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 548025 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 82 - 2025-04-25 18:57:52 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 572325 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 83 - 2025-04-25 18:57:52 [3.34ms] */
update `transaction` set `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-25 18:57:52' where `id` = 572325;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 84 - 2025-04-25 18:57:52 [0.23ms] */
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 85 - 2025-04-25 18:57:52 [0.45ms] */
select * from `user_accounts` where `user_id` = 167 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 86 - 2025-04-25 18:57:52 [0.2ms] */
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 87 - 2025-04-25 18:57:52 [0.33ms] */
select * from `user_accounts` where `user_id` = 167 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 18:57:53 [1.28ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-25 18:57:53 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-25 18:57:53 [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 18:57:53 [0.17ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-25 18:57:53 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-25 18:57:53 [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 18:57:53 [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 18:57:53 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (462739) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-25 18:57:53 [0.52ms] */
select `parent_id` from `transaction` where `id` in (572325) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-25 18:57:53 [130.72ms] */
select `id` from `transaction` where `parent_id` in (617040) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-25 18:57:53 [0.55ms] */
select * from `transaction` where `id` in (617040) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-25 18:57:53 [0.12ms] */
select `transaction_id` from `vehicle_tax` where `id` in (462739) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-25 18:57:53 [0.15ms] */
select * from `invoice` where `transaction_id` = 572325 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-25 18:57:53 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 548025 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 18:57:53 [0.35ms] */
select * from `transaction` where `transaction`.`id` = 572325 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-25 18:57:53 [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 17 - 2025-04-25 18:57:53 [0.14ms] */
select * from `user_accounts` where `user_id` = 167 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 18:57:53 [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 18:57:53 [0.13ms] */
select * from `user_accounts` where `user_id` = 167 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 18:57:54 [1.96ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 2 - 2025-04-25 18:57:54 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 3 - 2025-04-25 18:57:54 [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 18:57:54 [0.27ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 5 - 2025-04-25 18:57:54 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 6 - 2025-04-25 18:57:54 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 7 - 2025-04-25 18:57:54 [0.45ms] */
select * from `transaction` where `id` = 572325 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 8 - 2025-04-25 18:57:54 [7.09ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 572325 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 18:57:54 [5.77ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 572325 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 18:57:54 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 548025 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 18:57:54 [0.3ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 548025 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 18:57:54 [1.37ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 18:57:54 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 18:57:54 [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 18:57:54 [0.2ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 18:57:54 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 18:57:54 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 18:57:54 [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 18:58:00 [2.33ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 18:58:00 [0.32ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 18:58:00 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-25 18:58:00 [0.17ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-25 18:58:00 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-25 18:58:00 [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 18:58:00 [1.14ms] */
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` = 'LM559' 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 18:58:00 [0.24ms] */
select * from `party` where `party`.`id` = 57921 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-25 18:58:00 [0.23ms] */
select * from `company` where `company`.`id` = 2208 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-25 18:58:00 [0.22ms] */
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 18:58:00 [0.21ms] */
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 18:58:00 [0.25ms] */
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 18:58:01 [0.35ms] */
select * from `vehicle` where `id` = 85475 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 18:58:01 [0.25ms] */
select * from `party_vehicle` where `vehicle_id` = 85475 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 18:58:01 [1.26ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-25 18:58:01 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-25 18:58:01 [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 18:58:01 [0.16ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 5 - 2025-04-25 18:58:01 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-25 18:58:01 [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 18:58:01 [0.31ms] */
select * from `vehicle` where `vehicle`.`id` = 85475 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-25 18:58:01 [0.23ms] */
select * from `vehicle` where `id` = 85475 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 18:58:01 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 85475 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 18:58:01 [0.78ms] */
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` = 85475 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 18:58:02 [1.99ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 2 - 2025-04-25 18:58:02 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 3 - 2025-04-25 18:58:02 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 4 - 2025-04-25 18:58:02 [0.32ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 5 - 2025-04-25 18:58:02 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 6 - 2025-04-25 18:58:02 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 7 - 2025-04-25 18:58:02 [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 18:58:02 [1.91ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 18:58:02 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 18:58:02 [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 18:58:02 [0.3ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 18:58:02 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 18:58:02 [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 18:58:02 [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/get_receipt_number
   Query 1 - 2025-04-25 18:58:14 [2.02ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 18:58:14 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 18:58:14 [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 18:58:14 [0.31ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 18:58:14 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 18:58:14 [0.25ms] */
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 18:58:14 [0.15ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 167 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 18:58:14 [0.13ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 167 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 18:59:16 [1.3ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-25 18:59:16 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-25 18:59:16 [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 18:59:16 [0.17ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-25 18:59:16 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-25 18:59:16 [0.19ms] */
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 18:59:16 [7.57ms] */
delete from `payment_documents` where `transaction_id` = 572325 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-25 18:59:16 [9.12ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2518493;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-25 18:59:16 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 572325 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-25 18:59:16 [415.27ms] */
select * from `transaction` where `parent_id` = 617040 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-25 18:59:16 [9.95ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (572325, 'GOV_RECEIPT_IMAGE', 2518493, 1, '2025-04-25 18:59:16', '2025-04-25 18:59:16');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-25 18:59:16 [3.79ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (617040, 'GOV_RECEIPT_IMAGE', 2518493, 1, '2025-04-25 18:59:16', '2025-04-25 18:59:16');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-25 18:59:16 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 572325 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-25 18:59:16 [3.82ms] */
update `transaction` set `paid_by` = 'maxed ciise cabdi', `paid_by_mobile` = 7676402, `transaction`.`updated_at` = '2025-04-25 18:59:16' where `id` = 572325;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 15 - 2025-04-25 18:59:16 [10.66ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-25 18:59:16' where `receipt_number` = 2518493 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 19:00:27 [2.13ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-25 19:00:27 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-25 19:00:27 [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 19:00:27 [0.32ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 19:00:27 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-25 19:00:27 [0.25ms] */
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 19:00:27 [1.36ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 167 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 19:00:27 [2.17ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 167 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 19:00:37 [2.3ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-25 19:00:37 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-25 19:00:37 [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 19:00:37 [0.22ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-25 19:00:37 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-25 19:00:37 [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 19:00:37 [7.41ms] */
delete from `payment_documents` where `transaction_id` = 572325 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-25 19:00:37 [9.32ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 119937;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-25 19:00:37 [0.32ms] */
select * from `transaction` where `transaction`.`id` = 572325 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-25 19:00:37 [409.41ms] */
select * from `transaction` where `parent_id` = 617040 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-25 19:00:37 [12.66ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (572325, 'SERVICE_RECEIPT_IMAGE', 119937, 1, '2025-04-25 19:00:37', '2025-04-25 19:00:37');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-25 19:00:37 [3.19ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (617040, 'SERVICE_RECEIPT_IMAGE', 119937, 1, '2025-04-25 19:00:37', '2025-04-25 19:00:37');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-25 19:00:37 [13.14ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-25 19:00:37' where `receipt_number` = 119937 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 19:00:38 [1.91ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-04-25 19:00:38 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-04-25 19:00:38 [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 19:00:38 [0.3ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-04-25 19:00:38 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-04-25 19:00:38 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-04-25 19:00:38 [0.18ms] */
select * from `transaction` where `transaction`.`id` = 572325 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-04-25 19:00:38 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 617040 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-04-25 19:00:38 [0.23ms] */
select * from `invoice_payment` where `invoice_id` = 590746 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-04-25 19:00:38 [124.53ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 617040 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-04-25 19:00:38 [156.25ms] */
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` = 617040 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-04-25 19:00:38 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 617040 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-04-25 19:00:38 [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 19:00:38 [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 19:00:38 [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 19:00:38 [242.76ms] */
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` = 617040 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 19:00:38 [0.47ms] */
select * from `party` where `party`.`id` = 61774 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 19:00:38 [0.49ms] */
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 19:00:38', 123, 2518493, 1, 31.00, 'maxed ciise cabdi', 7676402, null, 43, 167, 167, 167, '2025-04-25 19:00:38', '2025-04-25 19:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-04-25 19:00:38 [0.2ms] */
select * from `Payment` where `id` = 193701 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-04-25 19:00:38 [0.31ms] */
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 19:00:38","external_payment_reference_no":"123","payment_receipt_number":"2518493","siinpay_payref_number":null,"paid_by":"maxed ciise cabdi","paid_by_mobile":"7676402","district_id":43,"migration_id":null,"payment_collected_by":167}}', 167, 'App\Models\User', 193701, 'Modules\Transaction\Entities\Payment', 'created', '2025-04-25 19:00:38', '2025-04-25 19:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-04-25 19:00:38 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 617040 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-04-25 19:00:38 [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 19:00:38 [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 19:00:38 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 548025 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-04-25 19:00:38 [0.23ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-25 19:00:38', 548025, 193701, '2025-04-25 19:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-04-25 19:00:38 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 548025 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-04-25 19:00:38 [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` = 548025 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-04-25 19:00:38 [0.33ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 548025 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 19:00:38 [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 19:00:38' where `id` = 548025;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-04-25 19:00:38 [0.18ms] */
select * from `invoice` where `id` = 548025 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-04-25 19:00:38 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"31.00","status":"OPEN"}}', 167, 'App\Models\User', 548025, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 19:00:38', '2025-04-25 19:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-04-25 19:00:38 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 572325 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-04-25 19:00:38 [0.15ms] */
select * from `transaction` where `transaction`.`id` = 572325 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-04-25 19:00:38 [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 19:00:38 [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 19:00:38 [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 19:00:38 [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 (572325, 'PAID', '2025-04-25 19:00:38', 7, 167, null, 167, 167, '2025-04-25 19:00:38', '2025-04-25 19:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-04-25 19:00:38 [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 19:00:38 [0.3ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-25 19:00:38' where `id` = 572325;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-04-25 19:00:38 [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/confirm_payment
   Query 41 - 2025-04-25 19:00:38 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 548025 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 19:00:38 [0.48ms] */
select * from `vehicle_tax` where `transaction_id` = 572325 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-04-25 19:00:38 [0.3ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-04-25 19:00:38' where `id` = 462739;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-04-25 19:00:38 [0.28ms] */
select * from `vehicle_tax` where `id` = 462739 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-04-25 19:00:38 [0.36ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 167, 'App\Models\User', 462739, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 19:00:38', '2025-04-25 19:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-04-25 19:00:38 [0.36ms] */
select * from `invoice` where `invoice`.`id` = 590746 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 19:00:38 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 590746 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-04-25 19:00:38 [0.34ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-25 19:00:38', 590746, 193701, '2025-04-25 19:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-04-25 19:00:38 [0.36ms] */
select * from `invoice` where `invoice`.`id` = 590746 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-04-25 19:00:38 [0.42ms] */
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` = 590746 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-04-25 19:00:38 [0.26ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-25 19:00:38' where `id` = 590746;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-04-25 19:00:38 [0.27ms] */
select * from `invoice` where `id` = 590746 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-04-25 19:00:38 [0.29ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"31.00","status":"OPEN"}}', 167, 'App\Models\User', 590746, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 19:00:38', '2025-04-25 19:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-04-25 19:00:38 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 617040 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-04-25 19:00:38 [0.35ms] */
select * from `transaction` where `transaction`.`id` = 617040 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-04-25 19:00:38 [0.22ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-04-25 19:00:38 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 58 - 2025-04-25 19:00:38 [0.28ms] */
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 19:00:38 [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 (617040, 'PAID', '2025-04-25 19:00:38', 7, 167, null, 167, 167, '2025-04-25 19:00:38', '2025-04-25 19:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-04-25 19:00:38 [0.41ms] */
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 19:00:38 [0.29ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-25 19:00:38' where `id` = 617040;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-04-25 19:00:38 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-04-25 19:00:38 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 590746 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 19:00:38 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 617040 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-04-25 19:00:38 [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 19:00:38 [0.28ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617040, 'CLAIMED', '2025-04-25 19:00:38', 8, 167, 167, 167, '2025-04-25 19:00:38', '2025-04-25 19:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-04-25 19:00:38 [0.3ms] */
update `transaction` set `assigned_to` = 167, `transaction`.`updated_at` = '2025-04-25 19:00:38' where `id` = 617040;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-25 19:00:58 [1.29ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 19:00:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 19:00:58 [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 19:00:58 [0.17ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 19:00:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 19:00:58 [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 19:00:58 [0.33ms] */
select * from `vehicle_tax` where `id` = 462739 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 19:00:58 [0.7ms] */
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 19:01:03 [1.97ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 19:01:03 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 19:01:03 [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 19:01:03 [0.3ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 19:01:03 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 19:01:03 [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 19:01:03 [0.31ms] */
select * from `vehicle_tax` where `id` = 462739 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 19:01:03 [9.74ms] */
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 19:01:03 [1.31ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 19:01:03 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 19:01:03 [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 19:01:03 [0.17ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 19:01:03 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 19:01:03 [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 19:01:03 [0.16ms] */
select * from `vehicle_tax` where `id` = 462739 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 19:01:04 [10.55ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-012%' 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 19:01:04 [1.87ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 19:01:04 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 19:01:04 [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 19:01:04 [0.31ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 19:01:04 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 19:01:04 [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 19:01:04 [0.15ms] */
select * from `vehicle_tax` where `id` = 462739 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 19:01:04 [10.37ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-0121%' 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 19:01:06 [1.94ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-25 19:01:06 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-25 19:01:06 [0.24ms] */
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 19:01:06 [0.35ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-25 19:01:06 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-25 19:01:06 [0.12ms] */
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 19:01:06 [0.15ms] */
select * from `vehicle_tax` where `id` = 462739 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 19:01:06 [22.45ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-01218%' 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 19:01:10 [1.29ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-04-25 19:01:10 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-04-25 19:01:10 [0.13ms] */
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 19:01:10 [0.26ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-04-25 19:01:10 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-04-25 19:01:10 [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 19:01:10 [0.43ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 648590 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 19:01:10 [0.24ms] */
select * from `vehicle_tax` where `id` = 462739 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 19:01:10 [11.77ms] */
update `vehicle_tax` set `tax_sticker_id` = 648590, `vehicle_tax`.`updated_at` = '2025-04-25 19:01:10' where `id` = 462739;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-04-25 19:01:10 [0.51ms] */
select * from `vehicle_tax` where `id` = 462739 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-04-25 19:01:10 [3.41ms] */
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":648590},"old":{"tax_sticker_id":null}}', 167, 'App\Models\User', 462739, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 19:01:10', '2025-04-25 19:01:10');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-04-25 19:01:10 [5.42ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 167, `tax_sticker`.`updated_at` = '2025-04-25 19:01:10' where `id` = 648590;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-04-25 19:01:12 [1.99ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-04-25 19:01:12 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-04-25 19:01:12 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-04-25 19:01:12 [0.35ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-04-25 19:01:12 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 6 - 2025-04-25 19:01:12 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 7 - 2025-04-25 19:01:12 [0.34ms] */
select * from `vehicle_tax` where `id` in (462739) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 8 - 2025-04-25 19:01:12 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 572325 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 19:01:12 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 572325 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 10 - 2025-04-25 19:01:12 [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 19:01:12 [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 19:01:12 [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 19:01:12 [0.26ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (572325, 'APPROVED', '2025-04-25 19:01:12', 8, 167, null, 167, 167, '2025-04-25 19:01:12', '2025-04-25 19:01:12');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 14 - 2025-04-25 19:01:12 [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 19:01:12 [0.29ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-25 19:01:12' where `id` = 572325;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-04-25 19:01:12 [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 19:01:12 [0.23ms] */
select * from `vehicle_tax` where `transaction_id` = 572325 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-04-25 19:01:12 [0.17ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-04-25 19:01:12' where `id` = 462739;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-04-25 19:01:12 [0.18ms] */
select * from `vehicle_tax` where `id` = 462739 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-04-25 19:01:12 [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"}}', 167, 'App\Models\User', 462739, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 19:01:12', '2025-04-25 19:01:12');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-04-25 19:01:12 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 548025 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 19:01:12 [0.58ms] */
select * from `transaction` where `id` = 572325 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 23 - 2025-04-25 19:01:12 [0.49ms] */
select * from `transaction` where `transaction`.`id` = 617040 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 24 - 2025-04-25 19:01:12 [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 19:01:12 [0.27ms] */
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 19:01:12 [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 19:01:12 [0.37ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617040, 'APPROVED', '2025-04-25 19:01:12', 8, 167, null, 167, 167, '2025-04-25 19:01:12', '2025-04-25 19:01:12');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 28 - 2025-04-25 19:01:12 [0.27ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 29 - 2025-04-25 19:01:12 [0.45ms] */
update `transaction` set `assigned_to` = null, `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-25 19:01:12' where `id` = 617040;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 30 - 2025-04-25 19:01:12 [0.21ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 31 - 2025-04-25 19:01:12 [0.35ms] */
select * from `vehicle_tax` where `transaction_id` = 617040 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 32 - 2025-04-25 19:01:12 [0.33ms] */
select * from `invoice` where `invoice`.`id` = 590746 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 19:01:12 [0.24ms] */
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 19:01:12 [0.44ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 99230 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 19:01:12 [0.23ms] */
select * from `party` where `party`.`id` = 61774 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 19:01:12 [0.44ms] */
select * from `person` where `person`.`id` = 59239 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 37 - 2025-04-25 19:01:12 [0.44ms] */
select * from `vehicle` where `vehicle`.`id` = 98960 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 19:01:12 [0.37ms] */
select * from `invoice` where `invoice`.`id` = 548025 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 19:01:12 [0.4ms] */
select * from `invoice_payment` where `invoice_payment`.`invoice_id` = 548025 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 19:01:12 [0.23ms] */
select * from `Payment` where `Payment`.`id` = 193701 and `Payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 41 - 2025-04-25 19:01:12 [0.24ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 36 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 42 - 2025-04-25 19:01:12 [0.21ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 648590 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 19:01:33 [2.09ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 19:01:33 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-25 19:01:33 [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 19:01:33 [0.45ms] */
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 19:01:33 [0.35ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-25 19:01:33 [0.32ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-25 19:01:33 [0.96ms] */
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` = 'TN879' 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 19:01:33 [0.16ms] */
select * from `party` where `party`.`id` = 61774 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-25 19:01:33 [0.25ms] */
select * from `vehicle` where `id` = 98960 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 19:01:33 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 98960 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 19:01:47 [2.07ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-25 19:01:47 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-25 19:01:47 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 4 - 2025-04-25 19:01:47 [0.35ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 5 - 2025-04-25 19:01:47 [0.34ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-25 19:01:47 [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 19:01:47 [0.3ms] */
select * from `vehicle` where `vehicle`.`id` = 98960 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-25 19:01:47 [0.22ms] */
select * from `vehicle` where `id` = 98960 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 19:01:47 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 98960 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 19:01:47 [0.63ms] */
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` = 98960 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 19:01:47 [1.94ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 2 - 2025-04-25 19:01:47 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 3 - 2025-04-25 19:01:47 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 4 - 2025-04-25 19:01:47 [0.27ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 5 - 2025-04-25 19:01:47 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 6 - 2025-04-25 19:01:47 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 7 - 2025-04-25 19:01:47 [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 19:01:48 [1.28ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-25 19:01:48 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-25 19:01:48 [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 19:01:48 [0.17ms] */
select * from `users` where `id` = 167 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-25 19:01:48 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '111b1ba971659fdbd78201b91e16945d24ac54642a35b13d24f70d79fe36ac6f617d965d78eb1334' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-25 19:01:48 [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 19:01:48 [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/vehicle
   Query 1 - 2025-04-25 19:17:27 [1.31ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-25 19:17:27 [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 19:17:27 [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 19:17:27 [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 19:17:27 [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 19:17:27 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-25 19:17:27 [0.85ms] */
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` = 'RA237' 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 19:17:27 [0.25ms] */
select * from `party` where `party`.`id` = 47731 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-25 19:17:27 [0.24ms] */
select * from `vehicle` where `id` = 71062 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 19:17:27 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 71062 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 19:17:27 [2.3ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-25 19:17:27 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-25 19:17:27 [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 19:17:27 [0.36ms] */
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 19:17:27 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-25 19:17:27 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 7 - 2025-04-25 19:17:27 [0.29ms] */
select * from `vehicle` where `vehicle`.`id` = 71062 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-25 19:17:27 [0.24ms] */
select * from `vehicle` where `id` = 71062 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 19:17:27 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 71062 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 19:17:27 [0.83ms] */
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` = 71062 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 19:17:28 [1.32ms] */
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 19:17:28 [0.14ms] */
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 19:17: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 19:17:28 [0.17ms] */
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 19:17:28 [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 19:17: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 19:17:28 [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 19:17:28 [1.24ms] */
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 19:17:28 [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 19:17: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 19:17:28 [0.16ms] */
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 19:17:28 [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 19:17: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 19:17:28 [0.23ms] */
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 19:18:26 [1.29ms] */
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 19:18:26 [0.14ms] */
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 19:18:26 [0.14ms] */
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 19:18:26 [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_receipt_number
   Query 5 - 2025-04-25 19:18:26 [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 19:18:26 [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 19:18:26 [3.11ms] */
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 19:18:26 [2.37ms] */
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 19:18:27 [1.29ms] */
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 19:18:27 [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 19:18:27 [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 19:18:27 [0.16ms] */
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 19:18:27 [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 19:18:27 [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 19:18:27 [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 19:18:27 [0.28ms] */
select `transaction_id` from `vehicle_tax` where `id` in (402843) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-25 19:18:27 [0.21ms] */
select `parent_id` from `transaction` where `id` in (512316) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-25 19:18:27 [0.22ms] */
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 19:18:27 [0.25ms] */
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 19:18:27 [0.34ms] */
select * from `transaction` where `id` in (512316) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-25 19:18:27 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 488024 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 19:18:27 [6.4ms] */
update `invoice` set `updated_by` = 150, `invoice`.`updated_at` = '2025-04-25 19:18:27' where `id` = 488024;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-25 19:18:27 [0.36ms] */
select * from `invoice` where `id` = 488024 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-25 19:18:27 [3.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":[]}', 150, 'App\Models\User', 488024, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-25 19:18:27 [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 19:18:27 [0.23ms] */
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 19:18:27 [3.38ms] */
update `transaction` set `updated_by` = 150, `transaction`.`updated_at` = '2025-04-25 19:18:27' where `id` = 512316;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-25 19:18:27 [3.32ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-04-25 19:18:27' where `id` in (402843) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-25 19:18:27 [0.52ms] */
select * from `vehicle` where `vehicle`.`id` = 71062 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 22 - 2025-04-25 19:18:27 [0.22ms] */
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 19:18:27 [0.41ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 71062 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 19:18:27 [0.36ms] */
select * from `party_vehicle` where `vehicle_id` = 71062 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 19:18:27 [0.33ms] */
select * from `party` where `party`.`id` = 47731 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 19:18:27 [0.49ms] */
select * from `vehicle` where `vehicle`.`id` = 71062 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 19:18:27 [0.24ms] */
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 19:18:27 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 29 - 2025-04-25 19:18:27 [0.14ms] */
select * from `branches` where `branches`.`id` = 17 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 30 - 2025-04-25 19:18:27 [0.57ms] */
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 (47731, 2, 71062, null, 2, 6, 17, 37, 37, 'OPEN', 25, null, 150, 150, '2025-04-25 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 31 - 2025-04-25 19:18:27 [0.2ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (617041, 'INITIATED', '2025-04-25 19:18:27', 5, 150, 150, 150, '2025-04-25 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 32 - 2025-04-25 19:18:27 [0.2ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 4943, `transaction`.`updated_at` = '2025-04-25 19:18:27' where `id` = 617041;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 33 - 2025-04-25 19:18:27 [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 (402843) 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 19:18:27 [0.21ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (402843) 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 19:18:27 [0.28ms] */
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 (617041, 47731, '2025-04-25 19:18:27', '2025-04-25 19:18:27', 31.00, 0, 31.00, 31.00, 0, 'OPEN', 'N', 'Y', 150, 150, '2025-04-25 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 36 - 2025-04-25 19:18:27 [0.2ms] */
select * from `invoice` where `id` = 590747 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 37 - 2025-04-25 19:18:27 [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":617041,"party_id":47731,"invoice_amount":"31.00","invoice_date":"2025-04-25 19:18:27","due_date":"2025-04-25 19:18:27","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}}', 150, 'App\Models\User', 590747, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-25 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 38 - 2025-04-25 19:18:27 [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 (402843) 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 19:18:27 [0.27ms] */
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, 590747, 150, 150, '2025-04-25 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 40 - 2025-04-25 19:18:27 [0.17ms] */
select * from `invoice_item` where `id` = 1064165 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 41 - 2025-04-25 19:18:27 [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":590747}}', 150, 'App\Models\User', 1064165, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-25 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 42 - 2025-04-25 19:18:27 [0.17ms] */
update `invoice` set `invoice_number` = 'INV-461-590747149', `invoice`.`updated_at` = '2025-04-25 19:18:27' where `id` = 590747;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 43 - 2025-04-25 19:18:27 [0.19ms] */
select * from `invoice` where `id` = 590747 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 44 - 2025-04-25 19:18:27 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-461-590747149"},"old":{"invoice_number":null}}', 150, 'App\Models\User', 590747, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 45 - 2025-04-25 19:18:27 [0.2ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 402843 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 46 - 2025-04-25 19:18:27 [0.16ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 150, `vehicle_tax`.`updated_at` = '2025-04-25 19:18:27' where `id` = 402843;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 47 - 2025-04-25 19:18:27 [0.17ms] */
select * from `vehicle_tax` where `id` = 402843 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 48 - 2025-04-25 19:18:27 [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"}}', 150, 'App\Models\User', 402843, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-25 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 49 - 2025-04-25 19:18:27 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 512316 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 19:18:27 [0.22ms] */
update `transaction` set `tax_collection_point_id` = 25, `parent_id` = 617041, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-25 19:18:27' where `id` = 512316;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 51 - 2025-04-25 19:18:27 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 488024 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 19:18:27 [0.26ms] */
update `invoice` set `parent_id` = 590747, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-25 19:18:27' where `id` = 488024;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 53 - 2025-04-25 19:18:27 [0.19ms] */
select * from `invoice` where `id` = 488024 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 54 - 2025-04-25 19:18:27 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":590747,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 150, 'App\Models\User', 488024, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 55 - 2025-04-25 19:18:27 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 512316 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 56 - 2025-04-25 19:18:27 [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 19:18:27 [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 58 - 2025-04-25 19:18:27 [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 19:18:27 [0.39ms] */
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 19:18:27 [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 19:18:27 [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 (512316, 'APPROVED', '2025-04-25 19:18:27', 5, 150, null, 150, 150, '2025-04-25 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 62 - 2025-04-25 19:18:27 [0.23ms] */
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 19:18:27 [0.22ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 19:18:27' where `id` = 512316;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 64 - 2025-04-25 19:18:27 [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 19:18:27 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 488024 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 19:18:27 [0.18ms] */
update `transaction` set `invoice_id` = 590747, `transaction`.`updated_at` = '2025-04-25 19:18:27' where `id` = 617041;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 67 - 2025-04-25 19:18:27 [0.35ms] */
update `vehicle` set `updated_by` = 150, `vehicle`.`updated_at` = '2025-04-25 19:18:27' where `id` = 71062;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 68 - 2025-04-25 19:18:27 [0.18ms] */
select * from `vehicle` where `id` = 71062 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 69 - 2025-04-25 19:18:27 [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', 71062, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-04-25 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 70 - 2025-04-25 19:18:27 [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":34}', '{"updated_by":150}', 'updated', 71062, '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 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 71 - 2025-04-25 19:18:27 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 617041 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 72 - 2025-04-25 19:18:27 [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 19:18:27 [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 19:18:27 [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 19:18:27 [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 (617041, 'APPROVED', '2025-04-25 19:18:27', 5, 150, null, 150, 150, '2025-04-25 19:18:27', '2025-04-25 19:18:27');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 76 - 2025-04-25 19:18:27 [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 77 - 2025-04-25 19:18:27 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-25 19:18:27' where `id` = 617041;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 78 - 2025-04-25 19:18:27 [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 19:18:27 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 590747 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 19:18:27 [0.3ms] */
select `transaction_id` from `vehicle_tax` where `id` in (402843) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 81 - 2025-04-25 19:18:27 [0.36ms] */
select * from `invoice` where `transaction_id` = 512316 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 82 - 2025-04-25 19:18:27 [0.41ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 488024 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 19:18:27 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 512316 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 84 - 2025-04-25 19:18:27 [3.33ms] */
update `transaction` set `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-25 19:18:27' where `id` = 512316;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 85 - 2025-04-25 19:18:27 [0.21ms] */
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 19:18:27 [0.22ms] */
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 19:18:27 [0.2ms] */
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 19:18:27 [0.2ms] */
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 19:18:27 [1.35ms] */
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 19:18:27 [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 19:18:27 [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 19:18:27 [0.16ms] */
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 19:18:27 [0.15ms] */
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 19:18:27 [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 19:18:27 [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 19:18:27 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (402843) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-25 19:18:27 [0.34ms] */
select `parent_id` from `transaction` where `id` in (512316) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-25 19:18:28 [141.77ms] */
select `id` from `transaction` where `parent_id` in (617041) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-25 19:18:28 [0.49ms] */
select * from `transaction` where `id` in (617041) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-25 19:18:28 [0.12ms] */
select `transaction_id` from `vehicle_tax` where `id` in (402843) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-25 19:18:28 [0.15ms] */
select * from `invoice` where `transaction_id` = 512316 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-25 19:18:28 [0.15ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 488024 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 19:18:28 [0.37ms] */
select * from `transaction` where `transaction`.`id` = 512316 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-25 19:18:28 [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 17 - 2025-04-25 19:18:28 [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 18 - 2025-04-25 19:18:28 [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 19:18:28 [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 19:18:29 [1.27ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 2 - 2025-04-25 19:18:29 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 3 - 2025-04-25 19:18:29 [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 19:18:29 [0.25ms] */
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 19:18:29 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1a0978b30e0094ec4c780fcee3a9042f66a28e3cf14b2226edbe0ce1ae3e49ef444a2d500fb7bf68' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 6 - 2025-04-25 19:18:29 [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 19:18:29 [0.33ms] */
select * from `transaction` where `id` = 512316 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 8 - 2025-04-25 19:18:29 [6.64ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 512316 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 19:18:29 [5.83ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 512316 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 19:18:29 [0.32ms] */
select * from `invoice` where `invoice`.`id` = 488024 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 19:18:29 [0.3ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 488024 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-25 19:18:29 [2.27ms] */
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 19:18:29 [0.28ms] */
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 19:18:29 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-25 19:18:29 [0.36ms] */
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 19:18:29 [0.31ms] */
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 19:18:29 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-25 19:18:29 [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 19:18:52 [14.83ms] */
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 19:18:52 [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 19:18:52 [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 19:18:52 [0.3ms] */
select * from `users` where `id` = 150 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-25 19:18:52 [0.28ms] */
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 19:18:52 [0.24ms] */
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 19:18:52 [0.17ms] */
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 19:18:52 [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 19:19:12 [2.29ms] */
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 19:19:12 [0.29ms] */
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 19:19:12 [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 19:19:12 [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 19:19:12 [0.21ms] */
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 19:19:12 [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 19:19:12 [7.53ms] */
delete from `payment_documents` where `transaction_id` = 512316 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-25 19:19:12 [9.05ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2520443;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-25 19:19:12 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 512316 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-25 19:19:13 [416.94ms] */
select * from `transaction` where `parent_id` = 617041 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-25 19:19:13 [7.93ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (512316, 'GOV_RECEIPT_IMAGE', 2520443, 1, '2025-04-25 19:19:13', '2025-04-25 19:19:13');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-25 19:19:13 [3.38ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (617041, 'GOV_RECEIPT_IMAGE', 2520443, 1, '2025-04-25 19:19:13', '2025-04-25 19:19:13');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-25 19:19:13 [0.38ms] */
select * from `transaction` where `transaction`.`id` = 512316 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-25 19:19:13 [3.42ms] */
update `transaction` set `paid_by` = 'siciid cabdulaahi', `paid_by_mobile` = 7736944, `transaction`.`updated_at` = '2025-04-25 19:19:13' where `id` = 512316;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 15 - 2025-04-25 19:19:13 [10.09ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-25 19:19:13' where `receipt_number` = 2520443 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 19:19:19 [1.32ms] */
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 19:19:19 [0.14ms] */
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 19:19:19 [0.14ms] */
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 19:19:19 [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_receipt_number
   Query 5 - 2025-04-25 19:19:19 [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 19:19:19 [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 19:19:19 [2.62ms] */
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 19:19:19 [2.43ms] */
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 19:19:20 [1.93ms] */
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 19:19:20 [0.26ms] */
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 19:19:20 [0.24ms] */
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 19:19:20 [0.34ms] */
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 19:19:20 [0.3ms] */
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 19:19:20 [0.28ms] */
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 19:19:20 [7.5ms] */
delete from `payment_documents` where `transaction_id` = 512316 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-25 19:19:20 [9.28ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 126542;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-25 19:19:20 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 512316 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-25 19:19:20 [411.74ms] */
select * from `transaction` where `parent_id` = 617041 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-25 19:19:20 [11.22ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (512316, 'SERVICE_RECEIPT_IMAGE', 126542, 1, '2025-04-25 19:19:20', '2025-04-25 19:19:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-25 19:19:20 [3.16ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (617041, 'SERVICE_RECEIPT_IMAGE', 126542, 1, '2025-04-25 19:19:20', '2025-04-25 19:19:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-25 19:19:20 [10.76ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-25 19:19:20' where `receipt_number` = 126542 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 19:19:21 [1.83ms] */
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 19:19:21 [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 19:19:21 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-04-25 19:19:21 [0.31ms] */
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 19:19:21 [0.3ms] */
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 19:19:21 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-04-25 19:19:21 [0.18ms] */
select * from `transaction` where `transaction`.`id` = 512316 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-04-25 19:19:21 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 617041 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-04-25 19:19:21 [0.27ms] */
select * from `invoice_payment` where `invoice_id` = 590747 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-04-25 19:19:21 [125.6ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 617041 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-04-25 19:19:21 [136.29ms] */
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` = 617041 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-04-25 19:19:21 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 617041 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-04-25 19:19:21 [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/confirm_payment
   Query 14 - 2025-04-25 19:19:21 [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 19:19:21 [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 19:19:21 [211.76ms] */
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` = 617041 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 19:19:21 [0.53ms] */
select * from `party` where `party`.`id` = 47731 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 19:19:21 [0.5ms] */
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 19:19:21', 1, 2520443, 1, 31.00, 'siciid cabdulaahi', 7736944, null, 37, 150, 150, 150, '2025-04-25 19:19:21', '2025-04-25 19:19:21');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-04-25 19:19:21 [0.2ms] */
select * from `Payment` where `id` = 193702 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-04-25 19:19:21 [0.34ms] */
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 19:19:21","external_payment_reference_no":"1","payment_receipt_number":"2520443","siinpay_payref_number":null,"paid_by":"siciid cabdulaahi","paid_by_mobile":"7736944","district_id":37,"migration_id":null,"payment_collected_by":150}}', 150, 'App\Models\User', 193702, 'Modules\Transaction\Entities\Payment', 'created', '2025-04-25 19:19:21', '2025-04-25 19:19:21');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-04-25 19:19:21 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 617041 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-04-25 19:19:21 [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 19:19:21 [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 19:19:21 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 488024 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-04-25 19:19:21 [0.24ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-25 19:19:21', 488024, 193702, '2025-04-25 19:19:21');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-04-25 19:19:21 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 488024 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-04-25 19:19:21 [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` = 488024 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-04-25 19:19:21 [0.64ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 488024 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 19:19:21 [0.45ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 31, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-25 19:19:21' where `id` = 488024;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-04-25 19:19:21 [0.35ms] */
select * from `invoice` where `id` = 488024 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-04-25 19:19:21 [0.4ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"31.00","status":"OPEN"}}', 150, 'App\Models\User', 488024, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-25 19:19:21', '2025-04-25 19:19:21');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-04-25 19:19:21 [0.43ms] */
select * from `transaction` where `transaction`.`id` = 512316 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-04-25 19:19:21 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 512316 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-04-25 19:19:21 [0.25ms] */
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 19:19:21 [0.26ms] */
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 19:19:21 [0.27ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 37 - 2025-04-25 19:19:21 [0.58ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (512316, 'PAID', '2025-04-25 19:19:21', 7, 150, null, 150, 150, '2025-04-25 19:19:21', '2025-04-25 19:19:21');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-04-25 19:19:21 [0.25ms] */
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 19:19:21 [0.63ms] */
