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 - 2024-12-24 14:45:50 [0.15ms] */
select `transaction_id` from `vehicle_tax` where `id` in (96260, 96261, 96262, 96263, 96264, 96265, 96266, 96267) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2024-12-24 14:45:50 [0.14ms] */
select `parent_id` from `transaction` where `id` in (98017, 98018, 98019, 98020, 98021, 98022, 98023, 98024) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2024-12-24 14:45:50 [0.12ms] */
select `id` from `transaction` where `parent_id` in (102909) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2024-12-24 14:45:50 [0.15ms] */
select * from `transaction` where `id` in (102909) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2024-12-24 14:45:50 [0.13ms] */
select `transaction_id` from `vehicle_tax` where `id` in (96260, 96261, 96262, 96263, 96264, 96265, 96266, 96267) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2024-12-24 14:45:50 [0.19ms] */
select * from `invoice` where `transaction_id` = 98017 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2024-12-24 14:45:50 [0.15ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97095 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 - 2024-12-24 14:45:50 [0.14ms] */
select * from `invoice` where `transaction_id` = 98018 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2024-12-24 14:45:50 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97096 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 - 2024-12-24 14:45:50 [0.14ms] */
select * from `invoice` where `transaction_id` = 98019 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2024-12-24 14:45:50 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97097 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2024-12-24 14:45:50 [0.15ms] */
select * from `invoice` where `transaction_id` = 98020 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2024-12-24 14:45:50 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97098 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 21 - 2024-12-24 14:45:50 [0.14ms] */
select * from `invoice` where `transaction_id` = 98021 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2024-12-24 14:45:50 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97099 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 23 - 2024-12-24 14:45:50 [0.14ms] */
select * from `invoice` where `transaction_id` = 98022 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2024-12-24 14:45:50 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97100 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 25 - 2024-12-24 14:45:50 [0.14ms] */
select * from `invoice` where `transaction_id` = 98023 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2024-12-24 14:45:50 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97101 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 27 - 2024-12-24 14:45:50 [0.14ms] */
select * from `invoice` where `transaction_id` = 98024 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2024-12-24 14:45:50 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97102 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 29 - 2024-12-24 14:45:50 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2024-12-24 14:45:50 [0.13ms] */
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 - 2024-12-24 14:45:51 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 14:45:51 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 14:45:51 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 14:45:51 [0.16ms] */
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 - 2024-12-24 14:45:51 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 14:45:51 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 14:45:51 [0.16ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2024-12-24 14:46:12 [2.08ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2024-12-24 14:46:12 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2024-12-24 14:46:12 [0.25ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2024-12-24 14:46:12 [0.27ms] */
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 - 2024-12-24 14:46:12 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2024-12-24 14:46:12 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2024-12-24 14:46:12 [0.24ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2024-12-24 14:46:12 [0.15ms] */
select `transaction_id` from `vehicle_tax` where `id` in (96260, 96261, 96262, 96263, 96264, 96265, 96266, 96267) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2024-12-24 14:46:12 [0.13ms] */
select `parent_id` from `transaction` where `id` in (98017, 98018, 98019, 98020, 98021, 98022, 98023, 98024) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2024-12-24 14:46:12 [0.12ms] */
select `id` from `transaction` where `parent_id` in (102909) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2024-12-24 14:46:12 [0.14ms] */
select * from `transaction` where `id` in (102909) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2024-12-24 14:46:12 [0.13ms] */
select `transaction_id` from `vehicle_tax` where `id` in (96260, 96261, 96262, 96263, 96264, 96265, 96266, 96267) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2024-12-24 14:46:12 [0.16ms] */
select * from `invoice` where `transaction_id` = 98017 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2024-12-24 14:46:12 [0.15ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97095 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 - 2024-12-24 14:46:12 [0.15ms] */
select * from `invoice` where `transaction_id` = 98018 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2024-12-24 14:46:12 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97096 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 - 2024-12-24 14:46:12 [0.14ms] */
select * from `invoice` where `transaction_id` = 98019 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2024-12-24 14:46:12 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97097 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2024-12-24 14:46:12 [0.14ms] */
select * from `invoice` where `transaction_id` = 98020 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2024-12-24 14:46:12 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97098 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 21 - 2024-12-24 14:46:12 [0.14ms] */
select * from `invoice` where `transaction_id` = 98021 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2024-12-24 14:46:12 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97099 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 23 - 2024-12-24 14:46:12 [0.14ms] */
select * from `invoice` where `transaction_id` = 98022 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2024-12-24 14:46:12 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97100 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 25 - 2024-12-24 14:46:12 [0.14ms] */
select * from `invoice` where `transaction_id` = 98023 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2024-12-24 14:46:12 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97101 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 27 - 2024-12-24 14:46:12 [0.14ms] */
select * from `invoice` where `transaction_id` = 98024 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2024-12-24 14:46:12 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97102 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 29 - 2024-12-24 14:46:12 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 4 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2024-12-24 14:46:12 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2024-12-24 14:53:52 [2.06ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2024-12-24 14:53:52 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2024-12-24 14:53:52 [0.24ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2024-12-24 14:53:52 [0.25ms] */
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 - 2024-12-24 14:53:52 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2024-12-24 14:53:52 [0.18ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2024-12-24 14:53:52 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 102909 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2024-12-24 14:53:52 [0.27ms] */
select * from `invoice_payment` where `invoice_id` = 102478 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2024-12-24 14:53:52 [20.99ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 102909 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 10 - 2024-12-24 14:53:52 [20.56ms] */
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` = 102909 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 11 - 2024-12-24 14:53:52 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 102909 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 12 - 2024-12-24 14:53:52 [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 13 - 2024-12-24 14:53:52 [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 14 - 2024-12-24 14:53:52 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 15 - 2024-12-24 14:53:52 [7.77ms] */
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` = 102909 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 16 - 2024-12-24 14:53:52 [0.14ms] */
select * from `party` where `party`.`id` = 55759 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 - 2024-12-24 14:53:52 [0.34ms] */
select * from `invoice` where `invoice`.`id` = 102478 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 18 - 2024-12-24 14:53:52 [0.67ms] */
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 ('2024-12-24 14:53:52', '#676AA0D01D110', null, 1, 1680.00, null, null, null, 37, 5, 5, 5, '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 19 - 2024-12-24 14:53:52 [0.28ms] */
select * from `Payment` where `id` = 89703 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 20 - 2024-12-24 14:53:52 [0.26ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('Payment', '{"attributes":{"payment_method_id":1,"payment_amount":"1680.00","payment_date":"2024-12-24 14:53:52","external_payment_reference_no":"#676AA0D01D110","payment_receipt_number":null,"siinpay_payref_number":null,"paid_by":null,"paid_by_mobile":null,"district_id":37,"migration_id":null,"payment_collected_by":5}}', 5, 'App\Models\User', 89703, 'Modules\Transaction\Entities\Payment', 'created', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 21 - 2024-12-24 14:53:52 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 102909 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 22 - 2024-12-24 14:53:52 [0.24ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 23 - 2024-12-24 14:53:52 [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/confirm_payment
   Query 24 - 2024-12-24 14:53:52 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 97095 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 25 - 2024-12-24 14:53:52 [0.31ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-24 14:53:52', 97095, 89703, '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 26 - 2024-12-24 14:53:52 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 97095 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 27 - 2024-12-24 14:53:52 [0.4ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 97095 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 28 - 2024-12-24 14:53:52 [0.55ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97095 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 29 - 2024-12-24 14:53:52 [0.52ms] */
update `invoice` set `invoice_amount` = 210, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 210, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-24 14:53:52' where `id` = 97095;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 30 - 2024-12-24 14:53:52 [0.35ms] */
select * from `invoice` where `id` = 97095 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 31 - 2024-12-24 14:53:52 [0.35ms] */
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":"210.00","status":"OPEN"}}', 5, 'App\Models\User', 97095, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 32 - 2024-12-24 14:53:52 [0.39ms] */
select * from `transaction` where `transaction`.`id` = 98017 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 33 - 2024-12-24 14:53:52 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 98017 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 34 - 2024-12-24 14:53:52 [0.3ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 35 - 2024-12-24 14:53:52 [0.29ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 36 - 2024-12-24 14:53:52 [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 37 - 2024-12-24 14:53:52 [0.39ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (98017, 'PAID', '2024-12-24 14:53:52', 7, 5, null, 5, 5, '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 38 - 2024-12-24 14:53:52 [0.37ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 39 - 2024-12-24 14:53:52 [0.4ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-24 14:53:52' where `id` = 98017;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 40 - 2024-12-24 14:53:52 [0.26ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 41 - 2024-12-24 14:53:52 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 97095 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 42 - 2024-12-24 14:53:52 [0.43ms] */
select * from `vehicle_tax` where `transaction_id` = 98017 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 43 - 2024-12-24 14:53:52 [0.3ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2024-12-24 14:53:52' where `id` = 96260;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 44 - 2024-12-24 14:53:52 [0.28ms] */
select * from `vehicle_tax` where `id` = 96260 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 45 - 2024-12-24 14:53:52 [0.23ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 96260, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 46 - 2024-12-24 14:53:52 [0.31ms] */
select * from `invoice` where `invoice`.`id` = 97096 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 47 - 2024-12-24 14:53:52 [0.27ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-24 14:53:52', 97096, 89703, '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 48 - 2024-12-24 14:53:52 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 97096 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 49 - 2024-12-24 14:53:52 [0.36ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 97096 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 50 - 2024-12-24 14:53:52 [0.33ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97096 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 51 - 2024-12-24 14:53:52 [0.28ms] */
update `invoice` set `invoice_amount` = 210, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 210, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-24 14:53:52' where `id` = 97096;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 52 - 2024-12-24 14:53:52 [0.29ms] */
select * from `invoice` where `id` = 97096 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 53 - 2024-12-24 14:53:52 [0.28ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"210.00","status":"OPEN"}}', 5, 'App\Models\User', 97096, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 54 - 2024-12-24 14:53:52 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 98018 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 55 - 2024-12-24 14:53:52 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 98018 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 56 - 2024-12-24 14:53:52 [0.23ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 57 - 2024-12-24 14:53:52 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 58 - 2024-12-24 14:53:52 [0.25ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 59 - 2024-12-24 14:53:52 [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 (98018, 'PAID', '2024-12-24 14:53:52', 7, 5, null, 5, 5, '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 60 - 2024-12-24 14:53:52 [0.27ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 61 - 2024-12-24 14:53:52 [0.28ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-24 14:53:52' where `id` = 98018;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 62 - 2024-12-24 14:53:52 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 63 - 2024-12-24 14:53:52 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 97096 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 64 - 2024-12-24 14:53:52 [0.29ms] */
select * from `vehicle_tax` where `transaction_id` = 98018 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 65 - 2024-12-24 14:53:52 [0.23ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2024-12-24 14:53:52' where `id` = 96261;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 66 - 2024-12-24 14:53:52 [0.26ms] */
select * from `vehicle_tax` where `id` = 96261 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 67 - 2024-12-24 14:53:52 [0.25ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 96261, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 68 - 2024-12-24 14:53:52 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 97097 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 69 - 2024-12-24 14:53:52 [0.23ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-24 14:53:52', 97097, 89703, '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 70 - 2024-12-24 14:53:52 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 97097 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 71 - 2024-12-24 14:53:52 [0.29ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 97097 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 72 - 2024-12-24 14:53:52 [0.26ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97097 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 73 - 2024-12-24 14:53:52 [0.22ms] */
update `invoice` set `invoice_amount` = 210, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 210, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-24 14:53:52' where `id` = 97097;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 74 - 2024-12-24 14:53:52 [0.25ms] */
select * from `invoice` where `id` = 97097 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 75 - 2024-12-24 14:53:52 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"210.00","status":"OPEN"}}', 5, 'App\Models\User', 97097, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 76 - 2024-12-24 14:53:52 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 98019 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 77 - 2024-12-24 14:53:52 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 98019 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 78 - 2024-12-24 14:53:52 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 79 - 2024-12-24 14:53:52 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 80 - 2024-12-24 14:53:52 [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 81 - 2024-12-24 14:53:52 [0.22ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (98019, 'PAID', '2024-12-24 14:53:52', 7, 5, null, 5, 5, '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 82 - 2024-12-24 14:53:52 [0.27ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 83 - 2024-12-24 14:53:52 [0.22ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-24 14:53:52' where `id` = 98019;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 84 - 2024-12-24 14:53:52 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 85 - 2024-12-24 14:53:52 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 97097 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 86 - 2024-12-24 14:53:52 [0.23ms] */
select * from `vehicle_tax` where `transaction_id` = 98019 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 87 - 2024-12-24 14:53:52 [0.19ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2024-12-24 14:53:52' where `id` = 96262;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 88 - 2024-12-24 14:53:52 [0.21ms] */
select * from `vehicle_tax` where `id` = 96262 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 89 - 2024-12-24 14:53:52 [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":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 96262, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 90 - 2024-12-24 14:53:52 [0.34ms] */
select * from `invoice` where `invoice`.`id` = 97098 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 91 - 2024-12-24 14:53:52 [0.24ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-24 14:53:52', 97098, 89703, '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 92 - 2024-12-24 14:53:52 [0.32ms] */
select * from `invoice` where `invoice`.`id` = 97098 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 93 - 2024-12-24 14:53:52 [0.36ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 97098 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 94 - 2024-12-24 14:53:52 [0.33ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97098 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 95 - 2024-12-24 14:53:52 [0.26ms] */
update `invoice` set `invoice_amount` = 210, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 210, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-24 14:53:52' where `id` = 97098;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 96 - 2024-12-24 14:53:52 [0.28ms] */
select * from `invoice` where `id` = 97098 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 97 - 2024-12-24 14:53:52 [0.25ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"210.00","status":"OPEN"}}', 5, 'App\Models\User', 97098, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 98 - 2024-12-24 14:53:52 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 98020 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 99 - 2024-12-24 14:53:52 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 98020 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 100 - 2024-12-24 14:53:52 [0.21ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 101 - 2024-12-24 14:53:52 [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 102 - 2024-12-24 14:53:52 [0.28ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 103 - 2024-12-24 14:53:52 [0.29ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (98020, 'PAID', '2024-12-24 14:53:52', 7, 5, null, 5, 5, '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 104 - 2024-12-24 14:53:52 [0.31ms] */
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 105 - 2024-12-24 14:53:52 [0.19ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-24 14:53:52' where `id` = 98020;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 106 - 2024-12-24 14:53:52 [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 107 - 2024-12-24 14:53:52 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 97098 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 108 - 2024-12-24 14:53:52 [0.21ms] */
select * from `vehicle_tax` where `transaction_id` = 98020 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 109 - 2024-12-24 14:53:52 [0.15ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2024-12-24 14:53:52' where `id` = 96263;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 110 - 2024-12-24 14:53:52 [0.17ms] */
select * from `vehicle_tax` where `id` = 96263 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 111 - 2024-12-24 14:53:52 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 96263, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 112 - 2024-12-24 14:53:52 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 97099 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 113 - 2024-12-24 14:53:52 [0.15ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-24 14:53:52', 97099, 89703, '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 114 - 2024-12-24 14:53:52 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 97099 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 115 - 2024-12-24 14:53:52 [0.23ms] */
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` = 97099 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 116 - 2024-12-24 14:53:52 [0.24ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97099 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 117 - 2024-12-24 14:53:52 [0.18ms] */
update `invoice` set `invoice_amount` = 210, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 210, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-24 14:53:52' where `id` = 97099;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 118 - 2024-12-24 14:53:52 [0.18ms] */
select * from `invoice` where `id` = 97099 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 119 - 2024-12-24 14:53:52 [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":"210.00","status":"OPEN"}}', 5, 'App\Models\User', 97099, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 120 - 2024-12-24 14:53:52 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 98021 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 121 - 2024-12-24 14:53:52 [0.19ms] */
select * from `transaction` where `transaction`.`id` = 98021 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 122 - 2024-12-24 14:53:52 [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 123 - 2024-12-24 14:53:52 [0.12ms] */
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 124 - 2024-12-24 14:53:52 [0.32ms] */
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 125 - 2024-12-24 14:53:52 [0.34ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (98021, 'PAID', '2024-12-24 14:53:52', 7, 5, null, 5, 5, '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 126 - 2024-12-24 14:53:52 [0.38ms] */
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 127 - 2024-12-24 14:53:52 [0.33ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-24 14:53:52' where `id` = 98021;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 128 - 2024-12-24 14:53:52 [0.24ms] */
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 129 - 2024-12-24 14:53:52 [0.39ms] */
select * from `invoice` where `invoice`.`id` = 97099 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 130 - 2024-12-24 14:53:52 [0.39ms] */
select * from `vehicle_tax` where `transaction_id` = 98021 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 131 - 2024-12-24 14:53:52 [0.29ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2024-12-24 14:53:52' where `id` = 96264;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 132 - 2024-12-24 14:53:52 [0.36ms] */
select * from `vehicle_tax` where `id` = 96264 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 133 - 2024-12-24 14:53:52 [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', 96264, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 134 - 2024-12-24 14:53:52 [0.42ms] */
select * from `invoice` where `invoice`.`id` = 97100 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 135 - 2024-12-24 14:53:52 [0.3ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-24 14:53:52', 97100, 89703, '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 136 - 2024-12-24 14:53:52 [0.4ms] */
select * from `invoice` where `invoice`.`id` = 97100 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 137 - 2024-12-24 14:53:52 [0.23ms] */
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` = 97100 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 138 - 2024-12-24 14:53:52 [0.21ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97100 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 139 - 2024-12-24 14:53:52 [0.16ms] */
update `invoice` set `invoice_amount` = 210, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 210, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-24 14:53:52' where `id` = 97100;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 140 - 2024-12-24 14:53:52 [0.19ms] */
select * from `invoice` where `id` = 97100 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 141 - 2024-12-24 14:53:52 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"210.00","status":"OPEN"}}', 5, 'App\Models\User', 97100, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 142 - 2024-12-24 14:53:52 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 98022 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 143 - 2024-12-24 14:53:52 [0.19ms] */
select * from `transaction` where `transaction`.`id` = 98022 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 144 - 2024-12-24 14:53:52 [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 145 - 2024-12-24 14:53:52 [0.12ms] */
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 146 - 2024-12-24 14:53:52 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 147 - 2024-12-24 14:53:52 [0.16ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (98022, 'PAID', '2024-12-24 14:53:52', 7, 5, null, 5, 5, '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 148 - 2024-12-24 14:53:52 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 149 - 2024-12-24 14:53:52 [0.17ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-24 14:53:52' where `id` = 98022;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 150 - 2024-12-24 14:53:52 [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 151 - 2024-12-24 14:53:52 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 97100 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 152 - 2024-12-24 14:53:52 [0.21ms] */
select * from `vehicle_tax` where `transaction_id` = 98022 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 153 - 2024-12-24 14:53:52 [0.15ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2024-12-24 14:53:52' where `id` = 96265;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 154 - 2024-12-24 14:53:52 [0.17ms] */
select * from `vehicle_tax` where `id` = 96265 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 155 - 2024-12-24 14:53:52 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 96265, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 156 - 2024-12-24 14:53:52 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 97101 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 157 - 2024-12-24 14:53:52 [0.15ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-24 14:53:52', 97101, 89703, '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 158 - 2024-12-24 14:53:52 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 97101 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 159 - 2024-12-24 14:53:52 [0.23ms] */
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` = 97101 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 160 - 2024-12-24 14:53:52 [0.22ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97101 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 161 - 2024-12-24 14:53:52 [0.18ms] */
update `invoice` set `invoice_amount` = 210, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 210, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-24 14:53:52' where `id` = 97101;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 162 - 2024-12-24 14:53:52 [0.19ms] */
select * from `invoice` where `id` = 97101 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 163 - 2024-12-24 14:53:52 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"210.00","status":"OPEN"}}', 5, 'App\Models\User', 97101, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 164 - 2024-12-24 14:53:52 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 98023 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 165 - 2024-12-24 14:53:52 [0.19ms] */
select * from `transaction` where `transaction`.`id` = 98023 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 166 - 2024-12-24 14:53:52 [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 167 - 2024-12-24 14:53:52 [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 168 - 2024-12-24 14:53:52 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 169 - 2024-12-24 14:53:52 [0.16ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (98023, 'PAID', '2024-12-24 14:53:52', 7, 5, null, 5, 5, '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 170 - 2024-12-24 14:53:52 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 171 - 2024-12-24 14:53:52 [0.17ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-24 14:53:52' where `id` = 98023;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 172 - 2024-12-24 14:53:52 [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 173 - 2024-12-24 14:53:52 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 97101 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 174 - 2024-12-24 14:53:52 [0.21ms] */
select * from `vehicle_tax` where `transaction_id` = 98023 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 175 - 2024-12-24 14:53:52 [0.15ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2024-12-24 14:53:52' where `id` = 96266;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 176 - 2024-12-24 14:53:52 [0.19ms] */
select * from `vehicle_tax` where `id` = 96266 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 177 - 2024-12-24 14:53:52 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 96266, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 178 - 2024-12-24 14:53:52 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 97102 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 179 - 2024-12-24 14:53:52 [0.15ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-24 14:53:52', 97102, 89703, '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 180 - 2024-12-24 14:53:52 [0.18ms] */
select * from `invoice` where `invoice`.`id` = 97102 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 181 - 2024-12-24 14:53:52 [0.23ms] */
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` = 97102 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 182 - 2024-12-24 14:53:52 [0.22ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97102 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 183 - 2024-12-24 14:53:52 [0.16ms] */
update `invoice` set `invoice_amount` = 210, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 210, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-24 14:53:52' where `id` = 97102;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 184 - 2024-12-24 14:53:52 [0.18ms] */
select * from `invoice` where `id` = 97102 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 185 - 2024-12-24 14:53:52 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"210.00","status":"OPEN"}}', 5, 'App\Models\User', 97102, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 186 - 2024-12-24 14:53:52 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 98024 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 187 - 2024-12-24 14:53:52 [0.19ms] */
select * from `transaction` where `transaction`.`id` = 98024 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 188 - 2024-12-24 14:53:52 [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 189 - 2024-12-24 14:53:52 [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 190 - 2024-12-24 14:53:52 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 191 - 2024-12-24 14:53:52 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (98024, 'PAID', '2024-12-24 14:53:52', 7, 5, null, 5, 5, '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 192 - 2024-12-24 14:53:52 [0.19ms] */
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 193 - 2024-12-24 14:53:52 [0.17ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-24 14:53:52' where `id` = 98024;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 194 - 2024-12-24 14:53:52 [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 195 - 2024-12-24 14:53:52 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 97102 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 196 - 2024-12-24 14:53:52 [0.19ms] */
select * from `vehicle_tax` where `transaction_id` = 98024 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 197 - 2024-12-24 14:53:52 [0.16ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2024-12-24 14:53:52' where `id` = 96267;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 198 - 2024-12-24 14:53:52 [0.18ms] */
select * from `vehicle_tax` where `id` = 96267 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 199 - 2024-12-24 14:53:52 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 96267, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 200 - 2024-12-24 14:53:52 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 102478 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 201 - 2024-12-24 14:53:52 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 102478 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 202 - 2024-12-24 14:53:52 [0.15ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-24 14:53:52', 102478, 89703, '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 203 - 2024-12-24 14:53:52 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 102478 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 204 - 2024-12-24 14:53:52 [0.23ms] */
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` = 102478 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 205 - 2024-12-24 14:53:52 [0.15ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-24 14:53:52' where `id` = 102478;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 206 - 2024-12-24 14:53:52 [0.18ms] */
select * from `invoice` where `id` = 102478 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 207 - 2024-12-24 14:53:52 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"1680.00","status":"OPEN"}}', 5, 'App\Models\User', 102478, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 208 - 2024-12-24 14:53:52 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 102909 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 209 - 2024-12-24 14:53:52 [0.19ms] */
select * from `transaction` where `transaction`.`id` = 102909 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 210 - 2024-12-24 14:53:52 [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 211 - 2024-12-24 14:53:52 [0.12ms] */
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 212 - 2024-12-24 14:53:52 [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 213 - 2024-12-24 14:53:52 [0.16ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102909, 'PAID', '2024-12-24 14:53:52', 7, 5, null, 5, 5, '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 214 - 2024-12-24 14:53:52 [0.19ms] */
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 215 - 2024-12-24 14:53:52 [0.18ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-24 14:53:52' where `id` = 102909;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 216 - 2024-12-24 14:53:52 [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 217 - 2024-12-24 14:53:52 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 102478 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 218 - 2024-12-24 14:53:52 [0.18ms] */
insert into `payment_confirmation` (`payment_id`, `text`, `attachment`, `updated_at`, `created_at`) values (89703, 'asdasd', 1, '2024-12-24 14:53:52', '2024-12-24 14:53:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2024-12-24 14:53:55 [1.43ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2024-12-24 14:53:55 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2024-12-24 14:53:55 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2024-12-24 14:53:55 [0.16ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2024-12-24 14:53:55 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2024-12-24 14:53:55 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2024-12-24 14:53:55 [0.33ms] */
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` = 'GD619' 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 - 2024-12-24 14:53:55 [1.38ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2024-12-24 14:53:55 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2024-12-24 14:53:55 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2024-12-24 14:53:55 [0.16ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2024-12-24 14:53:55 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2024-12-24 14:53:55 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2024-12-24 14:53:55 [0.16ms] */
select * from `vehicle` where `vehicle`.`id` = 293 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2024-12-24 14:53:55 [0.14ms] */
select * from `vehicle` where `id` = 293 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2024-12-24 14:53:55 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 293 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2024-12-24 14:53:55 [0.6ms] */
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` = 293 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 - 2024-12-24 14:53:56 [1.38ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2024-12-24 14:53:56 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2024-12-24 14:53:56 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2024-12-24 14:53:56 [0.19ms] */
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 - 2024-12-24 14:53:56 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2024-12-24 14:53:56 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2024-12-24 14:53:56 [0.24ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2024-12-24 14:53:57 [1.35ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 14:53:57 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 14:53:57 [0.34ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 14:53:57 [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 - 2024-12-24 14:53:57 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 14:53:57 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 14:53:57 [0.16ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2024-12-24 14:54:17 [1.3ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2024-12-24 14:54:17 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2024-12-24 14:54:17 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2024-12-24 14:54:17 [0.16ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2024-12-24 14:54:17 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2024-12-24 14:54:17 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2024-12-24 14:54:17 [0.33ms] */
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` = 'GD619' 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 - 2024-12-24 14:54:18 [1.31ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2024-12-24 14:54:18 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2024-12-24 14:54:18 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2024-12-24 14:54:18 [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 - 2024-12-24 14:54:18 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2024-12-24 14:54:18 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2024-12-24 14:54:18 [0.16ms] */
select * from `vehicle` where `vehicle`.`id` = 293 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2024-12-24 14:54:18 [0.14ms] */
select * from `vehicle` where `id` = 293 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2024-12-24 14:54:18 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 293 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2024-12-24 14:54:18 [0.24ms] */
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` = 293 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 - 2024-12-24 14:54:19 [1.42ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2024-12-24 14:54:19 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2024-12-24 14:54:19 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2024-12-24 14:54:19 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2024-12-24 14:54:19 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2024-12-24 14:54:19 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2024-12-24 14:54:19 [0.29ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2024-12-24 14:54:19 [1.29ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 14:54:19 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 14:54:19 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 14:54:19 [0.16ms] */
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 - 2024-12-24 14:54:19 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 14:54:19 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 14:54:19 [0.15ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2024-12-24 15:10:08 [1.49ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2024-12-24 15:10:08 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2024-12-24 15:10:08 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2024-12-24 15:10:08 [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 - 2024-12-24 15:10:08 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2024-12-24 15:10:08 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2024-12-24 15:10:08 [0.73ms] */
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` = 23941 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 - 2024-12-24 15:10:09 [1.41ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2024-12-24 15:10:09 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2024-12-24 15:10:09 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2024-12-24 15:10:09 [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 - 2024-12-24 15:10:09 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2024-12-24 15:10:09 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2024-12-24 15:10:09 [0.3ms] */
select * from `vehicle` where `vehicle`.`id` = 281 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2024-12-24 15:10:09 [0.23ms] */
select * from `vehicle` where `id` = 281 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2024-12-24 15:10:09 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 281 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2024-12-24 15:10:09 [0.54ms] */
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` = 281 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 - 2024-12-24 15:10:10 [1.38ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2024-12-24 15:10:10 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2024-12-24 15:10:10 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2024-12-24 15:10:10 [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 - 2024-12-24 15:10:10 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2024-12-24 15:10:10 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2024-12-24 15:10:10 [0.25ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2024-12-24 15:10:11 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 15:10:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 15:10:11 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 15:10:11 [0.16ms] */
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 - 2024-12-24 15:10:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 15:10:11 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 15:10:11 [0.15ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2024-12-24 15:10:11 [1.33ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2024-12-24 15:10:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2024-12-24 15:10:11 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2024-12-24 15:10:11 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2024-12-24 15:10:11 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2024-12-24 15:10:11 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2024-12-24 15:10:11 [0.16ms] */
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 - 2024-12-24 15:10:11 [0.27ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99020, 99024) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2024-12-24 15:10:11 [0.22ms] */
select `parent_id` from `transaction` where `id` in (102299, 102303) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2024-12-24 15:10:11 [0.14ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2024-12-24 15:10:11 [0.18ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2024-12-24 15:10:11 [0.24ms] */
select * from `transaction` where `id` in (102299, 102303) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2024-12-24 15:10:11 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 101902 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 - 2024-12-24 15:10:11 [3.47ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2024-12-24 15:10:11' where `id` = 101902;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2024-12-24 15:10:11 [0.25ms] */
select * from `invoice` where `id` = 101902 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2024-12-24 15:10:11 [3.14ms] */
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', 101902, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2024-12-24 15:10:11 [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 18 - 2024-12-24 15:10:11 [0.15ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2024-12-24 15:10:11 [3.08ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2024-12-24 15:10:11' where `id` = 102299;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2024-12-24 15:10:11 [0.38ms] */
select * from `invoice` where `invoice`.`id` = 101906 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2024-12-24 15:10:11 [3.05ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2024-12-24 15:10:11' where `id` = 101906;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2024-12-24 15:10:11 [0.37ms] */
select * from `invoice` where `id` = 101906 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2024-12-24 15:10:11 [3.31ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 101906, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2024-12-24 15:10:11 [0.21ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2024-12-24 15:10:11 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2024-12-24 15:10:11 [3.03ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2024-12-24 15:10:11' where `id` = 102303;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2024-12-24 15:10:11 [3.07ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2024-12-24 15:10:11' where `id` in (99020, 99024) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2024-12-24 15:10:11 [0.36ms] */
select * from `vehicle` where `vehicle`.`id` = 281 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2024-12-24 15:10:11 [0.22ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2024-12-24 15:10:11 [0.38ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 281 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2024-12-24 15:10:11 [0.4ms] */
select * from `party_vehicle` where `vehicle_id` = 281 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2024-12-24 15:10:11 [0.21ms] */
select * from `party` where `party`.`id` = 55750 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2024-12-24 15:10:11 [0.21ms] */
select * from `vehicle` where `vehicle`.`id` = 281 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2024-12-24 15:10:11 [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 35 - 2024-12-24 15:10:11 [0.44ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2024-12-24 15:10:11 [5.28ms] */
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 (55750, 2, 281, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2024-12-24 15:10:11 [0.45ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102912, 'INITIATED', '2024-12-24 15:10:11', 5, 5, 5, 5, '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2024-12-24 15:10:11 [0.3ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 43303, `transaction`.`updated_at` = '2024-12-24 15:10:11' where `id` = 102912;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2024-12-24 15:10:11 [0.44ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (99020, 99024) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2024-12-24 15:10:11 [0.42ms] */
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 (99020, 99024) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2024-12-24 15:10:11 [13.43ms] */
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 (102912, 55750, '2024-12-24 15:10:11', '2024-12-24 15:10:11', 128.00, 0, 128.00, 128.00, 0, 'OPEN', 'N', 'Y', 5, 5, '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2024-12-24 15:10:11 [0.36ms] */
select * from `invoice` where `id` = 102481 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2024-12-24 15:10:11 [0.28ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102912,"party_id":55750,"invoice_amount":"128.00","invoice_date":"2024-12-24 15:10:11","due_date":"2024-12-24 15:10:11","outstanding_balance":"128.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"128.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', 102481, 'Modules\Transaction\Entities\Invoice', 'created', '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2024-12-24 15:10:11 [0.43ms] */
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 (99020, 99024) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2024-12-24 15:10:11 [0.36ms] */
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, 128, 128, 102481, 5, 5, '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2024-12-24 15:10:11 [0.27ms] */
select * from `invoice_item` where `id` = 200538 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2024-12-24 15:10:11 [0.25ms] */
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":"128.00","quantity":2,"total_price":"128.00","invoice_id":102481}}', 5, 'App\Models\User', 200538, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2024-12-24 15:10:11 [0.27ms] */
update `invoice` set `invoice_number` = 'INV-441-102481644', `invoice`.`updated_at` = '2024-12-24 15:10:11' where `id` = 102481;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2024-12-24 15:10:11 [0.29ms] */
select * from `invoice` where `id` = 102481 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2024-12-24 15:10:11 [0.26ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-441-102481644"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 102481, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2024-12-24 15:10:11 [0.3ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99020 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2024-12-24 15:10:11 [0.26ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `vehicle_tax`.`updated_at` = '2024-12-24 15:10:11' where `id` = 99020;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2024-12-24 15:10:11 [0.28ms] */
select * from `vehicle_tax` where `id` = 99020 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2024-12-24 15:10:11 [0.34ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 99020, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2024-12-24 15:10:11 [0.32ms] */
select * from `transaction` where `transaction`.`id` = 102299 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2024-12-24 15:10:11 [0.34ms] */
update `transaction` set `deliver_district_id` = null, `parent_id` = 102912, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2024-12-24 15:10:11' where `id` = 102299;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2024-12-24 15:10:11 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 101902 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 - 2024-12-24 15:10:11 [0.32ms] */
update `invoice` set `parent_id` = 102481, `grouped` = 'Y', `invoice`.`updated_at` = '2024-12-24 15:10:11' where `id` = 101902;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2024-12-24 15:10:11 [0.29ms] */
select * from `invoice` where `id` = 101902 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2024-12-24 15:10:11 [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":102481,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 101902, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2024-12-24 15:10:11 [0.32ms] */
select * from `transaction` where `transaction`.`id` = 102299 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2024-12-24 15:10:11 [0.19ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2024-12-24 15:10:11 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2024-12-24 15:10:11 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2024-12-24 15:10:11 [0.38ms] */
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 66 - 2024-12-24 15:10:11 [0.17ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2024-12-24 15:10:11 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102299, 'APPROVED', '2024-12-24 15:10:11', 5, 5, null, 5, 5, '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2024-12-24 15:10:11 [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 69 - 2024-12-24 15:10:11 [0.38ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2024-12-24 15:10:11' where `id` = 102299;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2024-12-24 15:10:11 [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/make_payment
   Query 71 - 2024-12-24 15:10:11 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 101902 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 - 2024-12-24 15:10:11 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99024 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2024-12-24 15:10:11 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `vehicle_tax`.`updated_at` = '2024-12-24 15:10:11' where `id` = 99024;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2024-12-24 15:10:11 [0.18ms] */
select * from `vehicle_tax` where `id` = 99024 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2024-12-24 15:10:11 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 99024, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2024-12-24 15:10:11 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 102303 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 77 - 2024-12-24 15:10:11 [0.19ms] */
update `transaction` set `deliver_district_id` = null, `parent_id` = 102912, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2024-12-24 15:10:11' where `id` = 102303;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2024-12-24 15:10:11 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 101906 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 - 2024-12-24 15:10:11 [0.19ms] */
update `invoice` set `parent_id` = 102481, `grouped` = 'Y', `invoice`.`updated_at` = '2024-12-24 15:10:11' where `id` = 101906;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2024-12-24 15:10:11 [0.18ms] */
select * from `invoice` where `id` = 101906 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2024-12-24 15:10:11 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":102481,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 101906, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2024-12-24 15:10:11 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 102303 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 83 - 2024-12-24 15:10:11 [0.2ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 84 - 2024-12-24 15:10:11 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 85 - 2024-12-24 15:10:11 [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 86 - 2024-12-24 15:10:11 [0.16ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2024-12-24 15:10:11 [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 (102303, 'APPROVED', '2024-12-24 15:10:11', 5, 5, null, 5, 5, '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2024-12-24 15:10:11 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 89 - 2024-12-24 15:10:11 [0.23ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2024-12-24 15:10:11' where `id` = 102303;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 90 - 2024-12-24 15:10:11 [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 - 2024-12-24 15:10:11 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 101906 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 - 2024-12-24 15:10:11 [0.17ms] */
update `transaction` set `invoice_id` = 102481, `transaction`.`updated_at` = '2024-12-24 15:10:11' where `id` = 102912;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 93 - 2024-12-24 15:10:11 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 102912 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 94 - 2024-12-24 15:10:11 [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 95 - 2024-12-24 15:10:11 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 96 - 2024-12-24 15:10:11 [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 97 - 2024-12-24 15:10:11 [0.15ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102912, 'APPROVED', '2024-12-24 15:10:11', 5, 5, null, 5, 5, '2024-12-24 15:10:11', '2024-12-24 15:10:11');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2024-12-24 15:10:11 [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 99 - 2024-12-24 15:10:11 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2024-12-24 15:10:11' where `id` = 102912;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 100 - 2024-12-24 15:10:11 [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 - 2024-12-24 15:10:11 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 102481 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 - 2024-12-24 15:10:11 [0.36ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99020, 99024) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 103 - 2024-12-24 15:10:11 [0.47ms] */
select * from `invoice` where `transaction_id` = 102299 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 104 - 2024-12-24 15:10:11 [0.6ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101902 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 - 2024-12-24 15:10:11 [0.69ms] */
select * from `invoice` where `transaction_id` = 102303 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 106 - 2024-12-24 15:10:11 [0.66ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101906 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 - 2024-12-24 15:10:11 [0.3ms] */
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 - 2024-12-24 15:10:11 [0.28ms] */
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 - 2024-12-24 15:10:12 [1.35ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 15:10:12 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 15:10:12 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 15:10:12 [0.19ms] */
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 - 2024-12-24 15:10:12 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 15:10:12 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 15:10:12 [0.14ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2024-12-24 15:10:16 [1.36ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2024-12-24 15:10:16 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2024-12-24 15:10:16 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2024-12-24 15:10:16 [0.29ms] */
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 - 2024-12-24 15:10:16 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2024-12-24 15:10:16 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2024-12-24 15:10:16 [0.23ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2024-12-24 15:10:16 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99020, 99024) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2024-12-24 15:10:16 [0.31ms] */
select `parent_id` from `transaction` where `id` in (102299, 102303) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2024-12-24 15:10:16 [20.39ms] */
select `id` from `transaction` where `parent_id` in (102912) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2024-12-24 15:10:16 [0.32ms] */
select * from `transaction` where `id` in (102912) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2024-12-24 15:10:16 [0.15ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99020, 99024) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2024-12-24 15:10:16 [0.16ms] */
select * from `invoice` where `transaction_id` = 102299 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2024-12-24 15:10:16 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101902 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 - 2024-12-24 15:10:16 [0.14ms] */
select * from `invoice` where `transaction_id` = 102303 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2024-12-24 15:10:16 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101906 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 - 2024-12-24 15:10:16 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 4 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2024-12-24 15:10:16 [0.12ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2024-12-24 15:14:58 [1.42ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2024-12-24 15:14:58 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2024-12-24 15:14:58 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2024-12-24 15:14:58 [0.21ms] */
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 - 2024-12-24 15:14:58 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2024-12-24 15:14:58 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2024-12-24 15:14:58 [0.45ms] */
select * from `transaction` where `transaction`.`id` = 102912 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2024-12-24 15:14:58 [0.25ms] */
select * from `invoice_payment` where `invoice_id` = 102481 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2024-12-24 15:14:58 [20.8ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 102912 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 10 - 2024-12-24 15:14:58 [20.76ms] */
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` = 102912 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 11 - 2024-12-24 15:14:58 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 102912 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 12 - 2024-12-24 15:14:58 [0.47ms] */
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 - 2024-12-24 15:14:58 [0.29ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 14 - 2024-12-24 15:14:58 [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 15 - 2024-12-24 15:14:58 [11.69ms] */
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` = 102912 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 16 - 2024-12-24 15:14:58 [0.27ms] */
select * from `party` where `party`.`id` = 55750 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 - 2024-12-24 15:14:58 [0.63ms] */
select * from `invoice` where `invoice`.`id` = 102481 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 18 - 2024-12-24 15:14:58 [0.36ms] */
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 ('2024-12-24 15:14:58', '#676AA5C2A7339', null, 1, 128.00, null, null, null, 37, 5, 5, 5, '2024-12-24 15:14:58', '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 19 - 2024-12-24 15:14:58 [0.28ms] */
select * from `Payment` where `id` = 89704 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 20 - 2024-12-24 15:14:58 [0.27ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('Payment', '{"attributes":{"payment_method_id":1,"payment_amount":"128.00","payment_date":"2024-12-24 15:14:58","external_payment_reference_no":"#676AA5C2A7339","payment_receipt_number":null,"siinpay_payref_number":null,"paid_by":null,"paid_by_mobile":null,"district_id":37,"migration_id":null,"payment_collected_by":5}}', 5, 'App\Models\User', 89704, 'Modules\Transaction\Entities\Payment', 'created', '2024-12-24 15:14:58', '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 21 - 2024-12-24 15:14:58 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 102912 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 22 - 2024-12-24 15:14:58 [0.2ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 23 - 2024-12-24 15:14:58 [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 24 - 2024-12-24 15:14:58 [0.37ms] */
select * from `invoice` where `invoice`.`id` = 101902 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 25 - 2024-12-24 15:14:58 [0.18ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-24 15:14:58', 101902, 89704, '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 26 - 2024-12-24 15:14:58 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 101902 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 27 - 2024-12-24 15:14:58 [0.29ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 101902 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 28 - 2024-12-24 15:14:58 [0.29ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101902 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 29 - 2024-12-24 15:14:58 [0.23ms] */
update `invoice` set `invoice_amount` = 64, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 64, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-24 15:14:58' where `id` = 101902;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 30 - 2024-12-24 15:14:58 [0.19ms] */
select * from `invoice` where `id` = 101902 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 31 - 2024-12-24 15:14:58 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"64.00","status":"OPEN"}}', 5, 'App\Models\User', 101902, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 15:14:58', '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 32 - 2024-12-24 15:14:58 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 102299 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 33 - 2024-12-24 15:14:58 [0.14ms] */
select * from `transaction` where `transaction`.`id` = 102299 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 34 - 2024-12-24 15:14:58 [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 35 - 2024-12-24 15:14:58 [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 36 - 2024-12-24 15:14:58 [0.16ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 37 - 2024-12-24 15:14:58 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102299, 'PAID', '2024-12-24 15:14:58', 7, 5, null, 5, 5, '2024-12-24 15:14:58', '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 38 - 2024-12-24 15:14:58 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 39 - 2024-12-24 15:14:58 [0.24ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-24 15:14:58' where `id` = 102299;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 40 - 2024-12-24 15:14:58 [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 41 - 2024-12-24 15:14:58 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 101902 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 42 - 2024-12-24 15:14:58 [0.23ms] */
select * from `vehicle_tax` where `transaction_id` = 102299 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 43 - 2024-12-24 15:14:58 [0.17ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2024-12-24 15:14:58' where `id` = 99020;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 44 - 2024-12-24 15:14:58 [0.18ms] */
select * from `vehicle_tax` where `id` = 99020 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 45 - 2024-12-24 15:14:58 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 99020, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 15:14:58', '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 46 - 2024-12-24 15:14:58 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 101906 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 47 - 2024-12-24 15:14:58 [0.14ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-24 15:14:58', 101906, 89704, '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 48 - 2024-12-24 15:14:58 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 101906 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 49 - 2024-12-24 15:14:58 [0.23ms] */
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` = 101906 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 50 - 2024-12-24 15:14:58 [0.21ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101906 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 51 - 2024-12-24 15:14:58 [0.16ms] */
update `invoice` set `invoice_amount` = 64, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 64, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-24 15:14:58' where `id` = 101906;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 52 - 2024-12-24 15:14:58 [0.19ms] */
select * from `invoice` where `id` = 101906 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 53 - 2024-12-24 15:14:58 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"64.00","status":"OPEN"}}', 5, 'App\Models\User', 101906, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 15:14:58', '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 54 - 2024-12-24 15:14:58 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 102303 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 55 - 2024-12-24 15:14:58 [0.19ms] */
select * from `transaction` where `transaction`.`id` = 102303 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 56 - 2024-12-24 15:14:58 [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 57 - 2024-12-24 15:14:58 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 58 - 2024-12-24 15:14:58 [0.19ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 59 - 2024-12-24 15:14:58 [0.16ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102303, 'PAID', '2024-12-24 15:14:58', 7, 5, null, 5, 5, '2024-12-24 15:14:58', '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 60 - 2024-12-24 15:14:58 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 61 - 2024-12-24 15:14:58 [0.4ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-24 15:14:58' where `id` = 102303;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 62 - 2024-12-24 15:14:58 [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 63 - 2024-12-24 15:14:58 [0.39ms] */
select * from `invoice` where `invoice`.`id` = 101906 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 64 - 2024-12-24 15:14:58 [0.36ms] */
select * from `vehicle_tax` where `transaction_id` = 102303 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 65 - 2024-12-24 15:14:58 [0.3ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2024-12-24 15:14:58' where `id` = 99024;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 66 - 2024-12-24 15:14:58 [0.34ms] */
select * from `vehicle_tax` where `id` = 99024 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 67 - 2024-12-24 15:14:58 [0.34ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 99024, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 15:14:58', '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 68 - 2024-12-24 15:14:58 [0.38ms] */
select * from `invoice` where `invoice`.`id` = 102481 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 69 - 2024-12-24 15:14:58 [0.37ms] */
select * from `invoice` where `invoice`.`id` = 102481 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 70 - 2024-12-24 15:14:58 [0.32ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2024-12-24 15:14:58', 102481, 89704, '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 71 - 2024-12-24 15:14:58 [0.37ms] */
select * from `invoice` where `invoice`.`id` = 102481 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 72 - 2024-12-24 15:14:58 [0.44ms] */
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` = 102481 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 73 - 2024-12-24 15:14:58 [0.3ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2024-12-24 15:14:58' where `id` = 102481;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 74 - 2024-12-24 15:14:58 [0.19ms] */
select * from `invoice` where `id` = 102481 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 75 - 2024-12-24 15:14:58 [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":"128.00","status":"OPEN"}}', 5, 'App\Models\User', 102481, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 15:14:58', '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 76 - 2024-12-24 15:14:58 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 102912 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 77 - 2024-12-24 15:14:58 [0.18ms] */
select * from `transaction` where `transaction`.`id` = 102912 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 78 - 2024-12-24 15:14:58 [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 79 - 2024-12-24 15:14:58 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 80 - 2024-12-24 15:14:58 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 81 - 2024-12-24 15:14:58 [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 (102912, 'PAID', '2024-12-24 15:14:58', 7, 5, null, 5, 5, '2024-12-24 15:14:58', '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 82 - 2024-12-24 15:14:58 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 83 - 2024-12-24 15:14:58 [0.18ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2024-12-24 15:14:58' where `id` = 102912;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 84 - 2024-12-24 15:14:58 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 85 - 2024-12-24 15:14:58 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 102481 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 86 - 2024-12-24 15:14:58 [0.14ms] */
insert into `payment_confirmation` (`payment_id`, `text`, `attachment`, `updated_at`, `created_at`) values (89704, 'asdasd', 1, '2024-12-24 15:14:58', '2024-12-24 15:14:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2024-12-24 15:14:59 [1.35ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2024-12-24 15:14:59 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2024-12-24 15:14:59 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2024-12-24 15:14:59 [0.16ms] */
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 - 2024-12-24 15:14:59 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2024-12-24 15:14:59 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2024-12-24 15:14:59 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 102912 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2024-12-24 15:14:59 [0.27ms] */
select * from `invoice_payment` where `invoice_id` = 102481 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2024-12-24 15:15:00 [2.41ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2024-12-24 15:15:00 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2024-12-24 15:15:00 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2024-12-24 15:15:00 [0.18ms] */
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 - 2024-12-24 15:15:00 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2024-12-24 15:15:00 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2024-12-24 15:15:00 [0.34ms] */
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` = 23941 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 - 2024-12-24 15:15:01 [1.37ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2024-12-24 15:15:01 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2024-12-24 15:15:01 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2024-12-24 15:15:01 [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 - 2024-12-24 15:15:01 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2024-12-24 15:15:01 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2024-12-24 15:15:01 [0.18ms] */
select * from `vehicle` where `vehicle`.`id` = 281 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2024-12-24 15:15:01 [0.15ms] */
select * from `vehicle` where `id` = 281 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2024-12-24 15:15:01 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 281 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2024-12-24 15:15:01 [0.69ms] */
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` = 281 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 - 2024-12-24 15:15:02 [2.22ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2024-12-24 15:15:02 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2024-12-24 15:15:02 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2024-12-24 15:15:02 [0.31ms] */
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 - 2024-12-24 15:15:02 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2024-12-24 15:15:02 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2024-12-24 15:15:02 [0.24ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2024-12-24 15:15:02 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 15:15:02 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 15:15:02 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 15:15: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 - 2024-12-24 15:15:02 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 15:15:02 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 15:15:02 [0.15ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2024-12-24 15:15:14 [2.39ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2024-12-24 15:15:14 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2024-12-24 15:15:14 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2024-12-24 15:15:14 [0.31ms] */
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 - 2024-12-24 15:15:14 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2024-12-24 15:15:14 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2024-12-24 15:15:14 [0.81ms] */
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` = 'GD3870' 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 - 2024-12-24 15:15:15 [1.47ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2024-12-24 15:15:15 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2024-12-24 15:15:15 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2024-12-24 15:15:15 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2024-12-24 15:15:15 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2024-12-24 15:15:15 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2024-12-24 15:15:15 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` = 270 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2024-12-24 15:15:15 [0.34ms] */
select * from `vehicle` where `id` = 270 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2024-12-24 15:15:15 [0.31ms] */
select * from `party_vehicle` where `vehicle_id` = 270 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2024-12-24 15:15:15 [0.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` = 270 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 - 2024-12-24 15:15:16 [2.22ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2024-12-24 15:15:16 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2024-12-24 15:15:16 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2024-12-24 15:15:16 [0.25ms] */
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 - 2024-12-24 15:15:16 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2024-12-24 15:15:16 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2024-12-24 15:15:16 [0.36ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2024-12-24 15:15:17 [1.35ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 15:15:17 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 15:15:17 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 15:15:17 [0.16ms] */
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 - 2024-12-24 15:15:17 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 15:15:17 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 15:15:17 [0.17ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2024-12-24 15:15:19 [1.94ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2024-12-24 15:15:19 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2024-12-24 15:15:19 [0.25ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2024-12-24 15:15:19 [0.3ms] */
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 - 2024-12-24 15:15:19 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2024-12-24 15:15:19 [0.28ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2024-12-24 15:15:19 [0.16ms] */
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 - 2024-12-24 15:15:19 [0.3ms] */
select `transaction_id` from `vehicle_tax` where `id` in (95571, 95572, 95573, 95574) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2024-12-24 15:15:19 [0.22ms] */
select `parent_id` from `transaction` where `id` in (97175, 97176, 97177, 97178) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2024-12-24 15:15:19 [0.16ms] */
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 - 2024-12-24 15:15:19 [0.19ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2024-12-24 15:15:19 [0.25ms] */
select * from `transaction` where `id` in (97175, 97176, 97177, 97178) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2024-12-24 15:15:19 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 96323 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 - 2024-12-24 15:15:19 [0.15ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2024-12-24 15:15:19 [0.16ms] */
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 - 2024-12-24 15:15:19 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 96324 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 - 2024-12-24 15:15:19 [0.13ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2024-12-24 15:15:19 [0.13ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2024-12-24 15:15:19 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 96325 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 - 2024-12-24 15:15:19 [0.13ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2024-12-24 15:15:19 [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 22 - 2024-12-24 15:15:19 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 96326 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 - 2024-12-24 15:15:19 [0.13ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2024-12-24 15:15:19 [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 25 - 2024-12-24 15:15:19 [6.2ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2024-12-24 15:15:19' where `id` in (95571, 95572, 95573, 95574) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2024-12-24 15:15:19 [0.28ms] */
select * from `vehicle` where `vehicle`.`id` = 270 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2024-12-24 15:15:19 [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 28 - 2024-12-24 15:15:19 [0.36ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 270 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2024-12-24 15:15:19 [0.38ms] */
select * from `party_vehicle` where `vehicle_id` = 270 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 30 - 2024-12-24 15:15:19 [0.34ms] */
select * from `party` where `party`.`id` = 55734 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 31 - 2024-12-24 15:15:19 [0.35ms] */
select * from `vehicle` where `vehicle`.`id` = 270 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 32 - 2024-12-24 15:15:19 [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 33 - 2024-12-24 15:15:19 [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 34 - 2024-12-24 15:15:19 [0.61ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (55734, 2, 270, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2024-12-24 15:15:19 [0.27ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102913, 'INITIATED', '2024-12-24 15:15:19', 5, 5, 5, 5, '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2024-12-24 15:15:19 [0.28ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 72778, `transaction`.`updated_at` = '2024-12-24 15:15:19' where `id` = 102913;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2024-12-24 15:15:19 [0.44ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (95571, 95572, 95573, 95574) 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 38 - 2024-12-24 15:15:19 [0.35ms] */
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 (95571, 95572, 95573, 95574) 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 39 - 2024-12-24 15:15:19 [0.23ms] */
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 (102913, 55734, '2024-12-24 15:15:19', '2024-12-24 15:15:19', 88.00, 0, 88.00, 88.00, 0, 'OPEN', 'N', 'Y', 5, 5, '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2024-12-24 15:15:19 [0.2ms] */
select * from `invoice` where `id` = 102482 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2024-12-24 15:15:19 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102913,"party_id":55734,"invoice_amount":"88.00","invoice_date":"2024-12-24 15:15:19","due_date":"2024-12-24 15:15:19","outstanding_balance":"88.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"88.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', 102482, 'Modules\Transaction\Entities\Invoice', 'created', '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2024-12-24 15:15:19 [0.3ms] */
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 (95571, 95572, 95573, 95574) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2024-12-24 15:15:19 [0.19ms] */
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', 4, 88, 88, 102482, 5, 5, '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2024-12-24 15:15:19 [0.19ms] */
select * from `invoice_item` where `id` = 200539 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2024-12-24 15:15:19 [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":"88.00","quantity":4,"total_price":"88.00","invoice_id":102482}}', 5, 'App\Models\User', 200539, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2024-12-24 15:15:19 [0.17ms] */
update `invoice` set `invoice_number` = 'INV-580-102482897', `invoice`.`updated_at` = '2024-12-24 15:15:19' where `id` = 102482;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2024-12-24 15:15:19 [0.19ms] */
select * from `invoice` where `id` = 102482 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2024-12-24 15:15:19 [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-580-102482897"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 102482, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2024-12-24 15:15:19 [0.2ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 95571 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2024-12-24 15:15:19 [0.26ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2024-12-24 15:15:19' where `id` = 95571;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2024-12-24 15:15:19 [0.2ms] */
select * from `vehicle_tax` where `id` = 95571 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2024-12-24 15:15:19 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 95571, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2024-12-24 15:15:19 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 97175 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 54 - 2024-12-24 15:15:19 [0.32ms] */
update `transaction` set `deliver_district_id` = null, `parent_id` = 102913, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2024-12-24 15:15:19' where `id` = 97175;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2024-12-24 15:15:19 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 96323 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 56 - 2024-12-24 15:15:19 [0.26ms] */
update `invoice` set `parent_id` = 102482, `grouped` = 'Y', `invoice`.`updated_at` = '2024-12-24 15:15:19' where `id` = 96323;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2024-12-24 15:15:19 [0.19ms] */
select * from `invoice` where `id` = 96323 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2024-12-24 15:15:19 [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":102482,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 96323, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2024-12-24 15:15:19 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 97175 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2024-12-24 15:15:19 [0.21ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2024-12-24 15:15:19 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2024-12-24 15:15:19 [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 63 - 2024-12-24 15:15:19 [0.38ms] */
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 64 - 2024-12-24 15:15:19 [0.19ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2024-12-24 15:15:19 [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 (97175, 'APPROVED', '2024-12-24 15:15:19', 5, 5, null, 5, 5, '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 66 - 2024-12-24 15:15:19 [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 67 - 2024-12-24 15:15:19 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2024-12-24 15:15:19' where `id` = 97175;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2024-12-24 15:15:19 [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/make_payment
   Query 69 - 2024-12-24 15:15:19 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 96323 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 70 - 2024-12-24 15:15:19 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 95572 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2024-12-24 15:15:19 [0.16ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2024-12-24 15:15:19' where `id` = 95572;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2024-12-24 15:15:19 [0.17ms] */
select * from `vehicle_tax` where `id` = 95572 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2024-12-24 15:15:19 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 95572, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2024-12-24 15:15:19 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 97176 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 75 - 2024-12-24 15:15:19 [0.21ms] */
update `transaction` set `deliver_district_id` = null, `parent_id` = 102913, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2024-12-24 15:15:19' where `id` = 97176;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2024-12-24 15:15:19 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 96324 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 77 - 2024-12-24 15:15:19 [0.2ms] */
update `invoice` set `parent_id` = 102482, `grouped` = 'Y', `invoice`.`updated_at` = '2024-12-24 15:15:19' where `id` = 96324;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2024-12-24 15:15:19 [0.18ms] */
select * from `invoice` where `id` = 96324 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2024-12-24 15:15:19 [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":102482,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 96324, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2024-12-24 15:15:19 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 97176 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2024-12-24 15:15:19 [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 82 - 2024-12-24 15:15:19 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 83 - 2024-12-24 15:15:19 [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 84 - 2024-12-24 15:15:19 [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 85 - 2024-12-24 15:15:19 [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 (97176, 'APPROVED', '2024-12-24 15:15:19', 5, 5, null, 5, 5, '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 86 - 2024-12-24 15:15:19 [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 87 - 2024-12-24 15:15:19 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2024-12-24 15:15:19' where `id` = 97176;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2024-12-24 15:15:19 [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/make_payment
   Query 89 - 2024-12-24 15:15:19 [0.55ms] */
select * from `invoice` where `invoice`.`id` = 96324 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 90 - 2024-12-24 15:15:19 [0.36ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 95573 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 91 - 2024-12-24 15:15:19 [0.33ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `vehicle_tax`.`updated_at` = '2024-12-24 15:15:19' where `id` = 95573;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 92 - 2024-12-24 15:15:19 [0.34ms] */
select * from `vehicle_tax` where `id` = 95573 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 93 - 2024-12-24 15:15:19 [0.98ms] */
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', 95573, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 94 - 2024-12-24 15:15:19 [0.42ms] */
select * from `transaction` where `transaction`.`id` = 97177 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 95 - 2024-12-24 15:15:19 [0.39ms] */
update `transaction` set `deliver_district_id` = null, `parent_id` = 102913, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2024-12-24 15:15:19' where `id` = 97177;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 96 - 2024-12-24 15:15:19 [0.39ms] */
select * from `invoice` where `invoice`.`id` = 96325 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 97 - 2024-12-24 15:15:19 [0.4ms] */
update `invoice` set `parent_id` = 102482, `grouped` = 'Y', `invoice`.`updated_at` = '2024-12-24 15:15:19' where `id` = 96325;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2024-12-24 15:15:19 [0.19ms] */
select * from `invoice` where `id` = 96325 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 99 - 2024-12-24 15:15:19 [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":102482,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 96325, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 100 - 2024-12-24 15:15:19 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 97177 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 101 - 2024-12-24 15:15:19 [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 102 - 2024-12-24 15:15:19 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 103 - 2024-12-24 15:15:19 [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 104 - 2024-12-24 15:15:19 [0.17ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 105 - 2024-12-24 15:15:19 [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 (97177, 'APPROVED', '2024-12-24 15:15:19', 5, 5, null, 5, 5, '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 106 - 2024-12-24 15:15:19 [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 107 - 2024-12-24 15:15:19 [0.24ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2024-12-24 15:15:19' where `id` = 97177;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 108 - 2024-12-24 15:15:19 [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 109 - 2024-12-24 15:15:19 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 96325 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 110 - 2024-12-24 15:15:19 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 95574 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 111 - 2024-12-24 15:15:19 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `vehicle_tax`.`updated_at` = '2024-12-24 15:15:19' where `id` = 95574;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 112 - 2024-12-24 15:15:19 [0.17ms] */
select * from `vehicle_tax` where `id` = 95574 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 113 - 2024-12-24 15:15:19 [0.15ms] */
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', 95574, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 114 - 2024-12-24 15:15:19 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 97178 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 115 - 2024-12-24 15:15:19 [0.19ms] */
update `transaction` set `deliver_district_id` = null, `parent_id` = 102913, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2024-12-24 15:15:19' where `id` = 97178;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 116 - 2024-12-24 15:15:19 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 96326 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 117 - 2024-12-24 15:15:19 [0.19ms] */
update `invoice` set `parent_id` = 102482, `grouped` = 'Y', `invoice`.`updated_at` = '2024-12-24 15:15:19' where `id` = 96326;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 118 - 2024-12-24 15:15:19 [0.18ms] */
select * from `invoice` where `id` = 96326 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 119 - 2024-12-24 15:15:19 [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":102482,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 96326, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 120 - 2024-12-24 15:15:19 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 97178 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 121 - 2024-12-24 15:15:19 [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 122 - 2024-12-24 15:15:19 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 123 - 2024-12-24 15:15:19 [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 124 - 2024-12-24 15:15:19 [0.15ms] */
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 125 - 2024-12-24 15:15:19 [0.16ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (97178, 'APPROVED', '2024-12-24 15:15:19', 5, 5, null, 5, 5, '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 126 - 2024-12-24 15:15:19 [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 127 - 2024-12-24 15:15:19 [0.19ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2024-12-24 15:15:19' where `id` = 97178;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 128 - 2024-12-24 15:15:19 [0.19ms] */
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 129 - 2024-12-24 15:15:19 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 96326 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 130 - 2024-12-24 15:15:19 [0.18ms] */
update `transaction` set `invoice_id` = 102482, `transaction`.`updated_at` = '2024-12-24 15:15:19' where `id` = 102913;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 131 - 2024-12-24 15:15:19 [0.41ms] */
update `vehicle` set `updated_by` = 5, `vehicle`.`updated_at` = '2024-12-24 15:15:19' where `id` = 270;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 132 - 2024-12-24 15:15:19 [0.19ms] */
select * from `vehicle` where `id` = 270 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 133 - 2024-12-24 15:15:19 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 270, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 134 - 2024-12-24 15:15:19 [0.2ms] */
insert into `audits` (`old_values`, `new_values`, `event`, `auditable_id`, `auditable_type`, `user_id`, `user_type`, `tags`, `ip_address`, `user_agent`, `url`, `updated_at`, `created_at`) values ('{"updated_by":8}', '{"updated_by":5}', 'updated', 270, 'Modules\Vehicle\Entities\Vehicle', 5, 'App\Models\User', null, '49.47.216.248', 'Dart/3.4 (dart:io)', 'https://testtra.puntlandgov.org/api/make_payment', '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 135 - 2024-12-24 15:15:19 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 102913 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 136 - 2024-12-24 15:15:19 [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 137 - 2024-12-24 15:15:19 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 138 - 2024-12-24 15:15:19 [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 139 - 2024-12-24 15:15:19 [0.16ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102913, 'APPROVED', '2024-12-24 15:15:19', 5, 5, null, 5, 5, '2024-12-24 15:15:19', '2024-12-24 15:15:19');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 140 - 2024-12-24 15:15:19 [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 141 - 2024-12-24 15:15:19 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2024-12-24 15:15:19' where `id` = 102913;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 142 - 2024-12-24 15:15:19 [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 143 - 2024-12-24 15:15:19 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 102482 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 144 - 2024-12-24 15:15:19 [0.39ms] */
select `transaction_id` from `vehicle_tax` where `id` in (95571, 95572, 95573, 95574) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 145 - 2024-12-24 15:15:19 [0.51ms] */
select * from `invoice` where `transaction_id` = 97175 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 146 - 2024-12-24 15:15:19 [0.52ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 96323 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 147 - 2024-12-24 15:15:19 [0.47ms] */
select * from `invoice` where `transaction_id` = 97176 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 148 - 2024-12-24 15:15:19 [0.42ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 96324 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 149 - 2024-12-24 15:15:19 [0.48ms] */
select * from `invoice` where `transaction_id` = 97177 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 150 - 2024-12-24 15:15:19 [0.42ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 96325 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 151 - 2024-12-24 15:15:19 [0.48ms] */
select * from `invoice` where `transaction_id` = 97178 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 152 - 2024-12-24 15:15:19 [0.42ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 96326 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 153 - 2024-12-24 15:15:19 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 154 - 2024-12-24 15:15:19 [0.13ms] */
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 - 2024-12-24 15:15:19 [1.28ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 15:15:19 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 15:15:19 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 15:15:19 [0.16ms] */
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 - 2024-12-24 15:15:19 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '88889da41bdd8af9b7ef826f5c4624979d49015a977be4ae0418e7c33694aa3607845929c8bd0e6b' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 15:15:19 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 15:15:19 [0.14ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2024-12-24 16:06:55 [1.68ms] */
select * from `users` where `email` = 'teller@user.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2024-12-24 16:06:55 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2024-12-24 16:06:55 [0.37ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 5 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2024-12-24 16:06:55 [6.37ms] */
update `userprofiles` set `last_ip` = '102.128.131.21', `login_count` = 710, `last_login` = '2024-12-24 16:06:55', `userprofiles`.`updated_at` = '2024-12-24 16:06:55' where `id` = 5;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-24 16:06:55 [0.24ms] */
select * from `users` where `email` = 'teller@user.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2024-12-24 16:06:55 [0.57ms] */
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/login
   Query 7 - 2024-12-24 16:06:55 [0.28ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (5) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2024-12-24 16:06:55 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-24 16:06:55 [0.11ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2024-12-24 16:06:55 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-24 16:06:55 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-24 16:06:55 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-24 16:06:55 [3.36ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2', 5, 3, '[]', 0, '2024-12-24 16:06:55', '2024-12-24 16:06:55', '2025-12-24 16:06:55');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-24 16:06:56 [0.36ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-24 16:06:56 [3.15ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2024-12-24 16:07:08 [1.48ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2024-12-24 16:07:08 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2024-12-24 16:07:08 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2024-12-24 16:07:08 [0.19ms] */
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 - 2024-12-24 16:07:08 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2024-12-24 16:07:08 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2024-12-24 16:07:08 [0.87ms] */
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` = 'EV441' 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 - 2024-12-24 16:07:08 [2.03ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2024-12-24 16:07:08 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2024-12-24 16:07:08 [0.31ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2024-12-24 16:07:08 [0.37ms] */
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 - 2024-12-24 16:07:08 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2024-12-24 16:07:08 [0.3ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2024-12-24 16:07:08 [0.3ms] */
select * from `vehicle` where `vehicle`.`id` = 61 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2024-12-24 16:07:08 [0.25ms] */
select * from `vehicle` where `id` = 61 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2024-12-24 16:07:08 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 61 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2024-12-24 16:07:08 [0.63ms] */
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` = 61 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 - 2024-12-24 16:07:10 [1.38ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2024-12-24 16:07:10 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2024-12-24 16:07:10 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2024-12-24 16:07:10 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2024-12-24 16:07:10 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2024-12-24 16:07:10 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2024-12-24 16:07:10 [0.24ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2024-12-24 16:07:10 [1.96ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 16:07:10 [0.34ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 16:07:10 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 16:07:10 [0.27ms] */
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 - 2024-12-24 16:07:10 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 16:07:10 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 16:07:10 [0.22ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2024-12-24 16:07:19 [1.43ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2024-12-24 16:07:19 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2024-12-24 16:07:19 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2024-12-24 16:07:19 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2024-12-24 16:07:19 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2024-12-24 16:07:19 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2024-12-24 16:07:19 [0.16ms] */
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 - 2024-12-24 16:07:19 [0.3ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99375, 99378, 99376, 99380, 99377, 99382, 99379, 99383, 99381, 99385, 99386, 99384) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2024-12-24 16:07:19 [0.24ms] */
select `parent_id` from `transaction` where `id` in (102788, 102789, 102790, 102791, 102792, 102793, 102794, 102795, 102796, 102797, 102798, 102799) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2024-12-24 16:07:19 [20.86ms] */
select `id` from `transaction` where `parent_id` in (102800) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2024-12-24 16:07:19 [0.36ms] */
select * from `transaction` where `id` in (102800) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2024-12-24 16:07:19 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99375, 99378, 99376, 99380, 99377, 99382, 99379, 99383, 99381, 99385, 99386, 99384) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2024-12-24 16:07:19 [0.27ms] */
select * from `invoice` where `transaction_id` = 102788 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2024-12-24 16:07:19 [0.72ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102372 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 - 2024-12-24 16:07:19 [0.51ms] */
select * from `invoice` where `transaction_id` = 102789 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2024-12-24 16:07:19 [0.41ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102373 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 - 2024-12-24 16:07:19 [0.44ms] */
select * from `invoice` where `transaction_id` = 102790 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2024-12-24 16:07:19 [0.46ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102374 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2024-12-24 16:07:19 [0.42ms] */
select * from `invoice` where `transaction_id` = 102791 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2024-12-24 16:07:19 [0.41ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102375 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 21 - 2024-12-24 16:07:19 [0.41ms] */
select * from `invoice` where `transaction_id` = 102792 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2024-12-24 16:07:19 [0.41ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102376 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 23 - 2024-12-24 16:07:19 [0.46ms] */
select * from `invoice` where `transaction_id` = 102793 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2024-12-24 16:07:19 [0.33ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102377 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 25 - 2024-12-24 16:07:19 [0.33ms] */
select * from `invoice` where `transaction_id` = 102794 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2024-12-24 16:07:19 [0.32ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102378 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 27 - 2024-12-24 16:07:19 [0.33ms] */
select * from `invoice` where `transaction_id` = 102795 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2024-12-24 16:07:19 [0.32ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102379 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 29 - 2024-12-24 16:07:19 [0.33ms] */
select * from `invoice` where `transaction_id` = 102796 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2024-12-24 16:07:19 [0.36ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102380 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 31 - 2024-12-24 16:07:19 [0.32ms] */
select * from `invoice` where `transaction_id` = 102797 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2024-12-24 16:07:19 [0.33ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102381 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 33 - 2024-12-24 16:07:19 [0.32ms] */
select * from `invoice` where `transaction_id` = 102798 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2024-12-24 16:07:19 [0.33ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102382 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 35 - 2024-12-24 16:07:19 [0.33ms] */
select * from `invoice` where `transaction_id` = 102799 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2024-12-24 16:07:19 [0.33ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102383 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 37 - 2024-12-24 16:07:19 [0.2ms] */
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 38 - 2024-12-24 16:07:19 [0.19ms] */
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 - 2024-12-24 16:07:19 [2.05ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 16:07:19 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 16:07:19 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 16:07:19 [0.31ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2024-12-24 16:07:19 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 16:07:19 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 16:07:19 [0.15ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2024-12-24 16:08:04 [1.96ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2024-12-24 16:08:04 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2024-12-24 16:08:04 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2024-12-24 16:08:04 [0.25ms] */
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 - 2024-12-24 16:08:04 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '1c70beb06e38340189a711fc60455fee5bfcb51ade4add022b0f47205a2792282efff1a37fa861e2' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2024-12-24 16:08:04 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2024-12-24 16:08:04 [0.25ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2024-12-24 16:08:04 [0.15ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99375, 99378, 99376, 99380, 99377, 99382, 99379, 99383, 99381, 99385, 99386, 99384) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2024-12-24 16:08:04 [0.14ms] */
select `parent_id` from `transaction` where `id` in (102788, 102789, 102790, 102791, 102792, 102793, 102794, 102795, 102796, 102797, 102798, 102799) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2024-12-24 16:08:04 [0.12ms] */
select `id` from `transaction` where `parent_id` in (102800) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2024-12-24 16:08:04 [0.15ms] */
select * from `transaction` where `id` in (102800) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2024-12-24 16:08:04 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99375, 99378, 99376, 99380, 99377, 99382, 99379, 99383, 99381, 99385, 99386, 99384) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2024-12-24 16:08:04 [0.16ms] */
select * from `invoice` where `transaction_id` = 102788 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2024-12-24 16:08:04 [0.18ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102372 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 - 2024-12-24 16:08:04 [0.15ms] */
select * from `invoice` where `transaction_id` = 102789 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2024-12-24 16:08:04 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102373 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 - 2024-12-24 16:08:04 [0.14ms] */
select * from `invoice` where `transaction_id` = 102790 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2024-12-24 16:08:04 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102374 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2024-12-24 16:08:04 [0.14ms] */
select * from `invoice` where `transaction_id` = 102791 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2024-12-24 16:08:04 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102375 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 21 - 2024-12-24 16:08:04 [0.14ms] */
select * from `invoice` where `transaction_id` = 102792 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2024-12-24 16:08:04 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102376 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 23 - 2024-12-24 16:08:04 [0.14ms] */
select * from `invoice` where `transaction_id` = 102793 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2024-12-24 16:08:04 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102377 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 25 - 2024-12-24 16:08:04 [0.14ms] */
select * from `invoice` where `transaction_id` = 102794 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2024-12-24 16:08:04 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102378 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 27 - 2024-12-24 16:08:04 [0.16ms] */
select * from `invoice` where `transaction_id` = 102795 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2024-12-24 16:08:04 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102379 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 29 - 2024-12-24 16:08:04 [0.14ms] */
select * from `invoice` where `transaction_id` = 102796 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2024-12-24 16:08:04 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102380 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 31 - 2024-12-24 16:08:04 [0.14ms] */
select * from `invoice` where `transaction_id` = 102797 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2024-12-24 16:08:04 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102381 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 33 - 2024-12-24 16:08:04 [0.14ms] */
select * from `invoice` where `transaction_id` = 102798 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2024-12-24 16:08:04 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102382 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 35 - 2024-12-24 16:08:04 [0.14ms] */
select * from `invoice` where `transaction_id` = 102799 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2024-12-24 16:08:04 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102383 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 37 - 2024-12-24 16:08:04 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 4 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2024-12-24 16:08:04 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2024-12-24 18:05:35 [2.25ms] */
select * from `users` where `email` = 'teller@user.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2024-12-24 18:05:35 [0.16ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2024-12-24 18:05:35 [0.47ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 5 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2024-12-24 18:05:35 [11.31ms] */
update `userprofiles` set `login_count` = 711, `last_login` = '2024-12-24 18:05:35', `userprofiles`.`updated_at` = '2024-12-24 18:05:35' where `id` = 5;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2024-12-24 18:05:35 [0.3ms] */
select * from `users` where `email` = 'teller@user.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2024-12-24 18:05:35 [0.7ms] */
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/login
   Query 7 - 2024-12-24 18:05:35 [0.16ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (5) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2024-12-24 18:05:35 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2024-12-24 18:05:35 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2024-12-24 18:05:35 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2024-12-24 18:05:35 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2024-12-24 18:05:35 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2024-12-24 18:05:35 [3.46ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce', 5, 3, '[]', 0, '2024-12-24 18:05:35', '2024-12-24 18:05:35', '2025-12-24 18:05:35');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2024-12-24 18:05:35 [0.35ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2024-12-24 18:05:35 [3.09ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2024-12-24 18:05:42 [2.51ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2024-12-24 18:05:42 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2024-12-24 18:05:42 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2024-12-24 18:05:42 [0.35ms] */
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 - 2024-12-24 18:05:42 [0.32ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2024-12-24 18:05:42 [0.32ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2024-12-24 18:05:42 [0.33ms] */
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` = 'EV441' 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 - 2024-12-24 18:05:42 [2.06ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2024-12-24 18:05:42 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2024-12-24 18:05:42 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2024-12-24 18:05:42 [0.35ms] */
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 - 2024-12-24 18:05:42 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2024-12-24 18:05:42 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2024-12-24 18:05:42 [0.16ms] */
select * from `vehicle` where `vehicle`.`id` = 61 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2024-12-24 18:05:42 [0.14ms] */
select * from `vehicle` where `id` = 61 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2024-12-24 18:05:42 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 61 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2024-12-24 18:05:42 [0.24ms] */
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` = 61 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 - 2024-12-24 18:05:43 [2.06ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2024-12-24 18:05:43 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2024-12-24 18:05:43 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2024-12-24 18:05:43 [0.29ms] */
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 - 2024-12-24 18:05:43 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2024-12-24 18:05:43 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2024-12-24 18:05:43 [0.44ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2024-12-24 18:05:44 [2.29ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 18:05:44 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 18:05:44 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 18:05:44 [0.31ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2024-12-24 18:05:44 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 18:05:44 [0.28ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 18:05:44 [0.15ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2024-12-24 18:05:48 [2.68ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2024-12-24 18:05:48 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2024-12-24 18:05:48 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2024-12-24 18:05:48 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2024-12-24 18:05:48 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2024-12-24 18:05:48 [0.12ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2024-12-24 18:05:48 [0.16ms] */
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 - 2024-12-24 18:05:48 [0.15ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99375, 99378, 99376, 99380, 99377, 99382, 99379, 99383, 99381, 99385, 99386, 99384) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2024-12-24 18:05:48 [0.14ms] */
select `parent_id` from `transaction` where `id` in (102788, 102789, 102790, 102791, 102792, 102793, 102794, 102795, 102796, 102797, 102798, 102799) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2024-12-24 18:05:48 [0.12ms] */
select `id` from `transaction` where `parent_id` in (102800) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2024-12-24 18:05:48 [0.15ms] */
select * from `transaction` where `id` in (102800) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2024-12-24 18:05:48 [0.13ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99375, 99378, 99376, 99380, 99377, 99382, 99379, 99383, 99381, 99385, 99386, 99384) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2024-12-24 18:05:48 [0.18ms] */
select * from `invoice` where `transaction_id` = 102788 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2024-12-24 18:05:48 [0.15ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102372 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 - 2024-12-24 18:05:48 [0.14ms] */
select * from `invoice` where `transaction_id` = 102789 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2024-12-24 18:05:48 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102373 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 - 2024-12-24 18:05:48 [0.14ms] */
select * from `invoice` where `transaction_id` = 102790 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2024-12-24 18:05:48 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102374 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2024-12-24 18:05:48 [0.14ms] */
select * from `invoice` where `transaction_id` = 102791 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2024-12-24 18:05:48 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102375 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 21 - 2024-12-24 18:05:48 [0.16ms] */
select * from `invoice` where `transaction_id` = 102792 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2024-12-24 18:05:48 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102376 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 23 - 2024-12-24 18:05:48 [0.14ms] */
select * from `invoice` where `transaction_id` = 102793 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2024-12-24 18:05:48 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102377 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 25 - 2024-12-24 18:05:48 [0.14ms] */
select * from `invoice` where `transaction_id` = 102794 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2024-12-24 18:05:48 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102378 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 27 - 2024-12-24 18:05:48 [0.15ms] */
select * from `invoice` where `transaction_id` = 102795 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2024-12-24 18:05:48 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102379 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 29 - 2024-12-24 18:05:48 [0.14ms] */
select * from `invoice` where `transaction_id` = 102796 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2024-12-24 18:05:48 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102380 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 31 - 2024-12-24 18:05:48 [0.14ms] */
select * from `invoice` where `transaction_id` = 102797 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2024-12-24 18:05:48 [0.15ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102381 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 33 - 2024-12-24 18:05:48 [0.14ms] */
select * from `invoice` where `transaction_id` = 102798 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2024-12-24 18:05:48 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102382 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 35 - 2024-12-24 18:05:48 [0.15ms] */
select * from `invoice` where `transaction_id` = 102799 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2024-12-24 18:05:48 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102383 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 37 - 2024-12-24 18:05:48 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2024-12-24 18:05:48 [0.13ms] */
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 - 2024-12-24 18:05:49 [1.98ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 18:05:49 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 18:05:49 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 18:05:49 [0.24ms] */
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 - 2024-12-24 18:05:49 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 18:05:49 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 18:05:49 [0.24ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2024-12-24 19:10:08 [2.06ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2024-12-24 19:10:08 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2024-12-24 19:10:08 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2024-12-24 19:10:08 [0.25ms] */
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 - 2024-12-24 19:10:08 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2024-12-24 19:10:08 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2024-12-24 19:10:08 [0.49ms] */
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` = 'EV441' 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 - 2024-12-24 19:10:09 [1.34ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2024-12-24 19:10:09 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2024-12-24 19:10:09 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2024-12-24 19:10:09 [0.16ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2024-12-24 19:10:09 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2024-12-24 19:10:09 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2024-12-24 19:10:09 [0.17ms] */
select * from `vehicle` where `vehicle`.`id` = 61 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2024-12-24 19:10:09 [0.15ms] */
select * from `vehicle` where `id` = 61 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2024-12-24 19:10:09 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 61 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2024-12-24 19:10:09 [0.26ms] */
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` = 61 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 - 2024-12-24 19:10:10 [2.07ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2024-12-24 19:10:10 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2024-12-24 19:10:10 [0.3ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2024-12-24 19:10:10 [0.29ms] */
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 - 2024-12-24 19:10:10 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2024-12-24 19:10:10 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2024-12-24 19:10:10 [0.24ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2024-12-24 19:10:10 [2.44ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 19:10:10 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 19:10:10 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 19:10:10 [0.31ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2024-12-24 19:10:10 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 19:10:10 [0.25ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 19:10:10 [0.15ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2024-12-24 19:10:11 [1.41ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2024-12-24 19:10:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2024-12-24 19:10:11 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2024-12-24 19:10:11 [0.16ms] */
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 - 2024-12-24 19:10:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2024-12-24 19:10:11 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2024-12-24 19:10:11 [0.16ms] */
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 - 2024-12-24 19:10:11 [0.15ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99375, 99378, 99376, 99380, 99377, 99382, 99379, 99383, 99381, 99385, 99386, 99384) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2024-12-24 19:10:11 [0.14ms] */
select `parent_id` from `transaction` where `id` in (102788, 102789, 102790, 102791, 102792, 102793, 102794, 102795, 102796, 102797, 102798, 102799) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2024-12-24 19:10:11 [0.12ms] */
select `id` from `transaction` where `parent_id` in (102800) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2024-12-24 19:10:11 [0.15ms] */
select * from `transaction` where `id` in (102800) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2024-12-24 19:10:11 [0.13ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99375, 99378, 99376, 99380, 99377, 99382, 99379, 99383, 99381, 99385, 99386, 99384) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2024-12-24 19:10:11 [0.16ms] */
select * from `invoice` where `transaction_id` = 102788 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2024-12-24 19:10:11 [0.15ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102372 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 - 2024-12-24 19:10:11 [0.15ms] */
select * from `invoice` where `transaction_id` = 102789 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2024-12-24 19:10:11 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102373 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 - 2024-12-24 19:10:11 [0.14ms] */
select * from `invoice` where `transaction_id` = 102790 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2024-12-24 19:10:11 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102374 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2024-12-24 19:10:11 [0.14ms] */
select * from `invoice` where `transaction_id` = 102791 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2024-12-24 19:10:11 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102375 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 21 - 2024-12-24 19:10:11 [0.15ms] */
select * from `invoice` where `transaction_id` = 102792 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2024-12-24 19:10:11 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102376 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 23 - 2024-12-24 19:10:11 [0.14ms] */
select * from `invoice` where `transaction_id` = 102793 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2024-12-24 19:10:11 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102377 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 25 - 2024-12-24 19:10:11 [0.14ms] */
select * from `invoice` where `transaction_id` = 102794 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2024-12-24 19:10:11 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102378 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 27 - 2024-12-24 19:10:11 [0.14ms] */
select * from `invoice` where `transaction_id` = 102795 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2024-12-24 19:10:11 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102379 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 29 - 2024-12-24 19:10:11 [0.14ms] */
select * from `invoice` where `transaction_id` = 102796 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2024-12-24 19:10:11 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102380 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 31 - 2024-12-24 19:10:11 [0.14ms] */
select * from `invoice` where `transaction_id` = 102797 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2024-12-24 19:10:11 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102381 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 33 - 2024-12-24 19:10:11 [0.14ms] */
select * from `invoice` where `transaction_id` = 102798 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2024-12-24 19:10:11 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102382 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 35 - 2024-12-24 19:10:11 [0.15ms] */
select * from `invoice` where `transaction_id` = 102799 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2024-12-24 19:10:11 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102383 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 37 - 2024-12-24 19:10:11 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2024-12-24 19:10:11 [0.13ms] */
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 - 2024-12-24 19:10:12 [1.54ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2024-12-24 19:10:12 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2024-12-24 19:10:12 [0.24ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2024-12-24 19:10:12 [0.28ms] */
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 - 2024-12-24 19:10:12 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2024-12-24 19:10:12 [0.23ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2024-12-24 19:10:12 [0.23ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2024-12-24 19:20:00 [2.36ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2024-12-24 19:20:00 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2024-12-24 19:20:00 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2024-12-24 19:20:00 [0.3ms] */
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 - 2024-12-24 19:20:00 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4b77f28ca0d5261c9f15203d21d4f482ab5a48833d13bafae7a93755bd00280a28fc793d6e77ecce' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2024-12-24 19:20:00 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2024-12-24 19:20:00 [0.22ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2024-12-24 19:20:00 [0.15ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99375, 99378, 99376, 99380, 99377, 99382, 99379, 99383, 99381, 99385, 99386, 99384) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2024-12-24 19:20:00 [0.15ms] */
select `parent_id` from `transaction` where `id` in (102788, 102789, 102790, 102791, 102792, 102793, 102794, 102795, 102796, 102797, 102798, 102799) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2024-12-24 19:20:00 [0.12ms] */
select `id` from `transaction` where `parent_id` in (102800) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2024-12-24 19:20:00 [0.15ms] */
select * from `transaction` where `id` in (102800) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2024-12-24 19:20:00 [0.13ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99375, 99378, 99376, 99380, 99377, 99382, 99379, 99383, 99381, 99385, 99386, 99384) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2024-12-24 19:20:00 [0.15ms] */
select * from `invoice` where `transaction_id` = 102788 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2024-12-24 19:20:00 [0.17ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102372 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 - 2024-12-24 19:20:00 [0.15ms] */
select * from `invoice` where `transaction_id` = 102789 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2024-12-24 19:20:00 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102373 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 - 2024-12-24 19:20:00 [0.14ms] */
select * from `invoice` where `transaction_id` = 102790 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2024-12-24 19:20:00 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102374 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2024-12-24 19:20:00 [0.14ms] */
select * from `invoice` where `transaction_id` = 102791 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2024-12-24 19:20:00 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102375 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 21 - 2024-12-24 19:20:00 [0.14ms] */
select * from `invoice` where `transaction_id` = 102792 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2024-12-24 19:20:00 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102376 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 23 - 2024-12-24 19:20:00 [0.14ms] */
select * from `invoice` where `transaction_id` = 102793 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2024-12-24 19:20:00 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102377 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 25 - 2024-12-24 19:20:00 [0.14ms] */
select * from `invoice` where `transaction_id` = 102794 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2024-12-24 19:20:00 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102378 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 27 - 2024-12-24 19:20:00 [0.14ms] */
select * from `invoice` where `transaction_id` = 102795 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2024-12-24 19:20:00 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102379 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 29 - 2024-12-24 19:20:00 [0.14ms] */
select * from `invoice` where `transaction_id` = 102796 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2024-12-24 19:20:00 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102380 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 31 - 2024-12-24 19:20:00 [0.14ms] */
select * from `invoice` where `transaction_id` = 102797 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2024-12-24 19:20:00 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102381 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 33 - 2024-12-24 19:20:00 [0.16ms] */
select * from `invoice` where `transaction_id` = 102798 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2024-12-24 19:20:00 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102382 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 35 - 2024-12-24 19:20:00 [0.14ms] */
select * from `invoice` where `transaction_id` = 102799 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2024-12-24 19:20:00 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102383 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 37 - 2024-12-24 19:20:00 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 4 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2024-12-24 19:20:00 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
