select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2025-01-07 09:33:10 [0.47ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (103695, 'APPROVED', '2025-01-07 09:33:10', 5, 5, null, 5, 5, '2025-01-07 09:33:10', '2025-01-07 09:33:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2025-01-07 09:33:10 [0.26ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 89 - 2025-01-07 09:33:10 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-07 09:33:10' where `id` = 103695;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 90 - 2025-01-07 09:33:10 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 91 - 2025-01-07 09:33:10 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 103257 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 92 - 2025-01-07 09:33:10 [0.17ms] */
update `transaction` set `invoice_id` = 104792, `transaction`.`updated_at` = '2025-01-07 09:33:10' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 93 - 2025-01-07 09:33:10 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 94 - 2025-01-07 09:33:10 [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 95 - 2025-01-07 09:33:10 [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/make_payment
   Query 96 - 2025-01-07 09:33:10 [0.19ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 97 - 2025-01-07 09:33:10 [0.63ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105235, 'APPROVED', '2025-01-07 09:33:10', 5, 5, null, 5, 5, '2025-01-07 09:33:10', '2025-01-07 09:33:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2025-01-07 09:33:10 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 99 - 2025-01-07 09:33:10 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-07 09:33:10' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 100 - 2025-01-07 09:33:10 [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 101 - 2025-01-07 09:33:10 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 104792 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 102 - 2025-01-07 09:33:10 [0.6ms] */
select `transaction_id` from `vehicle_tax` where `id` in (98757, 100030) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 103 - 2025-01-07 09:33:10 [0.27ms] */
select * from `invoice` where `transaction_id` = 101766 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 104 - 2025-01-07 09:33:10 [0.85ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101441 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-01-07 09:33:10 [0.26ms] */
select * from `invoice` where `transaction_id` = 103695 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 106 - 2025-01-07 09:33:10 [0.28ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103257 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 107 - 2025-01-07 09:33:10 [0.29ms] */
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 108 - 2025-01-07 09:33:10 [0.25ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-07 09:33:11 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-07 09:33:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-07 09:33:11 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-07 09:33:11 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-07 09:33:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-07 09:33:11 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-07 09:33:11 [0.15ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:33:50 [1.33ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:33:50 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:33:50 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:33:50 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:33:50 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:33:50 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:33:50 [0.45ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 09876543;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-01-07 09:33:50 [0.51ms] */
delete from `payment_documents` where `transaction_id` = 105235 and `type` = 'GOV_SMS_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-01-07 09:33:50 [14.68ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `receipt_attachment`, `updated_at`, `created_at`) values (105235, 'GOV_SMS_IMAGE', 09876543, 'payment_confirmation/Payment-Confirmation-TR105235-ATTC-1631930157.png', '2025-01-07 09:33:50', '2025-01-07 09:33:50');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 1 - 2025-01-07 09:34:25 [1.62ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 2 - 2025-01-07 09:34:25 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 3 - 2025-01-07 09:34:25 [0.6ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 4 - 2025-01-07 09:34:25 [0.53ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 5 - 2025-01-07 09:34:25 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 6 - 2025-01-07 09:34:25 [0.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 7 - 2025-01-07 09:34:25 [0.5ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 8 - 2025-01-07 09:34:25 [39.09ms] */
update `transaction` set `gov_fee_sms_confirmation` = 09876543, `gov_fee_ar_number` = 27, `gov_fee_payment_date` = '2025-01-07 09:34:25', `transaction`.`updated_at` = '2025-01-07 09:34:25' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 9 - 2025-01-07 09:34:25 [11.34ms] */
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/transaction/receipt/105235
   Query 10 - 2025-01-07 09:34:25 [0.51ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:34:42 [1.76ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:34:42 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:34:42 [0.58ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:34:42 [0.45ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:34:42 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:34:42 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:34:42 [1.36ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 09876543;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 1 - 2025-01-07 09:35:12 [2.3ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 2 - 2025-01-07 09:35:12 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 3 - 2025-01-07 09:35:12 [0.45ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 4 - 2025-01-07 09:35:12 [0.32ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 5 - 2025-01-07 09:35:12 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 6 - 2025-01-07 09:35:12 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 7 - 2025-01-07 09:35:12 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 8 - 2025-01-07 09:35:12 [18.63ms] */
update `transaction` set `gov_fee_ar_number` = 29, `gov_fee_payment_date` = '2025-01-07 09:35:12', `transaction`.`updated_at` = '2025-01-07 09:35:12' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 9 - 2025-01-07 09:35:12 [0.48ms] */
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/transaction/receipt/105235
   Query 10 - 2025-01-07 09:35:12 [0.44ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:35:28 [2.62ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:35:28 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:35:28 [0.67ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:35:28 [0.54ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:35:28 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:35:28 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:35:28 [1.64ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 09876543;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 1 - 2025-01-07 09:35:46 [1.53ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 2 - 2025-01-07 09:35:46 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 3 - 2025-01-07 09:35:46 [0.25ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 4 - 2025-01-07 09:35:46 [0.28ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 5 - 2025-01-07 09:35:46 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 6 - 2025-01-07 09:35:46 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 7 - 2025-01-07 09:35:46 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 8 - 2025-01-07 09:35:46 [7.53ms] */
update `transaction` set `gov_fee_ar_number` = 299, `gov_fee_payment_date` = '2025-01-07 09:35:46', `transaction`.`updated_at` = '2025-01-07 09:35:46' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 9 - 2025-01-07 09:35:46 [0.39ms] */
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/transaction/receipt/105235
   Query 10 - 2025-01-07 09:35:46 [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/payment_confirm_image
   Query 1 - 2025-01-07 09:37:03 [1.46ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:37:03 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:37:03 [0.24ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:37:03 [0.27ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:37:03 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:37:03 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:37:03 [0.34ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 09876543;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 1 - 2025-01-07 09:37:47 [1.6ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 2 - 2025-01-07 09:37:47 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 3 - 2025-01-07 09:37:47 [0.24ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 4 - 2025-01-07 09:37:47 [0.3ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 5 - 2025-01-07 09:37:47 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 6 - 2025-01-07 09:37:47 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 7 - 2025-01-07 09:37:47 [0.38ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 8 - 2025-01-07 09:37:47 [6.31ms] */
update `transaction` set `gov_fee_payment_date` = '2025-01-07 09:37:47', `transaction`.`updated_at` = '2025-01-07 09:37:47' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 9 - 2025-01-07 09:37:47 [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/transaction/receipt/105235
   Query 10 - 2025-01-07 09:37:47 [0.24ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-01-07 09:40:29 [6.28ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-01-07 09:40:29 [1.21ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-01-07 09:40:29 [0.47ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-01-07 09:40:29 [1.39ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-01-07 09:40:29 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-01-07 09:40:29 [1.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-01-07 09:40:29 [5.38ms] */
select * from `receipts` where `used` = 'No' and `user_id` = 5 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-01-07 09:40:30 [7.06ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-01-07 09:40:30 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-01-07 09:40:30 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-01-07 09:40:30 [0.19ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-01-07 09:40:30 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-01-07 09:40:30 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-01-07 09:40:30 [2.9ms] */
select * from `receipts` where `used` = 'No' and `user_id` = 5 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-07 09:43:36 [1.4ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-07 09:43:36 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-07 09:43:36 [0.25ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-07 09:43:36 [0.29ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-07 09:43:36 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-07 09:43:36 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-07 09:43:36 [1.95ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'FA146' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-01-07 09:43:37 [1.94ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-01-07 09:43:37 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-01-07 09:43:37 [0.18ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-01-07 09:43:37 [0.2ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-01-07 09:43:37 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-01-07 09:43:37 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-01-07 09:43:37 [1.2ms] */
select * from `vehicle` where `vehicle`.`id` = 1178 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-01-07 09:43:37 [0.24ms] */
select * from `vehicle` where `id` = 1178 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-01-07 09:43:37 [1.32ms] */
select * from `party_vehicle` where `vehicle_id` = 1178 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-01-07 09:43:37 [7.28ms] */
select `vehicle_tax`.`id`, `term`.`year`, `term`.`quarter`, `invoice`.`invoice_amount`, `invoice`.`outstanding_balance`, `vehicle_tax`.`exempt`, `invoice`.`status`, `tax_sticker`.`name` as `tax_sticker`, CASE
                WHEN term.quarter = 1 THEN DATE_FORMAT(CONCAT(term.year, "-03-31"), "%d-%m-%Y")
                WHEN term.quarter = 2 THEN DATE_FORMAT(CONCAT(term.year, "-06-30"), "%d-%m-%Y")
                WHEN term.quarter = 3 THEN DATE_FORMAT(CONCAT(term.year, "-09-30"), "%d-%m-%Y")
                WHEN term.quarter = 4 THEN DATE_FORMAT(CONCAT(term.year, "-12-31"), "%d-%m-%Y")
                ELSE NULL
                END as due_date from `vehicle_tax` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `transaction` on `vehicle_tax`.`transaction_id` = `transaction`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `tax_sticker` on `vehicle_tax`.`tax_sticker_id` = `tax_sticker`.`id` where `vehicle_tax`.`vehicle_id` = 1178 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-01-07 09:43:39 [1.36ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-01-07 09:43:39 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-01-07 09:43:39 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-01-07 09:43:39 [0.18ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-01-07 09:43:39 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-01-07 09:43:39 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-01-07 09:43:39 [1.6ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-07 09:43:39 [1.37ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-07 09:43:39 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-07 09:43:39 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-07 09:43:39 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-07 09:43:39 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-07 09:43:39 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-07 09:43:39 [0.56ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-07 09:45:24 [1.85ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-07 09:45:24 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-07 09:45:24 [0.31ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-07 09:45:24 [0.38ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-07 09:45:24 [0.2ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-07 09:45:24 [0.18ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-07 09:45:24 [3.81ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-07 09:45:24 [0.38ms] */
select `transaction_id` from `vehicle_tax` where `id` in (98757, 100030) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-07 09:45:24 [0.36ms] */
select `parent_id` from `transaction` where `id` in (101766, 103695) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-07 09:45:24 [70.05ms] */
select `id` from `transaction` where `parent_id` in (105235) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-07 09:45:24 [0.49ms] */
select * from `transaction` where `id` in (105235) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-07 09:45:24 [0.19ms] */
select `transaction_id` from `vehicle_tax` where `id` in (98757, 100030) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-07 09:45:24 [0.44ms] */
select * from `invoice` where `transaction_id` = 101766 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-07 09:45:24 [0.38ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101441 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-01-07 09:45:24 [0.33ms] */
select * from `invoice` where `transaction_id` = 103695 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-01-07 09:45:24 [0.29ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103257 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 17 - 2025-01-07 09:45:24 [0.44ms] */
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 18 - 2025-01-07 09:45:24 [0.24ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-07 09:45:25 [1.35ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-07 09:45:25 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-07 09:45:25 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-07 09:45:25 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-07 09:45:25 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-07 09:45:25 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-07 09:45:25 [0.36ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:45:50 [1.65ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:45:50 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:45:50 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:45:50 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:45:50 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:45:50 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:45:50 [0.81ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 5283176384;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:46:00 [1.46ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:46:00 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:46:00 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:46:00 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:46:00 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:46:00 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:46:00 [2.03ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 52831888;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-01-07 09:46:00 [10.03ms] */
delete from `payment_documents` where `transaction_id` = 105235 and `type` = 'GOV_SMS_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-01-07 09:46:00 [3.38ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `receipt_attachment`, `updated_at`, `created_at`) values (105235, 'GOV_SMS_IMAGE', 52831888, 'payment_confirmation/Payment-Confirmation-TR105235-ATTC-828946124.png', '2025-01-07 09:46:00', '2025-01-07 09:46:00');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 1 - 2025-01-07 09:46:51 [1.75ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 2 - 2025-01-07 09:46:51 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 3 - 2025-01-07 09:46:51 [0.36ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 4 - 2025-01-07 09:46:51 [0.44ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 5 - 2025-01-07 09:46:51 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 6 - 2025-01-07 09:46:51 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 7 - 2025-01-07 09:46:51 [0.61ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 8 - 2025-01-07 09:46:51 [7.85ms] */
update `transaction` set `gov_fee_sms_confirmation` = 52831888, `gov_fee_ar_number` = 42, `gov_fee_payment_date` = '2025-01-07 09:46:51', `transaction`.`updated_at` = '2025-01-07 09:46:51' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 9 - 2025-01-07 09:46:51 [1.12ms] */
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/transaction/receipt/105235
   Query 10 - 2025-01-07 09:46:51 [0.43ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:47:05 [3.91ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:47:05 [12.17ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:47:05 [3.71ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:47:05 [5.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:47:05 [3.36ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:47:05 [3.84ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:47:05 [8.11ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 42;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-01-07 09:47:05 [0.84ms] */
delete from `payment_documents` where `transaction_id` = 105235 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-01-07 09:47:05 [13.77ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `receipt_attachment`, `updated_at`, `created_at`) values (105235, 'GOV_RECEIPT_IMAGE', 42, 'payment_confirmation/Payment-Confirmation-TR105235-ATTC-13885485.png', '2025-01-07 09:47:05', '2025-01-07 09:47:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:47:39 [2.73ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:47:39 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:47:39 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:47:39 [0.32ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:47:39 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:47:39 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:47:39 [0.43ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 52800000;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-01-07 09:47:39 [0.62ms] */
delete from `payment_documents` where `transaction_id` = 105235 and `type` = 'SERVICE_SMS_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-01-07 09:47:39 [28.16ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `receipt_attachment`, `updated_at`, `created_at`) values (105235, 'SERVICE_SMS_IMAGE', 52800000, 'payment_confirmation/Payment-Confirmation-TR105235-ATTC-1672394115.png', '2025-01-07 09:47:39', '2025-01-07 09:47:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 1 - 2025-01-07 09:49:17 [1.67ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 2 - 2025-01-07 09:49:18 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 3 - 2025-01-07 09:49:18 [0.28ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 4 - 2025-01-07 09:49:18 [0.64ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 5 - 2025-01-07 09:49:18 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 6 - 2025-01-07 09:49:18 [0.31ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 7 - 2025-01-07 09:49:18 [0.92ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 8 - 2025-01-07 09:49:18 [5.82ms] */
update `transaction` set `service_fee_sms_confirmation` = 52800000, `service_fee_ar_number` = 42, `service_fee_payment_date` = '2025-01-07 09:49:18', `transaction`.`updated_at` = '2025-01-07 09:49:18' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 9 - 2025-01-07 09:49:18 [0.33ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 10 - 2025-01-07 09:49:18 [0.3ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:49:30 [1.39ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:49:30 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:49:30 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:49:30 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:49:30 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:49:30 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:49:30 [0.43ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 52800000;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 1 - 2025-01-07 09:49:50 [1.36ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 2 - 2025-01-07 09:49:50 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 3 - 2025-01-07 09:49:50 [0.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 4 - 2025-01-07 09:49:50 [0.22ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 5 - 2025-01-07 09:49:50 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 6 - 2025-01-07 09:49:50 [0.18ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 7 - 2025-01-07 09:49:50 [0.55ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 8 - 2025-01-07 09:49:50 [6.09ms] */
update `transaction` set `service_fee_payment_date` = '2025-01-07 09:49:50', `transaction`.`updated_at` = '2025-01-07 09:49:50' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 9 - 2025-01-07 09:49:50 [0.33ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 10 - 2025-01-07 09:49:50 [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/payment_confirm_image
   Query 1 - 2025-01-07 09:50:06 [1.39ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:50:06 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:50:06 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:50:06 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:50:06 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:50:06 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:50:06 [0.43ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 52800000;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 1 - 2025-01-07 09:51:29 [32.31ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 2 - 2025-01-07 09:51:29 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 3 - 2025-01-07 09:51:29 [0.25ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 1 - 2025-01-07 09:51:29 [2.74ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 4 - 2025-01-07 09:51:29 [0.35ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 5 - 2025-01-07 09:51:29 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 6 - 2025-01-07 09:51:29 [0.11ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 2 - 2025-01-07 09:51:29 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 3 - 2025-01-07 09:51:29 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 7 - 2025-01-07 09:51:29 [1.99ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 4 - 2025-01-07 09:51:29 [0.75ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 5 - 2025-01-07 09:51:29 [0.45ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 6 - 2025-01-07 09:51:29 [0.38ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 7 - 2025-01-07 09:51:29 [0.8ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 8 - 2025-01-07 09:51:29 [6.79ms] */
update `transaction` set `service_fee_payment_date` = '2025-01-07 09:51:29', `transaction`.`updated_at` = '2025-01-07 09:51:29' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 8 - 2025-01-07 09:51:29 [4.69ms] */
update `transaction` set `service_fee_payment_date` = '2025-01-07 09:51:29', `transaction`.`updated_at` = '2025-01-07 09:51:29' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 9 - 2025-01-07 09:51:29 [1.81ms] */
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/transaction/receipt/105235
   Query 9 - 2025-01-07 09:51:29 [0.49ms] */
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/transaction/receipt/105235
   Query 10 - 2025-01-07 09:51:29 [0.51ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 10 - 2025-01-07 09:51:29 [1.71ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:53:00 [4.56ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:53:00 [0.72ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:53:00 [1.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:53:00 [1.36ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:53:00 [0.45ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:53:00 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:53:00 [1.93ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 52800000;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:53:00 [3.28ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:53:00 [0.57ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:53:00 [0.68ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:53:00 [0.26ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:53:00 [0.37ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:53:00 [0.25ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:53:00 [1.44ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 52800000;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 1 - 2025-01-07 09:53:18 [1.39ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 2 - 2025-01-07 09:53:18 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 3 - 2025-01-07 09:53:18 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 4 - 2025-01-07 09:53:18 [0.16ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 5 - 2025-01-07 09:53:18 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 6 - 2025-01-07 09:53:18 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 7 - 2025-01-07 09:53:18 [0.91ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 8 - 2025-01-07 09:53:18 [5.76ms] */
update `transaction` set `service_fee_payment_date` = '2025-01-07 09:53:18', `transaction`.`updated_at` = '2025-01-07 09:53:18' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 9 - 2025-01-07 09:53:18 [0.51ms] */
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/transaction/receipt/105235
   Query 10 - 2025-01-07 09:53:18 [0.9ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:53:58 [5.81ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:53:59 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:53:59 [0.96ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:53:59 [0.6ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:53:59 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:53:59 [0.12ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:53:59 [1.28ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 42;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 1 - 2025-01-07 09:54:14 [1.34ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 2 - 2025-01-07 09:54:14 [0.12ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 3 - 2025-01-07 09:54:14 [0.12ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 4 - 2025-01-07 09:54:14 [0.15ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 5 - 2025-01-07 09:54:14 [0.12ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 6 - 2025-01-07 09:54:14 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 7 - 2025-01-07 09:54:14 [0.4ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 8 - 2025-01-07 09:54:14 [5.97ms] */
update `transaction` set `service_fee_ar_number` = 43, `service_fee_payment_date` = '2025-01-07 09:54:14', `transaction`.`updated_at` = '2025-01-07 09:54:14' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105235
   Query 9 - 2025-01-07 09:54:14 [0.48ms] */
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/transaction/receipt/105235
   Query 10 - 2025-01-07 09:54:14 [0.47ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:55:41 [1.49ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:55:41 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:55:41 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:55:41 [0.2ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:55:41 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:55:41 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:55:41 [0.58ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 43;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-01-07 09:55:41 [0.66ms] */
delete from `payment_documents` where `transaction_id` = 105235 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-01-07 09:55:41 [10.11ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `receipt_attachment`, `updated_at`, `created_at`) values (105235, 'SERVICE_RECEIPT_IMAGE', 43, 'payment_confirmation/Payment-Confirmation-TR105235-ATTC-1317706718.png', '2025-01-07 09:55:41', '2025-01-07 09:55:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-01-07 09:56:15 [1.67ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-01-07 09:56:15 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-01-07 09:56:15 [0.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-01-07 09:56:15 [0.22ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-01-07 09:56:15 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-01-07 09:56:15 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-01-07 09:56:15 [0.51ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-01-07 09:56:15 [0.36ms] */
select * from `invoice_payment` where `invoice_id` = 104792 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-01-07 09:56:15 [39.04ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 105235 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-01-07 09:56:15 [23.5ms] */
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` = 105235 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-01-07 09:56:15 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-01-07 09:56:15 [0.27ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-01-07 09:56:15 [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 14 - 2025-01-07 09:56:15 [0.72ms] */
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 15 - 2025-01-07 09:56:15 [27.81ms] */
select sum(`invoice`.`invoice_amount`) as aggregate from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `transaction`.`parent_id` = 105235 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-01-07 09:56:15 [0.42ms] */
select * from `party` where `party`.`id` = 56195 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 17 - 2025-01-07 09:56:15 [1.57ms] */
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-01-07 09:56:15', '#677CD00FB1E13', 42, 5, 109.00, null, 8877665544, null, 37, 5, 5, 5, '2025-01-07 09:56:15', '2025-01-07 09:56:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 18 - 2025-01-07 09:56:15 [0.26ms] */
select * from `Payment` where `id` = 89842 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-01-07 09:56:15 [0.75ms] */
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":5,"payment_amount":"109.00","payment_date":"2025-01-07 09:56:15","external_payment_reference_no":"#677CD00FB1E13","payment_receipt_number":"42","siinpay_payref_number":null,"paid_by":null,"paid_by_mobile":"8877665544","district_id":37,"migration_id":null,"payment_collected_by":5}}', 5, 'App\Models\User', 89842, 'Modules\Transaction\Entities\Payment', 'created', '2025-01-07 09:56:15', '2025-01-07 09:56:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-01-07 09:56:15 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-01-07 09:56:15 [0.48ms] */
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 22 - 2025-01-07 09:56:15 [0.25ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-01-07 09:56:15 [0.26ms] */
select * from `invoice` where `invoice`.`id` = 101441 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-01-07 09:56:15 [0.32ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-01-07 09:56:15', 101441, 89842, '2025-01-07 09:56:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-01-07 09:56:15 [0.26ms] */
select * from `invoice` where `invoice`.`id` = 101441 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-01-07 09:56:15 [0.68ms] */
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` = 101441 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-01-07 09:56:15 [0.81ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101441 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 28 - 2025-01-07 09:56:15 [0.41ms] */
update `invoice` set `invoice_amount` = 38, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 38, `status` = 'PAID', `invoice`.`updated_at` = '2025-01-07 09:56:15' where `id` = 101441;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 29 - 2025-01-07 09:56:15 [0.39ms] */
select * from `invoice` where `id` = 101441 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-01-07 09:56:15 [0.61ms] */
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"}}', 5, 'App\Models\User', 101441, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 09:56:15', '2025-01-07 09:56:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-01-07 09:56:15 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 101766 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-01-07 09:56:15 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 101766 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-01-07 09:56:15 [0.27ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-01-07 09:56:15 [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/confirm_payment
   Query 35 - 2025-01-07 09:56:15 [0.6ms] */
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 36 - 2025-01-07 09:56:15 [0.97ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (101766, 'PAID', '2025-01-07 09:56:15', 7, 5, null, 5, 5, '2025-01-07 09:56:15', '2025-01-07 09:56:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 37 - 2025-01-07 09:56:15 [0.56ms] */
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 38 - 2025-01-07 09:56:15 [0.59ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-01-07 09:56:15' where `id` = 101766;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 39 - 2025-01-07 09:56:15 [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 40 - 2025-01-07 09:56:15 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 101441 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 41 - 2025-01-07 09:56:15 [0.58ms] */
select * from `vehicle_tax` where `transaction_id` = 101766 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 42 - 2025-01-07 09:56:15 [0.3ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-01-07 09:56:15' where `id` = 98757;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-01-07 09:56:15 [0.33ms] */
select * from `vehicle_tax` where `id` = 98757 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-01-07 09:56:15 [0.32ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 98757, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-07 09:56:15', '2025-01-07 09:56:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-01-07 09:56:15 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 103257 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-01-07 09:56:15 [0.23ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-01-07 09:56:15', 103257, 89842, '2025-01-07 09:56:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 47 - 2025-01-07 09:56:15 [0.33ms] */
select * from `invoice` where `invoice`.`id` = 103257 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-01-07 09:56:15 [0.39ms] */
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` = 103257 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-01-07 09:56:15 [0.61ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103257 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 50 - 2025-01-07 09:56:15 [0.27ms] */
update `invoice` set `invoice_amount` = 71, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 71, `status` = 'PAID', `invoice`.`updated_at` = '2025-01-07 09:56:15' where `id` = 103257;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-01-07 09:56:15 [0.31ms] */
select * from `invoice` where `id` = 103257 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-01-07 09:56:15 [0.29ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"71.00","status":"OPEN"}}', 5, 'App\Models\User', 103257, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 09:56:15', '2025-01-07 09:56:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-01-07 09:56:15 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 103695 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-01-07 09:56:15 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 103695 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-01-07 09:56:15 [0.22ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-01-07 09:56:15 [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/confirm_payment
   Query 57 - 2025-01-07 09:56:15 [0.22ms] */
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 58 - 2025-01-07 09:56:15 [0.24ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (103695, 'PAID', '2025-01-07 09:56:15', 7, 5, null, 5, 5, '2025-01-07 09:56:15', '2025-01-07 09:56:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 59 - 2025-01-07 09:56:15 [0.25ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-01-07 09:56:15 [0.62ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-01-07 09:56:15' where `id` = 103695;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-01-07 09:56:15 [0.28ms] */
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 62 - 2025-01-07 09:56:15 [0.46ms] */
select * from `invoice` where `invoice`.`id` = 103257 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 63 - 2025-01-07 09:56:15 [0.39ms] */
select * from `vehicle_tax` where `transaction_id` = 103695 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-01-07 09:56:15 [0.21ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-01-07 09:56:15' where `id` = 100030;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-01-07 09:56:15 [0.38ms] */
select * from `vehicle_tax` where `id` = 100030 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 66 - 2025-01-07 09:56:15 [0.78ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 100030, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-07 09:56:15', '2025-01-07 09:56:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-01-07 09:56:15 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 104792 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 68 - 2025-01-07 09:56:15 [0.16ms] */
select * from `invoice` where `invoice`.`id` = 104792 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 69 - 2025-01-07 09:56:15 [0.17ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-01-07 09:56:15', 104792, 89842, '2025-01-07 09:56:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 70 - 2025-01-07 09:56:15 [0.17ms] */
select * from `invoice` where `invoice`.`id` = 104792 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 71 - 2025-01-07 09:56:15 [0.27ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 104792 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 72 - 2025-01-07 09:56:15 [0.2ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-01-07 09:56:15' where `id` = 104792;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 73 - 2025-01-07 09:56:15 [0.23ms] */
select * from `invoice` where `id` = 104792 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 74 - 2025-01-07 09:56:15 [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":"109.00","status":"OPEN"}}', 5, 'App\Models\User', 104792, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 09:56:15', '2025-01-07 09:56:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 75 - 2025-01-07 09:56:15 [0.48ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 76 - 2025-01-07 09:56:15 [0.48ms] */
select * from `transaction` where `transaction`.`id` = 105235 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 77 - 2025-01-07 09:56:15 [0.54ms] */
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 78 - 2025-01-07 09:56:15 [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 79 - 2025-01-07 09:56:15 [0.34ms] */
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 80 - 2025-01-07 09:56:15 [0.35ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105235, 'PAID', '2025-01-07 09:56:15', 7, 5, null, 5, 5, '2025-01-07 09:56:15', '2025-01-07 09:56:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 81 - 2025-01-07 09:56:15 [0.36ms] */
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 82 - 2025-01-07 09:56:15 [0.26ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-01-07 09:56:15' where `id` = 105235;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 83 - 2025-01-07 09:56:15 [0.31ms] */
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 84 - 2025-01-07 09:56:15 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 104792 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 85 - 2025-01-07 09:56:15 [5.82ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-01-07 09:56:15' where `receipt_number` = 42 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 86 - 2025-01-07 09:56:15 [14.94ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-01-07 09:56:15' where `receipt_number` = 43 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-01-07 09:56:39 [2ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-01-07 09:56:39 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-01-07 09:56:39 [0.29ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-01-07 09:56:39 [0.24ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-01-07 09:56:39 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-01-07 09:56:39 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-01-07 09:56:39 [4.34ms] */
select * from `receipts` where `used` = 'No' and `user_id` = 5 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-01-07 09:56:39 [3.02ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-01-07 09:56:39 [2.07ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-01-07 09:56:39 [1.32ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-01-07 09:56:39 [6.52ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-01-07 09:56:39 [7.26ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-01-07 09:56:39 [3.08ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-01-07 09:56:39 [4.68ms] */
select * from `receipts` where `used` = 'No' and `user_id` = 5 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-07 09:56:57 [1.35ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-07 09:56:57 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-07 09:56:57 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-07 09:56:57 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-07 09:56:57 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-07 09:56:57 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-07 09:56:57 [1.23ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'C145' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-01-07 09:56:58 [5.02ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-01-07 09:56:58 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-01-07 09:56:58 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-01-07 09:56:58 [0.27ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-01-07 09:56:58 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-01-07 09:56:58 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-01-07 09:56:58 [0.39ms] */
select * from `vehicle` where `vehicle`.`id` = 1121 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-01-07 09:56:58 [0.26ms] */
select * from `vehicle` where `id` = 1121 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-01-07 09:56:58 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 1121 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-01-07 09:56:58 [0.93ms] */
select `vehicle_tax`.`id`, `term`.`year`, `term`.`quarter`, `invoice`.`invoice_amount`, `invoice`.`outstanding_balance`, `vehicle_tax`.`exempt`, `invoice`.`status`, `tax_sticker`.`name` as `tax_sticker`, CASE
                WHEN term.quarter = 1 THEN DATE_FORMAT(CONCAT(term.year, "-03-31"), "%d-%m-%Y")
                WHEN term.quarter = 2 THEN DATE_FORMAT(CONCAT(term.year, "-06-30"), "%d-%m-%Y")
                WHEN term.quarter = 3 THEN DATE_FORMAT(CONCAT(term.year, "-09-30"), "%d-%m-%Y")
                WHEN term.quarter = 4 THEN DATE_FORMAT(CONCAT(term.year, "-12-31"), "%d-%m-%Y")
                ELSE NULL
                END as due_date from `vehicle_tax` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `transaction` on `vehicle_tax`.`transaction_id` = `transaction`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `tax_sticker` on `vehicle_tax`.`tax_sticker_id` = `tax_sticker`.`id` where `vehicle_tax`.`vehicle_id` = 1121 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-01-07 09:57:00 [1.37ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-01-07 09:57:00 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-01-07 09:57:00 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-01-07 09:57:00 [0.16ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-01-07 09:57:00 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-01-07 09:57:00 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-01-07 09:57:00 [1.36ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-07 09:57:00 [1.31ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-07 09:57:00 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-07 09:57:00 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-07 09:57:00 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-07 09:57:00 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-07 09:57:00 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-07 09:57:00 [0.29ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-07 09:57:01 [1.41ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-07 09:57:01 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-07 09:57:01 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-07 09:57:01 [0.2ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-07 09:57:01 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-07 09:57:01 [0.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-07 09:57:01 [1.18ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-07 09:57:01 [0.91ms] */
select `transaction_id` from `vehicle_tax` where `id` in (98709, 100297) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-07 09:57:01 [1.31ms] */
select `parent_id` from `transaction` where `id` in (101667, 103962) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-07 09:57:01 [0.31ms] */
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-01-07 09:57:01 [0.39ms] */
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-01-07 09:57:01 [0.47ms] */
select * from `transaction` where `id` in (101667, 103962) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-07 09:57:01 [1.35ms] */
select * from `invoice` where `invoice`.`id` = 101356 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-01-07 09:57:01 [4.11ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-01-07 09:57:01' where `id` = 101356;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-07 09:57:01 [0.46ms] */
select * from `invoice` where `id` = 101356 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-01-07 09:57:01 [4.53ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 101356, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-01-07 09:57:01 [1.28ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-01-07 09:57:01 [1.29ms] */
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-01-07 09:57:01 [0.87ms] */
select * from `invoice` where `invoice`.`id` = 103524 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 20 - 2025-01-07 09:57:01 [3.19ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-01-07 09:57:01' where `id` = 103524;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-01-07 09:57:01 [0.32ms] */
select * from `invoice` where `id` = 103524 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-07 09:57:01 [5.09ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 103524, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-01-07 09:57:01 [0.24ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-01-07 09:57:01 [0.25ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-07 09:57:01 [4.65ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-01-07 09:57:01' where `id` = 103962;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-01-07 09:57:01 [3.39ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-01-07 09:57:01' where `id` in (98709, 100297) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-01-07 09:57:01 [0.97ms] */
select * from `vehicle` where `vehicle`.`id` = 1121 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-07 09:57:01 [0.7ms] */
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 29 - 2025-01-07 09:57:01 [1.42ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1121 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-01-07 09:57:01 [0.43ms] */
select * from `party_vehicle` where `vehicle_id` = 1121 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 31 - 2025-01-07 09:57:01 [1.05ms] */
select * from `party` where `party`.`id` = 4598 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 32 - 2025-01-07 09:57:01 [0.31ms] */
select * from `vehicle` where `vehicle`.`id` = 1121 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 33 - 2025-01-07 09:57:01 [0.35ms] */
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-01-07 09:57:01 [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-01-07 09:57:01 [1.46ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (4598, 2, 1121, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-01-07 09:57:01 [1.53ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105236, 'INITIATED', '2025-01-07 09:57:01', 5, 5, 5, 5, '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-01-07 09:57:01 [0.18ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 61973, `transaction`.`updated_at` = '2025-01-07 09:57:01' where `id` = 105236;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-01-07 09:57:01 [0.27ms] */
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 (98709, 100297) 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 39 - 2025-01-07 09:57:01 [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 (98709, 100297) 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 40 - 2025-01-07 09:57:01 [0.74ms] */
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 (105236, 4598, '2025-01-07 09:57:01', '2025-01-07 09:57:01', 139.00, 0, 139.00, 139.00, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-01-07 09:57:01 [0.18ms] */
select * from `invoice` where `id` = 104793 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-01-07 09:57:01 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":105236,"party_id":4598,"invoice_amount":"139.00","invoice_date":"2025-01-07 09:57:01","due_date":"2025-01-07 09:57:01","outstanding_balance":"139.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"139.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 104793, 'Modules\Transaction\Entities\Invoice', 'created', '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-01-07 09:57:01 [0.26ms] */
select `invoice`.* from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (98709, 100297) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-01-07 09:57:01 [0.48ms] */
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 Tax Fees', 2, 139, 139, 104793, 5, 5, '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-01-07 09:57:01 [0.16ms] */
select * from `invoice_item` where `id` = 204737 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-01-07 09:57:01 [0.16ms] */
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 Tax Fees","unit_price":"139.00","quantity":2,"total_price":"139.00","invoice_id":104793}}', 5, 'App\Models\User', 204737, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-01-07 09:57:01 [0.22ms] */
update `invoice` set `invoice_number` = 'INV-682-104793130', `invoice`.`updated_at` = '2025-01-07 09:57:01' where `id` = 104793;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-01-07 09:57:01 [0.18ms] */
select * from `invoice` where `id` = 104793 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-01-07 09:57:01 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-682-104793130"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 104793, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-01-07 09:57:01 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 98709 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-01-07 09:57:01 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-07 09:57:01' where `id` = 98709;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-01-07 09:57:01 [0.31ms] */
select * from `vehicle_tax` where `id` = 98709 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-01-07 09:57:01 [0.45ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 98709, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-01-07 09:57:01 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 101667 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 55 - 2025-01-07 09:57:01 [0.19ms] */
update `transaction` set `deliver_district_id` = null, `parent_id` = 105236, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-07 09:57:01' where `id` = 101667;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-01-07 09:57:01 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 101356 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 57 - 2025-01-07 09:57:01 [0.8ms] */
update `invoice` set `parent_id` = 104793, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-07 09:57:01' where `id` = 101356;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-01-07 09:57:01 [0.18ms] */
select * from `invoice` where `id` = 101356 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-01-07 09:57:01 [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":104793,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 101356, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-01-07 09:57:01 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 101667 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-01-07 09:57:01 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-01-07 09:57:01 [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/make_payment
   Query 63 - 2025-01-07 09:57:01 [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 64 - 2025-01-07 09:57:01 [0.37ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-01-07 09:57:01 [0.21ms] */
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 66 - 2025-01-07 09:57:01 [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 (101667, 'APPROVED', '2025-01-07 09:57:01', 5, 5, null, 5, 5, '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-01-07 09:57:01 [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 68 - 2025-01-07 09:57:01 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-07 09:57:01' where `id` = 101667;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-01-07 09:57:01 [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 70 - 2025-01-07 09:57:01 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 101356 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 71 - 2025-01-07 09:57:01 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 100297 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-01-07 09:57:01 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-07 09:57:01' where `id` = 100297;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-01-07 09:57:01 [0.35ms] */
select * from `vehicle_tax` where `id` = 100297 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-01-07 09:57:01 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 100297, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-01-07 09:57:01 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 103962 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 76 - 2025-01-07 09:57:01 [0.17ms] */
update `transaction` set `parent_id` = 105236, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-07 09:57:01' where `id` = 103962;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 77 - 2025-01-07 09:57:01 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 103524 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 78 - 2025-01-07 09:57:01 [0.45ms] */
update `invoice` set `parent_id` = 104793, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-07 09:57:01' where `id` = 103524;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-01-07 09:57:01 [0.19ms] */
select * from `invoice` where `id` = 103524 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2025-01-07 09:57:01 [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":104793,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 103524, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-01-07 09:57:01 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 103962 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-01-07 09:57:01 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 83 - 2025-01-07 09:57:01 [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/make_payment
   Query 84 - 2025-01-07 09:57:01 [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 85 - 2025-01-07 09:57:01 [0.16ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 86 - 2025-01-07 09:57:01 [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 (103962, 'APPROVED', '2025-01-07 09:57:01', 5, 5, null, 5, 5, '2025-01-07 09:57:01', '2025-01-07 09:57:01');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2025-01-07 09:57:01 [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 88 - 2025-01-07 09:57:01 [0.19ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-07 09:57:01' where `id` = 103962;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 89 - 2025-01-07 09:57:01 [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 90 - 2025-01-07 09:57:01 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 103524 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 91 - 2025-01-07 09:57:01 [0.17ms] */
update `transaction` set `invoice_id` = 104793, `transaction`.`updated_at` = '2025-01-07 09:57:01' where `id` = 105236;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 92 - 2025-01-07 09:57:01 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 105236 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 93 - 2025-01-07 09:57:01 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 94 - 2025-01-07 09:57:01 [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/make_payment
   Query 95 - 2025-01-07 09:57:02 [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 96 - 2025-01-07 09:57:02 [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 (105236, 'APPROVED', '2025-01-07 09:57:01', 5, 5, null, 5, 5, '2025-01-07 09:57:02', '2025-01-07 09:57:02');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 97 - 2025-01-07 09:57:02 [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 98 - 2025-01-07 09:57:02 [0.19ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-07 09:57:02' where `id` = 105236;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 99 - 2025-01-07 09:57:02 [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 100 - 2025-01-07 09:57:02 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 104793 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 101 - 2025-01-07 09:57:02 [0.46ms] */
select `transaction_id` from `vehicle_tax` where `id` in (98709, 100297) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 102 - 2025-01-07 09:57:02 [0.96ms] */
select * from `invoice` where `transaction_id` = 101667 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 103 - 2025-01-07 09:57:02 [0.42ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101356 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 104 - 2025-01-07 09:57:02 [1ms] */
select * from `invoice` where `transaction_id` = 103962 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 105 - 2025-01-07 09:57:02 [0.99ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103524 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 106 - 2025-01-07 09:57:02 [0.87ms] */
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-01-07 09:57:02 [0.45ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-07 09:57:02 [1.52ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-07 09:57:02 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-07 09:57:02 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-07 09:57:02 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-07 09:57:02 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-07 09:57:02 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-07 09:57:02 [0.15ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:58:30 [2.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:58:30 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:58:30 [0.48ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:58:30 [0.72ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:58:30 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:58:30 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:58:30 [1.48ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 9000111;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-01-07 09:58:30 [0.47ms] */
delete from `payment_documents` where `transaction_id` = 105236 and `type` = 'GOV_SMS_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-01-07 09:58:30 [11.96ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `receipt_attachment`, `updated_at`, `created_at`) values (105236, 'GOV_SMS_IMAGE', 9000111, 'payment_confirmation/Payment-Confirmation-TR105236-ATTC-222022566.png', '2025-01-07 09:58:30', '2025-01-07 09:58:30');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 1 - 2025-01-07 09:58:47 [3.25ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 2 - 2025-01-07 09:58:47 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 3 - 2025-01-07 09:58:47 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 4 - 2025-01-07 09:58:47 [0.23ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 5 - 2025-01-07 09:58:47 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 6 - 2025-01-07 09:58:47 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 7 - 2025-01-07 09:58:47 [0.97ms] */
select * from `transaction` where `transaction`.`id` = 105236 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 8 - 2025-01-07 09:58:47 [12.54ms] */
update `transaction` set `gov_fee_sms_confirmation` = 9000111, `gov_fee_ar_number` = 13, `gov_fee_payment_date` = '2025-01-07 09:58:47', `transaction`.`updated_at` = '2025-01-07 09:58:47' where `id` = 105236;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 9 - 2025-01-07 09:58:47 [0.54ms] */
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/transaction/receipt/105236
   Query 10 - 2025-01-07 09:58:47 [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/payment_confirm_image
   Query 1 - 2025-01-07 09:58:53 [1.4ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:58:53 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:58:53 [1.37ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:58:53 [3.41ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:58:53 [5.02ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:58:53 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:58:53 [3.32ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 13;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-01-07 09:58:53 [0.53ms] */
delete from `payment_documents` where `transaction_id` = 105236 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-01-07 09:58:53 [23.88ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `receipt_attachment`, `updated_at`, `created_at`) values (105236, 'GOV_RECEIPT_IMAGE', 13, 'payment_confirmation/Payment-Confirmation-TR105236-ATTC-1206167268.png', '2025-01-07 09:58:53', '2025-01-07 09:58:53');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:59:42 [2.67ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:59:42 [0.37ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:59:42 [0.34ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:59:42 [0.55ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:59:42 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:59:42 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:59:42 [0.39ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 900112;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-01-07 09:59:42 [0.44ms] */
delete from `payment_documents` where `transaction_id` = 105236 and `type` = 'SERVICE_SMS_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-01-07 09:59:42 [14.41ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `receipt_attachment`, `updated_at`, `created_at`) values (105236, 'SERVICE_SMS_IMAGE', 900112, 'payment_confirmation/Payment-Confirmation-TR105236-ATTC-60075149.png', '2025-01-07 09:59:42', '2025-01-07 09:59:42');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 1 - 2025-01-07 09:59:54 [1.27ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 2 - 2025-01-07 09:59:54 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 3 - 2025-01-07 09:59:54 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 4 - 2025-01-07 09:59:54 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 5 - 2025-01-07 09:59:54 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 6 - 2025-01-07 09:59:54 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 7 - 2025-01-07 09:59:54 [0.93ms] */
select * from `transaction` where `transaction`.`id` = 105236 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 8 - 2025-01-07 09:59:54 [11.53ms] */
update `transaction` set `service_fee_sms_confirmation` = 900112, `service_fee_ar_number` = 13, `service_fee_payment_date` = '2025-01-07 09:59:54', `transaction`.`updated_at` = '2025-01-07 09:59:54' where `id` = 105236;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 9 - 2025-01-07 09:59:54 [2.43ms] */
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/transaction/receipt/105236
   Query 10 - 2025-01-07 09:59:54 [2.07ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 09:59:58 [1.63ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 09:59:58 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 09:59:58 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 09:59:58 [0.18ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 09:59:58 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 09:59:58 [0.11ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 09:59:58 [0.86ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 13;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 1 - 2025-01-07 10:00:36 [3.57ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 2 - 2025-01-07 10:00:36 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 3 - 2025-01-07 10:00:36 [0.25ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 4 - 2025-01-07 10:00:36 [0.3ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 5 - 2025-01-07 10:00:36 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 6 - 2025-01-07 10:00:36 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 7 - 2025-01-07 10:00:36 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 105236 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 8 - 2025-01-07 10:00:36 [3.21ms] */
update `transaction` set `service_fee_payment_date` = '2025-01-07 10:00:36', `transaction`.`updated_at` = '2025-01-07 10:00:36' where `id` = 105236;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 9 - 2025-01-07 10:00:36 [0.28ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 10 - 2025-01-07 10:00:36 [0.26ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 10:01:48 [1.46ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 10:01:48 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 10:01:48 [0.39ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 10:01:48 [0.42ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 10:01:48 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 10:01:48 [0.25ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 10:01:48 [1.15ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 13;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 1 - 2025-01-07 10:01:57 [1.29ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 2 - 2025-01-07 10:01:57 [0.2ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 3 - 2025-01-07 10:01:57 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 4 - 2025-01-07 10:01:57 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 5 - 2025-01-07 10:01:57 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 6 - 2025-01-07 10:01:57 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 7 - 2025-01-07 10:01:57 [0.86ms] */
select * from `transaction` where `transaction`.`id` = 105236 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 8 - 2025-01-07 10:01:57 [5.9ms] */
update `transaction` set `service_fee_ar_number` = 14, `service_fee_payment_date` = '2025-01-07 10:01:57', `transaction`.`updated_at` = '2025-01-07 10:01:57' where `id` = 105236;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction/receipt/105236
   Query 9 - 2025-01-07 10:01:57 [2.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/transaction/receipt/105236
   Query 10 - 2025-01-07 10:01:57 [6.36ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-01-07 10:02:12 [1.4ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-01-07 10:02:12 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-01-07 10:02:12 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-01-07 10:02:12 [0.18ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-01-07 10:02:12 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-01-07 10:02:12 [0.18ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-01-07 10:02:12 [1.36ms] */
select count(*) as aggregate from `payment_documents` where `receipt_number` = 14;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-01-07 10:02:12 [0.53ms] */
delete from `payment_documents` where `transaction_id` = 105236 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-01-07 10:02:12 [14.23ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `receipt_attachment`, `updated_at`, `created_at`) values (105236, 'SERVICE_RECEIPT_IMAGE', 14, 'payment_confirmation/Payment-Confirmation-TR105236-ATTC-1599322209.png', '2025-01-07 10:02:12', '2025-01-07 10:02:12');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-01-07 10:02:15 [5.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-01-07 10:02:15 [4.46ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-01-07 10:02:15 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-01-07 10:02:15 [4.85ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-01-07 10:02:15 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-01-07 10:02:15 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-01-07 10:02:16 [4.56ms] */
select * from `transaction` where `transaction`.`id` = 105236 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-01-07 10:02:16 [0.28ms] */
select * from `invoice_payment` where `invoice_id` = 104793 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-01-07 10:02:16 [127.23ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 105236 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-01-07 10:02:16 [25.04ms] */
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` = 105236 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-01-07 10:02:16 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 105236 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-01-07 10:02:16 [0.63ms] */
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 13 - 2025-01-07 10:02:16 [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 14 - 2025-01-07 10:02:16 [3.46ms] */
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 15 - 2025-01-07 10:02:16 [49.45ms] */
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` = 105236 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-01-07 10:02:16 [0.8ms] */
select * from `party` where `party`.`id` = 4598 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 17 - 2025-01-07 10:02:16 [0.88ms] */
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-01-07 10:02:16', '#677CD17835E66', 13, 5, 139.00, null, 998877665, null, 37, 5, 5, 5, '2025-01-07 10:02:16', '2025-01-07 10:02:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 18 - 2025-01-07 10:02:16 [0.25ms] */
select * from `Payment` where `id` = 89843 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-01-07 10:02:16 [3.54ms] */
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":5,"payment_amount":"139.00","payment_date":"2025-01-07 10:02:16","external_payment_reference_no":"#677CD17835E66","payment_receipt_number":"13","siinpay_payref_number":null,"paid_by":null,"paid_by_mobile":"998877665","district_id":37,"migration_id":null,"payment_collected_by":5}}', 5, 'App\Models\User', 89843, 'Modules\Transaction\Entities\Payment', 'created', '2025-01-07 10:02:16', '2025-01-07 10:02:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-01-07 10:02:16 [0.37ms] */
select * from `transaction` where `transaction`.`id` = 105236 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-01-07 10:02:16 [0.42ms] */
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 22 - 2025-01-07 10:02:16 [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 23 - 2025-01-07 10:02:16 [0.32ms] */
select * from `invoice` where `invoice`.`id` = 101356 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-01-07 10:02:16 [0.48ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-01-07 10:02:16', 101356, 89843, '2025-01-07 10:02:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-01-07 10:02:16 [0.31ms] */
select * from `invoice` where `invoice`.`id` = 101356 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-01-07 10:02:16 [0.43ms] */
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` = 101356 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-01-07 10:02:16 [0.44ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101356 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 28 - 2025-01-07 10:02:16 [0.22ms] */
update `invoice` set `invoice_amount` = 53, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 53, `status` = 'PAID', `invoice`.`updated_at` = '2025-01-07 10:02:16' where `id` = 101356;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 29 - 2025-01-07 10:02:16 [0.19ms] */
select * from `invoice` where `id` = 101356 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-01-07 10:02:16 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"53.00","status":"OPEN"}}', 5, 'App\Models\User', 101356, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:02:16', '2025-01-07 10:02:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-01-07 10:02:16 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 101667 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-01-07 10:02:16 [0.14ms] */
select * from `transaction` where `transaction`.`id` = 101667 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-01-07 10:02:16 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-01-07 10:02:16 [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 35 - 2025-01-07 10:02:16 [0.23ms] */
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 36 - 2025-01-07 10:02:16 [0.38ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (101667, 'PAID', '2025-01-07 10:02:16', 7, 5, null, 5, 5, '2025-01-07 10:02:16', '2025-01-07 10:02:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 37 - 2025-01-07 10:02:16 [0.25ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-01-07 10:02:16 [0.34ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-01-07 10:02:16' where `id` = 101667;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 39 - 2025-01-07 10:02:16 [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 40 - 2025-01-07 10:02:16 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 101356 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 41 - 2025-01-07 10:02:16 [0.32ms] */
select * from `vehicle_tax` where `transaction_id` = 101667 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 42 - 2025-01-07 10:02:16 [0.17ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-01-07 10:02:16' where `id` = 98709;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-01-07 10:02:16 [0.18ms] */
select * from `vehicle_tax` where `id` = 98709 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-01-07 10:02:16 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 98709, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-07 10:02:16', '2025-01-07 10:02:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-01-07 10:02:16 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 103524 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-01-07 10:02:16 [0.16ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-01-07 10:02:16', 103524, 89843, '2025-01-07 10:02:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 47 - 2025-01-07 10:02:16 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 103524 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-01-07 10:02:16 [0.43ms] */
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` = 103524 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-01-07 10:02:16 [0.34ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103524 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 50 - 2025-01-07 10:02:16 [0.18ms] */
update `invoice` set `invoice_amount` = 86, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 86, `status` = 'PAID', `invoice`.`updated_at` = '2025-01-07 10:02:16' where `id` = 103524;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-01-07 10:02:16 [0.19ms] */
select * from `invoice` where `id` = 103524 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-01-07 10:02:16 [0.23ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"86.00","status":"OPEN"}}', 5, 'App\Models\User', 103524, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:02:16', '2025-01-07 10:02:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-01-07 10:02:16 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 103962 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-01-07 10:02:16 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 103962 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-01-07 10:02:16 [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 56 - 2025-01-07 10:02:16 [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 57 - 2025-01-07 10:02:16 [0.19ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 58 - 2025-01-07 10:02:16 [1.43ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (103962, 'PAID', '2025-01-07 10:02:16', 7, 5, null, 5, 5, '2025-01-07 10:02:16', '2025-01-07 10:02:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 59 - 2025-01-07 10:02:16 [0.23ms] */
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 60 - 2025-01-07 10:02:16 [0.22ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-01-07 10:02:16' where `id` = 103962;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-01-07 10:02:16 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-01-07 10:02:16 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 103524 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 63 - 2025-01-07 10:02:16 [0.26ms] */
select * from `vehicle_tax` where `transaction_id` = 103962 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-01-07 10:02:16 [0.16ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-01-07 10:02:16' where `id` = 100297;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-01-07 10:02:16 [0.18ms] */
select * from `vehicle_tax` where `id` = 100297 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 66 - 2025-01-07 10:02:16 [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":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 100297, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-07 10:02:16', '2025-01-07 10:02:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-01-07 10:02:16 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 104793 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 68 - 2025-01-07 10:02:16 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 104793 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 69 - 2025-01-07 10:02:16 [0.19ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-01-07 10:02:16', 104793, 89843, '2025-01-07 10:02:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 70 - 2025-01-07 10:02:16 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 104793 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 71 - 2025-01-07 10:02:16 [0.26ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 104793 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 72 - 2025-01-07 10:02:16 [0.17ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-01-07 10:02:16' where `id` = 104793;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 73 - 2025-01-07 10:02:16 [0.19ms] */
select * from `invoice` where `id` = 104793 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 74 - 2025-01-07 10:02:16 [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":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"139.00","status":"OPEN"}}', 5, 'App\Models\User', 104793, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:02:16', '2025-01-07 10:02:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 75 - 2025-01-07 10:02:16 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 105236 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 76 - 2025-01-07 10:02:16 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 105236 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 77 - 2025-01-07 10:02:16 [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 78 - 2025-01-07 10:02:16 [0.8ms] */
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 79 - 2025-01-07 10:02:16 [2.64ms] */
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 80 - 2025-01-07 10:02:16 [1.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105236, 'PAID', '2025-01-07 10:02:16', 7, 5, null, 5, 5, '2025-01-07 10:02:16', '2025-01-07 10:02:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 81 - 2025-01-07 10:02:16 [0.55ms] */
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 82 - 2025-01-07 10:02:16 [1.16ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-01-07 10:02:16' where `id` = 105236;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 83 - 2025-01-07 10:02:16 [0.99ms] */
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 84 - 2025-01-07 10:02:16 [0.8ms] */
select * from `invoice` where `invoice`.`id` = 104793 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 85 - 2025-01-07 10:02:16 [4.12ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-01-07 10:02:16' where `receipt_number` = 13 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 86 - 2025-01-07 10:02:16 [3.71ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-01-07 10:02:16' where `receipt_number` = 14 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-07 10:03:21 [1.71ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-07 10:03:21 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-07 10:03:21 [0.39ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-07 10:03:21 [0.48ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-07 10:03:21 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-07 10:03:21 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-07 10:03:21 [2.22ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'FA146' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-01-07 10:03:21 [1.57ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-01-07 10:03:21 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-01-07 10:03:21 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-01-07 10:03:21 [0.18ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-01-07 10:03:21 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-01-07 10:03:21 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-01-07 10:03:21 [0.38ms] */
select * from `vehicle` where `vehicle`.`id` = 1178 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-01-07 10:03:21 [0.22ms] */
select * from `vehicle` where `id` = 1178 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-01-07 10:03:21 [0.32ms] */
select * from `party_vehicle` where `vehicle_id` = 1178 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-01-07 10:03:21 [0.92ms] */
select `vehicle_tax`.`id`, `term`.`year`, `term`.`quarter`, `invoice`.`invoice_amount`, `invoice`.`outstanding_balance`, `vehicle_tax`.`exempt`, `invoice`.`status`, `tax_sticker`.`name` as `tax_sticker`, CASE
                WHEN term.quarter = 1 THEN DATE_FORMAT(CONCAT(term.year, "-03-31"), "%d-%m-%Y")
                WHEN term.quarter = 2 THEN DATE_FORMAT(CONCAT(term.year, "-06-30"), "%d-%m-%Y")
                WHEN term.quarter = 3 THEN DATE_FORMAT(CONCAT(term.year, "-09-30"), "%d-%m-%Y")
                WHEN term.quarter = 4 THEN DATE_FORMAT(CONCAT(term.year, "-12-31"), "%d-%m-%Y")
                ELSE NULL
                END as due_date from `vehicle_tax` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `transaction` on `vehicle_tax`.`transaction_id` = `transaction`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `tax_sticker` on `vehicle_tax`.`tax_sticker_id` = `tax_sticker`.`id` where `vehicle_tax`.`vehicle_id` = 1178 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-01-07 10:03:22 [1.36ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-01-07 10:03:22 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-01-07 10:03:22 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-01-07 10:03:22 [0.18ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-01-07 10:03:22 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-01-07 10:03:22 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-01-07 10:03:22 [0.9ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-07 10:03:23 [6.95ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-07 10:03:23 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-07 10:03:23 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-07 10:03:23 [0.18ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-07 10:03:23 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-07 10:03:23 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-07 10:03:23 [0.42ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 1 - 2025-01-07 10:03:42 [1.48ms] */
select * from `users` where `id` = 116 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 2 - 2025-01-07 10:03:42 [0.41ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 3 - 2025-01-07 10:03:42 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 4 - 2025-01-07 10:03:42 [0.48ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 5 - 2025-01-07 10:03:42 [68.5ms] */
select count(*) as aggregate from `vehicle` inner join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` inner join (select vehicle_tax.vehicle_id as vehicle_id, count(vehicle_tax.vehicle_id) as count from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `term`.`first_date_of_quarter` <= '2025-01-07 10:03:42' and `vehicle_tax`.`status` = 'OPEN' group by `vehicle_tax`.`vehicle_id`) as `vehicleTaxes` on `vehicle`.`id` = `vehicleTaxes`.`vehicle_id` where `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`provisional` = 'N' and `vehicle`.`provisional` = 'N' and `party_vehicle`.`status` = 'REGISTERED' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 6 - 2025-01-07 10:03:42 [34.87ms] */
select `vehicle`.* from `vehicle` inner join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` inner join (select vehicle_tax.vehicle_id as vehicle_id, count(vehicle_tax.vehicle_id) as count from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `term`.`first_date_of_quarter` <= '2025-01-07 10:03:42' and `vehicle_tax`.`status` = 'OPEN' group by `vehicle_tax`.`vehicle_id`) as `vehicleTaxes` on `vehicle`.`id` = `vehicleTaxes`.`vehicle_id` where `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`provisional` = 'N' and `vehicle`.`provisional` = 'N' and `party_vehicle`.`status` = 'REGISTERED' and `vehicle`.`deleted_at` is null limit 10 offset 140;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 7 - 2025-01-07 10:03:42 [1.08ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1259 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 8 - 2025-01-07 10:03:42 [0.46ms] */
select * from `party_vehicle` where `vehicle_id` = 1259 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 9 - 2025-01-07 10:03:42 [1.07ms] */
select * from `party` where `party`.`id` = 56225 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 10 - 2025-01-07 10:03:42 [0.87ms] */
select * from `company` where `company`.`id` = 616 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 11 - 2025-01-07 10:03:42 [1.39ms] */
select * from `classification_type` where `classification_type`.`id` = 1 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/report.expired-tax-component
   Query 12 - 2025-01-07 10:03:42 [0.91ms] */
select * from `sub_category` where `sub_category`.`id` = 19 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 13 - 2025-01-07 10:03:42 [0.77ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 14 - 2025-01-07 10:03:42 [0.91ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 15 - 2025-01-07 10:03:42 [5.02ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 16 - 2025-01-07 10:03:42 [1.3ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 1259 and date(`term`.`first_date_of_quarter`) <= '2025-01-07' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 17 - 2025-01-07 10:03:42 [0.27ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 18 - 2025-01-07 10:03:42 [0.25ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 19 - 2025-01-07 10:03:42 [0.21ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 20 - 2025-01-07 10:03:42 [0.21ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 21 - 2025-01-07 10:03:42 [0.31ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1286 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 22 - 2025-01-07 10:03:42 [0.32ms] */
select * from `party_vehicle` where `vehicle_id` = 1286 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 23 - 2025-01-07 10:03:42 [0.29ms] */
select * from `party` where `party`.`id` = 27253 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 24 - 2025-01-07 10:03:42 [0.39ms] */
select * from `person` where `person`.`id` = 27253 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 25 - 2025-01-07 10:03:42 [0.23ms] */
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/report.expired-tax-component
   Query 26 - 2025-01-07 10:03:42 [0.2ms] */
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/report.expired-tax-component
   Query 27 - 2025-01-07 10:03:42 [0.14ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 28 - 2025-01-07 10:03:42 [0.13ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 29 - 2025-01-07 10:03:42 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 30 - 2025-01-07 10:03:42 [0.84ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 1286 and date(`term`.`first_date_of_quarter`) <= '2025-01-07' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 31 - 2025-01-07 10:03:42 [0.18ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 32 - 2025-01-07 10:03:42 [0.15ms] */
select * from `term` where `term`.`id` = 94 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 33 - 2025-01-07 10:03:42 [0.15ms] */
select * from `term` where `term`.`id` = 95 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 34 - 2025-01-07 10:03:42 [0.14ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 35 - 2025-01-07 10:03:42 [0.15ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 36 - 2025-01-07 10:03:42 [1.22ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 37 - 2025-01-07 10:03:42 [0.14ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 38 - 2025-01-07 10:03:42 [0.12ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 39 - 2025-01-07 10:03:42 [0.13ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 40 - 2025-01-07 10:03:42 [0.26ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1289 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 41 - 2025-01-07 10:03:42 [0.8ms] */
select * from `party_vehicle` where `vehicle_id` = 1289 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 42 - 2025-01-07 10:03:42 [0.69ms] */
select * from `party` where `party`.`id` = 58415 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 43 - 2025-01-07 10:03:42 [0.25ms] */
select * from `person` where `person`.`id` = 55897 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 44 - 2025-01-07 10:03:42 [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/report.expired-tax-component
   Query 45 - 2025-01-07 10:03:42 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 46 - 2025-01-07 10:03:42 [0.18ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 47 - 2025-01-07 10:03:42 [0.12ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 48 - 2025-01-07 10:03:42 [0.11ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 49 - 2025-01-07 10:03:42 [1.06ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 1289 and date(`term`.`first_date_of_quarter`) <= '2025-01-07' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 50 - 2025-01-07 10:03:42 [0.2ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 51 - 2025-01-07 10:03:42 [0.15ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 52 - 2025-01-07 10:03:42 [0.15ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 53 - 2025-01-07 10:03:42 [0.25ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1292 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 54 - 2025-01-07 10:03:42 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 1292 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 55 - 2025-01-07 10:03:42 [0.46ms] */
select * from `party` where `party`.`id` = 46373 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 56 - 2025-01-07 10:03:42 [0.28ms] */
select * from `person` where `person`.`id` = 46373 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 57 - 2025-01-07 10:03:42 [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/report.expired-tax-component
   Query 58 - 2025-01-07 10:03:42 [0.22ms] */
select * from `sub_category` where `sub_category`.`id` = 10 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 59 - 2025-01-07 10:03:42 [0.17ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 60 - 2025-01-07 10:03:42 [0.14ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 61 - 2025-01-07 10:03:42 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 62 - 2025-01-07 10:03:42 [0.45ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 1292 and date(`term`.`first_date_of_quarter`) <= '2025-01-07' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 63 - 2025-01-07 10:03:42 [0.17ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 64 - 2025-01-07 10:03:42 [0.16ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 65 - 2025-01-07 10:03:42 [0.16ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 66 - 2025-01-07 10:03:42 [0.15ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 67 - 2025-01-07 10:03:42 [0.26ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1298 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 68 - 2025-01-07 10:03:42 [0.29ms] */
select * from `party_vehicle` where `vehicle_id` = 1298 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 69 - 2025-01-07 10:03:42 [0.3ms] */
select * from `party` where `party`.`id` = 2504 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 70 - 2025-01-07 10:03:42 [0.23ms] */
select * from `company` where `company`.`id` = 2504 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 71 - 2025-01-07 10:03:42 [0.14ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 72 - 2025-01-07 10:03:42 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 10 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 73 - 2025-01-07 10:03:42 [0.13ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 74 - 2025-01-07 10:03:42 [0.12ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 75 - 2025-01-07 10:03:42 [0.13ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 76 - 2025-01-07 10:03:42 [0.44ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 1298 and date(`term`.`first_date_of_quarter`) <= '2025-01-07' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 77 - 2025-01-07 10:03:42 [0.15ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 78 - 2025-01-07 10:03:42 [0.12ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 79 - 2025-01-07 10:03:42 [0.12ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 80 - 2025-01-07 10:03:42 [0.12ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 81 - 2025-01-07 10:03:42 [0.21ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1303 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 82 - 2025-01-07 10:03:42 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 1303 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 83 - 2025-01-07 10:03:42 [0.24ms] */
select * from `party` where `party`.`id` = 51270 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 84 - 2025-01-07 10:03:42 [0.25ms] */
select * from `person` where `person`.`id` = 51270 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 85 - 2025-01-07 10:03:42 [0.14ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 86 - 2025-01-07 10:03:42 [0.18ms] */
select * from `sub_category` where `sub_category`.`id` = 11 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 87 - 2025-01-07 10:03:42 [0.14ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 88 - 2025-01-07 10:03:42 [0.12ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 89 - 2025-01-07 10:03:42 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 90 - 2025-01-07 10:03:42 [0.4ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 1303 and date(`term`.`first_date_of_quarter`) <= '2025-01-07' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 91 - 2025-01-07 10:03:42 [0.14ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 92 - 2025-01-07 10:03:42 [0.12ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 93 - 2025-01-07 10:03:42 [0.2ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1359 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 94 - 2025-01-07 10:03:42 [0.22ms] */
select * from `party_vehicle` where `vehicle_id` = 1359 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 95 - 2025-01-07 10:03:42 [0.22ms] */
select * from `party` where `party`.`id` = 56318 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 96 - 2025-01-07 10:03:42 [0.2ms] */
select * from `company` where `company`.`id` = 709 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 97 - 2025-01-07 10:03:42 [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/report.expired-tax-component
   Query 98 - 2025-01-07 10:03:42 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 6 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 99 - 2025-01-07 10:03:42 [0.13ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 100 - 2025-01-07 10:03:42 [0.12ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 101 - 2025-01-07 10:03:42 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 102 - 2025-01-07 10:03:42 [0.31ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 1359 and date(`term`.`first_date_of_quarter`) <= '2025-01-07' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 103 - 2025-01-07 10:03:42 [0.22ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1361 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 104 - 2025-01-07 10:03:42 [0.22ms] */
select * from `party_vehicle` where `vehicle_id` = 1361 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 105 - 2025-01-07 10:03:42 [0.28ms] */
select * from `party` where `party`.`id` = 4522 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 106 - 2025-01-07 10:03:42 [0.24ms] */
select * from `person` where `person`.`id` = 4522 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 107 - 2025-01-07 10:03:42 [0.14ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 108 - 2025-01-07 10:03:42 [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/report.expired-tax-component
   Query 109 - 2025-01-07 10:03:42 [0.23ms] */
select * from `model` where `model`.`id` = 6 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 110 - 2025-01-07 10:03:42 [0.12ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 111 - 2025-01-07 10:03:42 [0.19ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 9 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 112 - 2025-01-07 10:03:42 [0.43ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 1361 and date(`term`.`first_date_of_quarter`) <= '2025-01-07' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 113 - 2025-01-07 10:03:42 [0.13ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 114 - 2025-01-07 10:03:42 [0.12ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 115 - 2025-01-07 10:03:42 [0.12ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 116 - 2025-01-07 10:03:42 [0.22ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1377 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 117 - 2025-01-07 10:03:42 [0.25ms] */
select * from `party_vehicle` where `vehicle_id` = 1377 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 118 - 2025-01-07 10:03:42 [0.24ms] */
select * from `party` where `party`.`id` = 50329 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 119 - 2025-01-07 10:03:42 [0.25ms] */
select * from `person` where `person`.`id` = 50329 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 120 - 2025-01-07 10:03:42 [0.14ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 121 - 2025-01-07 10:03:42 [0.18ms] */
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/report.expired-tax-component
   Query 122 - 2025-01-07 10:03:42 [0.13ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 123 - 2025-01-07 10:03:42 [0.12ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 124 - 2025-01-07 10:03:42 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 125 - 2025-01-07 10:03:42 [0.41ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 1377 and date(`term`.`first_date_of_quarter`) <= '2025-01-07' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 126 - 2025-01-07 10:03:42 [0.14ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 127 - 2025-01-07 10:03:42 [0.12ms] */
select * from `term` where `term`.`id` = 94 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 128 - 2025-01-07 10:03:42 [0.12ms] */
select * from `term` where `term`.`id` = 95 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 129 - 2025-01-07 10:03:42 [0.12ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 130 - 2025-01-07 10:03:42 [0.12ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 131 - 2025-01-07 10:03:42 [0.12ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 132 - 2025-01-07 10:03:42 [0.18ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 133 - 2025-01-07 10:03:42 [0.12ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 134 - 2025-01-07 10:03:42 [0.11ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 135 - 2025-01-07 10:03:42 [0.22ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1389 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 136 - 2025-01-07 10:03:42 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 1389 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 137 - 2025-01-07 10:03:42 [0.23ms] */
select * from `party` where `party`.`id` = 17194 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 138 - 2025-01-07 10:03:42 [0.24ms] */
select * from `person` where `person`.`id` = 17194 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 139 - 2025-01-07 10:03:42 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 1 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/report.expired-tax-component
   Query 140 - 2025-01-07 10:03:42 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 19 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 141 - 2025-01-07 10:03:42 [0.12ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 142 - 2025-01-07 10:03:42 [0.11ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 143 - 2025-01-07 10:03:42 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/report.expired-tax-component
   Query 144 - 2025-01-07 10:03:42 [0.3ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 1389 and date(`term`.`first_date_of_quarter`) <= '2025-01-07' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-07 10:03:53 [1.92ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-07 10:03:53 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-07 10:03:53 [0.54ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-07 10:03:53 [0.37ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-07 10:03:53 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-07 10:03:53 [0.12ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-07 10:03:53 [1.46ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'RK847' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-01-07 10:03:54 [2.01ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-01-07 10:03:54 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-01-07 10:03:54 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-01-07 10:03:54 [0.3ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-01-07 10:03:54 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-01-07 10:03:54 [0.22ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-01-07 10:03:54 [0.46ms] */
select * from `vehicle` where `vehicle`.`id` = 1289 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-01-07 10:03:54 [0.4ms] */
select * from `vehicle` where `id` = 1289 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-01-07 10:03:54 [6.27ms] */
select * from `party_vehicle` where `vehicle_id` = 1289 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-01-07 10:03:54 [1.98ms] */
select `vehicle_tax`.`id`, `term`.`year`, `term`.`quarter`, `invoice`.`invoice_amount`, `invoice`.`outstanding_balance`, `vehicle_tax`.`exempt`, `invoice`.`status`, `tax_sticker`.`name` as `tax_sticker`, CASE
                WHEN term.quarter = 1 THEN DATE_FORMAT(CONCAT(term.year, "-03-31"), "%d-%m-%Y")
                WHEN term.quarter = 2 THEN DATE_FORMAT(CONCAT(term.year, "-06-30"), "%d-%m-%Y")
                WHEN term.quarter = 3 THEN DATE_FORMAT(CONCAT(term.year, "-09-30"), "%d-%m-%Y")
                WHEN term.quarter = 4 THEN DATE_FORMAT(CONCAT(term.year, "-12-31"), "%d-%m-%Y")
                ELSE NULL
                END as due_date from `vehicle_tax` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `transaction` on `vehicle_tax`.`transaction_id` = `transaction`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `tax_sticker` on `vehicle_tax`.`tax_sticker_id` = `tax_sticker`.`id` where `vehicle_tax`.`vehicle_id` = 1289 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-01-07 10:03:55 [1.91ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-01-07 10:03:55 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-01-07 10:03:55 [0.18ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-01-07 10:03:55 [0.24ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-01-07 10:03:55 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-01-07 10:03:55 [0.18ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-01-07 10:03:55 [1.78ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-07 10:03:56 [1.29ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-07 10:03:56 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-07 10:03:56 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-07 10:03:56 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-07 10:03:56 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-07 10:03:56 [0.12ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-07 10:03:56 [0.48ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-07 10:04:27 [1.85ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-07 10:04:27 [0.59ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-07 10:04:27 [1.86ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-07 10:04:27 [0.99ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-07 10:04:27 [0.32ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-07 10:04:27 [1.48ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-07 10:04:27 [5.85ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'WU842' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-01-07 10:04:27 [2.31ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-01-07 10:04:27 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-01-07 10:04:27 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-01-07 10:04:27 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-01-07 10:04:27 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-01-07 10:04:27 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-01-07 10:04:27 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` = 1303 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-01-07 10:04:27 [0.31ms] */
select * from `vehicle` where `id` = 1303 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-01-07 10:04:27 [0.3ms] */
select * from `party_vehicle` where `vehicle_id` = 1303 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-01-07 10:04:27 [4.56ms] */
select `vehicle_tax`.`id`, `term`.`year`, `term`.`quarter`, `invoice`.`invoice_amount`, `invoice`.`outstanding_balance`, `vehicle_tax`.`exempt`, `invoice`.`status`, `tax_sticker`.`name` as `tax_sticker`, CASE
                WHEN term.quarter = 1 THEN DATE_FORMAT(CONCAT(term.year, "-03-31"), "%d-%m-%Y")
                WHEN term.quarter = 2 THEN DATE_FORMAT(CONCAT(term.year, "-06-30"), "%d-%m-%Y")
                WHEN term.quarter = 3 THEN DATE_FORMAT(CONCAT(term.year, "-09-30"), "%d-%m-%Y")
                WHEN term.quarter = 4 THEN DATE_FORMAT(CONCAT(term.year, "-12-31"), "%d-%m-%Y")
                ELSE NULL
                END as due_date from `vehicle_tax` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `transaction` on `vehicle_tax`.`transaction_id` = `transaction`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `tax_sticker` on `vehicle_tax`.`tax_sticker_id` = `tax_sticker`.`id` where `vehicle_tax`.`vehicle_id` = 1303 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-01-07 10:04:28 [1.4ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-01-07 10:04:28 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-01-07 10:04:28 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-01-07 10:04:28 [0.18ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-01-07 10:04:28 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-01-07 10:04:28 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-01-07 10:04:28 [1.41ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-07 10:04:29 [1.28ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-07 10:04:29 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-07 10:04:29 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-07 10:04:29 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-07 10:04:29 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-07 10:04:29 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-07 10:04:29 [0.62ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-07 10:04:32 [1.42ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-07 10:04:32 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-07 10:04:32 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-07 10:04:32 [0.18ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-07 10:04:32 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-07 10:04:32 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-07 10:04:32 [0.38ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-07 10:04:32 [0.49ms] */
select `transaction_id` from `vehicle_tax` where `id` in (98861, 98862, 98863, 98864, 98865, 98866, 98867, 98868, 100498) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-07 10:04:32 [0.24ms] */
select `parent_id` from `transaction` where `id` in (101972, 101973, 101974, 101975, 101976, 101977, 101978, 101979, 104163) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-07 10:04:32 [36.1ms] */
select `id` from `transaction` where `parent_id` in (101980) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-07 10:04:32 [0.39ms] */
select * from `transaction` where `id` in (101980) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-07 10:04:32 [0.34ms] */
select * from `invoice` where `invoice`.`id` = 101629 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-01-07 10:04:32 [6.2ms] */
update `invoice` set `updated_by` = 5, `deleted_by` = 5, `invoice`.`updated_at` = '2025-01-07 10:04:32' where `id` = 101629;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-07 10:04:32 [0.38ms] */
select * from `invoice` where `id` = 101629 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-07 10:04:32 [3.43ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 101629, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:04:32', '2025-01-07 10:04:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-01-07 10:04:32 [3.7ms] */
update `invoice` set `deleted_at` = '2025-01-07 10:04:32', `invoice`.`updated_at` = '2025-01-07 10:04:32' where `id` = 101629;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-01-07 10:04:32 [0.44ms] */
select * from `invoice` where `id` = 101629 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-01-07 10:04:32 [3.1ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":101980,"party_id":51270,"invoice_amount":"381.00","invoice_date":"2024-08-21 11:58:32","due_date":"2024-08-21 11:58:32","outstanding_balance":"381.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"381.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-994-101629576","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101629, 'Modules\Transaction\Entities\Invoice', 'deleted', '2025-01-07 10:04:32', '2025-01-07 10:04:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-01-07 10:04:32 [3.26ms] */
update `transaction` set `updated_by` = 5, `deleted_by` = 5, `transaction`.`updated_at` = '2025-01-07 10:04:32' where `id` = 101980;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-01-07 10:04:32 [3.21ms] */
update `transaction` set `deleted_at` = '2025-01-07 10:04:32', `transaction`.`updated_at` = '2025-01-07 10:04:32' where `id` = 101980;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-01-07 10:04:32 [0.57ms] */
select * from `transaction` where `id` in (101972, 101973, 101974, 101975, 101976, 101977, 101978, 101979, 104163) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-07 10:04:32 [0.36ms] */
select * from `invoice` where `invoice`.`id` = 101621 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-01-07 10:04:32 [3.21ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `updated_by` = 5, `invoice`.`updated_at` = '2025-01-07 10:04:32' where `id` = 101621;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-01-07 10:04:32 [0.29ms] */
select * from `invoice` where `id` = 101621 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-07 10:04:32 [2.98ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":null,"grouped":"N"},"old":{"parent_id":101629,"grouped":"Y"}}', 5, 'App\Models\User', 101621, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:04:32', '2025-01-07 10:04:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-01-07 10:04:32 [0.36ms] */
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-01-07 10:04:32 [0.41ms] */
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-01-07 10:04:32 [3.11ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `updated_by` = 5, `transaction`.`updated_at` = '2025-01-07 10:04:32' where `id` = 101972;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-01-07 10:04:32 [0.35ms] */
select * from `invoice` where `invoice`.`id` = 101622 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-01-07 10:04:32 [4.71ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `updated_by` = 5, `invoice`.`updated_at` = '2025-01-07 10:04:32' where `id` = 101622;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-07 10:04:32 [0.35ms] */
select * from `invoice` where `id` = 101622 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-01-07 10:04:32 [4.48ms] */
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":101629,"grouped":"Y"}}', 5, 'App\Models\User', 101622, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:04:32', '2025-01-07 10:04:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-01-07 10:04:32 [0.25ms] */
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-01-07 10:04:32 [0.24ms] */
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-01-07 10:04:33 [3.42ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `updated_by` = 5, `transaction`.`updated_at` = '2025-01-07 10:04:32' where `id` = 101973;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-01-07 10:04:33 [0.52ms] */
select * from `invoice` where `invoice`.`id` = 101623 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-01-07 10:04:33 [3.11ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `updated_by` = 5, `invoice`.`updated_at` = '2025-01-07 10:04:33' where `id` = 101623;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-01-07 10:04:33 [0.4ms] */
select * from `invoice` where `id` = 101623 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-01-07 10:04:33 [2.97ms] */
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":101629,"grouped":"Y"}}', 5, 'App\Models\User', 101623, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:04:33', '2025-01-07 10:04:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-01-07 10:04:33 [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 41 - 2025-01-07 10:04:33 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-01-07 10:04:33 [3.09ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `updated_by` = 5, `transaction`.`updated_at` = '2025-01-07 10:04:33' where `id` = 101974;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-01-07 10:04:33 [0.44ms] */
select * from `invoice` where `invoice`.`id` = 101624 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-01-07 10:04:33 [3.06ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `updated_by` = 5, `invoice`.`updated_at` = '2025-01-07 10:04:33' where `id` = 101624;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-01-07 10:04:33 [0.4ms] */
select * from `invoice` where `id` = 101624 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-01-07 10:04:33 [2.98ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":null,"grouped":"N"},"old":{"parent_id":101629,"grouped":"Y"}}', 5, 'App\Models\User', 101624, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:04:33', '2025-01-07 10:04:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-01-07 10:04:33 [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 48 - 2025-01-07 10:04:33 [0.26ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-01-07 10:04:33 [3.43ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `updated_by` = 5, `transaction`.`updated_at` = '2025-01-07 10:04:33' where `id` = 101975;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-01-07 10:04:33 [0.52ms] */
select * from `invoice` where `invoice`.`id` = 101625 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-01-07 10:04:33 [3.55ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `updated_by` = 5, `invoice`.`updated_at` = '2025-01-07 10:04:33' where `id` = 101625;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-01-07 10:04:33 [0.45ms] */
select * from `invoice` where `id` = 101625 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-01-07 10:04:33 [3.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":null,"grouped":"N"},"old":{"parent_id":101629,"grouped":"Y"}}', 5, 'App\Models\User', 101625, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:04:33', '2025-01-07 10:04:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-01-07 10:04:33 [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 55 - 2025-01-07 10:04:33 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-01-07 10:04:33 [3.51ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `updated_by` = 5, `transaction`.`updated_at` = '2025-01-07 10:04:33' where `id` = 101976;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-01-07 10:04:33 [0.49ms] */
select * from `invoice` where `invoice`.`id` = 101626 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-01-07 10:04:33 [3.27ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `updated_by` = 5, `invoice`.`updated_at` = '2025-01-07 10:04:33' where `id` = 101626;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-01-07 10:04:33 [0.39ms] */
select * from `invoice` where `id` = 101626 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-01-07 10:04:33 [3.05ms] */
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":101629,"grouped":"Y"}}', 5, 'App\Models\User', 101626, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:04:33', '2025-01-07 10:04:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-01-07 10:04:33 [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 62 - 2025-01-07 10:04:33 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-01-07 10:04:33 [3.19ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `updated_by` = 5, `transaction`.`updated_at` = '2025-01-07 10:04:33' where `id` = 101977;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-01-07 10:04:33 [0.43ms] */
select * from `invoice` where `invoice`.`id` = 101627 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-01-07 10:04:33 [3.05ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `updated_by` = 5, `invoice`.`updated_at` = '2025-01-07 10:04:33' where `id` = 101627;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 66 - 2025-01-07 10:04:33 [0.37ms] */
select * from `invoice` where `id` = 101627 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-01-07 10:04:33 [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":{"parent_id":null,"grouped":"N"},"old":{"parent_id":101629,"grouped":"Y"}}', 5, 'App\Models\User', 101627, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:04:33', '2025-01-07 10:04:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-01-07 10:04:33 [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 69 - 2025-01-07 10:04:33 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-01-07 10:04:33 [13.84ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `updated_by` = 5, `transaction`.`updated_at` = '2025-01-07 10:04:33' where `id` = 101978;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-01-07 10:04:33 [0.62ms] */
select * from `invoice` where `invoice`.`id` = 101628 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-01-07 10:04:33 [3.74ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-01-07 10:04:33' where `id` = 101628;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-01-07 10:04:33 [0.48ms] */
select * from `invoice` where `id` = 101628 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-01-07 10:04:33 [3.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 101628, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:04:33', '2025-01-07 10:04:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-01-07 10:04:33 [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 76 - 2025-01-07 10:04:33 [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 77 - 2025-01-07 10:04:33 [3.28ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-01-07 10:04:33' where `id` = 101979;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2025-01-07 10:04:33 [0.49ms] */
select * from `invoice` where `invoice`.`id` = 103725 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-01-07 10:04:33 [2.99ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-01-07 10:04:33' where `id` = 103725;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2025-01-07 10:04:33 [0.36ms] */
select * from `invoice` where `id` = 103725 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-01-07 10:04:33 [3.02ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 103725, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:04:33', '2025-01-07 10:04:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-01-07 10:04:33 [0.27ms] */
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 83 - 2025-01-07 10:04:33 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 84 - 2025-01-07 10:04:33 [3.02ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-01-07 10:04:33' where `id` = 104163;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 85 - 2025-01-07 10:04:33 [2.96ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-01-07 10:04:33' where `id` in (98861, 98862, 98863, 98864, 98865, 98866, 98867, 98868, 100498) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 86 - 2025-01-07 10:04:33 [0.39ms] */
select * from `transaction` where `id` in (101980) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2025-01-07 10:04:33 [0.52ms] */
select `transaction_id` from `vehicle_tax` where `id` in (98861, 98862, 98863, 98864, 98865, 98866, 98867, 98868, 100498) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2025-01-07 10:04:33 [0.41ms] */
select * from `invoice` where `transaction_id` = 101972 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 89 - 2025-01-07 10:04:33 [0.62ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101621 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 90 - 2025-01-07 10:04:33 [0.37ms] */
select * from `invoice` where `transaction_id` = 101973 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 91 - 2025-01-07 10:04:33 [0.38ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101622 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 92 - 2025-01-07 10:04:33 [0.33ms] */
select * from `invoice` where `transaction_id` = 101974 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 93 - 2025-01-07 10:04:33 [0.45ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101623 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 94 - 2025-01-07 10:04:33 [2.09ms] */
select * from `invoice` where `transaction_id` = 101975 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 95 - 2025-01-07 10:04:33 [0.77ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101624 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 96 - 2025-01-07 10:04:33 [0.79ms] */
select * from `invoice` where `transaction_id` = 101976 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 97 - 2025-01-07 10:04:33 [0.42ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101625 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2025-01-07 10:04:33 [0.34ms] */
select * from `invoice` where `transaction_id` = 101977 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 99 - 2025-01-07 10:04:33 [0.32ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101626 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 100 - 2025-01-07 10:04:33 [0.34ms] */
select * from `invoice` where `transaction_id` = 101978 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 101 - 2025-01-07 10:04:33 [0.35ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101627 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-01-07 10:04:33 [0.35ms] */
select * from `invoice` where `transaction_id` = 101979 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 103 - 2025-01-07 10:04:33 [0.32ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101628 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 104 - 2025-01-07 10:04:33 [0.4ms] */
select * from `invoice` where `transaction_id` = 104163 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 105 - 2025-01-07 10:04:33 [0.47ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103725 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 106 - 2025-01-07 10:04:33 [0.36ms] */
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-01-07 10:04:33 [0.28ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-07 10:04:39 [1.54ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-07 10:04:39 [0.2ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-07 10:04:39 [0.18ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-07 10:04:39 [0.21ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-07 10:04:39 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '77c01fc96da77a3af3ec1c800f6b6197de2d8d20e278aee8bc14577d7adca0cbc9313118a2c79ec7' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-07 10:04:39 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-07 10:04:39 [0.23ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-07 10:04:39 [0.19ms] */
select `transaction_id` from `vehicle_tax` where `id` in (98861, 98862, 98863, 98864, 98865, 98866, 98867, 98868, 100498) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-07 10:04:39 [0.34ms] */
select `parent_id` from `transaction` where `id` in (101972, 101973, 101974, 101975, 101976, 101977, 101978, 101979, 104163) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-07 10:04:39 [0.18ms] */
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-01-07 10:04:39 [0.41ms] */
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-01-07 10:04:39 [0.51ms] */
select * from `transaction` where `id` in (101972, 101973, 101974, 101975, 101976, 101977, 101978, 101979, 104163) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-07 10:04:39 [0.38ms] */
select * from `invoice` where `invoice`.`id` = 101621 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-01-07 10:04:39 [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 15 - 2025-01-07 10:04:39 [0.24ms] */
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-01-07 10:04:39 [0.32ms] */
select * from `invoice` where `invoice`.`id` = 101622 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-01-07 10:04:39 [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 18 - 2025-01-07 10:04:39 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-01-07 10:04:39 [0.29ms] */
select * from `invoice` where `invoice`.`id` = 101623 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 20 - 2025-01-07 10:04:39 [0.2ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-01-07 10:04:39 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-07 10:04:39 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 101624 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-01-07 10:04:39 [0.14ms] */
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 24 - 2025-01-07 10:04:39 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-07 10:04:39 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 101625 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 26 - 2025-01-07 10:04:39 [0.14ms] */
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-01-07 10:04:39 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-07 10:04:39 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 101626 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 29 - 2025-01-07 10:04:39 [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 30 - 2025-01-07 10:04:39 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-07 10:04:39 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 101627 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 32 - 2025-01-07 10:04:39 [0.14ms] */
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 33 - 2025-01-07 10:04:39 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-01-07 10:04:39 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 101628 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-01-07 10:04:39 [0.14ms] */
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 36 - 2025-01-07 10:04:39 [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 37 - 2025-01-07 10:04:39 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 103725 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 38 - 2025-01-07 10:04:39 [0.14ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-01-07 10:04:39 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-01-07 10:04:39 [6.1ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-01-07 10:04:39' where `id` in (98861, 98862, 98863, 98864, 98865, 98866, 98867, 98868, 100498) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-01-07 10:04:39 [0.51ms] */
select * from `vehicle` where `vehicle`.`id` = 1303 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-01-07 10:04:39 [0.47ms] */
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 43 - 2025-01-07 10:04:39 [0.54ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1303 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-01-07 10:04:39 [0.45ms] */
select * from `party_vehicle` where `vehicle_id` = 1303 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 45 - 2025-01-07 10:04:39 [0.58ms] */
select * from `party` where `party`.`id` = 51270 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 46 - 2025-01-07 10:04:39 [0.41ms] */
select * from `vehicle` where `vehicle`.`id` = 1303 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 47 - 2025-01-07 10:04:39 [0.44ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-01-07 10:04:39 [0.56ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-01-07 10:04:39 [0.47ms] */
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 (51270, 2, 1303, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-01-07 10:04:39 [0.35ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105237, 'INITIATED', '2025-01-07 10:04:39', 5, 5, 5, 5, '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-01-07 10:04:39 [0.21ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 73393, `transaction`.`updated_at` = '2025-01-07 10:04:39' where `id` = 105237;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-01-07 10:04:39 [0.34ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (98861, 98862, 98863, 98864, 98865, 98866, 98867, 98868, 100498) 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 53 - 2025-01-07 10:04:39 [0.26ms] */
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 (98861, 98862, 98863, 98864, 98865, 98866, 98867, 98868, 100498) 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 54 - 2025-01-07 10:04:39 [0.49ms] */
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 (105237, 51270, '2025-01-07 10:04:39', '2025-01-07 10:04:39', 504.00, 0, 504.00, 504.00, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-01-07 10:04:39 [0.33ms] */
select * from `invoice` where `id` = 104794 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-01-07 10:04:39 [0.4ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":105237,"party_id":51270,"invoice_amount":"504.00","invoice_date":"2025-01-07 10:04:39","due_date":"2025-01-07 10:04:39","outstanding_balance":"504.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"504.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 104794, 'Modules\Transaction\Entities\Invoice', 'created', '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-01-07 10:04:39 [0.56ms] */
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 (98861, 98862, 98863, 98864, 98865, 98866, 98867, 98868, 100498) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-01-07 10:04:39 [0.4ms] */
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 Tax Fees', 9, 504, 504, 104794, 5, 5, '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-01-07 10:04:39 [0.25ms] */
select * from `invoice_item` where `id` = 204738 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-01-07 10:04:39 [0.24ms] */
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 Tax Fees","unit_price":"504.00","quantity":9,"total_price":"504.00","invoice_id":104794}}', 5, 'App\Models\User', 204738, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-01-07 10:04:39 [0.32ms] */
update `invoice` set `invoice_number` = 'INV-458-104794962', `invoice`.`updated_at` = '2025-01-07 10:04:39' where `id` = 104794;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-01-07 10:04:39 [0.28ms] */
select * from `invoice` where `id` = 104794 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-01-07 10:04:39 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-458-104794962"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 104794, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-01-07 10:04:39 [0.24ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 98861 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-01-07 10:04:39 [0.21ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-07 10:04:39' where `id` = 98861;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 66 - 2025-01-07 10:04:39 [0.23ms] */
select * from `vehicle_tax` where `id` = 98861 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-01-07 10:04:39 [0.3ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 98861, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-01-07 10:04:39 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 101972 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 69 - 2025-01-07 10:04:39 [0.31ms] */
update `transaction` set `tax_collection_point_id` = null, `deliver_district_id` = null, `parent_id` = 105237, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-07 10:04:39' where `id` = 101972;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-01-07 10:04:39 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 101621 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 71 - 2025-01-07 10:04:39 [0.21ms] */
update `invoice` set `parent_id` = 104794, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-07 10:04:39' where `id` = 101621;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-01-07 10:04:39 [0.23ms] */
select * from `invoice` where `id` = 101621 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-01-07 10:04:39 [0.24ms] */
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":104794,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 101621, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-01-07 10:04:39 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 101972 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-01-07 10:04:39 [0.26ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2025-01-07 10:04:39 [0.23ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 77 - 2025-01-07 10:04:39 [0.35ms] */
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 78 - 2025-01-07 10:04:39 [0.56ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-01-07 10:04:39 [0.33ms] */
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-01-07 10:04:39 [0.25ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (101972, 'APPROVED', '2025-01-07 10:04:39', 5, 5, null, 5, 5, '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-01-07 10:04:39 [0.27ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-01-07 10:04:39 [0.28ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-07 10:04:39' where `id` = 101972;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 83 - 2025-01-07 10:04:39 [0.23ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 84 - 2025-01-07 10:04:39 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 101621 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-01-07 10:04:39 [0.23ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 98862 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 86 - 2025-01-07 10:04:39 [0.2ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-07 10:04:39' where `id` = 98862;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2025-01-07 10:04:39 [0.38ms] */
select * from `vehicle_tax` where `id` = 98862 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2025-01-07 10:04:39 [0.38ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 98862, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 89 - 2025-01-07 10:04:39 [0.45ms] */
select * from `transaction` where `transaction`.`id` = 101973 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 90 - 2025-01-07 10:04:39 [0.49ms] */
update `transaction` set `tax_collection_point_id` = null, `deliver_district_id` = null, `parent_id` = 105237, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-07 10:04:39' where `id` = 101973;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 91 - 2025-01-07 10:04:39 [0.41ms] */
select * from `invoice` where `invoice`.`id` = 101622 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 92 - 2025-01-07 10:04:39 [0.36ms] */
update `invoice` set `parent_id` = 104794, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-07 10:04:39' where `id` = 101622;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 93 - 2025-01-07 10:04:39 [0.39ms] */
select * from `invoice` where `id` = 101622 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 94 - 2025-01-07 10:04:39 [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":{"parent_id":104794,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 101622, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 95 - 2025-01-07 10:04:39 [0.35ms] */
select * from `transaction` where `transaction`.`id` = 101973 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 96 - 2025-01-07 10:04:39 [0.29ms] */
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 97 - 2025-01-07 10:04:39 [0.3ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2025-01-07 10:04:39 [0.29ms] */
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 99 - 2025-01-07 10:04:39 [0.27ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 100 - 2025-01-07 10:04:39 [0.3ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (101973, 'APPROVED', '2025-01-07 10:04:39', 5, 5, null, 5, 5, '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 101 - 2025-01-07 10:04:39 [0.33ms] */
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 102 - 2025-01-07 10:04:39 [0.36ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-07 10:04:39' where `id` = 101973;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 103 - 2025-01-07 10:04:39 [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/make_payment
   Query 104 - 2025-01-07 10:04:39 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 101622 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 105 - 2025-01-07 10:04:39 [0.21ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 98863 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 106 - 2025-01-07 10:04:39 [0.19ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-07 10:04:39' where `id` = 98863;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 107 - 2025-01-07 10:04:39 [0.24ms] */
select * from `vehicle_tax` where `id` = 98863 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 108 - 2025-01-07 10:04:39 [0.23ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 98863, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-07 10:04:39', '2025-01-07 10:04:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 109 - 2025-01-07 10:04:39 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 101974 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 110 - 2025-01-07 10:04:39 [0.28ms] */
