select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 117 - 2025-01-02 08:55:01 [0.16ms] */
select * from `model` where `model`.`id` = 1 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 118 - 2025-01-02 08:55:01 [0.15ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 119 - 2025-01-02 08:55:01 [0.15ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 1 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 120 - 2025-01-02 08:55:01 [0.46ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`vehicle_id` = 14 and date(`term`.`first_date_of_quarter`) <= '2025-01-02' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/r/report/expired-tax
   Query 121 - 2025-01-02 08:55:01 [0.17ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_methods
   Query 1 - 2025-01-02 08:57:17 [1.94ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_methods
   Query 2 - 2025-01-02 08:57:17 [0.2ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_methods
   Query 3 - 2025-01-02 08:57:17 [0.37ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_methods
   Query 4 - 2025-01-02 08:57:17 [0.63ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_methods
   Query 5 - 2025-01-02 08:57:17 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_methods
   Query 6 - 2025-01-02 08:57:17 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_methods
   Query 7 - 2025-01-02 08:57:17 [0.42ms] */
select `provider_id` from `payment_configurations` where `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_methods
   Query 8 - 2025-01-02 08:57:17 [0.41ms] */
select * from `payment_method` where `id` in (2, 3, 4, 5, 6, 1) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 1 - 2025-01-02 08:59:24 [1.64ms] */
select * from `users` where `id` = 109 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 2 - 2025-01-02 08:59:24 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 3 - 2025-01-02 08:59:24 [0.31ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 4 - 2025-01-02 08:59:24 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 5 - 2025-01-02 08:59:24 [39.41ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-01-02 08:59:24 [17.14ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-01-02' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 7 - 2025-01-02 08:59:25 [95.16ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 8 - 2025-01-02 08:59:25 [34.51ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-01-02' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 9 - 2025-01-02 08:59:25 [220.63ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `transaction`.`status` = 'END' and `payment_date` > '2025-01-01' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 10 - 2025-01-02 08:59:25 [19.52ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `transaction`.`status` = 'END' and `payment_date` > '2025-01-01' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 1 - 2025-01-02 08:59:25 [21.55ms] */
select * from `users` where `id` = 109 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 2 - 2025-01-02 08:59:25 [4.1ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 3 - 2025-01-02 08:59:25 [0.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 4 - 2025-01-02 08:59:25 [0.94ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 5 - 2025-01-02 08:59:25 [0.17ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-01-02 08:59:25 [0.11ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-01-02' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 7 - 2025-01-02 08:59:25 [0.11ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 8 - 2025-01-02 08:59:25 [0.1ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-01-02' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 9 - 2025-01-02 08:59:25 [0.21ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `transaction`.`status` = 'END' and `payment_date` > '2025-01-01' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 10 - 2025-01-02 08:59:25 [0.14ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `transaction`.`status` = 'END' and `payment_date` > '2025-01-01' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 11 - 2025-01-02 08:59:25 [235.21ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-01-02' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 12 - 2025-01-02 08:59:25 [40.26ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-01-02' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 13 - 2025-01-02 08:59:25 [0.38ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 14 - 2025-01-02 08:59:25 [0.24ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 11 - 2025-01-02 08:59:25 [191.65ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-01-02' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 12 - 2025-01-02 08:59:25 [0.24ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-01-02' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 13 - 2025-01-02 08:59:25 [0.2ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 14 - 2025-01-02 08:59:25 [0.17ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 08:59:28 [2.12ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 08:59:28 [0.51ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 08:59:28 [4.43ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 08:59:28 [3.7ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-02 08:59:28 [0.2ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 08:59:28 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 08:59:28 [4.12ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 08:59:28 [0.73ms] */
select `transaction_id` from `vehicle_tax` where `id` in (722, 723) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 08:59:28 [0.79ms] */
select `parent_id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 08:59:28 [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 - 2025-01-02 08:59:28 [3.64ms] */
select * from `vehicle` where `vehicle`.`id` = 83481 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 08:59:28 [0.38ms] */
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 13 - 2025-01-02 08:59:28 [0.3ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 83481 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 08:59:28 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 83481 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 15 - 2025-01-02 08:59:28 [0.26ms] */
select * from `party` where `party`.`id` = 50340 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 16 - 2025-01-02 08:59:28 [0.22ms] */
select * from `vehicle` where `vehicle`.`id` = 83481 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 17 - 2025-01-02 08:59:28 [0.31ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-01-02 08:59:28 [0.31ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-01-02 08:59:28 [7.12ms] */
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 (50340, 2, 83481, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2025-01-02 08:59:28', '2025-01-02 08:59:28');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-01-02 08:59:28 [2.11ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105117, 'INITIATED', '2025-01-02 08:59:28', 5, 5, 5, 5, '2025-01-02 08:59:28', '2025-01-02 08:59:28');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-01-02 08:59:28 [5.12ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 15363, `transaction`.`updated_at` = '2025-01-02 08:59:28' where `id` = 105117;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-02 08:59:28 [3.06ms] */
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 (722, 723) 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 23 - 2025-01-02 08:59:28 [0.79ms] */
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 (722, 723) 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 24 - 2025-01-02 08:59:28 [3.47ms] */
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 (105117, 50340, '2025-01-02 08:59:28', '2025-01-02 08:59:28', 0, 0, 0, 0, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-01-02 08:59:28', '2025-01-02 08:59:28');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-02 08:59:28 [1.05ms] */
select * from `invoice` where `id` = 104677 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-01-02 08:59:28 [5.35ms] */
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":105117,"party_id":50340,"invoice_amount":"0.00","invoice_date":"2025-01-02 08:59:28","due_date":"2025-01-02 08:59:28","outstanding_balance":"0.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"0.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', 104677, 'Modules\Transaction\Entities\Invoice', 'created', '2025-01-02 08:59:28', '2025-01-02 08:59:28');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-01-02 08:59:28 [0.86ms] */
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 (722, 723) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-02 08:59:28 [0.57ms] */
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', 0, 0, 0, 104677, 5, 5, '2025-01-02 08:59:28', '2025-01-02 08:59:28');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-01-02 08:59:28 [0.18ms] */
select * from `invoice_item` where `id` = 204592 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-01-02 08:59:28 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Tax Fees","unit_price":"0.00","quantity":0,"total_price":"0.00","invoice_id":104677}}', 5, 'App\Models\User', 204592, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-01-02 08:59:28', '2025-01-02 08:59:28');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-02 08:59:28 [0.19ms] */
update `invoice` set `invoice_number` = 'INV-966-104677773', `invoice`.`updated_at` = '2025-01-02 08:59:28' where `id` = 104677;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-01-02 08:59:28 [0.2ms] */
select * from `invoice` where `id` = 104677 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-01-02 08:59:28 [0.54ms] */
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-966-104677773"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 104677, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 08:59:28', '2025-01-02 08:59:28');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-01-02 08:59:28 [0.53ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 722 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-02 08:59: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 - 2025-01-02 08:59:35 [0.51ms] */
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 - 2025-01-02 08:59:35 [0.45ms] */
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 - 2025-01-02 08:59:35 [11.13ms] */
update `userprofiles` set `login_count` = 742, `last_login` = '2025-01-02 08:59:35', `userprofiles`.`updated_at` = '2025-01-02 08:59:35' where `id` = 5;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-02 08:59:35 [4.73ms] */
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 - 2025-01-02 08:59:35 [3.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/login
   Query 7 - 2025-01-02 08:59:35 [2.33ms] */
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 - 2025-01-02 08:59:35 [0.41ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-02 08:59:35 [0.29ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-01-02 08:59:35 [0.41ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-02 08:59:35 [0.35ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-02 08:59:35 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-02 08:59:35 [3.11ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('77e5379b544cd129fa6a8754faa6c5d130d45fc4be06369e80da2422eb4a21cf64bd84d7a24f2308', 5, 3, '[]', 0, '2025-01-02 08:59:35', '2025-01-02 08:59:35', '2026-01-02 08:59:35');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-02 08:59:35 [0.48ms] */
select * from `oauth_access_tokens` where `id` = '77e5379b544cd129fa6a8754faa6c5d130d45fc4be06369e80da2422eb4a21cf64bd84d7a24f2308' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-02 08:59:35 [11.85ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '77e5379b544cd129fa6a8754faa6c5d130d45fc4be06369e80da2422eb4a21cf64bd84d7a24f2308';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 08:59:41 [1.77ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 08:59:41 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 08:59:41 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 08:59:41 [0.18ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-02 08:59:41 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 08:59:41 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 08:59:41 [0.57ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 08:59:41 [0.6ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99455, 99456) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 08:59:41 [0.43ms] */
select `parent_id` from `transaction` where `id` in (103112, 103113) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 08:59:41 [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 - 2025-01-02 08:59:41 [0.2ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 08:59:41 [0.23ms] */
select * from `transaction` where `id` in (103112, 103113) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 08:59:41 [0.56ms] */
select * from `invoice` where `invoice`.`id` = 102674 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 08:59:41 [19.06ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-01-02 08:59:41' where `id` = 102674;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 08:59:41 [0.52ms] */
select * from `invoice` where `id` = 102674 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-01-02 08:59:41 [4.9ms] */
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', 102674, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-01-02 08:59:41 [0.84ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-01-02 08:59:41 [1.34ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-01-02 08:59:41 [5.53ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-01-02 08:59:41' where `id` = 103112;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-01-02 08:59:41 [7.84ms] */
select * from `invoice` where `invoice`.`id` = 102675 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 - 2025-01-02 08:59:41 [3.54ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-01-02 08:59:41' where `id` = 102675;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-02 08:59:41 [0.4ms] */
select * from `invoice` where `id` = 102675 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-01-02 08:59:41 [3.09ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 102675, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-01-02 08:59:41 [0.14ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-02 08:59:41 [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 26 - 2025-01-02 08:59:41 [2.77ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-01-02 08:59:41' where `id` = 103113;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-01-02 08:59:41 [2.91ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-01-02 08:59:41' where `id` in (99455, 99456) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-02 08:59:41 [1.11ms] */
select * from `vehicle` where `vehicle`.`id` = 90025 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-01-02 08:59:41 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-01-02 08:59:41 [0.85ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 90025 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-02 08:59:41 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 90025 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 - 2025-01-02 08:59:41 [0.66ms] */
select * from `party` where `party`.`id` = 12904 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 - 2025-01-02 08:59:41 [0.29ms] */
select * from `vehicle` where `vehicle`.`id` = 90025 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 - 2025-01-02 08:59:41 [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 35 - 2025-01-02 08:59:41 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-01-02 08:59:41 [1.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 (12904, 2, 90025, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-01-02 08:59:41 [0.82ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105118, 'INITIATED', '2025-01-02 08:59:41', 5, 5, 5, 5, '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-01-02 08:59:41 [2.13ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 98832, `transaction`.`updated_at` = '2025-01-02 08:59:41' where `id` = 105118;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-01-02 08:59:41 [0.28ms] */
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 (99455, 99456) 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 - 2025-01-02 08:59:41 [0.21ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (99455, 99456) 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 - 2025-01-02 08:59:41 [1.2ms] */
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 (105118, 12904, '2025-01-02 08:59:41', '2025-01-02 08:59:41', 62.00, 0, 62.00, 62.00, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-01-02 08:59:41 [0.2ms] */
select * from `invoice` where `id` = 104678 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-01-02 08:59:41 [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":105118,"party_id":12904,"invoice_amount":"62.00","invoice_date":"2025-01-02 08:59:41","due_date":"2025-01-02 08:59:41","outstanding_balance":"62.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"62.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', 104678, 'Modules\Transaction\Entities\Invoice', 'created', '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-01-02 08:59:41 [0.27ms] */
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 (99455, 99456) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-01-02 08:59:41 [0.71ms] */
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, 62, 62, 104678, 5, 5, '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-01-02 08:59:41 [0.17ms] */
select * from `invoice_item` where `id` = 204593 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-01-02 08:59:41 [0.17ms] */
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":"62.00","quantity":2,"total_price":"62.00","invoice_id":104678}}', 5, 'App\Models\User', 204593, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-01-02 08:59:41 [0.16ms] */
update `invoice` set `invoice_number` = 'INV-424-104678348', `invoice`.`updated_at` = '2025-01-02 08:59:41' where `id` = 104678;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-01-02 08:59:41 [0.2ms] */
select * from `invoice` where `id` = 104678 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-01-02 08:59:41 [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-424-104678348"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 104678, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-01-02 08:59:41 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99455 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-01-02 08:59:41 [4.67ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-02 08:59:41' where `id` = 99455;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-01-02 08:59:41 [0.18ms] */
select * from `vehicle_tax` where `id` = 99455 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-01-02 08:59:41 [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', 99455, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-01-02 08:59:41 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 103112 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 - 2025-01-02 08:59:41 [5.06ms] */
update `transaction` set `deliver_district_id` = null, `parent_id` = 105118, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-02 08:59:41' where `id` = 103112;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-01-02 08:59:41 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 102674 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-01-02 08:59:41 [6.88ms] */
update `invoice` set `parent_id` = 104678, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-02 08:59:41' where `id` = 102674;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-01-02 08:59:41 [0.2ms] */
select * from `invoice` where `id` = 102674 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-01-02 08:59:41 [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":104678,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 102674, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-01-02 08:59:41 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 103112 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-01-02 08:59:41 [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 - 2025-01-02 08:59:41 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-01-02 08:59:41 [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 65 - 2025-01-02 08:59:41 [0.39ms] */
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 - 2025-01-02 08:59:41 [0.36ms] */
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 - 2025-01-02 08:59:41 [0.2ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (103112, 'APPROVED', '2025-01-02 08:59:41', 5, 5, null, 5, 5, '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-01-02 08:59:41 [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 - 2025-01-02 08:59:41 [0.44ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-02 08:59:41' where `id` = 103112;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-01-02 08:59:41 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-01-02 08:59:41 [0.18ms] */
select * from `invoice` where `invoice`.`id` = 102674 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-01-02 08:59:41 [0.17ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99456 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-01-02 08:59:41 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-01-02 08:59:41' where `id` = 99456;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-01-02 08:59:41 [0.16ms] */
select * from `vehicle_tax` where `id` = 99456 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-01-02 08:59:41 [1.58ms] */
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', 99456, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2025-01-02 08:59:41 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 103113 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 - 2025-01-02 08:59:41 [0.75ms] */
update `transaction` set `deliver_district_id` = null, `parent_id` = 105118, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-02 08:59:41' where `id` = 103113;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2025-01-02 08:59:41 [0.18ms] */
select * from `invoice` where `invoice`.`id` = 102675 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-01-02 08:59:41 [0.34ms] */
update `invoice` set `parent_id` = 104678, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-02 08:59:41' where `id` = 102675;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2025-01-02 08:59:41 [0.18ms] */
select * from `invoice` where `id` = 102675 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-01-02 08:59:41 [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":104678,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 102675, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-01-02 08:59:41 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 103113 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 83 - 2025-01-02 08:59:41 [7.66ms] */
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 - 2025-01-02 08:59:41 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 85 - 2025-01-02 08:59:41 [0.16ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 86 - 2025-01-02 08:59:41 [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 87 - 2025-01-02 08:59:41 [0.38ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (103113, 'APPROVED', '2025-01-02 08:59:41', 5, 5, null, 5, 5, '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2025-01-02 08:59:41 [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 89 - 2025-01-02 08:59:41 [0.26ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-02 08:59:41' where `id` = 103113;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 90 - 2025-01-02 08:59:41 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 91 - 2025-01-02 08:59:41 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 102675 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 92 - 2025-01-02 08:59:41 [0.17ms] */
update `transaction` set `invoice_id` = 104678, `transaction`.`updated_at` = '2025-01-02 08:59:41' where `id` = 105118;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 93 - 2025-01-02 08:59:41 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 105118 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 94 - 2025-01-02 08:59:41 [0.28ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 95 - 2025-01-02 08:59:41 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 96 - 2025-01-02 08:59:41 [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 - 2025-01-02 08:59:41 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105118, 'APPROVED', '2025-01-02 08:59:41', 5, 5, null, 5, 5, '2025-01-02 08:59:41', '2025-01-02 08:59:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2025-01-02 08:59:41 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 99 - 2025-01-02 08:59:41 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-02 08:59:41' where `id` = 105118;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 100 - 2025-01-02 08:59:41 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 101 - 2025-01-02 08:59:41 [0.26ms] */
select * from `invoice` where `invoice`.`id` = 104678 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 102 - 2025-01-02 08:59:41 [0.29ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99455, 99456) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 103 - 2025-01-02 08:59:41 [0.58ms] */
select * from `invoice` where `transaction_id` = 103112 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 104 - 2025-01-02 08:59:41 [0.46ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102674 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 105 - 2025-01-02 08:59:41 [0.24ms] */
select * from `invoice` where `transaction_id` = 103113 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 106 - 2025-01-02 08:59:41 [0.22ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102675 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 107 - 2025-01-02 08:59:41 [0.78ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 108 - 2025-01-02 08:59:41 [0.24ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 08:59:42 [2.41ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 08:59:42 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 08:59:42 [0.25ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 08:59:42 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-02 08:59:42 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 08:59:42 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 08:59:42 [5.56ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 08:59:48 [1.46ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 08:59:48 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 08:59:48 [0.12ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 08:59:48 [0.15ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-02 08:59:48 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 08:59:48 [0.11ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 08:59:48 [0.55ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 08:59:48 [0.27ms] */
select `transaction_id` from `vehicle_tax` where `id` in (722, 723) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 08:59:48 [0.15ms] */
select `parent_id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 08:59:48 [0.17ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 08:59:48 [0.54ms] */
select * from `vehicle` where `vehicle`.`id` = 83481 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 08:59:48 [0.37ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 08:59:48 [0.93ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 83481 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 08:59:48 [0.22ms] */
select * from `party_vehicle` where `vehicle_id` = 83481 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 15 - 2025-01-02 08:59:48 [0.26ms] */
select * from `party` where `party`.`id` = 50340 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 16 - 2025-01-02 08:59:48 [0.19ms] */
select * from `vehicle` where `vehicle`.`id` = 83481 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 17 - 2025-01-02 08:59:48 [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 - 2025-01-02 08:59:48 [0.13ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-01-02 08:59:48 [3.22ms] */
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 (50340, 2, 83481, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2025-01-02 08:59:48', '2025-01-02 08:59:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-01-02 08:59:48 [0.76ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105119, 'INITIATED', '2025-01-02 08:59:48', 5, 5, 5, 5, '2025-01-02 08:59:48', '2025-01-02 08:59:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-01-02 08:59:48 [0.26ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 15363, `transaction`.`updated_at` = '2025-01-02 08:59:48' where `id` = 105119;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-02 08:59:48 [0.29ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (722, 723) 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 23 - 2025-01-02 08:59:48 [0.22ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (722, 723) 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 24 - 2025-01-02 08:59:48 [0.97ms] */
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 (105119, 50340, '2025-01-02 08:59:48', '2025-01-02 08:59:48', 0, 0, 0, 0, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-01-02 08:59:48', '2025-01-02 08:59:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-02 08:59:48 [0.23ms] */
select * from `invoice` where `id` = 104679 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-01-02 08:59:48 [1.15ms] */
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":105119,"party_id":50340,"invoice_amount":"0.00","invoice_date":"2025-01-02 08:59:48","due_date":"2025-01-02 08:59:48","outstanding_balance":"0.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"0.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', 104679, 'Modules\Transaction\Entities\Invoice', 'created', '2025-01-02 08:59:48', '2025-01-02 08:59:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-01-02 08:59:48 [0.28ms] */
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 (722, 723) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-02 08:59:48 [0.83ms] */
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', 0, 0, 0, 104679, 5, 5, '2025-01-02 08:59:48', '2025-01-02 08:59:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-01-02 08:59:48 [0.2ms] */
select * from `invoice_item` where `id` = 204594 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-01-02 08:59:48 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Tax Fees","unit_price":"0.00","quantity":0,"total_price":"0.00","invoice_id":104679}}', 5, 'App\Models\User', 204594, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-01-02 08:59:48', '2025-01-02 08:59:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-02 08:59:48 [0.18ms] */
update `invoice` set `invoice_number` = 'INV-663-104679725', `invoice`.`updated_at` = '2025-01-02 08:59:48' where `id` = 104679;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-01-02 08:59:48 [0.21ms] */
select * from `invoice` where `id` = 104679 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-01-02 08:59:48 [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":{"invoice_number":"INV-663-104679725"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 104679, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 08:59:48', '2025-01-02 08:59:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-01-02 08:59:48 [0.2ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 722 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 09:03:09 [12.2ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:03:09 [3.06ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:03:09 [0.28ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:03:09 [4.85ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-02 09:03:09 [0.2ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:03:09 [0.12ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:03:09 [1.87ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:03:09 [13.71ms] */
select `transaction_id` from `vehicle_tax` where `id` in (722, 723) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:03:09 [0.34ms] */
select `parent_id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:03:09 [0.2ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:03:09 [1.43ms] */
select * from `vehicle` where `vehicle`.`id` = 83481 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:03:09 [2.65ms] */
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 13 - 2025-01-02 09:03:09 [0.33ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 83481 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:03:09 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 83481 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 15 - 2025-01-02 09:03:09 [0.31ms] */
select * from `party` where `party`.`id` = 50340 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 16 - 2025-01-02 09:03:09 [0.23ms] */
select * from `vehicle` where `vehicle`.`id` = 83481 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 17 - 2025-01-02 09:03:09 [0.26ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-01-02 09:03:09 [0.29ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-01-02 09:03:09 [0.57ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (50340, 2, 83481, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2025-01-02 09:03:09', '2025-01-02 09:03:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-01-02 09:03:09 [0.29ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105120, 'INITIATED', '2025-01-02 09:03:09', 5, 5, 5, 5, '2025-01-02 09:03:09', '2025-01-02 09:03:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-01-02 09:03:09 [0.24ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 15363, `transaction`.`updated_at` = '2025-01-02 09:03:09' where `id` = 105120;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-02 09:03:09 [0.26ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (722, 723) 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 23 - 2025-01-02 09:03:09 [0.22ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (722, 723) 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 24 - 2025-01-02 09:03:09 [0.34ms] */
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 (105120, 50340, '2025-01-02 09:03:09', '2025-01-02 09:03:09', 0, 0, 0, 0, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-01-02 09:03:09', '2025-01-02 09:03:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-02 09:03:09 [0.21ms] */
select * from `invoice` where `id` = 104680 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-01-02 09:03:09 [0.3ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":105120,"party_id":50340,"invoice_amount":"0.00","invoice_date":"2025-01-02 09:03:09","due_date":"2025-01-02 09:03:09","outstanding_balance":"0.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"0.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', 104680, 'Modules\Transaction\Entities\Invoice', 'created', '2025-01-02 09:03:09', '2025-01-02 09:03:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-01-02 09:03:09 [0.26ms] */
select `invoice`.* from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (722, 723) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-02 09:03:09 [0.25ms] */
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', 0, 0, 0, 104680, 5, 5, '2025-01-02 09:03:09', '2025-01-02 09:03:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-01-02 09:03:09 [0.18ms] */
select * from `invoice_item` where `id` = 204595 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-01-02 09:03:09 [0.17ms] */
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":"0.00","quantity":0,"total_price":"0.00","invoice_id":104680}}', 5, 'App\Models\User', 204595, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-01-02 09:03:09', '2025-01-02 09:03:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-02 09:03:09 [0.17ms] */
update `invoice` set `invoice_number` = 'INV-800-104680331', `invoice`.`updated_at` = '2025-01-02 09:03:09' where `id` = 104680;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-01-02 09:03:09 [0.2ms] */
select * from `invoice` where `id` = 104680 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-01-02 09:03:09 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-800-104680331"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 104680, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:03:09', '2025-01-02 09:03:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-01-02 09:03:09 [0.21ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 722 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 09:03:20 [5.5ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:03:20 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:03:20 [0.51ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:03:20 [0.46ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-02 09:03:20 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:03:20 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:03:20 [0.82ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:03:20 [0.25ms] */
select `transaction_id` from `vehicle_tax` where `id` in (722, 723) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:03:20 [0.17ms] */
select `parent_id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:03:20 [1.31ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:03:20 [1.07ms] */
select * from `vehicle` where `vehicle`.`id` = 83481 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:03:20 [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/make_payment
   Query 13 - 2025-01-02 09:03:20 [0.61ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 83481 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:03:20 [0.22ms] */
select * from `party_vehicle` where `vehicle_id` = 83481 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 15 - 2025-01-02 09:03:20 [0.37ms] */
select * from `party` where `party`.`id` = 50340 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 16 - 2025-01-02 09:03:20 [0.23ms] */
select * from `vehicle` where `vehicle`.`id` = 83481 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 17 - 2025-01-02 09:03:20 [0.64ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-01-02 09:03:20 [0.39ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-01-02 09:03:20 [0.89ms] */
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 (50340, 2, 83481, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2025-01-02 09:03:20', '2025-01-02 09:03:20');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-01-02 09:03:20 [0.71ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105121, 'INITIATED', '2025-01-02 09:03:20', 5, 5, 5, 5, '2025-01-02 09:03:20', '2025-01-02 09:03:20');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-01-02 09:03:20 [0.33ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 15363, `transaction`.`updated_at` = '2025-01-02 09:03:20' where `id` = 105121;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-02 09:03:20 [0.27ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (722, 723) 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 23 - 2025-01-02 09:03:20 [0.24ms] */
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 (722, 723) 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 24 - 2025-01-02 09:03:20 [0.47ms] */
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 (105121, 50340, '2025-01-02 09:03:20', '2025-01-02 09:03:20', 0, 0, 0, 0, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-01-02 09:03:20', '2025-01-02 09:03:20');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-02 09:03:20 [0.22ms] */
select * from `invoice` where `id` = 104681 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-01-02 09:03:20 [0.38ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":105121,"party_id":50340,"invoice_amount":"0.00","invoice_date":"2025-01-02 09:03:20","due_date":"2025-01-02 09:03:20","outstanding_balance":"0.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"0.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', 104681, 'Modules\Transaction\Entities\Invoice', 'created', '2025-01-02 09:03:20', '2025-01-02 09:03:20');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-01-02 09:03:20 [0.28ms] */
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 (722, 723) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-02 09:03:20 [0.31ms] */
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', 0, 0, 0, 104681, 5, 5, '2025-01-02 09:03:20', '2025-01-02 09:03:20');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-01-02 09:03:20 [0.17ms] */
select * from `invoice_item` where `id` = 204596 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-01-02 09:03:20 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Tax Fees","unit_price":"0.00","quantity":0,"total_price":"0.00","invoice_id":104681}}', 5, 'App\Models\User', 204596, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-01-02 09:03:20', '2025-01-02 09:03:20');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-02 09:03:20 [0.21ms] */
update `invoice` set `invoice_number` = 'INV-511-104681446', `invoice`.`updated_at` = '2025-01-02 09:03:20' where `id` = 104681;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-01-02 09:03:20 [0.2ms] */
select * from `invoice` where `id` = 104681 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-01-02 09:03:20 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-511-104681446"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 104681, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:03:20', '2025-01-02 09:03:20');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-01-02 09:03:20 [0.16ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 722 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-02 09:03:47 [1.8ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-02 09:03:47 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-02 09:03:47 [0.36ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-02 09:03:47 [0.38ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-02 09:03:47 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-02 09:03:47 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-02 09:03:47 [6.72ms] */
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` = 'Rta51' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-01-02 09:03:48 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-01-02 09:03:48 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-01-02 09:03:48 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-01-02 09:03:48 [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 - 2025-01-02 09:03:48 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-01-02 09:03:48 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-01-02 09:03:48 [0.31ms] */
select * from `vehicle` where `vehicle`.`id` = 90025 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-01-02 09:03:48 [0.21ms] */
select * from `vehicle` where `id` = 90025 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-01-02 09:03:48 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 90025 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-01-02 09:03:48 [3.95ms] */
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` = 90025 and `vehicle_tax`.`deleted_at` is null and `transaction`.`deleted_at` is null and `invoice`.`deleted_at` is null order by `term`.`year` asc, `term`.`quarter` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-01-02 09:03:49 [1.79ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-01-02 09:03:49 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-01-02 09:03:49 [0.18ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-01-02 09:03:49 [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 - 2025-01-02 09:03:49 [0.2ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-01-02 09:03:49 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-01-02 09:03:49 [1.54ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 09:03:49 [1.25ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:03:49 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:03:49 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:03:49 [0.18ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-02 09:03:49 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:03:49 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:03:49 [0.28ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 09:05:25 [2.3ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:05:25 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:05:25 [0.53ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:05:25 [0.72ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-02 09:05:25 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:05:25 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:05:25 [0.69ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:05:25 [0.73ms] */
select `transaction_id` from `vehicle_tax` where `id` in (96338, 96339) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:05:25 [0.51ms] */
select `parent_id` from `transaction` where `id` in (98118, 98119) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:05:25 [89.75ms] */
select `id` from `transaction` where `parent_id` in (102773) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:05:25 [0.47ms] */
select * from `transaction` where `id` in (102773) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:05:25 [0.52ms] */
select * from `invoice` where `invoice`.`id` = 102357 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:05:25 [6.64ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2025-01-02 09:05:25' where `id` = 102357;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:05:25 [0.53ms] */
select * from `invoice` where `id` = 102357 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:05:25 [3.76ms] */
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', 102357, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:05:25', '2025-01-02 09:05:25');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-01-02 09:05:25 [3.72ms] */
update `invoice` set `deleted_at` = '2025-01-02 09:05:25', `invoice`.`updated_at` = '2025-01-02 09:05:25' where `id` = 102357;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-01-02 09:05:25 [0.54ms] */
select * from `invoice` where `id` = 102357 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-01-02 09:05:25 [3.03ms] */
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":102773,"party_id":27049,"invoice_amount":"304.00","invoice_date":"2024-12-13 15:23:56","due_date":"2024-12-13 15:23:56","outstanding_balance":"0.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"304.00","status":"PAID","siinpay_invoice_number":null,"invoice_number":"INV-935-102357386","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 102357, 'Modules\Transaction\Entities\Invoice', 'deleted', '2025-01-02 09:05:25', '2025-01-02 09:05:25');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-01-02 09:05:25 [3.52ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2025-01-02 09:05:25' where `id` = 102773;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-01-02 09:05:25 [3.14ms] */
update `transaction` set `deleted_at` = '2025-01-02 09:05:25', `transaction`.`updated_at` = '2025-01-02 09:05:25' where `id` = 102773;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-01-02 09:05:25 [0.65ms] */
select * from `transaction` where `id` in (98118, 98119) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-02 09:05:25 [0.57ms] */
select * from `invoice` where `invoice`.`id` = 97188 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-01-02 09:05:25 [3.19ms] */
update `invoice` set `status` = 'OPEN', `parent_id` = null, `grouped` = 'N', `invoice`.`updated_at` = '2025-01-02 09:05:25' where `id` = 97188;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-01-02 09:05:25 [0.53ms] */
select * from `invoice` where `id` = 97188 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-02 09:05:25 [2.96ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"status":"OPEN","parent_id":null,"grouped":"N"},"old":{"status":"PAID","parent_id":102357,"grouped":"Y"}}', 5, 'App\Models\User', 97188, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:05:25', '2025-01-02 09:05:25');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-01-02 09:05:25 [0.84ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-01-02 09:05:25 [0.74ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-02 09:05:25 [3.21ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `transaction`.`updated_at` = '2025-01-02 09:05:25' where `id` = 98118;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-01-02 09:05:25 [0.54ms] */
select * from `invoice` where `invoice`.`id` = 97189 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-01-02 09:05:25 [2.94ms] */
update `invoice` set `status` = 'OPEN', `parent_id` = null, `grouped` = 'N', `invoice`.`updated_at` = '2025-01-02 09:05:25' where `id` = 97189;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-02 09:05:25 [0.5ms] */
select * from `invoice` where `id` = 97189 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-01-02 09:05:25 [3ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"status":"OPEN","parent_id":null,"grouped":"N"},"old":{"status":"PAID","parent_id":102357,"grouped":"Y"}}', 5, 'App\Models\User', 97189, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:05:25', '2025-01-02 09:05:25');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-01-02 09:05:25 [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 34 - 2025-01-02 09:05:25 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-01-02 09:05:25 [3.07ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `transaction`.`updated_at` = '2025-01-02 09:05:25' where `id` = 98119;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-01-02 09:05:25 [2.96ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-01-02 09:05:25' where `id` in (96338, 96339) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-01-02 09:05:25 [0.58ms] */
select * from `transaction` where `id` in (102773) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-01-02 09:05:25 [0.51ms] */
select `transaction_id` from `vehicle_tax` where `id` in (96338, 96339) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-01-02 09:05:25 [0.87ms] */
select * from `invoice` where `transaction_id` = 98118 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-01-02 09:05:25 [1.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97188 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-01-02 09:05:25 [0.55ms] */
select * from `invoice` where `transaction_id` = 98119 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-01-02 09:05:25 [0.5ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97189 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 43 - 2025-01-02 09:05:25 [0.75ms] */
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 44 - 2025-01-02 09:05:25 [0.49ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 09:06:04 [1.79ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:06:04 [0.2ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:06:04 [1.79ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:06:04 [0.43ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-02 09:06:04 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:06:04 [0.18ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:06:04 [1.46ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:06:04 [0.83ms] */
select `transaction_id` from `vehicle_tax` where `id` in (96338, 96339) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:06:04 [1.58ms] */
select `parent_id` from `transaction` where `id` in (98118, 98119) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:06:04 [0.23ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:06:04 [0.29ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:06:04 [0.35ms] */
select * from `transaction` where `id` in (98118, 98119) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:06:04 [1.27ms] */
select * from `invoice` where `invoice`.`id` = 97188 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:06:04 [0.95ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:06:04 [0.93ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-01-02 09:06:04 [0.33ms] */
select * from `invoice` where `invoice`.`id` = 97189 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-01-02 09:06:04 [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 18 - 2025-01-02 09:06:04 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-01-02 09:06:04 [4.69ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-01-02 09:06:04' where `id` in (96338, 96339) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-01-02 09:06:04 [1.24ms] */
select * from `vehicle` where `vehicle`.`id` = 1 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-01-02 09:06:04 [0.32ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-02 09:06:04 [1.35ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 1 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-01-02 09:06:04 [0.35ms] */
select * from `party_vehicle` where `vehicle_id` = 1 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-01-02 09:06:04 [1.12ms] */
select * from `party` where `party`.`id` = 27049 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-02 09:06:04 [0.29ms] */
select * from `vehicle` where `vehicle`.`id` = 1 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-01-02 09:06:04 [0.28ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-01-02 09:06:04 [0.29ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-02 09:06:04 [3.1ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (27049, 2, 1, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-01-02 09:06:04 [1.43ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105122, 'INITIATED', '2025-01-02 09:06:04', 5, 5, 5, 5, '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-01-02 09:06:04 [0.5ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 24038, `transaction`.`updated_at` = '2025-01-02 09:06:04' where `id` = 105122;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-02 09:06:04 [0.29ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (96338, 96339) 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 32 - 2025-01-02 09:06:04 [0.24ms] */
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 (96338, 96339) 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 33 - 2025-01-02 09:06:04 [0.64ms] */
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 (105122, 27049, '2025-01-02 09:06:04', '2025-01-02 09:06:04', 0.00, 0, 0.00, 0.00, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-01-02 09:06:04 [0.23ms] */
select * from `invoice` where `id` = 104682 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-01-02 09:06:04 [1.48ms] */
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":105122,"party_id":27049,"invoice_amount":"0.00","invoice_date":"2025-01-02 09:06:04","due_date":"2025-01-02 09:06:04","outstanding_balance":"0.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"0.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', 104682, 'Modules\Transaction\Entities\Invoice', 'created', '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-01-02 09:06:04 [0.39ms] */
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 (96338, 96339) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-01-02 09:06:04 [1.01ms] */
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, 0, 0, 104682, 5, 5, '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-01-02 09:06:04 [0.26ms] */
select * from `invoice_item` where `id` = 204597 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-01-02 09:06:04 [0.24ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Tax Fees","unit_price":"0.00","quantity":2,"total_price":"0.00","invoice_id":104682}}', 5, 'App\Models\User', 204597, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-01-02 09:06:04 [0.23ms] */
update `invoice` set `invoice_number` = 'INV-535-104682543', `invoice`.`updated_at` = '2025-01-02 09:06:04' where `id` = 104682;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-01-02 09:06:04 [0.27ms] */
select * from `invoice` where `id` = 104682 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-01-02 09:06:04 [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":{"invoice_number":"INV-535-104682543"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 104682, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-01-02 09:06:04 [0.26ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 96338 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-01-02 09:06:04 [0.24ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `vehicle_tax`.`updated_at` = '2025-01-02 09:06:04' where `id` = 96338;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-01-02 09:06:04 [0.26ms] */
select * from `vehicle_tax` where `id` = 96338 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-01-02 09:06:04 [0.57ms] */
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', 96338, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-01-02 09:06:04 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 98118 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 48 - 2025-01-02 09:06:04 [5.75ms] */
update `transaction` set `parent_id` = 105122, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-02 09:06:04' where `id` = 98118;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-01-02 09:06:04 [0.41ms] */
select * from `invoice` where `invoice`.`id` = 97188 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 50 - 2025-01-02 09:06:04 [1.47ms] */
update `invoice` set `parent_id` = 104682, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-02 09:06:04' where `id` = 97188;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-01-02 09:06:04 [0.29ms] */
select * from `invoice` where `id` = 97188 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-01-02 09:06:04 [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":{"parent_id":104682,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 97188, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-01-02 09:06:04 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 98118 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-01-02 09:06:04 [0.27ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-01-02 09:06:04 [0.28ms] */
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 56 - 2025-01-02 09:06:04 [0.27ms] */
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 57 - 2025-01-02 09:06:04 [0.55ms] */
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 58 - 2025-01-02 09:06:04 [0.35ms] */
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 59 - 2025-01-02 09:06:04 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (98118, 'APPROVED', '2025-01-02 09:06:04', 5, 5, null, 5, 5, '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-01-02 09:06:04 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-01-02 09:06:04 [0.26ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-02 09:06:04' where `id` = 98118;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-01-02 09:06:04 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-01-02 09:06:04 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 97188 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 64 - 2025-01-02 09:06:04 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 96339 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-01-02 09:06:04 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `vehicle_tax`.`updated_at` = '2025-01-02 09:06:04' where `id` = 96339;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 66 - 2025-01-02 09:06:04 [0.18ms] */
select * from `vehicle_tax` where `id` = 96339 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-01-02 09:06:04 [0.39ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 96339, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-01-02 09:06:04 [0.37ms] */
select * from `transaction` where `transaction`.`id` = 98119 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-01-02 09:06:04 [0.39ms] */
update `transaction` set `parent_id` = 105122, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-02 09:06:04' where `id` = 98119;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-01-02 09:06:04 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 97189 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-01-02 09:06:04 [0.32ms] */
update `invoice` set `parent_id` = 104682, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-02 09:06:04' where `id` = 97189;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-01-02 09:06:04 [0.27ms] */
select * from `invoice` where `id` = 97189 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-01-02 09:06:04 [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":{"parent_id":104682,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 97189, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-01-02 09:06:04 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 98119 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-01-02 09:06:04 [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/make_payment
   Query 76 - 2025-01-02 09:06:04 [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 77 - 2025-01-02 09:06:04 [0.23ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2025-01-02 09:06:04 [0.21ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-01-02 09:06:04 [0.27ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (98119, 'APPROVED', '2025-01-02 09:06:04', 5, 5, null, 5, 5, '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2025-01-02 09:06:04 [0.3ms] */
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 81 - 2025-01-02 09:06:04 [0.36ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-02 09:06:04' where `id` = 98119;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-01-02 09:06:04 [0.22ms] */
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 83 - 2025-01-02 09:06:04 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 97189 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 84 - 2025-01-02 09:06:04 [0.25ms] */
update `transaction` set `invoice_id` = 104682, `transaction`.`updated_at` = '2025-01-02 09:06:04' where `id` = 105122;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 85 - 2025-01-02 09:06:04 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 105122 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 86 - 2025-01-02 09:06:04 [0.22ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2025-01-02 09:06:04 [0.21ms] */
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 88 - 2025-01-02 09:06:04 [0.25ms] */
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 89 - 2025-01-02 09:06:04 [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 (105122, 'APPROVED', '2025-01-02 09:06:04', 5, 5, null, 5, 5, '2025-01-02 09:06:04', '2025-01-02 09:06:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 90 - 2025-01-02 09:06:04 [0.28ms] */
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 91 - 2025-01-02 09:06:04 [0.38ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-02 09:06:04' where `id` = 105122;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 92 - 2025-01-02 09:06:04 [0.25ms] */
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 93 - 2025-01-02 09:06:04 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 104682 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 94 - 2025-01-02 09:06:04 [0.56ms] */
select `transaction_id` from `vehicle_tax` where `id` in (96338, 96339) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 95 - 2025-01-02 09:06:04 [0.62ms] */
select * from `invoice` where `transaction_id` = 98118 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 96 - 2025-01-02 09:06:04 [1.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97188 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 97 - 2025-01-02 09:06:04 [0.6ms] */
select * from `invoice` where `transaction_id` = 98119 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2025-01-02 09:06:04 [0.55ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97189 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 99 - 2025-01-02 09:06:04 [1.95ms] */
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 100 - 2025-01-02 09:06:04 [0.55ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 09:07:04 [2.01ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:07:04 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:07:04 [0.88ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:07:04 [1.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 - 2025-01-02 09:07:04 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:07:04 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:07:04 [0.75ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:07:04 [0.86ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99455) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:07:04 [0.93ms] */
select `parent_id` from `transaction` where `id` in (103112) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:07:04 [91.49ms] */
select `id` from `transaction` where `parent_id` in (105118) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:07:04 [0.72ms] */
select * from `transaction` where `id` in (105118) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:07:04 [1.08ms] */
select * from `invoice` where `invoice`.`id` = 104678 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:07:04 [6.44ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2025-01-02 09:07:04' where `id` = 104678;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:07:04 [0.64ms] */
select * from `invoice` where `id` = 104678 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:07:04 [4.33ms] */
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', 104678, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:07:04', '2025-01-02 09:07:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-01-02 09:07:04 [4.19ms] */
update `invoice` set `deleted_at` = '2025-01-02 09:07:04', `invoice`.`updated_at` = '2025-01-02 09:07:04' where `id` = 104678;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-01-02 09:07:04 [0.6ms] */
select * from `invoice` where `id` = 104678 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-01-02 09:07:04 [3.46ms] */
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":105118,"party_id":12904,"invoice_amount":"62.00","invoice_date":"2025-01-02 08:59:41","due_date":"2025-01-02 08:59:41","outstanding_balance":"62.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"62.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-424-104678348","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 104678, 'Modules\Transaction\Entities\Invoice', 'deleted', '2025-01-02 09:07:04', '2025-01-02 09:07:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-01-02 09:07:04 [3.4ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2025-01-02 09:07:04' where `id` = 105118;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-01-02 09:07:04 [3.09ms] */
update `transaction` set `deleted_at` = '2025-01-02 09:07:04', `transaction`.`updated_at` = '2025-01-02 09:07:04' where `id` = 105118;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-01-02 09:07:04 [0.72ms] */
select * from `transaction` where `id` in (103112) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-02 09:07:04 [4.57ms] */
select * from `invoice` where `invoice`.`id` = 102674 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-01-02 09:07:04 [3.15ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `invoice`.`updated_at` = '2025-01-02 09:07:04' where `id` = 102674;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-01-02 09:07:04 [0.58ms] */
select * from `invoice` where `id` = 102674 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-02 09:07:04 [2.93ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":null,"grouped":"N"},"old":{"parent_id":104678,"grouped":"Y"}}', 5, 'App\Models\User', 102674, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:07:04', '2025-01-02 09:07:04');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-01-02 09:07:04 [0.64ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-01-02 09:07:04 [0.64ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-02 09:07:04 [3.14ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `transaction`.`updated_at` = '2025-01-02 09:07:04' where `id` = 103112;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-01-02 09:07:04 [2.84ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-01-02 09:07:04' where `id` in (99455) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-01-02 09:07:04 [0.5ms] */
select * from `transaction` where `id` in (105118) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-02 09:07:04 [0.37ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99455) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-01-02 09:07:04 [0.51ms] */
select * from `invoice` where `transaction_id` = 103112 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-01-02 09:07:04 [0.56ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102674 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 34 - 2025-01-02 09:07:04 [0.45ms] */
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 35 - 2025-01-02 09:07:04 [0.51ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 09:07:09 [1.52ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:07:09 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:07:09 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:07:09 [0.2ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-02 09:07:09 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:07:09 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:07:09 [0.19ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:07:09 [0.15ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99455) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:07:09 [0.92ms] */
select `parent_id` from `transaction` where `id` in (103112) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:07:09 [0.23ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:07:09 [0.29ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:07:09 [0.3ms] */
select * from `transaction` where `id` in (103112) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:07:09 [1.18ms] */
select * from `invoice` where `invoice`.`id` = 102674 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:07:09 [0.19ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:07:09 [0.17ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-01-02 09:07:10 [19.42ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-01-02 09:07:09' where `id` in (99455) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-01-02 09:07:10 [4.6ms] */
select * from `vehicle` where `vehicle`.`id` = 90025 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-01-02 09:07:10 [0.65ms] */
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 19 - 2025-01-02 09:07:10 [0.93ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 90025 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-01-02 09:07:10 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 90025 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 21 - 2025-01-02 09:07:10 [1.16ms] */
select * from `party` where `party`.`id` = 12904 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 22 - 2025-01-02 09:07:10 [0.28ms] */
select * from `vehicle` where `vehicle`.`id` = 90025 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 23 - 2025-01-02 09:07:10 [1.28ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-01-02 09:07:10 [0.66ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-01-02 09:07:10 [3.22ms] */
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 (12904, 2, 90025, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2025-01-02 09:07:10', '2025-01-02 09:07:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 26 - 2025-01-02 09:07:10 [2.44ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105123, 'INITIATED', '2025-01-02 09:07:10', 5, 5, 5, 5, '2025-01-02 09:07:10', '2025-01-02 09:07:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-01-02 09:07:10 [0.64ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 98832, `transaction`.`updated_at` = '2025-01-02 09:07:10' where `id` = 105123;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-01-02 09:07:10 [0.34ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (99455) 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 29 - 2025-01-02 09:07:10 [0.26ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (99455) 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 30 - 2025-01-02 09:07:10 [0.82ms] */
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 (105123, 12904, '2025-01-02 09:07:10', '2025-01-02 09:07:10', 31.00, 0, 31.00, 31.00, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-01-02 09:07:10', '2025-01-02 09:07:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-01-02 09:07:10 [0.39ms] */
select * from `invoice` where `id` = 104683 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-01-02 09:07:10 [1.43ms] */
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":105123,"party_id":12904,"invoice_amount":"31.00","invoice_date":"2025-01-02 09:07:10","due_date":"2025-01-02 09:07:10","outstanding_balance":"31.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 104683, 'Modules\Transaction\Entities\Invoice', 'created', '2025-01-02 09:07:10', '2025-01-02 09:07:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-01-02 09:07:10 [0.41ms] */
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 (99455) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-01-02 09:07:10 [1.1ms] */
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', 1, 31, 31, 104683, 5, 5, '2025-01-02 09:07:10', '2025-01-02 09:07:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-01-02 09:07:10 [0.25ms] */
select * from `invoice_item` where `id` = 204598 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-01-02 09:07:10 [0.24ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Tax Fees","unit_price":"31.00","quantity":1,"total_price":"31.00","invoice_id":104683}}', 5, 'App\Models\User', 204598, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-01-02 09:07:10', '2025-01-02 09:07:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-01-02 09:07:10 [0.25ms] */
update `invoice` set `invoice_number` = 'INV-644-104683287', `invoice`.`updated_at` = '2025-01-02 09:07:10' where `id` = 104683;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-01-02 09:07:10 [0.28ms] */
select * from `invoice` where `id` = 104683 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-01-02 09:07:10 [0.23ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-644-104683287"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 104683, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:07:10', '2025-01-02 09:07:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-01-02 09:07:10 [0.27ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99455 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-01-02 09:07:10 [0.24ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `vehicle_tax`.`updated_at` = '2025-01-02 09:07:10' where `id` = 99455;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-01-02 09:07:10 [0.24ms] */
select * from `vehicle_tax` where `id` = 99455 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-01-02 09:07:10 [0.28ms] */
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', 99455, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-02 09:07:10', '2025-01-02 09:07:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-01-02 09:07:10 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 103112 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 45 - 2025-01-02 09:07:10 [1.09ms] */
update `transaction` set `parent_id` = 105123, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-01-02 09:07:10' where `id` = 103112;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-01-02 09:07:10 [0.31ms] */
select * from `invoice` where `invoice`.`id` = 102674 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 47 - 2025-01-02 09:07:10 [1.41ms] */
update `invoice` set `parent_id` = 104683, `grouped` = 'Y', `invoice`.`updated_at` = '2025-01-02 09:07:10' where `id` = 102674;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-01-02 09:07:10 [0.27ms] */
select * from `invoice` where `id` = 102674 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-01-02 09:07:10 [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":104683,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 102674, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:07:10', '2025-01-02 09:07:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 50 - 2025-01-02 09:07:10 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 103112 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-01-02 09:07:10 [0.25ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-01-02 09:07:10 [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/make_payment
   Query 53 - 2025-01-02 09:07:10 [0.25ms] */
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 54 - 2025-01-02 09:07:10 [0.56ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-01-02 09:07:10 [0.58ms] */
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 56 - 2025-01-02 09:07:10 [0.3ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (103112, 'APPROVED', '2025-01-02 09:07:10', 5, 5, null, 5, 5, '2025-01-02 09:07:10', '2025-01-02 09:07:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-01-02 09:07:10 [0.31ms] */
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 58 - 2025-01-02 09:07:10 [0.86ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-02 09:07:10' where `id` = 103112;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-01-02 09:07:10 [0.25ms] */
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 60 - 2025-01-02 09:07:10 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 102674 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 61 - 2025-01-02 09:07:10 [0.58ms] */
update `transaction` set `invoice_id` = 104683, `transaction`.`updated_at` = '2025-01-02 09:07:10' where `id` = 105123;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-01-02 09:07:10 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 105123 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-01-02 09:07:10 [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 64 - 2025-01-02 09:07:10 [0.19ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-01-02 09:07:10 [0.19ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 66 - 2025-01-02 09:07:10 [0.59ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (105123, 'APPROVED', '2025-01-02 09:07:10', 5, 5, null, 5, 5, '2025-01-02 09:07:10', '2025-01-02 09:07:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-01-02 09:07:10 [0.26ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-01-02 09:07:10 [0.58ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-01-02 09:07:10' where `id` = 105123;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-01-02 09:07:10 [0.21ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-01-02 09:07:10 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 104683 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-01-02 09:07:10 [0.29ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99455) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-01-02 09:07:10 [0.37ms] */
select * from `invoice` where `transaction_id` = 103112 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-01-02 09:07:10 [0.75ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102674 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 74 - 2025-01-02 09:07:10 [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 75 - 2025-01-02 09:07:10 [0.17ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 09:07:10 [1.4ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:07:10 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:07:10 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:07: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/payment_providers
   Query 5 - 2025-01-02 09:07:10 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4e28a16795df90f57f352bebfd1d298efb3723e44c759e6283191a390a191e51448c8be253c67699' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:07:10 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:07:10 [0.29ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-01-02 09:09:02 [1.58ms] */
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 - 2025-01-02 09:09:02 [0.3ms] */
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 - 2025-01-02 09:09:02 [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 - 2025-01-02 09:09:02 [8.34ms] */
update `userprofiles` set `last_ip` = '27.60.172.251', `login_count` = 743, `last_login` = '2025-01-02 09:09:02', `userprofiles`.`updated_at` = '2025-01-02 09:09:02' where `id` = 5;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-01-02 09:09:02 [0.47ms] */
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 - 2025-01-02 09:09:02 [0.58ms] */
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 - 2025-01-02 09:09:02 [0.54ms] */
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 - 2025-01-02 09:09:02 [0.4ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-01-02 09:09:02 [0.34ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-01-02 09:09:02 [0.41ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-01-02 09:09:02 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-01-02 09:09:02 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-01-02 09:09:02 [3.35ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1', 5, 3, '[]', 0, '2025-01-02 09:09:02', '2025-01-02 09:09:02', '2026-01-02 09:09:02');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-01-02 09:09:02 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-01-02 09:09:02 [4.16ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-02 09:09:15 [3.45ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-02 09:09:15 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-02 09:09:15 [1.07ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-02 09:09:15 [1.47ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-02 09:09:15 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-02 09:09:15 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-02 09:09:15 [8.54ms] */
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` = '14HP55' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-01-02 09:09:16 [1.34ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-01-02 09:09:16 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-01-02 09:09:16 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-01-02 09:09:16 [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 - 2025-01-02 09:09:16 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-01-02 09:09:16 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-01-02 09:09:16 [0.31ms] */
select * from `vehicle` where `vehicle`.`id` = 89937 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-01-02 09:09:16 [0.26ms] */
select * from `vehicle` where `id` = 89937 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-01-02 09:09:16 [0.31ms] */
select * from `party_vehicle` where `vehicle_id` = 89937 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-01-02 09:09:16 [0.7ms] */
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` = 89937 and `vehicle_tax`.`deleted_at` is null and `transaction`.`deleted_at` is null and `invoice`.`deleted_at` is null order by `term`.`year` asc, `term`.`quarter` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-01-02 09:09:17 [2.28ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-01-02 09:09:17 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-01-02 09:09:17 [0.24ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-01-02 09:09:17 [0.36ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-01-02 09:09:17 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-01-02 09:09:17 [0.23ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-01-02 09:09:17 [0.56ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 09:09:17 [1.3ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:09:17 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:09:17 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:09: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 - 2025-01-02 09:09:17 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:09:17 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:09:17 [0.36ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 09:09:20 [2.19ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:09:20 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:09:20 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:09:20 [0.31ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-02 09:09:20 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:09:20 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:09:20 [0.88ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:09:20 [0.69ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:09:20 [0.75ms] */
select `parent_id` from `transaction` where `id` in (102936) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:09:20 [89.92ms] */
select `id` from `transaction` where `parent_id` in (102943) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:09:20 [0.36ms] */
select * from `transaction` where `id` in (102943) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:09:20 [0.15ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:09:20 [0.97ms] */
select * from `invoice` where `transaction_id` = 102936 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:09:20 [0.63ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102505 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:09:20 [0.48ms] */
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 16 - 2025-01-02 09:09:20 [0.18ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 09:09:20 [2.12ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:09:20 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:09:20 [0.24ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:09:20 [0.32ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-02 09:09:20 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:09:20 [0.23ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:09:20 [0.15ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-01-02 09:10:26 [2.35ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-01-02 09:10:26 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-01-02 09:10:26 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-01-02 09:10:26 [0.19ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-01-02 09:10:26 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-01-02 09:10:26 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-01-02 09:10:26 [0.32ms] */
select * from `payment_confirmation` where `gov_fee_tr_id` = 3453344 and `serv_fee_tr_id` = 3453455 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-01-02 09:10:26 [1.08ms] */
select * from `transaction` where `transaction`.`id` = 102741 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-01-02 09:10:26 [0.23ms] */
select * from `invoice_payment` where `invoice_id` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-01-02 09:10:26 [0.47ms] */
select `invoice`.`id` from `invoice` where `transaction_id` = 102741 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-01-02 09:10:26 [0.21ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` where `transaction_id` = 102741 and `invoice`.`invoice_amount` <> 0.00 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-01-02 09:10:26 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 102741 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-01-02 09:10:26 [0.59ms] */
select * from `service_workflow` where `service_workflow`.`id` = 7 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-01-02 09:10:26 [0.57ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 15 - 2025-01-02 09:10:26 [0.21ms] */
select * from `service` where `service`.`id` = 7 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-01-02 09:10:26 [0.63ms] */
select * from `party` where `party`.`id` = 23521 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 1 - 2025-01-02 09:10:33 [1.44ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:10:33 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:10:33 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:10:33 [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 - 2025-01-02 09:10:33 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:10:33 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:10:33 [0.2ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:10:33 [0.15ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:10:33 [0.13ms] */
select `parent_id` from `transaction` where `id` in (102936) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:10:33 [0.12ms] */
select `id` from `transaction` where `parent_id` in (102943) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:10:33 [0.16ms] */
select * from `transaction` where `id` in (102943) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:10:33 [0.12ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:10:33 [0.16ms] */
select * from `invoice` where `transaction_id` = 102936 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:10:33 [0.15ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102505 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:10:33 [0.25ms] */
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 16 - 2025-01-02 09:10:33 [0.26ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 09:10:34 [1.43ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:10:34 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:10:34 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:10:34 [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 - 2025-01-02 09:10:34 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:10:34 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:10:34 [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 - 2025-01-02 09:10:36 [1.51ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:10:36 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:10:36 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:10:36 [0.21ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-02 09:10:36 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:10:36 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:10:36 [0.25ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:10:36 [0.18ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:10:36 [0.16ms] */
select `parent_id` from `transaction` where `id` in (102936) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:10:36 [0.15ms] */
select `id` from `transaction` where `parent_id` in (102943) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:10:36 [0.2ms] */
select * from `transaction` where `id` in (102943) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:10:36 [0.15ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:10:36 [0.21ms] */
select * from `invoice` where `transaction_id` = 102936 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:10:36 [0.19ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102505 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:10:36 [0.18ms] */
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 16 - 2025-01-02 09:10:36 [0.16ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-02 09:10:59 [2.29ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-02 09:10:59 [0.23ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-02 09:10:59 [0.53ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-02 09:10:59 [0.92ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-02 09:10:59 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-02 09:10:59 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-02 09:10:59 [4.68ms] */
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` = 'VC323' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-01-02 09:11:00 [1.85ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-01-02 09:11:00 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-01-02 09:11:00 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-01-02 09:11:00 [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 - 2025-01-02 09:11:00 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-01-02 09:11:00 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-01-02 09:11:00 [0.87ms] */
select * from `vehicle` where `vehicle`.`id` = 24 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-01-02 09:11:00 [0.25ms] */
select * from `vehicle` where `id` = 24 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-01-02 09:11:00 [1ms] */
select * from `party_vehicle` where `vehicle_id` = 24 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-01-02 09:11:00 [4.32ms] */
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` = 24 and `vehicle_tax`.`deleted_at` is null and `transaction`.`deleted_at` is null and `invoice`.`deleted_at` is null order by `term`.`year` asc, `term`.`quarter` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-01-02 09:11:00 [1.87ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-01-02 09:11:00 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-01-02 09:11:00 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-01-02 09:11:00 [0.35ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-01-02 09:11:00 [0.24ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-01-02 09:11:00 [0.23ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-01-02 09:11:00 [1.05ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 09:11:01 [1.99ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:11:01 [0.23ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:11:01 [0.24ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:11:01 [0.29ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-02 09:11:01 [0.24ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:11:01 [0.21ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:11:01 [0.47ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-01-02 09:11:23 [2.44ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-01-02 09:11:23 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-01-02 09:11:23 [0.27ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-01-02 09:11:23 [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 - 2025-01-02 09:11:23 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '28d4849a1ad623778e537852454b551e545d3bf945b646e6e9bacb782fbadbdb3ae63910b64b130e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-01-02 09:11:23 [0.2ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-01-02 09:11:23 [0.44ms] */
select * from `payment_confirmation` where `gov_fee_tr_id` = 3453344 and `serv_fee_tr_id` = 3453455 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-01-02 09:11:23 [0.47ms] */
select * from `transaction` where `transaction`.`id` = 105122 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-01-02 09:11:23 [0.24ms] */
select * from `invoice_payment` where `invoice_id` = 104682 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-01-02 09:11:23 [41.48ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 105122 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-01-02 09:11:23 [23.69ms] */
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` = 105122 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-01-02 09:11:23 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 105122 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-01-02 09:11:23 [0.31ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-01-02 09:11:23 [0.3ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 15 - 2025-01-02 09:11:23 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-01-02 09:11:23 [19.2ms] */
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` = 105122 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 17 - 2025-01-02 09:11:23 [0.38ms] */
select * from `party` where `party`.`id` = 27049 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 18 - 2025-01-02 09:11:23 [0.32ms] */
select * from `invoice` where `invoice`.`id` = 104682 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 19 - 2025-01-02 09:11:23 [0.85ms] */
insert into `Payment` (`payment_date`, `external_payment_reference_no`, `payment_receipt_number`, `payment_method_id`, `payment_amount`, `paid_by`, `paid_by_mobile`, `siinpay_payref_number`, `district_id`, `payment_collected_by`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('2025-01-02 09:11:23', '#67762E0B35ABA', null, 1, 0.00, null, null, null, 37, 5, 5, 5, '2025-01-02 09:11:23', '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-01-02 09:11:23 [0.2ms] */
select * from `Payment` where `id` = 89793 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-01-02 09:11:23 [0.39ms] */
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":"0.00","payment_date":"2025-01-02 09:11:23","external_payment_reference_no":"#67762E0B35ABA","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', 89793, 'Modules\Transaction\Entities\Payment', 'created', '2025-01-02 09:11:23', '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-01-02 09:11:23 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 105122 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-01-02 09:11:23 [0.27ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-01-02 09:11:23 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-01-02 09:11:23 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 97188 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-01-02 09:11:23 [0.33ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-01-02 09:11:23', 97188, 89793, '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-01-02 09:11:23 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 97188 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-01-02 09:11:23 [0.33ms] */
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` = 97188 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 29 - 2025-01-02 09:11:23 [0.43ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97188 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 30 - 2025-01-02 09:11:23 [0.2ms] */
update `invoice` set `invoice_amount` = 38, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 38, `status` = 'PAID', `invoice`.`updated_at` = '2025-01-02 09:11:23' where `id` = 97188;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-01-02 09:11:23 [0.2ms] */
select * from `invoice` where `id` = 97188 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-01-02 09:11:23 [0.23ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"status":"PAID"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 97188, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:11:23', '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-01-02 09:11:23 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 98118 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-01-02 09:11:23 [0.15ms] */
select * from `transaction` where `transaction`.`id` = 98118 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 35 - 2025-01-02 09:11:23 [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 36 - 2025-01-02 09:11:23 [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 37 - 2025-01-02 09:11:23 [0.36ms] */
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 38 - 2025-01-02 09:11:23 [0.38ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (98118, 'PAID', '2025-01-02 09:11:23', 7, 5, null, 5, 5, '2025-01-02 09:11:23', '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 39 - 2025-01-02 09:11:23 [0.3ms] */
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 40 - 2025-01-02 09:11:23 [0.38ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-01-02 09:11:23' where `id` = 98118;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 41 - 2025-01-02 09:11:23 [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/confirm_payment
   Query 42 - 2025-01-02 09:11:23 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 97188 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 43 - 2025-01-02 09:11:23 [0.31ms] */
select * from `vehicle_tax` where `transaction_id` = 98118 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-01-02 09:11:23 [0.16ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-01-02 09:11:23' where `id` = 96338;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-01-02 09:11:23 [0.22ms] */
select * from `vehicle_tax` where `id` = 96338 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-01-02 09:11:23 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 96338, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-02 09:11:23', '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 47 - 2025-01-02 09:11:23 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 97189 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-01-02 09:11:23 [0.16ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-01-02 09:11:23', 97189, 89793, '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-01-02 09:11:23 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 97189 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-01-02 09:11:23 [0.25ms] */
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` = 97189 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-01-02 09:11:23 [0.22ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 97189 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 52 - 2025-01-02 09:11:23 [0.17ms] */
update `invoice` set `invoice_amount` = 38, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 38, `status` = 'PAID', `invoice`.`updated_at` = '2025-01-02 09:11:23' where `id` = 97189;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-01-02 09:11:23 [0.19ms] */
select * from `invoice` where `id` = 97189 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-01-02 09:11:23 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"status":"PAID"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 97189, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:11:23', '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-01-02 09:11:23 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 98119 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-01-02 09:11:23 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 98119 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-01-02 09:11:23 [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 58 - 2025-01-02 09:11:23 [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 59 - 2025-01-02 09:11:23 [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 60 - 2025-01-02 09:11:23 [0.21ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (98119, 'PAID', '2025-01-02 09:11:23', 7, 5, null, 5, 5, '2025-01-02 09:11:23', '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-01-02 09:11:23 [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 62 - 2025-01-02 09:11:23 [0.19ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-01-02 09:11:23' where `id` = 98119;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-01-02 09:11:23 [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 64 - 2025-01-02 09:11:23 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 97189 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 65 - 2025-01-02 09:11:23 [0.19ms] */
select * from `vehicle_tax` where `transaction_id` = 98119 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 66 - 2025-01-02 09:11:23 [0.16ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-01-02 09:11:23' where `id` = 96339;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-01-02 09:11:23 [0.18ms] */
select * from `vehicle_tax` where `id` = 96339 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 68 - 2025-01-02 09:11:23 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 5, 'App\Models\User', 96339, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-01-02 09:11:23', '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 69 - 2025-01-02 09:11:23 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 104682 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 70 - 2025-01-02 09:11:23 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 104682 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 71 - 2025-01-02 09:11:23 [0.15ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-01-02 09:11:23', 104682, 89793, '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 72 - 2025-01-02 09:11:23 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 104682 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 73 - 2025-01-02 09:11:23 [0.24ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 104682 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 74 - 2025-01-02 09:11:23 [0.16ms] */
update `invoice` set `outstanding_balance` = 0, `invoice`.`updated_at` = '2025-01-02 09:11:23' where `id` = 104682;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 75 - 2025-01-02 09:11:23 [0.19ms] */
select * from `invoice` where `id` = 104682 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 76 - 2025-01-02 09:11:23 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 104682, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-01-02 09:11:23', '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 77 - 2025-01-02 09:11:23 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 105122 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 78 - 2025-01-02 09:11:23 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 105122 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 79 - 2025-01-02 09:11:23 [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 80 - 2025-01-02 09:11:23 [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 81 - 2025-01-02 09:11:23 [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 82 - 2025-01-02 09:11:23 [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 (105122, 'PAID', '2025-01-02 09:11:23', 7, 5, null, 5, 5, '2025-01-02 09:11:23', '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 83 - 2025-01-02 09:11:23 [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 84 - 2025-01-02 09:11:23 [0.18ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-01-02 09:11:23' where `id` = 105122;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 85 - 2025-01-02 09:11:23 [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 86 - 2025-01-02 09:11:23 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 104682 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 87 - 2025-01-02 09:11:23 [0.16ms] */
insert into `payment_confirmation` (`payment_id`, `gov_fee_tr_id`, `serv_fee_tr_id`, `text`, `attachment`, `updated_at`, `created_at`) values (89793, 3453344, 3453455, 'test', 'payment_confirmation/Payment-Confirmation-TR105122-INV-104682.png', '2025-01-02 09:11:23', '2025-01-02 09:11:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 09:12:42 [24.89ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:12:42 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:12:42 [0.91ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:12:42 [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 - 2025-01-02 09:12:42 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:12:42 [0.5ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:12:42 [0.78ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:12:42 [1.62ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:12:42 [0.87ms] */
select `parent_id` from `transaction` where `id` in (102936) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:12:42 [217.97ms] */
select `id` from `transaction` where `parent_id` in (102943) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:12:42 [0.35ms] */
select * from `transaction` where `id` in (102943) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:12:42 [0.13ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:12:42 [1ms] */
select * from `invoice` where `transaction_id` = 102936 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:12:42 [1.31ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102505 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:12:42 [0.97ms] */
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 16 - 2025-01-02 09:12:42 [0.41ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 09:12:43 [2.42ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:12:43 [0.45ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:12:43 [0.4ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:12:43 [0.15ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-02 09:12:43 [0.12ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:12:43 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:12:43 [0.66ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 09:13:15 [1.58ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:13:15 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:13:15 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:13:15 [0.19ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-02 09:13:15 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:13:15 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:13:15 [0.19ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:13:15 [0.31ms] */
select `transaction_id` from `vehicle_tax` where `id` in (100386, 100387, 100388, 100389, 100390) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:13:15 [0.29ms] */
select `parent_id` from `transaction` where `id` in (104051, 104052, 104053, 104054, 104055) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:13:15 [118.05ms] */
select `id` from `transaction` where `parent_id` in (105108) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:13:15 [0.48ms] */
select * from `transaction` where `id` in (105108) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:13:15 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (100386, 100387, 100388, 100389, 100390) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:13:15 [0.44ms] */
select * from `invoice` where `transaction_id` = 104051 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:13:15 [0.42ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103613 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:13:15 [0.35ms] */
select * from `invoice` where `transaction_id` = 104052 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-01-02 09:13:15 [0.3ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103614 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-01-02 09:13:15 [0.31ms] */
select * from `invoice` where `transaction_id` = 104053 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-01-02 09:13:15 [0.29ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103615 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-01-02 09:13:15 [0.31ms] */
select * from `invoice` where `transaction_id` = 104054 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-01-02 09:13:15 [0.3ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103616 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 - 2025-01-02 09:13:15 [0.31ms] */
select * from `invoice` where `transaction_id` = 104055 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-01-02 09:13:15 [0.3ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 103617 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 - 2025-01-02 09:13:15 [4.15ms] */
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 24 - 2025-01-02 09:13:15 [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 - 2025-01-02 09:13:16 [1.55ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:13:16 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:13:16 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:13:16 [0.2ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-02 09:13:16 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:13:16 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:13:16 [0.31ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 09:13:25 [1.35ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:13:25 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:13:25 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:13:25 [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 - 2025-01-02 09:13:25 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:13:25 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:13:25 [0.29ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:13:25 [0.25ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:13:25 [0.24ms] */
select `parent_id` from `transaction` where `id` in (102936) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:13:25 [0.19ms] */
select `id` from `transaction` where `parent_id` in (102943) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:13:25 [0.23ms] */
select * from `transaction` where `id` in (102943) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:13:25 [0.18ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:13:25 [0.23ms] */
select * from `invoice` where `transaction_id` = 102936 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:13:25 [0.24ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102505 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:13:25 [0.22ms] */
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 16 - 2025-01-02 09:13:25 [0.36ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 09:13:25 [1.4ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:13:25 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:13:25 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:13:25 [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 - 2025-01-02 09:13:25 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:13:25 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:13:25 [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 - 2025-01-02 09:13:37 [1.49ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:13:37 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:13:37 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:13:37 [0.15ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-02 09:13:37 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:13:37 [0.12ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:13:37 [0.15ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:13:37 [0.13ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:13:37 [0.14ms] */
select `parent_id` from `transaction` where `id` in (102936) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:13:37 [0.11ms] */
select `id` from `transaction` where `parent_id` in (102943) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:13:37 [0.15ms] */
select * from `transaction` where `id` in (102943) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:13:37 [0.16ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:13:37 [0.15ms] */
select * from `invoice` where `transaction_id` = 102936 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:13:37 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102505 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:13:37 [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 16 - 2025-01-02 09:13:37 [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 - 2025-01-02 09:13:37 [1.35ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:13:37 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:13:37 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:13:37 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-02 09:13:37 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:13:37 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:13:37 [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 - 2025-01-02 09:13:40 [1.3ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:13:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:13:40 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:13:40 [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 - 2025-01-02 09:13:40 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:13:40 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:13:40 [0.19ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:13:40 [0.25ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:13:40 [0.26ms] */
select `parent_id` from `transaction` where `id` in (102936) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:13:40 [0.17ms] */
select `id` from `transaction` where `parent_id` in (102943) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:13:40 [0.22ms] */
select * from `transaction` where `id` in (102943) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:13:40 [0.17ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:13:40 [0.21ms] */
select * from `invoice` where `transaction_id` = 102936 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:13:40 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102505 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:13:40 [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 16 - 2025-01-02 09:13:40 [0.19ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 09:13:40 [1.31ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:13:40 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:13:40 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:13:40 [0.2ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-01-02 09:13:40 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:13:40 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:13:40 [0.2ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:13:40 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:13:40 [0.14ms] */
select `parent_id` from `transaction` where `id` in (102936) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:13:40 [0.12ms] */
select `id` from `transaction` where `parent_id` in (102943) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:13:40 [0.17ms] */
select * from `transaction` where `id` in (102943) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:13:40 [0.13ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:13:40 [0.19ms] */
select * from `invoice` where `transaction_id` = 102936 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:13:40 [0.16ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102505 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:13:40 [0.15ms] */
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 16 - 2025-01-02 09:13:40 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 09:13:41 [1.38ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:13:41 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:13:41 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:13:41 [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 - 2025-01-02 09:13:41 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:13:41 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:13:41 [0.16ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 09:13:43 [1.37ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:13:43 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:13:43 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:13:43 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-02 09:13:43 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:13:43 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-01-02 09:13:43 [1.28ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-01-02 09:13:43 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-01-02 09:13:43 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:13:43 [0.16ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-01-02 09:13:43 [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 - 2025-01-02 09:13:43 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-01-02 09:13:43 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-01-02 09:13:43 [0.18ms] */
select * from `payment_configurations` where `provider_id` = 5 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 8 - 2025-01-02 09:13:43 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-01-02 09:13:43 [0.19ms] */
select `parent_id` from `transaction` where `id` in (102936) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-01-02 09:13:43 [0.13ms] */
select `id` from `transaction` where `parent_id` in (102943) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-01-02 09:13:43 [0.16ms] */
select * from `transaction` where `id` in (102943) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-01-02 09:13:43 [0.13ms] */
select `transaction_id` from `vehicle_tax` where `id` in (99400) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-01-02 09:13:43 [0.17ms] */
select * from `invoice` where `transaction_id` = 102936 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-01-02 09:13:43 [0.15ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 102505 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-01-02 09:13:43 [0.15ms] */
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 16 - 2025-01-02 09:13:43 [0.17ms] */
select * from `merchants` where `merchants`.`id` = 2 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 09:13:43 [2.02ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:13:43 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:13:43 [0.26ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:13:43 [0.38ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-02 09:13:43 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:13:43 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:13:43 [0.14ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-02 09:13:54 [1.38ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-02 09:13:54 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-02 09:13:54 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-02 09:13:54 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-01-02 09:13:54 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-02 09:13:54 [0.13ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-02 09:13:54 [2.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` = '14HP55' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-01-02 09:13:55 [1.36ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-01-02 09:13:55 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-01-02 09:13:55 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-01-02 09:13: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 - 2025-01-02 09:13:55 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-01-02 09:13:55 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-01-02 09:13:55 [0.99ms] */
select * from `vehicle` where `vehicle`.`id` = 89937 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-01-02 09:13:55 [0.21ms] */
select * from `vehicle` where `id` = 89937 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-01-02 09:13:55 [0.99ms] */
select * from `party_vehicle` where `vehicle_id` = 89937 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-01-02 09:13:55 [2.86ms] */
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` = 89937 and `vehicle_tax`.`deleted_at` is null and `transaction`.`deleted_at` is null and `invoice`.`deleted_at` is null order by `term`.`year` asc, `term`.`quarter` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-01-02 09:13:56 [1.4ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-01-02 09:13:56 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-01-02 09:13:56 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-01-02 09:13:56 [0.2ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-01-02 09:13:56 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-01-02 09:13:56 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-01-02 09:13:56 [1.07ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 09:13:57 [2.01ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:13:57 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:13:57 [0.25ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:13:57 [0.25ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-02 09:13:57 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '373467b8648ab8e6565eb588db0a240b826592240eb87ee002fad973d1667f10bcdb547afb8970b1' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:13:57 [0.19ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:13:57 [0.22ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-01-02 09:14:04 [1.4ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-01-02 09:14:04 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-01-02 09:14:04 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-01-02 09:14:04 [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 - 2025-01-02 09:14:04 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-01-02 09:14:04 [0.14ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-01-02 09:14:04 [1.72ms] */
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` = 'VC323' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-01-02 09:14:05 [1.25ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-01-02 09:14:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-01-02 09:14:05 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-01-02 09:14:05 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-01-02 09:14:05 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-01-02 09:14:05 [0.15ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-01-02 09:14:05 [0.28ms] */
select * from `vehicle` where `vehicle`.`id` = 24 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-01-02 09:14:05 [0.23ms] */
select * from `vehicle` where `id` = 24 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-01-02 09:14:05 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 24 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 10 - 2025-01-02 09:14:05 [0.88ms] */
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` = 24 and `vehicle_tax`.`deleted_at` is null and `transaction`.`deleted_at` is null and `invoice`.`deleted_at` is null order by `term`.`year` asc, `term`.`quarter` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 1 - 2025-01-02 09:14:05 [1.43ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-01-02 09:14:05 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-01-02 09:14:05 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-01-02 09:14:05 [0.23ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-01-02 09:14:05 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-01-02 09:14:05 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-01-02 09:14:05 [0.26ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-01-02 09:14:06 [1.59ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-01-02 09:14:06 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-01-02 09:14:06 [0.17ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-01-02 09:14:06 [0.21ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-01-02 09:14:06 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'c45a47192979a1f6b04472f6b43d66aab2b9e6046cb7000649b2dba93bb082a5fab5caee18de3cd6' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-01-02 09:14:06 [0.16ms] */
select * from `oauth_clients` where `id` = 3 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-01-02 09:14:06 [0.21ms] */
select * from `payment_method` where `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 1 - 2025-01-02 09:14:21 [1.92ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 2 - 2025-01-02 09:14:21 [0.49ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 3 - 2025-01-02 09:14:21 [0.79ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 4 - 2025-01-02 09:14:21 [0.81ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 5 - 2025-01-02 09:14:21 [1.29ms] */
select * from `classification_type` where `classification_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 6 - 2025-01-02 09:14:21 [0.78ms] */
select * from `sub_category` where `migration_id` is null and `sub_category`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 7 - 2025-01-02 09:14:21 [229.87ms] */
select count(*) as aggregate from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` where `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 8 - 2025-01-02 09:14:22 [422.11ms] */
select `vehicle`.* from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` where `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null and `vehicle`.`deleted_at` is null order by `vehicle`.`updated_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 9 - 2025-01-02 09:14:22 [1.04ms] */
select * from `model` where `model`.`id` in (17, 18, 1633, 1783, 2039, 2155, 2503, 3103) and `model`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 10 - 2025-01-02 09:14:22 [0.62ms] */
select * from `vehicle_type` where `vehicle_type`.`id` in (10, 11, 12, 24, 27, 30, 34) and `vehicle_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 11 - 2025-01-02 09:14:22 [0.4ms] */
select * from `vehicle_color` where `vehicle_color`.`id` in (12, 13, 14, 17, 18, 19, 50) and `vehicle_color`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 12 - 2025-01-02 09:14:22 [0.33ms] */
select * from `fuel_type` where `fuel_type`.`id` in (1, 2, 3) and `fuel_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 13 - 2025-01-02 09:14:22 [0.26ms] */
select * from `sub_category` where `sub_category`.`id` in (4) and `sub_category`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 14 - 2025-01-02 09:14:22 [0.48ms] */
select * from `party_vehicle` where `party_vehicle`.`vehicle_id` in (81, 89949, 89951, 89953, 89954, 89955, 90013, 90015, 90016, 90025) and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 15 - 2025-01-02 09:14:22 [5.18ms] */
select * from `make` where `make`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 16 - 2025-01-02 09:14:22 [0.31ms] */
select * from `model` where `make_id` is null and `model`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 17 - 2025-01-02 09:14:22 [0.34ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 18 - 2025-01-02 09:14:22 [0.3ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 19 - 2025-01-02 09:14:22 [0.19ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 20 - 2025-01-02 09:14:22 [0.27ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 90025 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 21 - 2025-01-02 09:14:22 [0.31ms] */
select * from `party` where `party`.`id` = 12904 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 22 - 2025-01-02 09:14:22 [0.33ms] */
select * from `person` where `person`.`id` = 12904 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 23 - 2025-01-02 09:14:22 [0.14ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 24 - 2025-01-02 09:14:22 [0.14ms] */
select * from `party` where `party`.`id` = 12904 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 25 - 2025-01-02 09:14:22 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 26 - 2025-01-02 09:14:22 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 27 - 2025-01-02 09:14:22 [0.19ms] */
select * from `make` where `make`.`id` = 423 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 28 - 2025-01-02 09:14:22 [1.45ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 89955 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 29 - 2025-01-02 09:14:22 [0.26ms] */
select * from `party` where `party`.`id` = 32286 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 30 - 2025-01-02 09:14:22 [0.33ms] */
select * from `person` where `person`.`id` = 32286 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 31 - 2025-01-02 09:14:22 [0.2ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 32 - 2025-01-02 09:14:22 [0.15ms] */
select * from `party` where `party`.`id` = 32286 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 33 - 2025-01-02 09:14:22 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 34 - 2025-01-02 09:14:22 [0.2ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 35 - 2025-01-02 09:14:22 [0.18ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 36 - 2025-01-02 09:14:22 [0.35ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 81 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 37 - 2025-01-02 09:14:22 [0.28ms] */
select * from `party` where `party`.`id` = 12351 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 38 - 2025-01-02 09:14:22 [0.81ms] */
select * from `person` where `person`.`id` = 12351 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 39 - 2025-01-02 09:14:22 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 40 - 2025-01-02 09:14:22 [0.2ms] */
select * from `party` where `party`.`id` = 12351 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 41 - 2025-01-02 09:14:22 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 42 - 2025-01-02 09:14:22 [0.2ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 43 - 2025-01-02 09:14:22 [0.18ms] */
select * from `make` where `make`.`id` = 751 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 44 - 2025-01-02 09:14:22 [1.06ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 90016 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 45 - 2025-01-02 09:14:22 [0.23ms] */
select * from `party` where `party`.`id` = 9998 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 46 - 2025-01-02 09:14:22 [0.37ms] */
select * from `person` where `person`.`id` = 9998 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 47 - 2025-01-02 09:14:22 [0.72ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 48 - 2025-01-02 09:14:22 [0.21ms] */
select * from `party` where `party`.`id` = 9998 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 49 - 2025-01-02 09:14:22 [0.75ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 50 - 2025-01-02 09:14:22 [1.06ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 51 - 2025-01-02 09:14:22 [0.37ms] */
select * from `make` where `make`.`id` = 891 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 52 - 2025-01-02 09:14:22 [0.42ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 90015 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 53 - 2025-01-02 09:14:22 [0.41ms] */
select * from `party` where `party`.`id` = 23513 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 54 - 2025-01-02 09:14:22 [0.41ms] */
select * from `person` where `person`.`id` = 23513 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 55 - 2025-01-02 09:14:22 [0.21ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 56 - 2025-01-02 09:14:22 [0.24ms] */
select * from `party` where `party`.`id` = 23513 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 57 - 2025-01-02 09:14:22 [0.23ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 58 - 2025-01-02 09:14:22 [0.22ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 59 - 2025-01-02 09:14:22 [0.21ms] */
select * from `make` where `make`.`id` = 1 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 60 - 2025-01-02 09:14:22 [0.25ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 90013 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 61 - 2025-01-02 09:14:22 [0.26ms] */
select * from `party` where `party`.`id` = 10755 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 62 - 2025-01-02 09:14:22 [0.26ms] */
select * from `person` where `person`.`id` = 10755 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 63 - 2025-01-02 09:14:22 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 64 - 2025-01-02 09:14:22 [0.14ms] */
select * from `party` where `party`.`id` = 10755 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 65 - 2025-01-02 09:14:22 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 66 - 2025-01-02 09:14:22 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 67 - 2025-01-02 09:14:22 [0.23ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 89954 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 68 - 2025-01-02 09:14:22 [0.95ms] */
select * from `party` where `party`.`id` = 25313 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 69 - 2025-01-02 09:14:22 [0.27ms] */
select * from `person` where `person`.`id` = 25313 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 70 - 2025-01-02 09:14:22 [0.14ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 71 - 2025-01-02 09:14:22 [0.14ms] */
select * from `party` where `party`.`id` = 25313 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 72 - 2025-01-02 09:14:22 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 73 - 2025-01-02 09:14:22 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 74 - 2025-01-02 09:14:22 [0.2ms] */
select * from `make` where `make`.`id` = 555 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 75 - 2025-01-02 09:14:22 [0.24ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 89953 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 76 - 2025-01-02 09:14:22 [0.23ms] */
select * from `party` where `party`.`id` = 18193 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 77 - 2025-01-02 09:14:22 [0.26ms] */
select * from `person` where `person`.`id` = 18193 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 78 - 2025-01-02 09:14:22 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 79 - 2025-01-02 09:14:22 [0.14ms] */
select * from `party` where `party`.`id` = 18193 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 80 - 2025-01-02 09:14:22 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 81 - 2025-01-02 09:14:22 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 82 - 2025-01-02 09:14:22 [0.29ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 89951 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 83 - 2025-01-02 09:14:22 [0.27ms] */
select * from `party` where `party`.`id` = 6900 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 84 - 2025-01-02 09:14:22 [0.26ms] */
select * from `person` where `person`.`id` = 6900 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 85 - 2025-01-02 09:14:22 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 86 - 2025-01-02 09:14:22 [0.14ms] */
select * from `party` where `party`.`id` = 6900 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 87 - 2025-01-02 09:14:22 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 88 - 2025-01-02 09:14:22 [0.13ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 89 - 2025-01-02 09:14:22 [0.21ms] */
select * from `make` where `make`.`id` = 976 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 90 - 2025-01-02 09:14:22 [0.24ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 89949 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 91 - 2025-01-02 09:14:22 [0.85ms] */
select * from `party` where `party`.`id` = 45768 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 92 - 2025-01-02 09:14:22 [0.27ms] */
select * from `person` where `person`.`id` = 45768 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 93 - 2025-01-02 09:14:22 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle
   Query 94 - 2025-01-02 09:14:22 [0.14ms] */
select * from `party` where `party`.`id` = 45768 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 1 - 2025-01-02 09:14:25 [1.5ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 2 - 2025-01-02 09:14:25 [0.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 3 - 2025-01-02 09:14:25 [0.56ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 4 - 2025-01-02 09:14:25 [0.54ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 5 - 2025-01-02 09:14:25 [0.42ms] */
select * from `classification_type` where `classification_type`.`id` in (1, 2, 3, 4);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 6 - 2025-01-02 09:14:25 [0.82ms] */
select * from `sub_category` where `sub_category`.`id` in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 7 - 2025-01-02 09:14:25 [474.27ms] */
select count(*) as aggregate from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` where (`license_plate` like '%RTA010%' or `vin` like '%RTA010%') and `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 8 - 2025-01-02 09:14:26 [202.1ms] */
select `vehicle`.* from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` where (`license_plate` like '%RTA010%' or `vin` like '%RTA010%') and `party_vehicle`.`is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null and `vehicle`.`deleted_at` is null limit 10 offset 0;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 9 - 2025-01-02 09:14:26 [0.4ms] */
select * from `model` where `model`.`id` in (2039) and `model`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 10 - 2025-01-02 09:14:26 [0.3ms] */
select * from `vehicle_type` where `vehicle_type`.`id` in (34) and `vehicle_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 11 - 2025-01-02 09:14:26 [0.22ms] */
select * from `vehicle_color` where `vehicle_color`.`id` in (18) and `vehicle_color`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 12 - 2025-01-02 09:14:26 [0.24ms] */
select * from `fuel_type` where `fuel_type`.`id` in (2) and `fuel_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 13 - 2025-01-02 09:14:26 [0.12ms] */
select * from `sub_category` where `sub_category`.`id` in (4) and `sub_category`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 14 - 2025-01-02 09:14:26 [0.3ms] */
select * from `party_vehicle` where `party_vehicle`.`vehicle_id` in (89958) and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 15 - 2025-01-02 09:14:26 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 16 - 2025-01-02 09:14:26 [0.16ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 17 - 2025-01-02 09:14:26 [0.15ms] */
select * from `make` where `make`.`id` = 423 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 18 - 2025-01-02 09:14:26 [0.3ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 89958 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 19 - 2025-01-02 09:14:26 [0.4ms] */
select * from `party` where `party`.`id` = 24941 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 20 - 2025-01-02 09:14:26 [0.39ms] */
select * from `person` where `person`.`id` = 24941 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 21 - 2025-01-02 09:14:26 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/vehicle.list-vehicle-component
   Query 22 - 2025-01-02 09:14:26 [3.42ms] */
select * from `party` where `party`.`id` = 24941 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 1 - 2025-01-02 09:14:27 [1.4ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 2 - 2025-01-02 09:14:27 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 3 - 2025-01-02 09:14:27 [0.41ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 4 - 2025-01-02 09:14:27 [0.39ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 5 - 2025-01-02 09:14:27 [0.32ms] */
select * from `vehicle` where `id` = 89958 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 6 - 2025-01-02 09:14:27 [0.35ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 89958 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 7 - 2025-01-02 09:14:27 [0.15ms] */
select * from `vehicle` where `id` = 89958 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 8 - 2025-01-02 09:14:27 [0.16ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 89958 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 9 - 2025-01-02 09:14:27 [1.28ms] */
select * from `make` where `make`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 10 - 2025-01-02 09:14:27 [0.16ms] */
select * from `model` where `make_id` is null and `model`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 11 - 2025-01-02 09:14:27 [0.28ms] */
select * from `model` where `model`.`id` = 2039 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 12 - 2025-01-02 09:14:27 [0.14ms] */
select * from `make` where `make`.`id` = 423 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 13 - 2025-01-02 09:14:27 [0.15ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/89958
   Query 14 - 2025-01-02 09:14:27 [0.27ms] */
