/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 1 - 2025-04-30 07:13:13 [2.54ms] */
select * from `users` where `email` = 'admin@admin.com' and `status` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 2 - 2025-04-30 07:13:13 [0.25ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 3 - 2025-04-30 07:13:13 [0.39ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 2 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 4 - 2025-04-30 07:13:13 [6.14ms] */
update `userprofiles` set `login_count` = 642, `last_login` = '2025-04-30 07:13:13', `userprofiles`.`updated_at` = '2025-04-30 07:13:13' where `id` = 2;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 5 - 2025-04-30 07:13:13 [0.57ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 6 - 2025-04-30 07:13:13 [0.56ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 7 - 2025-04-30 07:13:13 [0.31ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 1 - 2025-04-30 07:13:13 [1.34ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 2 - 2025-04-30 07:13:13 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 3 - 2025-04-30 07:13:13 [0.32ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 4 - 2025-04-30 07:13:13 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 5 - 2025-04-30 07:13:13 [15.08ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-04-30 07:13:13 [17.72ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-04-30' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 7 - 2025-04-30 07:13:13 [24.65ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 8 - 2025-04-30 07:13:13 [29.82ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-04-30' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 9 - 2025-04-30 07:13:13 [54.6ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `transaction`.`status` = 'END' and `payment_date` > '2025-04-29' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 10 - 2025-04-30 07:13:13 [44.29ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `transaction`.`status` = 'END' and `payment_date` > '2025-04-29' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 11 - 2025-04-30 07:13:14 [281.67ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-04-30' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 12 - 2025-04-30 07:13:15 [948.07ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-04-30' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 1 - 2025-04-30 07:13:17 [2.05ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 2 - 2025-04-30 07:13:17 [0.69ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 3 - 2025-04-30 07:13:17 [0.59ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 4 - 2025-04-30 07:13:17 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 5 - 2025-04-30 07:13:17 [1.16ms] */
select `region`.`name` from `district` inner join `region` on `region`.`id` = `district`.`region_id` where `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports
   Query 6 - 2025-04-30 07:13:17 [0.61ms] */
select `name` from `classification_type` where `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports/DailyCollectionReport
   Query 1 - 2025-04-30 07:13:20 [2.05ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports/DailyCollectionReport
   Query 2 - 2025-04-30 07:13:20 [0.71ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports/DailyCollectionReport
   Query 3 - 2025-04-30 07:13:20 [0.58ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/reports/DailyCollectionReport
   Query 4 - 2025-04-30 07:13:20 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-30 09:15:50 [1.81ms] */
select * from `users` where `email` = 'ahmeddaakir54@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-30 09:15:50 [0.35ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-30 09:15:50 [0.62ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 153 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-04-30 09:15:50 [12.62ms] */
update `userprofiles` set `last_ip` = '41.223.109.136', `login_count` = 67, `last_login` = '2025-04-30 09:15:50', `userprofiles`.`updated_at` = '2025-04-30 09:15:50' where `id` = 153;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-30 09:15:50 [0.43ms] */
select * from `users` where `email` = 'ahmeddaakir54@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-30 09:15:50 [0.67ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-04-30 09:15:50 [0.89ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (153) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-30 09:15:50 [0.49ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-30 09:15:50 [0.41ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-04-30 09:15:50 [0.54ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-30 09:15:50 [0.45ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-30 09:15:50 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-30 09:15:50 [4.14ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e', 153, 5, '[]', 0, '2025-04-30 09:15:50', '2025-04-30 09:15:50', '2026-04-30 09:15:50');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-30 09:15:50 [0.56ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-30 09:15:50 [3.57ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 1 - 2025-04-30 09:16:18 [2.73ms] */
select * from `users` where `email` = 'sharmaake.hasan@puntlandgov.org' and `status` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 2 - 2025-04-30 09:16:18 [0.3ms] */
select * from `users` where `id` = 16 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 3 - 2025-04-30 09:16:18 [4.35ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 16 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 4 - 2025-04-30 09:16:18 [6.51ms] */
update `userprofiles` set `last_ip` = '41.223.109.136', `login_count` = 1710, `last_login` = '2025-04-30 09:16:18', `userprofiles`.`updated_at` = '2025-04-30 09:16:18' where `id` = 16;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 5 - 2025-04-30 09:16:18 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 6 - 2025-04-30 09:16:18 [0.81ms] */
select * from `permissions`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 7 - 2025-04-30 09:16:18 [0.34ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 8 - 2025-04-30 09:16:18 [1.86ms] */
select `roles`.*, `role_has_permissions`.`permission_id` as `pivot_permission_id`, `role_has_permissions`.`role_id` as `pivot_role_id` from `roles` inner join `role_has_permissions` on `roles`.`id` = `role_has_permissions`.`role_id` where `role_has_permissions`.`permission_id` in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 9 - 2025-04-30 09:16:18 [0.53ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/login
   Query 10 - 2025-04-30 09:16:18 [0.33ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 1 - 2025-04-30 09:16:19 [2.16ms] */
select * from `users` where `id` = 16 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 2 - 2025-04-30 09:16:19 [0.58ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 3 - 2025-04-30 09:16:19 [0.49ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 4 - 2025-04-30 09:16:19 [0.41ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 5 - 2025-04-30 09:16:19 [73.6ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-04-30 09:16:19 [18.96ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-04-30' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 7 - 2025-04-30 09:16:19 [235.73ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 8 - 2025-04-30 09:16:19 [31.72ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-04-30' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 9 - 2025-04-30 09:16:19 [88.12ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `transaction`.`status` = 'END' and `payment_date` > '2025-04-29' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 10 - 2025-04-30 09:16:19 [46.19ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `transaction`.`status` = 'END' and `payment_date` > '2025-04-29' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 11 - 2025-04-30 09:16:20 [335.8ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-04-30' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 12 - 2025-04-30 09:16:21 [1293.6ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-04-30' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 13 - 2025-04-30 09:16:21 [0.5ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 14 - 2025-04-30 09:16:21 [0.97ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 1 - 2025-04-30 09:16:24 [5.29ms] */
select * from `users` where `id` = 16 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 2 - 2025-04-30 09:16:24 [0.65ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 3 - 2025-04-30 09:16:24 [0.51ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 4 - 2025-04-30 09:16:24 [0.7ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 5 - 2025-04-30 09:16:24 [0.94ms] */
select * from `classification_type` where `classification_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 6 - 2025-04-30 09:16:24 [0.42ms] */
select * from `sub_category` where `migration_id` is null and `sub_category`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 7 - 2025-04-30 09:16:25 [340.27ms] */
select count(*) as aggregate from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` where `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 8 - 2025-04-30 09:16:25 [39.33ms] */
select `vehicle`.* from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` where `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null and `vehicle`.`deleted_at` is null order by `vehicle`.`updated_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 9 - 2025-04-30 09:16:25 [0.77ms] */
select * from `model` where `model`.`id` in (135, 197, 1353, 1371, 1396, 1562) and `model`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 10 - 2025-04-30 09:16:25 [0.42ms] */
select * from `vehicle_type` where `vehicle_type`.`id` in (3, 11, 20, 24, 25, 26) and `vehicle_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 11 - 2025-04-30 09:16:25 [0.41ms] */
select * from `vehicle_color` where `vehicle_color`.`id` in (1, 6, 16, 43, 50) and `vehicle_color`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 12 - 2025-04-30 09:16:25 [0.47ms] */
select * from `fuel_type` where `fuel_type`.`id` in (2, 3) and `fuel_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 13 - 2025-04-30 09:16:25 [0.8ms] */
select * from `sub_category` where `sub_category`.`id` in (4, 5, 12) and `sub_category`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 14 - 2025-04-30 09:16:25 [0.56ms] */
select * from `party_vehicle` where `party_vehicle`.`vehicle_id` in (59224, 78081, 83327, 84060, 85636, 87152, 87281, 87938, 99507, 99529) and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 15 - 2025-04-30 09:16:25 [0.7ms] */
select * from `make` where `make`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 16 - 2025-04-30 09:16:25 [0.22ms] */
select * from `model` where `make_id` is null and `model`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 17 - 2025-04-30 09:16:25 [0.4ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 18 - 2025-04-30 09:16:25 [0.74ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 19 - 2025-04-30 09:16:25 [0.29ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 20 - 2025-04-30 09:16:25 [0.36ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 59224 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 21 - 2025-04-30 09:16:25 [0.43ms] */
select * from `party` where `party`.`id` = 41839 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 22 - 2025-04-30 09:16:25 [0.48ms] */
select * from `person` where `person`.`id` = 41839 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 23 - 2025-04-30 09:16:25 [0.19ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 24 - 2025-04-30 09:16:25 [0.19ms] */
select * from `party` where `party`.`id` = 41839 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 25 - 2025-04-30 09:16:25 [0.25ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 26 - 2025-04-30 09:16:25 [0.17ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 27 - 2025-04-30 09:16:25 [0.17ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 28 - 2025-04-30 09:16:25 [0.33ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 78081 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 29 - 2025-04-30 09:16:25 [0.33ms] */
select * from `party` where `party`.`id` = 50367 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 30 - 2025-04-30 09:16:25 [0.4ms] */
select * from `person` where `person`.`id` = 50367 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 31 - 2025-04-30 09:16:25 [0.2ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 32 - 2025-04-30 09:16:25 [0.2ms] */
select * from `party` where `party`.`id` = 50367 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 33 - 2025-04-30 09:16:25 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 34 - 2025-04-30 09:16:25 [0.18ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 35 - 2025-04-30 09:16:25 [0.35ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 87152 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 36 - 2025-04-30 09:16:25 [0.33ms] */
select * from `party` where `party`.`id` = 64175 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 37 - 2025-04-30 09:16:25 [0.38ms] */
select * from `company` where `company`.`id` = 2603 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 38 - 2025-04-30 09:16:25 [0.2ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 39 - 2025-04-30 09:16:25 [0.2ms] */
select * from `party` where `party`.`id` = 64175 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 40 - 2025-04-30 09:16:25 [0.2ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 41 - 2025-04-30 09:16:25 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 42 - 2025-04-30 09:16:25 [0.28ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 87938 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 43 - 2025-04-30 09:16:25 [0.3ms] */
select * from `party` where `party`.`id` = 58008 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 44 - 2025-04-30 09:16:25 [0.26ms] */
select * from `company` where `company`.`id` = 2295 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 45 - 2025-04-30 09:16:25 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 46 - 2025-04-30 09:16:25 [0.15ms] */
select * from `party` where `party`.`id` = 58008 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 47 - 2025-04-30 09:16:25 [0.15ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 48 - 2025-04-30 09:16:25 [0.14ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 49 - 2025-04-30 09:16:25 [0.29ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 85636 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 50 - 2025-04-30 09:16:25 [0.32ms] */
select * from `party` where `party`.`id` = 39598 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 51 - 2025-04-30 09:16:25 [0.32ms] */
select * from `person` where `person`.`id` = 39598 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 52 - 2025-04-30 09:16:25 [0.16ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 53 - 2025-04-30 09:16:25 [0.16ms] */
select * from `party` where `party`.`id` = 39598 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 54 - 2025-04-30 09:16:25 [0.15ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 55 - 2025-04-30 09:16:25 [0.14ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 56 - 2025-04-30 09:16:25 [0.23ms] */
select * from `make` where `make`.`id` = 52 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 57 - 2025-04-30 09:16:25 [0.3ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 84060 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 58 - 2025-04-30 09:16:25 [0.26ms] */
select * from `party` where `party`.`id` = 57721 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 59 - 2025-04-30 09:16:25 [0.24ms] */
select * from `company` where `company`.`id` = 2008 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 60 - 2025-04-30 09:16:25 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 61 - 2025-04-30 09:16:25 [0.16ms] */
select * from `party` where `party`.`id` = 57721 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 62 - 2025-04-30 09:16:25 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 63 - 2025-04-30 09:16:25 [0.14ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 64 - 2025-04-30 09:16:25 [0.28ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 83327 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 65 - 2025-04-30 09:16:25 [0.25ms] */
select * from `party` where `party`.`id` = 52687 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 66 - 2025-04-30 09:16:25 [0.3ms] */
select * from `person` where `person`.`id` = 52687 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 67 - 2025-04-30 09:16:25 [0.16ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 68 - 2025-04-30 09:16:25 [0.16ms] */
select * from `party` where `party`.`id` = 52687 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 69 - 2025-04-30 09:16:25 [0.15ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 70 - 2025-04-30 09:16:25 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 71 - 2025-04-30 09:16:25 [0.15ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 72 - 2025-04-30 09:16:25 [0.31ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 87281 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 73 - 2025-04-30 09:16:25 [0.58ms] */
select * from `party` where `party`.`id` = 54557 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 74 - 2025-04-30 09:16:25 [0.31ms] */
select * from `person` where `person`.`id` = 54557 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 75 - 2025-04-30 09:16:25 [0.17ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 76 - 2025-04-30 09:16:25 [0.2ms] */
select * from `party` where `party`.`id` = 54557 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 77 - 2025-04-30 09:16:25 [0.26ms] */
select * from `sub_category` where `sub_category`.`id` = 12 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 78 - 2025-04-30 09:16:25 [0.19ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 79 - 2025-04-30 09:16:25 [0.26ms] */
select * from `make` where `make`.`id` = 10 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 80 - 2025-04-30 09:16:25 [0.39ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 99529 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 81 - 2025-04-30 09:16:25 [0.45ms] */
select * from `party` where `party`.`id` = 64958 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 82 - 2025-04-30 09:16:25 [0.36ms] */
select * from `person` where `person`.`id` = 62332 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 83 - 2025-04-30 09:16:25 [0.2ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 84 - 2025-04-30 09:16:25 [0.2ms] */
select * from `party` where `party`.`id` = 64958 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 85 - 2025-04-30 09:16:25 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 86 - 2025-04-30 09:16:25 [0.18ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 87 - 2025-04-30 09:16:25 [0.25ms] */
select * from `make` where `make`.`id` = 8 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 88 - 2025-04-30 09:16:25 [0.5ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 99507 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 89 - 2025-04-30 09:16:25 [0.5ms] */
select * from `party` where `party`.`id` = 64954 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 90 - 2025-04-30 09:16:25 [0.43ms] */
select * from `person` where `person`.`id` = 62330 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 91 - 2025-04-30 09:16:25 [0.16ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 92 - 2025-04-30 09:16:25 [0.16ms] */
select * from `party` where `party`.`id` = 64954 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 93 - 2025-04-30 09:16:25 [0.26ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 94 - 2025-04-30 09:16:25 [0.15ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 1 - 2025-04-30 09:16:29 [1.44ms] */
select * from `users` where `id` = 16 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 2 - 2025-04-30 09:16:29 [0.45ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 3 - 2025-04-30 09:16:29 [0.3ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 4 - 2025-04-30 09:16:29 [0.32ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 5 - 2025-04-30 09:16:29 [0.44ms] */
select * from `classification_type` where `classification_type`.`id` in (1, 2, 3, 4);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 6 - 2025-04-30 09:16:29 [0.52ms] */
select * from `sub_category` where `sub_category`.`id` in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 20);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 7 - 2025-04-30 09:16:29 [0.28ms] */
select count(*) as aggregate from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` where `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 8 - 2025-04-30 09:16:29 [144.06ms] */
select `vehicle`.* from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` where `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null and `vehicle`.`deleted_at` is null order by `vehicle`.`updated_at` desc limit 10 offset 90;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 9 - 2025-04-30 09:16:29 [0.87ms] */
select * from `model` where `model`.`id` in (1, 1353, 1371, 1396) and `model`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 10 - 2025-04-30 09:16:29 [0.3ms] */
select * from `vehicle_type` where `vehicle_type`.`id` in (1, 24, 25, 26, 28) and `vehicle_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 11 - 2025-04-30 09:16:29 [0.56ms] */
select * from `vehicle_color` where `vehicle_color`.`id` in (1, 26, 43, 50) and `vehicle_color`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 12 - 2025-04-30 09:16:29 [0.53ms] */
select * from `fuel_type` where `fuel_type`.`id` in (1, 2, 3) and `fuel_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 13 - 2025-04-30 09:16:29 [0.17ms] */
select * from `sub_category` where `sub_category`.`id` in (4, 5, 12) and `sub_category`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 14 - 2025-04-30 09:16:29 [0.41ms] */
select * from `party_vehicle` where `party_vehicle`.`vehicle_id` in (18, 63250, 76077, 76658, 78875, 83009, 83524, 85602, 90232, 94957) and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 15 - 2025-04-30 09:16:29 [0.2ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 16 - 2025-04-30 09:16:29 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 17 - 2025-04-30 09:16:29 [0.14ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 18 - 2025-04-30 09:16:29 [0.43ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 83009 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 19 - 2025-04-30 09:16:29 [7.29ms] */
select * from `party` where `party`.`id` = 42935 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 20 - 2025-04-30 09:16:29 [1.06ms] */
select * from `person` where `person`.`id` = 42935 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 21 - 2025-04-30 09:16:29 [0.24ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 22 - 2025-04-30 09:16:29 [0.32ms] */
select * from `party` where `party`.`id` = 42935 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 23 - 2025-04-30 09:16:29 [0.23ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 24 - 2025-04-30 09:16:29 [0.21ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 25 - 2025-04-30 09:16:29 [0.21ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 26 - 2025-04-30 09:16:29 [0.47ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 76658 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 27 - 2025-04-30 09:16:29 [0.39ms] */
select * from `party` where `party`.`id` = 49825 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 28 - 2025-04-30 09:16:29 [0.44ms] */
select * from `person` where `person`.`id` = 49825 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 29 - 2025-04-30 09:16:29 [0.16ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 30 - 2025-04-30 09:16:29 [0.14ms] */
select * from `party` where `party`.`id` = 49825 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 31 - 2025-04-30 09:16:29 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 32 - 2025-04-30 09:16:29 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 33 - 2025-04-30 09:16:29 [0.5ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 83524 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 34 - 2025-04-30 09:16:29 [0.21ms] */
select * from `party` where `party`.`id` = 57721 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 35 - 2025-04-30 09:16:29 [0.19ms] */
select * from `company` where `company`.`id` = 2008 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 36 - 2025-04-30 09:16:29 [0.17ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 37 - 2025-04-30 09:16:29 [0.18ms] */
select * from `party` where `party`.`id` = 57721 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 38 - 2025-04-30 09:16:29 [0.17ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 39 - 2025-04-30 09:16:29 [0.16ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 40 - 2025-04-30 09:16:29 [0.33ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 63250 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 41 - 2025-04-30 09:16:29 [0.31ms] */
select * from `party` where `party`.`id` = 44913 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 42 - 2025-04-30 09:16:29 [0.34ms] */
select * from `person` where `person`.`id` = 44913 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 43 - 2025-04-30 09:16:29 [0.22ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 44 - 2025-04-30 09:16:29 [0.19ms] */
select * from `party` where `party`.`id` = 44913 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 45 - 2025-04-30 09:16:29 [0.17ms] */
select * from `sub_category` where `sub_category`.`id` = 12 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 46 - 2025-04-30 09:16:29 [0.16ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 47 - 2025-04-30 09:16:29 [0.35ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 48 - 2025-04-30 09:16:29 [0.35ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 18 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 49 - 2025-04-30 09:16:29 [0.3ms] */
select * from `party` where `party`.`id` = 36544 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 50 - 2025-04-30 09:16:29 [0.33ms] */
select * from `person` where `person`.`id` = 36544 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 51 - 2025-04-30 09:16:29 [0.18ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 52 - 2025-04-30 09:16:29 [0.17ms] */
select * from `party` where `party`.`id` = 36544 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 53 - 2025-04-30 09:16:29 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 54 - 2025-04-30 09:16:29 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 55 - 2025-04-30 09:16:29 [0.15ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 56 - 2025-04-30 09:16:29 [0.3ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 94957 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 57 - 2025-04-30 09:16:29 [0.33ms] */
select * from `party` where `party`.`id` = 52394 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 58 - 2025-04-30 09:16:29 [0.3ms] */
select * from `person` where `person`.`id` = 52394 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 59 - 2025-04-30 09:16:29 [0.17ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 60 - 2025-04-30 09:16:29 [0.17ms] */
select * from `party` where `party`.`id` = 52394 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 61 - 2025-04-30 09:16:29 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 62 - 2025-04-30 09:16:29 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 63 - 2025-04-30 09:16:29 [0.31ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 85602 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 64 - 2025-04-30 09:16:29 [0.49ms] */
select * from `party` where `party`.`id` = 53634 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 65 - 2025-04-30 09:16:29 [0.33ms] */
select * from `person` where `person`.`id` = 53634 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 66 - 2025-04-30 09:16:29 [0.18ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 67 - 2025-04-30 09:16:29 [0.17ms] */
select * from `party` where `party`.`id` = 53634 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 68 - 2025-04-30 09:16:29 [0.25ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 69 - 2025-04-30 09:16:29 [0.16ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 70 - 2025-04-30 09:16:29 [0.32ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 78875 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 71 - 2025-04-30 09:16:29 [0.3ms] */
select * from `party` where `party`.`id` = 34344 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 72 - 2025-04-30 09:16:29 [0.29ms] */
select * from `person` where `person`.`id` = 34344 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 73 - 2025-04-30 09:16:29 [0.17ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 74 - 2025-04-30 09:16:29 [0.17ms] */
select * from `party` where `party`.`id` = 34344 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 75 - 2025-04-30 09:16:29 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 76 - 2025-04-30 09:16:29 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 77 - 2025-04-30 09:16:29 [0.53ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 76077 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 78 - 2025-04-30 09:16:29 [5.01ms] */
select * from `party` where `party`.`id` = 57677 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 79 - 2025-04-30 09:16:29 [0.76ms] */
select * from `company` where `company`.`id` = 1964 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 80 - 2025-04-30 09:16:29 [0.18ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 81 - 2025-04-30 09:16:29 [0.19ms] */
select * from `party` where `party`.`id` = 57677 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 82 - 2025-04-30 09:16:29 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 83 - 2025-04-30 09:16:29 [0.17ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 84 - 2025-04-30 09:16:29 [0.32ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 90232 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 85 - 2025-04-30 09:16:29 [0.27ms] */
select * from `party` where `party`.`id` = 54228 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 86 - 2025-04-30 09:16:29 [0.33ms] */
select * from `person` where `person`.`id` = 54228 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 87 - 2025-04-30 09:16:29 [0.17ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 88 - 2025-04-30 09:16:29 [0.17ms] */
select * from `party` where `party`.`id` = 54228 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-30 09:16:41 [5.74ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-30 09:16:41 [0.39ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-30 09:16:41 [2.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-30 09:16:41 [0.39ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-30 09:16:41 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-30 09:16:41 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-30 09:16:41 [0.66ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'JF254' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-30 09:16:41 [0.29ms] */
select * from `vehicle` where `license_plate` = 'JF254' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-30 09:16:53 [1.39ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-30 09:16:53 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-30 09:16:53 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-30 09:16:53 [0.18ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-30 09:16:53 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-30 09:16:53 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-30 09:16:53 [4.3ms] */
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` = 'OO493' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-30 09:16:53 [0.27ms] */
select * from `party` where `party`.`id` = 52394 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-30 09:16:53 [0.23ms] */
select * from `vehicle` where `id` = 94957 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-30 09:16:53 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 94957 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-04-30 09:16:53 [1.97ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-04-30 09:16:53 [0.24ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-04-30 09:16:53 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-04-30 09:16:53 [0.25ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-04-30 09:16:53 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-04-30 09:16:53 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-04-30 09:16:53 [1.19ms] */
select * from `vehicle` where `vehicle`.`id` = 94957 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-04-30 09:16:53 [0.24ms] */
select * from `vehicle` where `id` = 94957 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-04-30 09:16:53 [0.47ms] */
select * from `party_vehicle` where `vehicle_id` = 94957 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-04-30 09:16:53 [1.97ms] */
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` = 94957 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://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-04-30 09:16:54 [1.66ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-04-30 09:16:54 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-04-30 09:16:54 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-04-30 09:16:54 [0.2ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-04-30 09:16:54 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-04-30 09:16:54 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-04-30 09:16:54 [0.33ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-30 09:16:54 [1.3ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-30 09:16:54 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-30 09:16:54 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-30 09:16:54 [0.27ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-30 09:16:54 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-30 09:16:54 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-30 09:16:54 [23.11ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-30 09:17:07 [2.05ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-30 09:17:07 [0.25ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-30 09:17:07 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-30 09:17:07 [0.27ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-30 09:17:07 [0.23ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-30 09:17:07 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-30 09:17:07 [1.08ms] */
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` = 'KS124' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-30 09:17:07 [0.27ms] */
select * from `vehicle` where `license_plate` = 'KS124' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-30 09:17:10 [1.32ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-30 09:17:10 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-30 09:17:10 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-30 09:17:10 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-30 09:17:10 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-30 09:17:10 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-30 09:17:10 [5.04ms] */
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` = 'KS123' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-30 09:17:10 [0.29ms] */
select * from `party` where `party`.`id` = 53634 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-30 09:17:10 [0.27ms] */
select * from `vehicle` where `id` = 85602 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-30 09:17:10 [0.3ms] */
select * from `party_vehicle` where `vehicle_id` = 85602 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-04-30 09:17:11 [2.06ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-04-30 09:17:11 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-04-30 09:17:11 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-04-30 09:17:11 [0.33ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-04-30 09:17:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-04-30 09:17:11 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-04-30 09:17:11 [0.29ms] */
select * from `vehicle` where `vehicle`.`id` = 85602 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-04-30 09:17:11 [0.23ms] */
select * from `vehicle` where `id` = 85602 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-04-30 09:17:11 [0.3ms] */
select * from `party_vehicle` where `vehicle_id` = 85602 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-04-30 09:17:11 [6.21ms] */
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` = 85602 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://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-04-30 09:17:11 [1.31ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-04-30 09:17:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-04-30 09:17:11 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-04-30 09:17:11 [0.16ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-04-30 09:17:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-04-30 09:17:11 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-04-30 09:17:11 [0.13ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-30 09:17:11 [1.96ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-30 09:17:11 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-30 09:17:11 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-30 09:17:11 [0.31ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-30 09:17:11 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'dafad708c1a3a4daf912348b600298bf9549d4086eb135d45027d09bdb73eb833503177305b4656e' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-30 09:17:11 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-30 09:17:11 [0.18ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-30 09:18:28 [1.76ms] */
select * from `users` where `email` = 'ahmeddaakir54@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-30 09:18:28 [0.36ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-30 09:18:28 [0.48ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 153 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-04-30 09:18:28 [11.71ms] */
update `userprofiles` set `login_count` = 68, `last_login` = '2025-04-30 09:18:28', `userprofiles`.`updated_at` = '2025-04-30 09:18:28' where `id` = 153;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-30 09:18:28 [0.26ms] */
select * from `users` where `email` = 'ahmeddaakir54@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-30 09:18:28 [0.57ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-04-30 09:18:28 [0.24ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (153) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-30 09:18:28 [0.21ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-30 09:18:28 [0.18ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-04-30 09:18:28 [0.22ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-30 09:18:28 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-30 09:18:28 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-30 09:18:28 [3.73ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7', 153, 5, '[]', 0, '2025-04-30 09:18:28', '2025-04-30 09:18:28', '2026-04-30 09:18:28');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-30 09:18:28 [0.58ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-30 09:18:28 [3.58ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-30 09:18:48 [1.56ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-30 09:18:48 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-30 09:18:48 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-30 09:18:48 [0.16ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-30 09:18:48 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-30 09:18:48 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-30 09:18:48 [0.34ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'KS123' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-30 09:18:48 [0.15ms] */
select * from `party` where `party`.`id` = 53634 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-30 09:18:48 [0.15ms] */
select * from `vehicle` where `id` = 85602 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-30 09:18:48 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 85602 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-04-30 09:18:49 [1.33ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-04-30 09:18:49 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-04-30 09:18:49 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-04-30 09:18:49 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-04-30 09:18:49 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-04-30 09:18:49 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-04-30 09:18:49 [0.16ms] */
select * from `vehicle` where `vehicle`.`id` = 85602 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-04-30 09:18:49 [0.15ms] */
select * from `vehicle` where `id` = 85602 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-04-30 09:18:49 [0.2ms] */
select * from `party_vehicle` where `vehicle_id` = 85602 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-04-30 09:18:49 [0.25ms] */
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` = 85602 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://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-04-30 09:18:50 [1.39ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-04-30 09:18:50 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-04-30 09:18:50 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-04-30 09:18:50 [0.23ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-04-30 09:18:50 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-04-30 09:18:50 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-04-30 09:18:50 [0.15ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-30 09:18:50 [2.06ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-30 09:18:50 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-30 09:18:50 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-30 09:18:50 [0.19ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-30 09:18:50 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-30 09:18:50 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-30 09:18:50 [0.18ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-30 09:20:00 [1.33ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-30 09:20:00 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-30 09:20:00 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-30 09:20:00 [0.16ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-30 09:20:00 [0.12ms] */
select * from `oauth_access_tokens` where `id` = '4ea4b367167a752d738a42325be636ee5b53a432751228988b87092d7fb8eb4f2d9d9b7981e0f2a7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-30 09:20:00 [0.11ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-30 09:20:00 [5.66ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-30 09:20:00 [2.19ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-30 09:20:52 [2.46ms] */
select * from `users` where `email` = 'apdalejaapiri@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-30 09:20:52 [0.39ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-30 09:20:52 [1.06ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 152 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-04-30 09:20:52 [6.3ms] */
update `userprofiles` set `login_count` = 8, `last_login` = '2025-04-30 09:20:52', `userprofiles`.`updated_at` = '2025-04-30 09:20:52' where `id` = 152;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-30 09:20:52 [0.4ms] */
select * from `users` where `email` = 'apdalejaapiri@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-30 09:20:52 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-04-30 09:20:52 [1.28ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (152) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-30 09:20:52 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-30 09:20:52 [0.15ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-04-30 09:20:52 [0.18ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-30 09:20:52 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-30 09:20:52 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-30 09:20:52 [7.63ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce', 152, 5, '[]', 0, '2025-04-30 09:20:52', '2025-04-30 09:20:52', '2026-04-30 09:20:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-30 09:20:52 [0.77ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-30 09:20:53 [3.09ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-30 09:20:57 [1.82ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-30 09:20:57 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-30 09:20:57 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-30 09:20:57 [0.42ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-30 09:20:57 [0.2ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-30 09:20:57 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-30 09:20:57 [0.4ms] */
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` = 'KS123' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-30 09:20:57 [0.18ms] */
select * from `party` where `party`.`id` = 53634 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-30 09:20:57 [0.18ms] */
select * from `vehicle` where `id` = 85602 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-30 09:20:57 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 85602 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-04-30 09:20:57 [1.54ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-04-30 09:20:57 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-04-30 09:20:57 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-04-30 09:20:57 [0.22ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-04-30 09:20:57 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-04-30 09:20:57 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-04-30 09:20:57 [0.22ms] */
select * from `vehicle` where `vehicle`.`id` = 85602 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-04-30 09:20:57 [0.19ms] */
select * from `vehicle` where `id` = 85602 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-04-30 09:20:57 [0.21ms] */
select * from `party_vehicle` where `vehicle_id` = 85602 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-04-30 09:20:57 [0.35ms] */
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` = 85602 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://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-04-30 09:20:58 [1.35ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-04-30 09:20:58 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-04-30 09:20:58 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-04-30 09:20:58 [0.17ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-04-30 09:20:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-04-30 09:20:58 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-04-30 09:20:58 [0.15ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-30 09:20:58 [1.29ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-30 09:20:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-30 09:20:58 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-30 09:20:58 [0.18ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-30 09:20:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-30 09:20:58 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-30 09:20:58 [0.18ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-30 09:21:02 [1.23ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-30 09:21:02 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-30 09:21:02 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-30 09:21:02 [0.16ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-30 09:21:02 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-30 09:21:02 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-30 09:21:02 [1.84ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 152 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-30 09:21:02 [1.58ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 152 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-30 09:21:03 [1.33ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-30 09:21:03 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-30 09:21:03 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-04-30 09:21:03 [0.19ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-30 09:21:03 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-30 09:21:03 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-30 09:21:03 [0.49ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-04-30 09:21:03 [0.3ms] */
select `transaction_id` from `vehicle_tax` where `id` in (410854, 410855) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-30 09:21:03 [0.28ms] */
select `parent_id` from `transaction` where `id` in (520712, 520713) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-30 09:21:03 [216.67ms] */
select `id` from `transaction` where `parent_id` in (574317) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-30 09:21:03 [0.61ms] */
select * from `transaction` where `id` in (574317) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-30 09:21:03 [0.54ms] */
select * from `invoice` where `invoice`.`id` = 549984 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-30 09:21:03 [6.59ms] */
update `invoice` set `updated_by` = 152, `deleted_by` = 152, `invoice`.`updated_at` = '2025-04-30 09:21:03' where `id` = 549984;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-30 09:21:03 [0.63ms] */
select * from `invoice` where `id` = 549984 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-30 09:21:03 [3.69ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 152, 'App\Models\User', 549984, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-30 09:21:03', '2025-04-30 09:21:03');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-30 09:21:03 [3.25ms] */
update `invoice` set `deleted_at` = '2025-04-30 09:21:03', `invoice`.`updated_at` = '2025-04-30 09:21:03' where `id` = 549984;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-30 09:21:03 [0.52ms] */
select * from `invoice` where `id` = 549984 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-04-30 09:21:03 [3.24ms] */
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":574317,"party_id":53634,"invoice_amount":"71.00","invoice_date":"2025-03-28 19:14:49","due_date":"2025-03-28 19:14:49","outstanding_balance":"71.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"71.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-636-549984554","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 152, 'App\Models\User', 549984, 'Modules\Transaction\Entities\Invoice', 'deleted', '2025-04-30 09:21:03', '2025-04-30 09:21:03');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-30 09:21:03 [3.4ms] */
update `transaction` set `updated_by` = 152, `deleted_by` = 152, `transaction`.`updated_at` = '2025-04-30 09:21:03' where `id` = 574317;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-30 09:21:03 [3.29ms] */
update `transaction` set `deleted_at` = '2025-04-30 09:21:03', `transaction`.`updated_at` = '2025-04-30 09:21:03' where `id` = 574317;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-30 09:21:03 [0.64ms] */
select * from `transaction` where `id` in (520712, 520713) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-04-30 09:21:03 [0.57ms] */
select * from `invoice` where `invoice`.`id` = 496380 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-04-30 09:21:03 [3.28ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `updated_by` = 152, `invoice`.`updated_at` = '2025-04-30 09:21:03' where `id` = 496380;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-04-30 09:21:03 [0.5ms] */
select * from `invoice` where `id` = 496380 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-04-30 09:21:03 [3.31ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":null,"grouped":"N"},"old":{"parent_id":549984,"grouped":"Y"}}', 152, 'App\Models\User', 496380, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-30 09:21:03', '2025-04-30 09:21:03');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-04-30 09:21:03 [0.6ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-04-30 09:21:03 [0.59ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-04-30 09:21:03 [3.91ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `updated_by` = 152, `transaction`.`updated_at` = '2025-04-30 09:21:03' where `id` = 520712;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-04-30 09:21:03 [0.52ms] */
select * from `invoice` where `invoice`.`id` = 496381 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-04-30 09:21:03 [3.44ms] */
update `invoice` set `updated_by` = 152, `invoice`.`updated_at` = '2025-04-30 09:21:03' where `id` = 496381;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-04-30 09:21:03 [0.49ms] */
select * from `invoice` where `id` = 496381 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-04-30 09:21:03 [3.25ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 152, 'App\Models\User', 496381, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-30 09:21:03', '2025-04-30 09:21:03');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-04-30 09:21:03 [0.23ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-04-30 09:21:03 [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://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-04-30 09:21:03 [7.41ms] */
update `transaction` set `updated_by` = 152, `transaction`.`updated_at` = '2025-04-30 09:21:03' where `id` = 520713;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-04-30 09:21:03 [7.97ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-04-30 09:21:03' where `id` in (410854, 410855) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-04-30 09:21:03 [0.66ms] */
select * from `transaction` where `id` in (574317) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-04-30 09:21:03 [0.55ms] */
select `transaction_id` from `vehicle_tax` where `id` in (410854, 410855) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-04-30 09:21:03 [0.82ms] */
select * from `invoice` where `transaction_id` = 520712 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-04-30 09:21:03 [0.88ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 496380 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-04-30 09:21:03 [0.63ms] */
select * from `transaction` where `transaction`.`id` = 520712 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-04-30 09:21:03 [8.04ms] */
update `transaction` set `tax_collection_point_id` = 38, `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-30 09:21:03' where `id` = 520712;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-04-30 09:21:03 [0.58ms] */
select * from `invoice` where `transaction_id` = 520713 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-04-30 09:21:03 [0.53ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 496381 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-04-30 09:21:03 [1.42ms] */
select * from `transaction` where `transaction`.`id` = 520713 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-04-30 09:21:03 [11.67ms] */
update `transaction` set `tax_collection_point_id` = 38, `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-30 09:21:03' where `id` = 520713;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-04-30 09:21:03 [0.46ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-04-30 09:21:03 [0.41ms] */
select * from `user_accounts` where `user_id` = 152 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-04-30 09:21:03 [0.33ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-04-30 09:21:03 [0.31ms] */
select * from `user_accounts` where `user_id` = 152 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-30 09:21:04 [1.29ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-30 09:21:04 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-30 09:21:04 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-04-30 09:21:04 [0.17ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-30 09:21:04 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-30 09:21:04 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-30 09:21:04 [0.17ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-04-30 09:21:04 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (410854, 410855) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-30 09:21:04 [0.26ms] */
select `parent_id` from `transaction` where `id` in (520712, 520713) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-30 09:21:04 [0.14ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-30 09:21:04 [0.18ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-30 09:21:04 [0.24ms] */
select * from `transaction` where `id` in (520712, 520713) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-30 09:21:04 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 496380 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-30 09:21:04 [0.15ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-30 09:21:04 [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://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-30 09:21:04 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 496381 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-30 09:21:04 [0.12ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-04-30 09:21:04 [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://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-30 09:21:04 [6.92ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-04-30 09:21:04' where `id` in (410854, 410855) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-30 09:21:04 [0.38ms] */
select * from `vehicle` where `vehicle`.`id` = 85602 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-30 09:21:04 [0.37ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-04-30 09:21:04 [0.35ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 85602 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-04-30 09:21:04 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 85602 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-04-30 09:21:04 [0.29ms] */
select * from `party` where `party`.`id` = 53634 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-04-30 09:21:04 [0.24ms] */
select * from `vehicle` where `vehicle`.`id` = 85602 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-04-30 09:21:04 [0.22ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-04-30 09:21:04 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-04-30 09:21:04 [0.67ms] */
select * from `branches` where `branches`.`id` = 14 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-04-30 09:21:04 [0.74ms] */
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 (53634, 2, 85602, null, 2, 6, 14, 37, 37, 'OPEN', 38, null, 152, 152, '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-04-30 09:21:04 [0.41ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (574612, 'INITIATED', '2025-04-30 09:21:04', 5, 152, 152, 152, '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-04-30 09:21:04 [0.22ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 22173, `transaction`.`updated_at` = '2025-04-30 09:21:04' where `id` = 574612;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-04-30 09:21:04 [0.29ms] */
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 (410854, 410855) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-04-30 09:21:04 [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 (410854, 410855) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-04-30 09:21:04 [0.35ms] */
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 (574612, 53634, '2025-04-30 09:21:04', '2025-04-30 09:21:04', 109.00, 0, 109.00, 109.00, 0, 'OPEN', 'N', 'Y', 152, 152, '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-04-30 09:21:04 [0.2ms] */
select * from `invoice` where `id` = 550269 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-04-30 09:21:04 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":574612,"party_id":53634,"invoice_amount":"109.00","invoice_date":"2025-04-30 09:21:04","due_date":"2025-04-30 09:21:04","outstanding_balance":"109.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"109.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 152, 'App\Models\User', 550269, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-04-30 09:21:04 [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 (410854, 410855) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-04-30 09:21:04 [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, 71.00, 109, 550269, 152, 152, '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-04-30 09:21:04 [0.21ms] */
select * from `invoice_item` where `id` = 999594 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-04-30 09:21:04 [0.27ms] */
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":"71.00","quantity":2,"total_price":"109.00","invoice_id":550269}}', 152, 'App\Models\User', 999594, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-04-30 09:21:04 [0.2ms] */
update `invoice` set `invoice_number` = 'INV-776-550269299', `invoice`.`updated_at` = '2025-04-30 09:21:04' where `id` = 550269;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-04-30 09:21:04 [0.25ms] */
select * from `invoice` where `id` = 550269 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-04-30 09:21:04 [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-776-550269299"},"old":{"invoice_number":null}}', 152, 'App\Models\User', 550269, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-04-30 09:21:04 [0.23ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 410854 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-04-30 09:21:04 [0.2ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 152, `vehicle_tax`.`updated_at` = '2025-04-30 09:21:04' where `id` = 410854;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-04-30 09:21:04 [0.21ms] */
select * from `vehicle_tax` where `id` = 410854 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-04-30 09:21:04 [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":"INPROGRESS"},"old":{"status":"OPEN"}}', 152, 'App\Models\User', 410854, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-04-30 09:21:04 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 520712 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-04-30 09:21:04 [0.26ms] */
update `transaction` set `parent_id` = 574612, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-30 09:21:04' where `id` = 520712;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-04-30 09:21:04 [0.18ms] */
select * from `invoice` where `invoice`.`id` = 496380 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-04-30 09:21:04 [0.17ms] */
update `invoice` set `parent_id` = 550269, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-30 09:21:04' where `id` = 496380;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-04-30 09:21:04 [0.17ms] */
select * from `invoice` where `id` = 496380 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-04-30 09:21:04 [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":550269,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 152, 'App\Models\User', 496380, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-04-30 09:21:04 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 520712 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-04-30 09:21:04 [0.18ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-04-30 09:21:04 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-04-30 09:21:04 [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://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-04-30 09:21:04 [0.37ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-04-30 09:21:04 [0.18ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-04-30 09:21:04 [0.23ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (520712, 'APPROVED', '2025-04-30 09:21:04', 5, 152, null, 152, 152, '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-04-30 09:21:04 [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://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-04-30 09:21:04 [0.41ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-30 09:21:04' where `id` = 520712;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-04-30 09:21:04 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-04-30 09:21:04 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 496380 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-04-30 09:21:04 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 410855 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 66 - 2025-04-30 09:21:04 [0.16ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 152, `vehicle_tax`.`updated_at` = '2025-04-30 09:21:04' where `id` = 410855;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-04-30 09:21:04 [0.16ms] */
select * from `vehicle_tax` where `id` = 410855 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-04-30 09:21:04 [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"}}', 152, 'App\Models\User', 410855, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-04-30 09:21:04 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 520713 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-04-30 09:21:04 [0.22ms] */
update `transaction` set `parent_id` = 574612, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-30 09:21:04' where `id` = 520713;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-04-30 09:21:04 [0.18ms] */
select * from `invoice` where `invoice`.`id` = 496381 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-04-30 09:21:04 [0.17ms] */
update `invoice` set `parent_id` = 550269, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-30 09:21:04' where `id` = 496381;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-04-30 09:21:04 [0.17ms] */
select * from `invoice` where `id` = 496381 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-04-30 09:21:04 [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":550269,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 152, 'App\Models\User', 496381, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-04-30 09:21:04 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 520713 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2025-04-30 09:21:04 [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://testtra.puntlandgov.org/api/make_payment
   Query 77 - 2025-04-30 09:21:04 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2025-04-30 09:21:04 [0.16ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-04-30 09:21:04 [0.14ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2025-04-30 09:21:04 [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 (520713, 'APPROVED', '2025-04-30 09:21:04', 5, 152, null, 152, 152, '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-04-30 09:21:04 [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://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-04-30 09:21:04 [0.28ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-30 09:21:04' where `id` = 520713;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 83 - 2025-04-30 09:21:04 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 84 - 2025-04-30 09:21:04 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 496381 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 85 - 2025-04-30 09:21:04 [0.17ms] */
update `transaction` set `invoice_id` = 550269, `transaction`.`updated_at` = '2025-04-30 09:21:04' where `id` = 574612;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 86 - 2025-04-30 09:21:04 [0.39ms] */
update `vehicle` set `updated_by` = 152, `vehicle`.`updated_at` = '2025-04-30 09:21:04' where `id` = 85602;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2025-04-30 09:21:04 [0.18ms] */
select * from `vehicle` where `id` = 85602 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2025-04-30 09:21:04 [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":[]}', 152, 'App\Models\User', 85602, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 89 - 2025-04-30 09:21:04 [0.36ms] */
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":151}', '{"updated_by":152}', 'updated', 85602, 'Modules\Vehicle\Entities\Vehicle', 152, 'App\Models\User', null, '41.223.109.136', 'Dart/3.4 (dart:io)', 'https://testtra.puntlandgov.org/api/make_payment', '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 90 - 2025-04-30 09:21:04 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 574612 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 91 - 2025-04-30 09:21:04 [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://testtra.puntlandgov.org/api/make_payment
   Query 92 - 2025-04-30 09:21:04 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 93 - 2025-04-30 09:21:04 [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://testtra.puntlandgov.org/api/make_payment
   Query 94 - 2025-04-30 09:21:04 [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 (574612, 'APPROVED', '2025-04-30 09:21:04', 5, 152, null, 152, 152, '2025-04-30 09:21:04', '2025-04-30 09:21:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 95 - 2025-04-30 09:21:04 [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://testtra.puntlandgov.org/api/make_payment
   Query 96 - 2025-04-30 09:21:04 [0.32ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-30 09:21:04' where `id` = 574612;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 97 - 2025-04-30 09:21:04 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2025-04-30 09:21:04 [0.18ms] */
select * from `invoice` where `invoice`.`id` = 550269 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 99 - 2025-04-30 09:21:04 [0.33ms] */
select `transaction_id` from `vehicle_tax` where `id` in (410854, 410855) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 100 - 2025-04-30 09:21:04 [0.25ms] */
select * from `invoice` where `transaction_id` = 520712 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 101 - 2025-04-30 09:21:04 [0.21ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 496380 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 102 - 2025-04-30 09:21:04 [10.54ms] */
select * from `transaction` where `transaction`.`id` = 520712 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 103 - 2025-04-30 09:21:04 [0.36ms] */
select * from `invoice` where `transaction_id` = 520713 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 104 - 2025-04-30 09:21:04 [0.31ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 496381 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 105 - 2025-04-30 09:21:04 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 520713 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 106 - 2025-04-30 09:21:04 [0.21ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 107 - 2025-04-30 09:21:04 [0.19ms] */
select * from `user_accounts` where `user_id` = 152 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 108 - 2025-04-30 09:21:04 [0.16ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 109 - 2025-04-30 09:21:04 [0.33ms] */
select * from `user_accounts` where `user_id` = 152 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 1 - 2025-04-30 09:21:04 [1.31ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 2 - 2025-04-30 09:21:04 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 3 - 2025-04-30 09:21:04 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 4 - 2025-04-30 09:21:04 [0.17ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 5 - 2025-04-30 09:21:04 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 6 - 2025-04-30 09:21:04 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 7 - 2025-04-30 09:21:04 [0.34ms] */
select * from `transaction` where `id` = 520713 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 8 - 2025-04-30 09:21:04 [0.9ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 520713 and `payment_documents`.`transaction_id` is not null and `type` = 'SERVICE_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 9 - 2025-04-30 09:21:04 [0.72ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 520713 and `payment_documents`.`transaction_id` is not null and `type` = 'GOV_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 10 - 2025-04-30 09:21:04 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 496381 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 11 - 2025-04-30 09:21:04 [0.37ms] */
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` = 496381 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-30 09:21:05 [1.27ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-30 09:21:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-30 09:21:05 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-30 09:21:05 [0.17ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-30 09:21:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-30 09:21:05 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-30 09:21:05 [0.18ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-30 09:21:42 [1.65ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-30 09:21:42 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-30 09:21:42 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-30 09:21:42 [0.23ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-30 09:21:42 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-30 09:21:42 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-30 09:21:42 [0.21ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 152 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-30 09:21:42 [0.18ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 152 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-30 09:24:34 [1.43ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-30 09:24:34 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-30 09:24:34 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-30 09:24:34 [0.19ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-30 09:24:34 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-30 09:24:34 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-30 09:24:34 [1.63ms] */
delete from `payment_documents` where `transaction_id` = 520713 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-30 09:24:34 [1.01ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2510101;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-30 09:24:34 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 520713 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-30 09:24:35 [898.1ms] */
select * from `transaction` where `parent_id` = 574612 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-30 09:24:35 [21.18ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (520712, 'GOV_RECEIPT_IMAGE', 2510101, 1, '2025-04-30 09:24:35', '2025-04-30 09:24:35');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-30 09:24:35 [4.33ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (520713, 'GOV_RECEIPT_IMAGE', 2510101, 1, '2025-04-30 09:24:35', '2025-04-30 09:24:35');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-30 09:24:35 [3.31ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (574612, 'GOV_RECEIPT_IMAGE', 2510101, 1, '2025-04-30 09:24:35', '2025-04-30 09:24:35');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-30 09:24:35 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 520713 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 15 - 2025-04-30 09:24:35 [3.43ms] */
update `transaction` set `paid_by` = 'maxamed saleban', `paid_by_mobile` = 7996197, `transaction`.`updated_at` = '2025-04-30 09:24:35' where `id` = 520713;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 16 - 2025-04-30 09:24:35 [10.79ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-30 09:24:35' where `receipt_number` = 2510101 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-30 09:24:53 [1.6ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-30 09:24:53 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-30 09:24:53 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-30 09:24:53 [0.21ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-30 09:24:53 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-30 09:24:53 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-30 09:24:53 [8.56ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 152 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-30 09:24:53 [2.14ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 152 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-30 09:25:04 [1.3ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-30 09:25:04 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-30 09:25:04 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-30 09:25:04 [0.17ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-30 09:25:04 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-30 09:25:04 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-30 09:25:04 [2.05ms] */
delete from `payment_documents` where `transaction_id` = 520713 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-30 09:25:04 [1.18ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 1110101;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-30 09:25:04 [0.8ms] */
select * from `transaction` where `transaction`.`id` = 520713 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-30 09:25:04 [648.08ms] */
select * from `transaction` where `parent_id` = 574612 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-30 09:25:04 [10.92ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (520712, 'SERVICE_RECEIPT_IMAGE', 1110101, 1, '2025-04-30 09:25:04', '2025-04-30 09:25:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-30 09:25:04 [11.38ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (520713, 'SERVICE_RECEIPT_IMAGE', 1110101, 1, '2025-04-30 09:25:04', '2025-04-30 09:25:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-30 09:25:04 [11.85ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (574612, 'SERVICE_RECEIPT_IMAGE', 1110101, 1, '2025-04-30 09:25:04', '2025-04-30 09:25:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-30 09:25:04 [18.39ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-30 09:25:04' where `receipt_number` = 1110101 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-04-30 09:25:05 [16.51ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-04-30 09:25:05 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-04-30 09:25:05 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-04-30 09:25:05 [0.18ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-04-30 09:25:05 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-04-30 09:25:05 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-04-30 09:25:05 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 520713 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-04-30 09:25:05 [0.39ms] */
select * from `transaction` where `transaction`.`id` = 574612 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-04-30 09:25:05 [0.29ms] */
select * from `invoice_payment` where `invoice_id` = 550269 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-04-30 09:25:05 [162.04ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 574612 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-04-30 09:25:05 [170.44ms] */
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` = 574612 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-04-30 09:25:05 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 574612 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-04-30 09:25:05 [0.32ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-04-30 09:25:05 [0.23ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 15 - 2025-04-30 09:25:05 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-04-30 09:25:05 [166.35ms] */
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` = 574612 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 17 - 2025-04-30 09:25:05 [0.3ms] */
select * from `party` where `party`.`id` = 53634 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 18 - 2025-04-30 09:25:05 [0.59ms] */
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-30 09:25:05', null, 2510101, 1, 109.00, 'maxamed saleban', 7996197, null, 37, 152, 152, 152, '2025-04-30 09:25:05', '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-04-30 09:25:05 [0.29ms] */
select * from `Payment` where `id` = 177925 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-04-30 09:25:05 [0.47ms] */
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":"109.00","payment_date":"2025-04-30 09:25:05","external_payment_reference_no":null,"payment_receipt_number":"2510101","siinpay_payref_number":null,"paid_by":"maxamed saleban","paid_by_mobile":"7996197","district_id":37,"migration_id":null,"payment_collected_by":152}}', 152, 'App\Models\User', 177925, 'Modules\Transaction\Entities\Payment', 'created', '2025-04-30 09:25:05', '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-04-30 09:25:05 [0.43ms] */
select * from `transaction` where `transaction`.`id` = 574612 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-04-30 09:25:05 [0.38ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-04-30 09:25:05 [0.36ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-04-30 09:25:05 [0.42ms] */
select * from `invoice` where `invoice`.`id` = 496380 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-04-30 09:25:05 [0.46ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-30 09:25:05', 496380, 177925, '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-04-30 09:25:05 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 496380 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-04-30 09:25:05 [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` = 496380 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-04-30 09:25:05 [0.55ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 496380 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 29 - 2025-04-30 09:25:05 [0.37ms] */
update `invoice` set `invoice_amount` = 71, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 71, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-30 09:25:05' where `id` = 496380;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-04-30 09:25:05 [0.28ms] */
select * from `invoice` where `id` = 496380 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-04-30 09:25:05 [0.3ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"71.00","status":"OPEN"}}', 152, 'App\Models\User', 496380, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-30 09:25:05', '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-04-30 09:25:05 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 520712 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-04-30 09:25:05 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 520712 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-04-30 09:25:05 [0.2ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 35 - 2025-04-30 09:25:05 [0.19ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 36 - 2025-04-30 09:25:05 [0.33ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 37 - 2025-04-30 09:25:05 [0.54ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (520712, 'PAID', '2025-04-30 09:25:05', 7, 152, null, 152, 152, '2025-04-30 09:25:05', '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-04-30 09:25:05 [0.34ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 39 - 2025-04-30 09:25:05 [0.37ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-30 09:25:05' where `id` = 520712;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-04-30 09:25:05 [0.26ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 41 - 2025-04-30 09:25:05 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 496380 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 42 - 2025-04-30 09:25:05 [0.49ms] */
select * from `vehicle_tax` where `transaction_id` = 520712 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-04-30 09:25:05 [0.21ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-04-30 09:25:05' where `id` = 410854;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-04-30 09:25:05 [0.22ms] */
select * from `vehicle_tax` where `id` = 410854 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-04-30 09:25:05 [0.31ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 152, 'App\Models\User', 410854, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-30 09:25:05', '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-04-30 09:25:05 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 496381 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 47 - 2025-04-30 09:25:05 [0.2ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-30 09:25:05', 496381, 177925, '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-04-30 09:25:05 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 496381 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-04-30 09:25:05 [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` = 496381 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-04-30 09:25:05 [0.26ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 496381 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-04-30 09:25:05 [0.22ms] */
update `invoice` set `invoice_amount` = 38, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 38, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-30 09:25:05' where `id` = 496381;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-04-30 09:25:05 [0.23ms] */
select * from `invoice` where `id` = 496381 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-04-30 09:25:05 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"38.00","status":"OPEN"}}', 152, 'App\Models\User', 496381, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-30 09:25:05', '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-04-30 09:25:05 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 520713 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-04-30 09:25:05 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 520713 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-04-30 09:25:05 [0.21ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-04-30 09:25:05 [0.19ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 58 - 2025-04-30 09:25:05 [0.25ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 59 - 2025-04-30 09:25:05 [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 (520713, 'PAID', '2025-04-30 09:25:05', 7, 152, null, 152, 152, '2025-04-30 09:25:05', '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-04-30 09:25:05 [0.28ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-04-30 09:25:05 [0.28ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-30 09:25:05' where `id` = 520713;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-04-30 09:25:05 [0.21ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-04-30 09:25:05 [0.29ms] */
select * from `invoice` where `invoice`.`id` = 496381 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-04-30 09:25:05 [0.33ms] */
select * from `vehicle_tax` where `transaction_id` = 520713 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-04-30 09:25:05 [0.23ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-04-30 09:25:05' where `id` = 410855;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 66 - 2025-04-30 09:25:05 [0.27ms] */
select * from `vehicle_tax` where `id` = 410855 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-04-30 09:25:05 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 152, 'App\Models\User', 410855, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-30 09:25:05', '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 68 - 2025-04-30 09:25:05 [0.31ms] */
select * from `invoice` where `invoice`.`id` = 550269 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 69 - 2025-04-30 09:25:05 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 550269 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 70 - 2025-04-30 09:25:05 [0.2ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-30 09:25:05', 550269, 177925, '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 71 - 2025-04-30 09:25:05 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 550269 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 72 - 2025-04-30 09:25:05 [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` = 550269 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 73 - 2025-04-30 09:25:05 [0.2ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-30 09:25:05' where `id` = 550269;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 74 - 2025-04-30 09:25:05 [0.23ms] */
select * from `invoice` where `id` = 550269 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 75 - 2025-04-30 09:25:05 [0.27ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"109.00","status":"OPEN"}}', 152, 'App\Models\User', 550269, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-30 09:25:05', '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 76 - 2025-04-30 09:25:05 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 574612 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 77 - 2025-04-30 09:25:05 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 574612 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 78 - 2025-04-30 09:25:05 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 79 - 2025-04-30 09:25:05 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 80 - 2025-04-30 09:25:05 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 81 - 2025-04-30 09:25:05 [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 (574612, 'PAID', '2025-04-30 09:25:05', 7, 152, null, 152, 152, '2025-04-30 09:25:05', '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 82 - 2025-04-30 09:25:05 [0.24ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 83 - 2025-04-30 09:25:05 [0.25ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-30 09:25:05' where `id` = 574612;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 84 - 2025-04-30 09:25:05 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 85 - 2025-04-30 09:25:05 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 550269 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 86 - 2025-04-30 09:25:05 [0.44ms] */
select * from `transaction` where `transaction`.`id` = 574612 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 87 - 2025-04-30 09:25:05 [0.25ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 88 - 2025-04-30 09:25:05 [0.38ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (574612, 'CLAIMED', '2025-04-30 09:25:05', 8, 152, 152, 152, '2025-04-30 09:25:05', '2025-04-30 09:25:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 89 - 2025-04-30 09:25:05 [0.35ms] */
update `transaction` set `assigned_to` = 152, `transaction`.`updated_at` = '2025-04-30 09:25:05' where `id` = 574612;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-30 09:25:17 [2.41ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-30 09:25:17 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-30 09:25:17 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-30 09:25:17 [0.33ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-30 09:25:17 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-30 09:25:17 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-30 09:25:17 [0.38ms] */
select * from `vehicle_tax` where `id` = 410855 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-30 09:25:17 [1.61ms] */
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://testtra.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-30 09:25:29 [1.33ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-30 09:25:29 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-30 09:25:29 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-30 09:25:29 [0.17ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-30 09:25:29 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-30 09:25:29 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-30 09:25:29 [0.16ms] */
select * from `vehicle_tax` where `id` = 410855 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-30 09:25:29 [45.48ms] */
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://testtra.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-30 09:25:37 [1.39ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-30 09:25:37 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-30 09:25:37 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-30 09:25:37 [0.16ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-30 09:25:37 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-30 09:25:37 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-30 09:25:37 [0.16ms] */
select * from `vehicle_tax` where `id` = 410855 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-30 09:25:37 [51.12ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-017%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-04-30 09:25:47 [2.03ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-04-30 09:25:47 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-04-30 09:25:47 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-04-30 09:25:47 [0.16ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-04-30 09:25:47 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-04-30 09:25:47 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-04-30 09:25:47 [0.52ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 653403 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-04-30 09:25:47 [0.15ms] */
select * from `vehicle_tax` where `id` = 410855 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-04-30 09:25:47 [8.2ms] */
update `vehicle_tax` set `tax_sticker_id` = 653403, `vehicle_tax`.`updated_at` = '2025-04-30 09:25:47' where `id` = 410855;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-04-30 09:25:47 [0.25ms] */
select * from `vehicle_tax` where `id` = 410855 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-04-30 09:25:47 [3.99ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"tax_sticker_id":653403},"old":{"tax_sticker_id":null}}', 152, 'App\Models\User', 410855, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-30 09:25:47', '2025-04-30 09:25:47');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-04-30 09:25:47 [2.99ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 152, `tax_sticker`.`updated_at` = '2025-04-30 09:25:47' where `id` = 653403;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-04-30 09:25:54 [1.69ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-04-30 09:25:54 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-04-30 09:25:54 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-04-30 09:25:54 [0.16ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-04-30 09:25:54 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 6 - 2025-04-30 09:25:54 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 7 - 2025-04-30 09:25:54 [0.6ms] */
select * from `vehicle_tax` where `id` in (410854, 410855) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 8 - 2025-04-30 09:25:54 [1.27ms] */
select * from `transaction` where `transaction`.`id` = 520712 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 9 - 2025-04-30 09:25:54 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 520712 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 10 - 2025-04-30 09:25:54 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 11 - 2025-04-30 09:25:54 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 12 - 2025-04-30 09:25:54 [0.16ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 13 - 2025-04-30 09:25:54 [2.07ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (520712, 'APPROVED', '2025-04-30 09:25:54', 8, 152, null, 152, 152, '2025-04-30 09:25:54', '2025-04-30 09:25:54');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 14 - 2025-04-30 09:25:54 [0.51ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 15 - 2025-04-30 09:25:54 [1.87ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-30 09:25:54' where `id` = 520712;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-04-30 09:25:54 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 17 - 2025-04-30 09:25:54 [0.57ms] */
select * from `vehicle_tax` where `transaction_id` = 520712 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-04-30 09:25:54 [0.17ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-04-30 09:25:54' where `id` = 410854;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-04-30 09:25:54 [0.18ms] */
select * from `vehicle_tax` where `id` = 410854 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-04-30 09:25:54 [1.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"}}', 152, 'App\Models\User', 410854, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-30 09:25:54', '2025-04-30 09:25:54');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-04-30 09:25:54 [0.85ms] */
select * from `invoice` where `invoice`.`id` = 496380 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 22 - 2025-04-30 09:25:54 [0.38ms] */
select * from `transaction` where `id` = 520712 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 23 - 2025-04-30 09:25:54 [0.53ms] */
select * from `transaction` where `transaction`.`id` = 574612 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 24 - 2025-04-30 09:25:54 [0.21ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 25 - 2025-04-30 09:25:54 [0.22ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 26 - 2025-04-30 09:25:54 [0.22ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 27 - 2025-04-30 09:25:54 [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 (574612, 'APPROVED', '2025-04-30 09:25:54', 8, 152, null, 152, 152, '2025-04-30 09:25:54', '2025-04-30 09:25:54');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 28 - 2025-04-30 09:25:54 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 29 - 2025-04-30 09:25:54 [0.83ms] */
update `transaction` set `assigned_to` = null, `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-30 09:25:54' where `id` = 574612;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 30 - 2025-04-30 09:25:54 [0.21ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 31 - 2025-04-30 09:25:54 [0.39ms] */
select * from `vehicle_tax` where `transaction_id` = 574612 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 32 - 2025-04-30 09:25:54 [0.57ms] */
select * from `invoice` where `invoice`.`id` = 550269 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 33 - 2025-04-30 09:25:54 [0.33ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 34 - 2025-04-30 09:25:54 [0.31ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 22173 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 35 - 2025-04-30 09:25:54 [0.15ms] */
select * from `party` where `party`.`id` = 53634 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 36 - 2025-04-30 09:25:54 [0.16ms] */
select * from `person` where `person`.`id` = 53634 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 37 - 2025-04-30 09:25:54 [0.6ms] */
select * from `vehicle` where `vehicle`.`id` = 85602 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 38 - 2025-04-30 09:25:54 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 496380 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 39 - 2025-04-30 09:25:54 [0.81ms] */
select * from `invoice_payment` where `invoice_payment`.`invoice_id` = 496380 and `invoice_payment`.`invoice_id` is not null and `invoice_payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 40 - 2025-04-30 09:25:54 [0.73ms] */
select * from `Payment` where `Payment`.`id` = 177925 and `Payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 41 - 2025-04-30 09:25:54 [0.75ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 38 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 42 - 2025-04-30 09:25:54 [0.45ms] */
select * from `transaction` where `transaction`.`id` = 520713 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 43 - 2025-04-30 09:25:54 [0.35ms] */
select * from `transaction` where `transaction`.`id` = 520713 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 44 - 2025-04-30 09:25:54 [0.21ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 45 - 2025-04-30 09:25:54 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 46 - 2025-04-30 09:25:54 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 47 - 2025-04-30 09:25:54 [0.86ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (520713, 'APPROVED', '2025-04-30 09:25:54', 8, 152, null, 152, 152, '2025-04-30 09:25:54', '2025-04-30 09:25:54');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 48 - 2025-04-30 09:25:54 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 49 - 2025-04-30 09:25:54 [0.51ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-30 09:25:54' where `id` = 520713;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 50 - 2025-04-30 09:25:54 [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://testtra.puntlandgov.org/api/complete_transaction
   Query 51 - 2025-04-30 09:25:54 [0.37ms] */
select * from `vehicle_tax` where `transaction_id` = 520713 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 52 - 2025-04-30 09:25:54 [0.16ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-04-30 09:25:54' where `id` = 410855;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 53 - 2025-04-30 09:25:54 [0.24ms] */
select * from `vehicle_tax` where `id` = 410855 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 54 - 2025-04-30 09:25:54 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"ISSUED"},"old":{"status":"PAID"}}', 152, 'App\Models\User', 410855, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-30 09:25:54', '2025-04-30 09:25:54');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 55 - 2025-04-30 09:25:54 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 496381 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 56 - 2025-04-30 09:25:54 [0.26ms] */
select * from `transaction` where `id` = 520713 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 57 - 2025-04-30 09:25:54 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 574612 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 58 - 2025-04-30 09:25:54 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 59 - 2025-04-30 09:25:54 [0.22ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 60 - 2025-04-30 09:25:54 [0.34ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 9 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 61 - 2025-04-30 09:25:54 [0.84ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (574612, 'APPROVED', '2025-04-30 09:25:54', 9, 152, null, 152, 152, '2025-04-30 09:25:54', '2025-04-30 09:25:54');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 62 - 2025-04-30 09:25:54 [0.34ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 5 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 63 - 2025-04-30 09:25:54 [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://testtra.puntlandgov.org/api/complete_transaction
   Query 64 - 2025-04-30 09:25:54 [0.35ms] */
select * from `vehicle_tax` where `transaction_id` = 574612 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 65 - 2025-04-30 09:25:54 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 550269 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 66 - 2025-04-30 09:25:54 [0.36ms] */
select * from `term` where `term`.`id` = 104 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 67 - 2025-04-30 09:25:54 [0.22ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 22173 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 68 - 2025-04-30 09:25:54 [0.22ms] */
select * from `party` where `party`.`id` = 53634 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 69 - 2025-04-30 09:25:54 [0.23ms] */
select * from `person` where `person`.`id` = 53634 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 70 - 2025-04-30 09:25:54 [0.23ms] */
select * from `vehicle` where `vehicle`.`id` = 85602 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 71 - 2025-04-30 09:25:54 [0.36ms] */
select * from `invoice` where `invoice`.`id` = 496381 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 72 - 2025-04-30 09:25:54 [0.34ms] */
select * from `invoice_payment` where `invoice_payment`.`invoice_id` = 496381 and `invoice_payment`.`invoice_id` is not null and `invoice_payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 73 - 2025-04-30 09:25:54 [0.16ms] */
select * from `Payment` where `Payment`.`id` = 177925 and `Payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 74 - 2025-04-30 09:25:54 [0.12ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 38 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 75 - 2025-04-30 09:25:54 [0.59ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 653403 and `tax_sticker`.`id` is not null and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-30 09:26:03 [1.39ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-30 09:26:03 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-30 09:26:03 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-30 09:26:03 [0.16ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-30 09:26:03 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-30 09:26:03 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-30 09:26:03 [4.84ms] */
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` = 'KS123' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-30 09:26:03 [0.17ms] */
select * from `party` where `party`.`id` = 53634 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-30 09:26:03 [0.26ms] */
select * from `vehicle` where `id` = 85602 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-30 09:26:03 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 85602 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-04-30 09:26:04 [1.27ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-04-30 09:26:04 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-04-30 09:26:04 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-04-30 09:26:04 [0.16ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-04-30 09:26:04 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-04-30 09:26:04 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-04-30 09:26:04 [0.32ms] */
select * from `vehicle` where `vehicle`.`id` = 85602 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-04-30 09:26:04 [0.24ms] */
select * from `vehicle` where `id` = 85602 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-04-30 09:26:04 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 85602 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-04-30 09:26:04 [3.33ms] */
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` = 85602 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://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-04-30 09:26:04 [1.34ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-04-30 09:26:04 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-04-30 09:26:04 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-04-30 09:26:04 [0.16ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-04-30 09:26:04 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-04-30 09:26:04 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-04-30 09:26:04 [0.13ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-30 09:26:04 [1.74ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-30 09:26:04 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-30 09:26:04 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-30 09:26:04 [0.3ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-30 09:26:04 [0.25ms] */
select * from `oauth_access_tokens` where `id` = 'b94fe689b914f19a044c3fa50203cec571c61bb1654bd8cda71cf706c0621762f8cbaa7d0bc819ce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-30 09:26:04 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-30 09:26:04 [0.28ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-04-30 09:27:44 [1.5ms] */
select * from `users` where `email` = 'apdalejaapiri@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-04-30 09:27:44 [0.22ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-04-30 09:27:44 [1.58ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 152 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-04-30 09:27:44 [9.07ms] */
update `userprofiles` set `login_count` = 9, `last_login` = '2025-04-30 09:27:44', `userprofiles`.`updated_at` = '2025-04-30 09:27:44' where `id` = 152;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-04-30 09:27:44 [0.42ms] */
select * from `users` where `email` = 'apdalejaapiri@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-04-30 09:27:44 [0.77ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-04-30 09:27:44 [0.32ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (152) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-04-30 09:27:44 [0.28ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-04-30 09:27:44 [0.24ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-04-30 09:27:44 [0.29ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-04-30 09:27:44 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-04-30 09:27:44 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-04-30 09:27:44 [6.15ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3', 152, 5, '[]', 0, '2025-04-30 09:27:44', '2025-04-30 09:27:44', '2026-04-30 09:27:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-04-30 09:27:44 [0.43ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-04-30 09:27:44 [3.41ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-30 09:27:57 [1.72ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-30 09:27:57 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-30 09:27:57 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-30 09:27:57 [0.19ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-30 09:27:57 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-30 09:27:57 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-30 09:27:57 [1.55ms] */
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` = 'HT161' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-30 09:27:57 [0.47ms] */
select * from `party` where `party`.`id` = 54228 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-30 09:27:57 [0.37ms] */
select * from `vehicle` where `id` = 90232 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-30 09:27:57 [0.38ms] */
select * from `party_vehicle` where `vehicle_id` = 90232 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-04-30 09:27:58 [1.38ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-04-30 09:27:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-04-30 09:27:58 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-04-30 09:27:58 [0.16ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-04-30 09:27:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-04-30 09:27:58 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-04-30 09:27:58 [0.28ms] */
select * from `vehicle` where `vehicle`.`id` = 90232 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-04-30 09:27:58 [0.21ms] */
select * from `vehicle` where `id` = 90232 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-04-30 09:27:58 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 90232 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-04-30 09:27:58 [3.77ms] */
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` = 90232 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://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-04-30 09:27:58 [1.31ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-04-30 09:27:58 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-04-30 09:27:58 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-04-30 09:27:58 [0.25ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-04-30 09:27:58 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-04-30 09:27:58 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-04-30 09:27:58 [0.2ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-30 09:27:58 [1.27ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-30 09:27:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-30 09:27:58 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-30 09:27:58 [0.17ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-30 09:27:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-30 09:27:58 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-30 09:27:58 [0.18ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-30 09:30:31 [1.33ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-30 09:30:31 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-30 09:30:31 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-30 09:30:31 [0.17ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-30 09:30:31 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-30 09:30:31 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-30 09:30:31 [5ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 152 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-30 09:30:31 [1.81ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 152 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-30 09:30:32 [1.4ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-30 09:30:32 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-30 09:30:32 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-04-30 09:30:32 [0.17ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-30 09:30:32 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-30 09:30:32 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-30 09:30:32 [0.17ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-04-30 09:30:32 [0.29ms] */
select `transaction_id` from `vehicle_tax` where `id` in (441874, 441876) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-30 09:30:32 [0.25ms] */
select `parent_id` from `transaction` where `id` in (551733, 551735) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-30 09:30:32 [286.58ms] */
select `id` from `transaction` where `parent_id` in (574401) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-30 09:30:32 [0.42ms] */
select * from `transaction` where `id` in (574401) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-30 09:30:32 [0.13ms] */
select `transaction_id` from `vehicle_tax` where `id` in (441874, 441876) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-30 09:30:32 [0.37ms] */
select * from `invoice` where `transaction_id` = 551733 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-30 09:30:32 [0.37ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 527401 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-30 09:30:32 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 551733 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-30 09:30:32 [9.05ms] */
update `transaction` set `tax_collection_point_id` = 38, `updated_by` = 152, `transaction`.`updated_at` = '2025-04-30 09:30:32' where `id` = 551733;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-30 09:30:32 [0.44ms] */
select * from `invoice` where `transaction_id` = 551735 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-04-30 09:30:32 [0.26ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 527403 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-30 09:30:32 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 551735 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-30 09:30:32 [3.52ms] */
update `transaction` set `tax_collection_point_id` = 38, `updated_by` = 152, `transaction`.`updated_at` = '2025-04-30 09:30:32' where `id` = 551735;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-30 09:30:32 [0.17ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-04-30 09:30:32 [0.15ms] */
select * from `user_accounts` where `user_id` = 152 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-04-30 09:30:32 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-04-30 09:30:32 [0.13ms] */
select * from `user_accounts` where `user_id` = 152 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-30 09:30:33 [1.33ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-30 09:30:33 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-30 09:30:33 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-04-30 09:30:33 [0.16ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-30 09:30:33 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-30 09:30:33 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-30 09:30:33 [0.18ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-04-30 09:30:33 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (441874, 441876) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-30 09:30:33 [1.06ms] */
select `parent_id` from `transaction` where `id` in (551733, 551735) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-30 09:30:33 [260.87ms] */
select `id` from `transaction` where `parent_id` in (574401) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-30 09:30:33 [0.55ms] */
select * from `transaction` where `id` in (574401) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-30 09:30:33 [4.18ms] */
select `transaction_id` from `vehicle_tax` where `id` in (441874, 441876) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-30 09:30:33 [1.96ms] */
select * from `invoice` where `transaction_id` = 551733 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-30 09:30:33 [0.23ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 527401 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-30 09:30:33 [4.97ms] */
select * from `transaction` where `transaction`.`id` = 551733 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-30 09:30:33 [0.17ms] */
select * from `invoice` where `transaction_id` = 551735 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-30 09:30:33 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 527403 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-04-30 09:30:33 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 551735 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-30 09:30:33 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-30 09:30:33 [0.13ms] */
select * from `user_accounts` where `user_id` = 152 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-30 09:30:33 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-04-30 09:30:33 [0.16ms] */
select * from `user_accounts` where `user_id` = 152 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 1 - 2025-04-30 09:30:34 [15.65ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 2 - 2025-04-30 09:30:34 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 3 - 2025-04-30 09:30:34 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 4 - 2025-04-30 09:30:34 [0.19ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 5 - 2025-04-30 09:30:34 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 6 - 2025-04-30 09:30:34 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 7 - 2025-04-30 09:30:34 [0.64ms] */
select * from `transaction` where `id` = 551735 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 8 - 2025-04-30 09:30:34 [1.02ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 551735 and `payment_documents`.`transaction_id` is not null and `type` = 'SERVICE_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 9 - 2025-04-30 09:30:34 [0.72ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 551735 and `payment_documents`.`transaction_id` is not null and `type` = 'GOV_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 10 - 2025-04-30 09:30:34 [0.4ms] */
select * from `invoice` where `invoice`.`id` = 527403 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/workflow
   Query 11 - 2025-04-30 09:30:34 [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` = 527403 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-30 09:30:34 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-30 09:30:34 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-30 09:30:34 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-30 09:30:34 [9.6ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-30 09:30:34 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-30 09:30:34 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-30 09:30:34 [0.18ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-30 09:31:00 [1.45ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-30 09:31:00 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-30 09:31:00 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-30 09:31:00 [0.18ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-30 09:31:00 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-30 09:31:00 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-30 09:31:00 [0.23ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 152 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-30 09:31:00 [0.14ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 152 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-30 09:31:53 [1.34ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-30 09:31:53 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-30 09:31:53 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-30 09:31:53 [0.16ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-30 09:31:53 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-30 09:31:53 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-30 09:31:53 [1.04ms] */
delete from `payment_documents` where `transaction_id` = 551735 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-30 09:31:53 [1.02ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2510102;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-30 09:31:53 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 551735 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-30 09:31:53 [459.27ms] */
select * from `transaction` where `parent_id` = 574401 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-30 09:31:53 [3.09ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (551733, 'GOV_RECEIPT_IMAGE', 2510102, 1, '2025-04-30 09:31:53', '2025-04-30 09:31:53');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-30 09:31:53 [3.02ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (551735, 'GOV_RECEIPT_IMAGE', 2510102, 1, '2025-04-30 09:31:53', '2025-04-30 09:31:53');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-30 09:31:53 [1.47ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (574401, 'GOV_RECEIPT_IMAGE', 2510102, 1, '2025-04-30 09:31:53', '2025-04-30 09:31:53');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-30 09:31:53 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 551735 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 15 - 2025-04-30 09:31:53 [3.37ms] */
update `transaction` set `paid_by` = 'jaamac axmed', `paid_by_mobile` = 7766831, `transaction`.`updated_at` = '2025-04-30 09:31:53' where `id` = 551735;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 16 - 2025-04-30 09:31:53 [9.64ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-30 09:31:53' where `receipt_number` = 2510102 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-30 09:32:05 [1.37ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-30 09:32:05 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-30 09:32:05 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-30 09:32:05 [0.31ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-30 09:32:05 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-30 09:32:05 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-30 09:32:05 [8.17ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 152 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-30 09:32:05 [2.75ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 152 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-30 09:32:19 [1.95ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-30 09:32:19 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-30 09:32:19 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-30 09:32:19 [0.31ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-30 09:32:19 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-30 09:32:19 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-30 09:32:19 [1.5ms] */
delete from `payment_documents` where `transaction_id` = 551735 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-30 09:32:19 [1.02ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 1110102;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-30 09:32:19 [0.35ms] */
select * from `transaction` where `transaction`.`id` = 551735 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-30 09:32:20 [466.66ms] */
select * from `transaction` where `parent_id` = 574401 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-30 09:32:20 [5.93ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (551733, 'SERVICE_RECEIPT_IMAGE', 1110102, 1, '2025-04-30 09:32:20', '2025-04-30 09:32:20');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-30 09:32:20 [2.8ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (551735, 'SERVICE_RECEIPT_IMAGE', 1110102, 1, '2025-04-30 09:32:20', '2025-04-30 09:32:20');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-30 09:32:20 [2.95ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (574401, 'SERVICE_RECEIPT_IMAGE', 1110102, 1, '2025-04-30 09:32:20', '2025-04-30 09:32:20');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-30 09:32:20 [8.15ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-30 09:32:20' where `receipt_number` = 1110102 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-04-30 09:32:20 [1.91ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-04-30 09:32:20 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-04-30 09:32:20 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-04-30 09:32:20 [0.25ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-04-30 09:32:20 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-04-30 09:32:20 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-04-30 09:32:20 [0.18ms] */
select * from `transaction` where `transaction`.`id` = 551735 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-04-30 09:32:20 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 574401 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-04-30 09:32:20 [0.29ms] */
select * from `invoice_payment` where `invoice_id` = 550067 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-04-30 09:32:20 [149.19ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 574401 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-04-30 09:32:21 [147.93ms] */
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` = 574401 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-04-30 09:32:21 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 574401 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-04-30 09:32:21 [0.24ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-04-30 09:32:21 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 15 - 2025-04-30 09:32:21 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-04-30 09:32:21 [163.87ms] */
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` = 574401 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 17 - 2025-04-30 09:32:21 [0.24ms] */
select * from `party` where `party`.`id` = 54228 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 18 - 2025-04-30 09:32:21 [0.58ms] */
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-30 09:32:21', null, 2510102, 1, 95.00, 'jaamac axmed', 7766831, null, 37, 152, 152, 152, '2025-04-30 09:32:21', '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-04-30 09:32:21 [0.22ms] */
select * from `Payment` where `id` = 177926 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-04-30 09:32:21 [0.46ms] */
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":"95.00","payment_date":"2025-04-30 09:32:21","external_payment_reference_no":null,"payment_receipt_number":"2510102","siinpay_payref_number":null,"paid_by":"jaamac axmed","paid_by_mobile":"7766831","district_id":37,"migration_id":null,"payment_collected_by":152}}', 152, 'App\Models\User', 177926, 'Modules\Transaction\Entities\Payment', 'created', '2025-04-30 09:32:21', '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-04-30 09:32:21 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 574401 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-04-30 09:32: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://testtra.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-04-30 09:32:21 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-04-30 09:32:21 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 527401 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-04-30 09:32:21 [0.32ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-30 09:32:21', 527401, 177926, '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-04-30 09:32:21 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 527401 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-04-30 09:32:21 [0.36ms] */
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` = 527401 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-04-30 09:32:21 [0.46ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 527401 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 29 - 2025-04-30 09:32:21 [0.3ms] */
update `invoice` set `invoice_amount` = 64, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 64, `status` = 'PAID', `updated_by` = 152, `invoice`.`updated_at` = '2025-04-30 09:32:21' where `id` = 527401;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-04-30 09:32:21 [0.24ms] */
select * from `invoice` where `id` = 527401 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-04-30 09:32:21 [0.32ms] */
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":"64.00","status":"OPEN"}}', 152, 'App\Models\User', 527401, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-30 09:32:21', '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-04-30 09:32:21 [0.32ms] */
select * from `transaction` where `transaction`.`id` = 551733 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-04-30 09:32:21 [0.19ms] */
select * from `transaction` where `transaction`.`id` = 551733 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-04-30 09:32: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://testtra.puntlandgov.org/api/confirm_payment
   Query 35 - 2025-04-30 09:32:21 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 36 - 2025-04-30 09:32:21 [0.16ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 37 - 2025-04-30 09:32:21 [0.62ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (551733, 'PAID', '2025-04-30 09:32:21', 7, 152, null, 152, 152, '2025-04-30 09:32:21', '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-04-30 09:32:21 [0.18ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 39 - 2025-04-30 09:32:21 [0.48ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-30 09:32:21' where `id` = 551733;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-04-30 09:32:21 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 41 - 2025-04-30 09:32:21 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 527401 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 42 - 2025-04-30 09:32:21 [0.49ms] */
select * from `vehicle_tax` where `transaction_id` = 551733 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-04-30 09:32:21 [0.24ms] */
update `vehicle_tax` set `status` = 'PAID', `updated_by` = 152, `vehicle_tax`.`updated_at` = '2025-04-30 09:32:21' where `id` = 441874;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-04-30 09:32:21 [0.22ms] */
select * from `vehicle_tax` where `id` = 441874 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-04-30 09:32:21 [0.39ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 152, 'App\Models\User', 441874, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-30 09:32:21', '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-04-30 09:32:21 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 527403 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 47 - 2025-04-30 09:32:21 [0.2ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-30 09:32:21', 527403, 177926, '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-04-30 09:32:21 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 527403 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-04-30 09:32:21 [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` = 527403 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-04-30 09:32:21 [0.26ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 527403 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-04-30 09:32:21 [0.23ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 31, `status` = 'PAID', `updated_by` = 152, `invoice`.`updated_at` = '2025-04-30 09:32:21' where `id` = 527403;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-04-30 09:32:21 [0.23ms] */
select * from `invoice` where `id` = 527403 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-04-30 09:32:21 [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"}}', 152, 'App\Models\User', 527403, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-30 09:32:21', '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-04-30 09:32:21 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 551735 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-04-30 09:32:21 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 551735 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-04-30 09:32:21 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-04-30 09:32:21 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 58 - 2025-04-30 09:32:21 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 59 - 2025-04-30 09:32:21 [0.27ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (551735, 'PAID', '2025-04-30 09:32:21', 7, 152, null, 152, 152, '2025-04-30 09:32:21', '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-04-30 09:32:21 [0.32ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-04-30 09:32:21 [0.25ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-30 09:32:21' where `id` = 551735;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-04-30 09:32:21 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-04-30 09:32:21 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 527403 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-04-30 09:32:21 [0.24ms] */
select * from `vehicle_tax` where `transaction_id` = 551735 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-04-30 09:32:21 [0.2ms] */
update `vehicle_tax` set `status` = 'PAID', `updated_by` = 152, `vehicle_tax`.`updated_at` = '2025-04-30 09:32:21' where `id` = 441876;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 66 - 2025-04-30 09:32:21 [0.22ms] */
select * from `vehicle_tax` where `id` = 441876 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-04-30 09:32:21 [0.23ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 152, 'App\Models\User', 441876, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-30 09:32:21', '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 68 - 2025-04-30 09:32:21 [0.26ms] */
select * from `invoice` where `invoice`.`id` = 550067 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 69 - 2025-04-30 09:32:21 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 550067 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 70 - 2025-04-30 09:32:21 [0.19ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-30 09:32:21', 550067, 177926, '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 71 - 2025-04-30 09:32:21 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 550067 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 72 - 2025-04-30 09:32:21 [0.29ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 550067 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 73 - 2025-04-30 09:32:21 [0.21ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `updated_by` = 152, `invoice`.`updated_at` = '2025-04-30 09:32:21' where `id` = 550067;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 74 - 2025-04-30 09:32:21 [0.23ms] */
select * from `invoice` where `id` = 550067 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 75 - 2025-04-30 09:32:21 [0.44ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"95.00","status":"OPEN"}}', 152, 'App\Models\User', 550067, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-30 09:32:21', '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 76 - 2025-04-30 09:32:21 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 574401 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 77 - 2025-04-30 09:32:21 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 574401 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 78 - 2025-04-30 09:32: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://testtra.puntlandgov.org/api/confirm_payment
   Query 79 - 2025-04-30 09:32:21 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 80 - 2025-04-30 09:32:21 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 81 - 2025-04-30 09:32:21 [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 (574401, 'PAID', '2025-04-30 09:32:21', 7, 152, null, 152, 152, '2025-04-30 09:32:21', '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 82 - 2025-04-30 09:32:21 [0.24ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 83 - 2025-04-30 09:32:21 [0.26ms] */
update `transaction` set `current_workflow_state_id` = 8, `updated_by` = 152, `transaction`.`updated_at` = '2025-04-30 09:32:21' where `id` = 574401;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 84 - 2025-04-30 09:32:21 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 85 - 2025-04-30 09:32:21 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 550067 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 86 - 2025-04-30 09:32:21 [0.46ms] */
select * from `transaction` where `transaction`.`id` = 574401 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 87 - 2025-04-30 09:32:21 [0.26ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 88 - 2025-04-30 09:32:21 [0.36ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (574401, 'CLAIMED', '2025-04-30 09:32:21', 8, 152, 152, 152, '2025-04-30 09:32:21', '2025-04-30 09:32:21');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 89 - 2025-04-30 09:32:21 [0.43ms] */
update `transaction` set `assigned_to` = 152, `transaction`.`updated_at` = '2025-04-30 09:32:21' where `id` = 574401;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-30 09:32:51 [1.65ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-30 09:32:51 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-30 09:32:51 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-30 09:32:51 [0.23ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-30 09:32:51 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-30 09:32:51 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-30 09:32:51 [0.45ms] */
select * from `vehicle_tax` where `id` = 441876 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-30 09:32:51 [1.51ms] */
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://testtra.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-04-30 09:33:04 [1.53ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-04-30 09:33:04 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-04-30 09:33:04 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-04-30 09:33:04 [0.2ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-04-30 09:33:04 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-04-30 09:33:04 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-04-30 09:33:04 [0.33ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 636466 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-04-30 09:33:04 [0.23ms] */
select * from `vehicle_tax` where `id` = 441876 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-04-30 09:33:04 [6.85ms] */
update `vehicle_tax` set `tax_sticker_id` = 636466, `vehicle_tax`.`updated_at` = '2025-04-30 09:33:04' where `id` = 441876;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-04-30 09:33:04 [0.33ms] */
select * from `vehicle_tax` where `id` = 441876 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-04-30 09:33:04 [5.44ms] */
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":636466},"old":{"tax_sticker_id":null}}', 152, 'App\Models\User', 441876, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-30 09:33:04', '2025-04-30 09:33:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-04-30 09:33:04 [3.24ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 152, `tax_sticker`.`updated_at` = '2025-04-30 09:33:04' where `id` = 636466;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-04-30 09:33:10 [2.02ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-04-30 09:33:10 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4b8e907283d146ded6dced9acb946074a6ef116fc879e7eb5481185d604f2a9bf76421441fecb7f3' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-04-30 09:33:10 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-04-30 09:33:10 [0.3ms] */
select * from `users` where `id` = 152 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-04-30 09:33:10 [0.27ms] */
