select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 20 - 2025-03-12 09:33:21 [0.32ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 75357 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 21 - 2025-03-12 09:33:21 [0.34ms] */
select * from `party_vehicle` where `vehicle_id` = 75357 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 22 - 2025-03-12 09:33:21 [0.35ms] */
select * from `party` where `party`.`id` = 57646 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 23 - 2025-03-12 09:33:21 [0.47ms] */
select * from `company` where `company`.`id` = 1933 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 24 - 2025-03-12 09:33:21 [0.19ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 25 - 2025-03-12 09:33:21 [0.18ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 26 - 2025-03-12 09:33:21 [0.17ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 27 - 2025-03-12 09:33:21 [0.14ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 28 - 2025-03-12 09:33:21 [0.15ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 24 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 29 - 2025-03-12 09:33:21 [0.82ms] */
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` = 75357 and `term`.`first_date_of_quarter` <= '2025-03-12 09:33:21' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 30 - 2025-03-12 09:33:21 [0.18ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 31 - 2025-03-12 09:33:21 [0.28ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 79966 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 32 - 2025-03-12 09:33:21 [0.31ms] */
select * from `party_vehicle` where `vehicle_id` = 79966 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 33 - 2025-03-12 09:33:21 [0.35ms] */
select * from `party` where `party`.`id` = 51126 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 34 - 2025-03-12 09:33:21 [0.32ms] */
select * from `person` where `person`.`id` = 51126 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 35 - 2025-03-12 09:33:21 [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/service.tax-list-component
   Query 36 - 2025-03-12 09:33:21 [0.16ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 37 - 2025-03-12 09:33:21 [0.45ms] */
select * from `model` where `model`.`id` = 1371 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 38 - 2025-03-12 09:33:21 [0.15ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 39 - 2025-03-12 09:33:21 [0.14ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 40 - 2025-03-12 09:33:21 [0.67ms] */
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` = 79966 and `term`.`first_date_of_quarter` <= '2025-03-12 09:33:21' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 41 - 2025-03-12 09:33:21 [0.19ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 42 - 2025-03-12 09:33:21 [0.15ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 43 - 2025-03-12 09:33:21 [0.28ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 72807 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 44 - 2025-03-12 09:33:21 [0.31ms] */
select * from `party_vehicle` where `vehicle_id` = 72807 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 45 - 2025-03-12 09:33:21 [0.3ms] */
select * from `party` where `party`.`id` = 48377 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 46 - 2025-03-12 09:33:21 [0.37ms] */
select * from `person` where `person`.`id` = 48377 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 47 - 2025-03-12 09:33:21 [0.19ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 48 - 2025-03-12 09:33:21 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 49 - 2025-03-12 09:33:21 [0.17ms] */
select * from `model` where `model`.`id` = 1371 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 50 - 2025-03-12 09:33:21 [0.17ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 51 - 2025-03-12 09:33:21 [0.45ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 20 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 52 - 2025-03-12 09:33:21 [5.27ms] */
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` = 72807 and `term`.`first_date_of_quarter` <= '2025-03-12 09:33:21' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 53 - 2025-03-12 09:33:21 [0.26ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 54 - 2025-03-12 09:33:21 [0.2ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 55 - 2025-03-12 09:33:21 [0.19ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 56 - 2025-03-12 09:33:21 [0.15ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 57 - 2025-03-12 09:33:21 [0.15ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 58 - 2025-03-12 09:33:21 [0.33ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 75113 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 59 - 2025-03-12 09:33:21 [0.41ms] */
select * from `party_vehicle` where `vehicle_id` = 75113 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 60 - 2025-03-12 09:33:21 [0.36ms] */
select * from `party` where `party`.`id` = 49220 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 61 - 2025-03-12 09:33:21 [0.34ms] */
select * from `person` where `person`.`id` = 49220 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 62 - 2025-03-12 09:33:21 [0.19ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 63 - 2025-03-12 09:33:21 [0.17ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 64 - 2025-03-12 09:33:21 [0.16ms] */
select * from `model` where `model`.`id` = 1371 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 65 - 2025-03-12 09:33:21 [0.19ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 66 - 2025-03-12 09:33:21 [0.16ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 24 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 67 - 2025-03-12 09:33:21 [0.75ms] */
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` = 75113 and `term`.`first_date_of_quarter` <= '2025-03-12 09:33:21' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 68 - 2025-03-12 09:33:21 [0.19ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 69 - 2025-03-12 09:33:21 [0.18ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 70 - 2025-03-12 09:33:21 [0.17ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 71 - 2025-03-12 09:33:21 [0.16ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 72 - 2025-03-12 09:33:21 [0.16ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 73 - 2025-03-12 09:33:21 [0.31ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 72561 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 74 - 2025-03-12 09:33:21 [1.02ms] */
select * from `party_vehicle` where `vehicle_id` = 72561 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 75 - 2025-03-12 09:33:21 [0.61ms] */
select * from `party` where `party`.`id` = 45014 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 76 - 2025-03-12 09:33:21 [0.48ms] */
select * from `person` where `person`.`id` = 45014 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 77 - 2025-03-12 09:33:21 [0.48ms] */
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/service.tax-list-component
   Query 78 - 2025-03-12 09:33:21 [0.55ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 79 - 2025-03-12 09:33:21 [0.35ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 80 - 2025-03-12 09:33:21 [2.23ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 81 - 2025-03-12 09:33:21 [0.2ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 25 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 82 - 2025-03-12 09:33:21 [0.83ms] */
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` = 72561 and `term`.`first_date_of_quarter` <= '2025-03-12 09:33:21' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 83 - 2025-03-12 09:33:21 [0.23ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 84 - 2025-03-12 09:33:21 [0.22ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 85 - 2025-03-12 09:33:21 [0.21ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 86 - 2025-03-12 09:33:21 [0.17ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 87 - 2025-03-12 09:33:21 [0.16ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 88 - 2025-03-12 09:33:21 [0.27ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 76658 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 89 - 2025-03-12 09:33:21 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 76658 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 90 - 2025-03-12 09:33:21 [0.26ms] */
select * from `party` where `party`.`id` = 49825 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 91 - 2025-03-12 09:33:21 [0.33ms] */
select * from `person` where `person`.`id` = 49825 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 92 - 2025-03-12 09:33:21 [0.17ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 93 - 2025-03-12 09:33:21 [0.18ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 94 - 2025-03-12 09:33:21 [0.14ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 95 - 2025-03-12 09:33:21 [0.14ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 96 - 2025-03-12 09:33:21 [0.2ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 28 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 97 - 2025-03-12 09:33:21 [0.6ms] */
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` = 76658 and `term`.`first_date_of_quarter` <= '2025-03-12 09:33:21' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 98 - 2025-03-12 09:33:21 [0.12ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 99 - 2025-03-12 09:33:21 [0.18ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 71544 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 100 - 2025-03-12 09:33:21 [0.19ms] */
select * from `party_vehicle` where `vehicle_id` = 71544 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 101 - 2025-03-12 09:33:21 [0.19ms] */
select * from `party` where `party`.`id` = 47909 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 102 - 2025-03-12 09:33:21 [0.23ms] */
select * from `person` where `person`.`id` = 47909 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 103 - 2025-03-12 09:33:21 [0.11ms] */
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/service.tax-list-component
   Query 104 - 2025-03-12 09:33:21 [0.11ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 105 - 2025-03-12 09:33:21 [0.1ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 106 - 2025-03-12 09:33:21 [0.1ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 107 - 2025-03-12 09:33:21 [0.1ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 24 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 108 - 2025-03-12 09:33:21 [0.39ms] */
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` = 71544 and `term`.`first_date_of_quarter` <= '2025-03-12 09:33:21' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 109 - 2025-03-12 09:33:21 [0.12ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 110 - 2025-03-12 09:33:21 [0.1ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 111 - 2025-03-12 09:33:21 [0.12ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 112 - 2025-03-12 09:33:21 [0.12ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 113 - 2025-03-12 09:33:21 [0.15ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 114 - 2025-03-12 09:33:21 [0.25ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 82041 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 115 - 2025-03-12 09:33:21 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 82041 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 116 - 2025-03-12 09:33:21 [0.31ms] */
select * from `party` where `party`.`id` = 29337 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 117 - 2025-03-12 09:33:21 [0.31ms] */
select * from `person` where `person`.`id` = 29337 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 118 - 2025-03-12 09:33:21 [0.14ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 119 - 2025-03-12 09:33:21 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 120 - 2025-03-12 09:33:21 [0.13ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 121 - 2025-03-12 09:33:21 [0.13ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 122 - 2025-03-12 09:33:21 [0.12ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 28 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 123 - 2025-03-12 09:33:21 [0.68ms] */
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` = 82041 and `term`.`first_date_of_quarter` <= '2025-03-12 09:33:21' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 124 - 2025-03-12 09:33:21 [0.15ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 125 - 2025-03-12 09:33:21 [0.15ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 126 - 2025-03-12 09:33:21 [0.12ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 127 - 2025-03-12 09:33:21 [0.12ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 128 - 2025-03-12 09:33:21 [0.26ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 78970 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 129 - 2025-03-12 09:33:21 [0.29ms] */
select * from `party_vehicle` where `vehicle_id` = 78970 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 130 - 2025-03-12 09:33:21 [0.26ms] */
select * from `party` where `party`.`id` = 57756 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 131 - 2025-03-12 09:33:21 [0.3ms] */
select * from `company` where `company`.`id` = 2043 and `company`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 132 - 2025-03-12 09:33:21 [0.17ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 133 - 2025-03-12 09:33:21 [0.15ms] */
select * from `sub_category` where `sub_category`.`id` = 5 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 134 - 2025-03-12 09:33:21 [0.15ms] */
select * from `model` where `model`.`id` = 1353 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 135 - 2025-03-12 09:33:21 [0.1ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 136 - 2025-03-12 09:33:21 [0.1ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 137 - 2025-03-12 09:33:21 [0.42ms] */
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` = 78970 and `term`.`first_date_of_quarter` <= '2025-03-12 09:33:21' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-list-component
   Query 138 - 2025-03-12 09:33:21 [0.12ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-12 09:33:32 [1.63ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-12 09:33:32 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-12 09:33:32 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-12 09:33:32 [0.3ms] */
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-03-12 09:33:32 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-12 09:33:32 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-12 09:33:32 [13.27ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'LG563' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-12 09:33:32 [3.51ms] */
select * from `party` where `party`.`id` = 29337 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-12 09:33:32 [0.55ms] */
select * from `vehicle` where `id` = 82041 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-12 09:33:32 [0.59ms] */
select * from `party_vehicle` where `vehicle_id` = 82041 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-03-12 09:33:32 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-12 09:33:32 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-12 09:33:32 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-12 09:33:32 [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-03-12 09:33:32 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-12 09:33:32 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-12 09:33:32 [0.32ms] */
select * from `vehicle` where `vehicle`.`id` = 82041 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-12 09:33:32 [0.24ms] */
select * from `vehicle` where `id` = 82041 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-03-12 09:33:32 [0.32ms] */
select * from `party_vehicle` where `vehicle_id` = 82041 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-03-12 09:33:32 [5.84ms] */
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` = 82041 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-03-12 09:33:34 [1.36ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-03-12 09:33:34 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-03-12 09:33:34 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-03-12 09:33:34 [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-03-12 09:33:34 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-03-12 09:33:34 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-03-12 09:33:34 [0.31ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-12 09:33:34 [2.05ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-12 09:33:34 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-12 09:33:34 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-12 09:33:34 [0.33ms] */
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-03-12 09:33:34 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-12 09:33:34 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-12 09:33:34 [0.71ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-03-12 09:36:08 [1.38ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-12 09:36:08 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-12 09:36:08 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-03-12 09:36:08 [0.25ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-03-12 09:36:08 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-12 09:36:08 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-03-12 09:36:08 [0.38ms] */
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-03-12 09:36:08 [0.3ms] */
select `transaction_id` from `vehicle_tax` where `id` in (237259, 237260, 237261, 237262) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-12 09:36:08 [0.31ms] */
select `parent_id` from `transaction` where `id` in (302885, 302886, 302887, 302888) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-12 09:36:08 [0.18ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-03-12 09:36:08 [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-03-12 09:36:08 [0.44ms] */
select * from `transaction` where `id` in (302885, 302886, 302887, 302888) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-12 09:36:08 [1ms] */
select * from `invoice` where `invoice`.`id` = 283354 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-03-12 09:36:09 [21.73ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-12 09:36:08' where `id` = 283354;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-03-12 09:36:09 [0.5ms] */
select * from `invoice` where `id` = 283354 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-12 09:36:09 [3.73ms] */
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', 283354, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-03-12 09:36:09 [0.43ms] */
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-03-12 09:36:09 [0.46ms] */
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-03-12 09:36:09 [3.3ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 302885;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-03-12 09:36:09 [0.37ms] */
select * from `invoice` where `invoice`.`id` = 283355 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-03-12 09:36:09 [3.04ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-12 09:36:09' where `id` = 283355;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-03-12 09:36:09 [0.36ms] */
select * from `invoice` where `id` = 283355 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-03-12 09:36:09 [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":[],"old":[]}', 5, 'App\Models\User', 283355, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-03-12 09:36:09 [0.2ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 25 - 2025-03-12 09:36:09 [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 26 - 2025-03-12 09:36:09 [3.18ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 302886;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 27 - 2025-03-12 09:36:09 [0.38ms] */
select * from `invoice` where `invoice`.`id` = 283356 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 28 - 2025-03-12 09:36:09 [3.09ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-12 09:36:09' where `id` = 283356;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 29 - 2025-03-12 09:36:09 [0.34ms] */
select * from `invoice` where `id` = 283356 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-03-12 09:36:09 [4.51ms] */
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', 283356, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-03-12 09:36:09 [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 32 - 2025-03-12 09:36:09 [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 33 - 2025-03-12 09:36:09 [3.65ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 302887;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 34 - 2025-03-12 09:36:09 [0.36ms] */
select * from `invoice` where `invoice`.`id` = 283357 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 35 - 2025-03-12 09:36:09 [2.89ms] */
update `invoice` set `updated_by` = 5, `invoice`.`updated_at` = '2025-03-12 09:36:09' where `id` = 283357;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-03-12 09:36:09 [0.34ms] */
select * from `invoice` where `id` = 283357 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-03-12 09:36:09 [3.23ms] */
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', 283357, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-03-12 09:36:09 [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 39 - 2025-03-12 09:36:09 [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 40 - 2025-03-12 09:36:09 [3.46ms] */
update `transaction` set `updated_by` = 5, `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 302888;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-03-12 09:36:09 [3.04ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-03-12 09:36:09' where `id` in (237259, 237260, 237261, 237262) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-03-12 09:36:09 [0.47ms] */
select * from `vehicle` where `vehicle`.`id` = 82041 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-03-12 09:36:09 [0.34ms] */
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 44 - 2025-03-12 09:36:09 [0.84ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 82041 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-03-12 09:36:09 [0.41ms] */
select * from `party_vehicle` where `vehicle_id` = 82041 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 46 - 2025-03-12 09:36:09 [0.36ms] */
select * from `party` where `party`.`id` = 29337 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 47 - 2025-03-12 09:36:09 [0.32ms] */
select * from `vehicle` where `vehicle`.`id` = 82041 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 48 - 2025-03-12 09:36:09 [0.3ms] */
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 49 - 2025-03-12 09:36:09 [0.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 50 - 2025-03-12 09:36:09 [3.64ms] */
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 (29337, 2, 82041, null, 2, 6, null, 37, 37, 'OPEN', 27, null, 5, 5, '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-03-12 09:36:09 [0.41ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510784, 'INITIATED', '2025-03-12 09:36:09', 5, 5, 5, 5, '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 52 - 2025-03-12 09:36:09 [0.21ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 34811, `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 510784;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-03-12 09:36:09 [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 (237259, 237260, 237261, 237262) 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 54 - 2025-03-12 09:36: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 (237259, 237260, 237261, 237262) 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 55 - 2025-03-12 09:36:09 [0.3ms] */
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 (510784, 29337, '2025-03-12 09:36:09', '2025-03-12 09:36:09', 129.00, 0, 129.00, 129.00, 0, 'OPEN', 'N', 'Y', 5, 5, '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-03-12 09:36:09 [0.19ms] */
select * from `invoice` where `id` = 486461 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 57 - 2025-03-12 09:36:09 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":510784,"party_id":29337,"invoice_amount":"129.00","invoice_date":"2025-03-12 09:36:09","due_date":"2025-03-12 09:36:09","outstanding_balance":"129.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"129.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', 486461, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-03-12 09:36:09 [0.3ms] */
select `invoice`.* from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (237259, 237260, 237261, 237262) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-03-12 09:36:09 [0.28ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Tax Service Fee', 'Combined Quarterly Tax Fees', 4, 57.00, 129, 486461, 5, 5, '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-03-12 09:36:09 [0.17ms] */
select * from `invoice_item` where `id` = 872406 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-03-12 09:36:09 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Quarterly Tax Fees","unit_price":"57.00","quantity":4,"total_price":"129.00","invoice_id":486461}}', 5, 'App\Models\User', 872406, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-03-12 09:36:09 [0.2ms] */
update `invoice` set `invoice_number` = 'INV-817-486461614', `invoice`.`updated_at` = '2025-03-12 09:36:09' where `id` = 486461;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-03-12 09:36:09 [0.18ms] */
select * from `invoice` where `id` = 486461 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-03-12 09:36:09 [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-817-486461614"},"old":{"invoice_number":null}}', 5, 'App\Models\User', 486461, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-03-12 09:36:09 [0.23ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 237259 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 66 - 2025-03-12 09:36:09 [0.16ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-03-12 09:36:09' where `id` = 237259;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-03-12 09:36:09 [0.17ms] */
select * from `vehicle_tax` where `id` = 237259 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-03-12 09:36:09 [0.21ms] */
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', 237259, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-03-12 09:36:09 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 302885 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-03-12 09:36:09 [0.38ms] */
update `transaction` set `tax_collection_point_id` = 27, `deliver_district_id` = 37, `parent_id` = 510784, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 302885;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-03-12 09:36:09 [0.4ms] */
select * from `invoice` where `invoice`.`id` = 283354 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-03-12 09:36:09 [0.3ms] */
update `invoice` set `parent_id` = 486461, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-12 09:36:09' where `id` = 283354;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 73 - 2025-03-12 09:36:09 [0.35ms] */
select * from `invoice` where `id` = 283354 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-03-12 09:36:09 [0.32ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":486461,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 283354, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-03-12 09:36:09 [0.42ms] */
select * from `transaction` where `transaction`.`id` = 302885 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2025-03-12 09:36:09 [0.36ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 77 - 2025-03-12 09:36:09 [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 78 - 2025-03-12 09:36:09 [0.39ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-03-12 09:36:09 [0.74ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2025-03-12 09:36:09 [0.38ms] */
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 81 - 2025-03-12 09:36:09 [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 (302885, 'APPROVED', '2025-03-12 09:36:09', 5, 5, null, 5, 5, '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-03-12 09:36:09 [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 83 - 2025-03-12 09:36:09 [0.23ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 302885;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 84 - 2025-03-12 09:36:09 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 85 - 2025-03-12 09:36:09 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 283354 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 86 - 2025-03-12 09:36:09 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 237260 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 87 - 2025-03-12 09:36:09 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-03-12 09:36:09' where `id` = 237260;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 88 - 2025-03-12 09:36:09 [0.17ms] */
select * from `vehicle_tax` where `id` = 237260 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 89 - 2025-03-12 09:36:09 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 237260, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 90 - 2025-03-12 09:36:09 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 302886 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 91 - 2025-03-12 09:36:09 [0.21ms] */
update `transaction` set `tax_collection_point_id` = 27, `deliver_district_id` = 37, `parent_id` = 510784, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 302886;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 92 - 2025-03-12 09:36:09 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 283355 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 93 - 2025-03-12 09:36:09 [0.16ms] */
update `invoice` set `parent_id` = 486461, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-12 09:36:09' where `id` = 283355;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 94 - 2025-03-12 09:36:09 [0.19ms] */
select * from `invoice` where `id` = 283355 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 95 - 2025-03-12 09:36: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', '{"attributes":{"parent_id":486461,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 283355, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 96 - 2025-03-12 09:36:09 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 302886 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 97 - 2025-03-12 09:36:09 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 98 - 2025-03-12 09:36:09 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 99 - 2025-03-12 09:36:09 [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 100 - 2025-03-12 09:36:09 [0.15ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 101 - 2025-03-12 09:36:09 [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 (302886, 'APPROVED', '2025-03-12 09:36:09', 5, 5, null, 5, 5, '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 102 - 2025-03-12 09:36:09 [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 103 - 2025-03-12 09:36:09 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 302886;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 104 - 2025-03-12 09:36:09 [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 105 - 2025-03-12 09:36:09 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 283355 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 106 - 2025-03-12 09:36:09 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 237261 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 107 - 2025-03-12 09:36:09 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-03-12 09:36:09' where `id` = 237261;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 108 - 2025-03-12 09:36:09 [0.17ms] */
select * from `vehicle_tax` where `id` = 237261 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 109 - 2025-03-12 09:36:09 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 237261, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 110 - 2025-03-12 09:36:09 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 302887 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 111 - 2025-03-12 09:36:09 [0.2ms] */
update `transaction` set `tax_collection_point_id` = 27, `deliver_district_id` = 37, `parent_id` = 510784, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 302887;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 112 - 2025-03-12 09:36:09 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 283356 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 113 - 2025-03-12 09:36:09 [0.16ms] */
update `invoice` set `parent_id` = 486461, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-12 09:36:09' where `id` = 283356;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 114 - 2025-03-12 09:36:09 [0.21ms] */
select * from `invoice` where `id` = 283356 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 115 - 2025-03-12 09:36: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', '{"attributes":{"parent_id":486461,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 283356, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 116 - 2025-03-12 09:36:09 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 302887 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 117 - 2025-03-12 09:36:09 [0.18ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 118 - 2025-03-12 09:36:09 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 119 - 2025-03-12 09:36:09 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 120 - 2025-03-12 09:36:09 [0.15ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 121 - 2025-03-12 09:36:09 [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 (302887, 'APPROVED', '2025-03-12 09:36:09', 5, 5, null, 5, 5, '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 122 - 2025-03-12 09:36:09 [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 123 - 2025-03-12 09:36:09 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 302887;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 124 - 2025-03-12 09:36:09 [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 125 - 2025-03-12 09:36:09 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 283356 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 126 - 2025-03-12 09:36:09 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 237262 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 127 - 2025-03-12 09:36:09 [0.15ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 5, `vehicle_tax`.`updated_at` = '2025-03-12 09:36:09' where `id` = 237262;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 128 - 2025-03-12 09:36:09 [0.17ms] */
select * from `vehicle_tax` where `id` = 237262 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 129 - 2025-03-12 09:36:09 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 5, 'App\Models\User', 237262, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 130 - 2025-03-12 09:36:09 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 302888 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 131 - 2025-03-12 09:36:09 [0.2ms] */
update `transaction` set `tax_collection_point_id` = 27, `deliver_district_id` = 37, `parent_id` = 510784, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 302888;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 132 - 2025-03-12 09:36:09 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 283357 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 133 - 2025-03-12 09:36:09 [0.16ms] */
update `invoice` set `parent_id` = 486461, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-12 09:36:09' where `id` = 283357;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 134 - 2025-03-12 09:36:09 [0.18ms] */
select * from `invoice` where `id` = 283357 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 135 - 2025-03-12 09:36:09 [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":{"parent_id":486461,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 5, 'App\Models\User', 283357, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 136 - 2025-03-12 09:36:09 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 302888 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 137 - 2025-03-12 09:36:09 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 138 - 2025-03-12 09:36:09 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 139 - 2025-03-12 09:36:09 [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 140 - 2025-03-12 09:36:09 [0.16ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 141 - 2025-03-12 09:36:09 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (302888, 'APPROVED', '2025-03-12 09:36:09', 5, 5, null, 5, 5, '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 142 - 2025-03-12 09:36:09 [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 143 - 2025-03-12 09:36:09 [0.25ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 302888;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 144 - 2025-03-12 09:36:09 [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 145 - 2025-03-12 09:36:09 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 283357 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 146 - 2025-03-12 09:36:09 [0.17ms] */
update `transaction` set `invoice_id` = 486461, `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 510784;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 147 - 2025-03-12 09:36:09 [0.59ms] */
update `vehicle` set `updated_by` = 5, `vehicle`.`updated_at` = '2025-03-12 09:36:09' where `id` = 82041;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 148 - 2025-03-12 09:36:09 [0.18ms] */
select * from `vehicle` where `id` = 82041 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 149 - 2025-03-12 09:36:09 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 82041, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 150 - 2025-03-12 09:36:09 [0.33ms] */
insert into `audits` (`old_values`, `new_values`, `event`, `auditable_id`, `auditable_type`, `user_id`, `user_type`, `tags`, `ip_address`, `user_agent`, `url`, `updated_at`, `created_at`) values ('{"updated_by":1}', '{"updated_by":5}', 'updated', 82041, 'Modules\Vehicle\Entities\Vehicle', 5, 'App\Models\User', null, '49.47.216.81', 'Dart/3.4 (dart:io)', 'https://testtra.puntlandgov.org/api/make_payment', '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 151 - 2025-03-12 09:36:09 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 510784 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 152 - 2025-03-12 09:36:09 [0.18ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 153 - 2025-03-12 09:36:09 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 154 - 2025-03-12 09:36:09 [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 155 - 2025-03-12 09:36:09 [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 (510784, 'APPROVED', '2025-03-12 09:36:09', 5, 5, null, 5, 5, '2025-03-12 09:36:09', '2025-03-12 09:36:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 156 - 2025-03-12 09:36:09 [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 157 - 2025-03-12 09:36:09 [0.25ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-12 09:36:09' where `id` = 510784;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 158 - 2025-03-12 09:36:09 [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 159 - 2025-03-12 09:36:09 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486461 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 160 - 2025-03-12 09:36:09 [0.21ms] */
select `transaction_id` from `vehicle_tax` where `id` in (237259, 237260, 237261, 237262) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 161 - 2025-03-12 09:36:09 [0.9ms] */
select * from `invoice` where `transaction_id` = 302885 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 162 - 2025-03-12 09:36:09 [1.15ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 283354 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 163 - 2025-03-12 09:36:09 [0.7ms] */
select * from `transaction` where `transaction`.`id` = 302885 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 164 - 2025-03-12 09:36:09 [0.68ms] */
select * from `invoice` where `transaction_id` = 302886 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 165 - 2025-03-12 09:36:09 [0.65ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 283355 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 166 - 2025-03-12 09:36:09 [0.68ms] */
select * from `transaction` where `transaction`.`id` = 302886 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 167 - 2025-03-12 09:36:09 [0.67ms] */
select * from `invoice` where `transaction_id` = 302887 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 168 - 2025-03-12 09:36:09 [0.6ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 283356 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 169 - 2025-03-12 09:36:09 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 302887 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 170 - 2025-03-12 09:36:09 [0.35ms] */
select * from `invoice` where `transaction_id` = 302888 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 171 - 2025-03-12 09:36:09 [0.38ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 283357 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 172 - 2025-03-12 09:36:09 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 302888 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 173 - 2025-03-12 09:36:09 [0.33ms] */
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 174 - 2025-03-12 09:36:09 [0.3ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-12 09:36:10 [1.36ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-12 09:36:10 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-12 09:36:10 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-12 09:36: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-03-12 09:36:10 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-12 09:36:10 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-12 09:36:10 [0.18ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:40:12 [1.37ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:40:12 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:40:12 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:40:12 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:40:12 [1.84ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:40:12 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:40:12 [2.16ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:40:12 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:40:12 [0.21ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:40:12 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:40:12 [0.25ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:40:12 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:40:12 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:40:12 [0.24ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-12 09:40:30 [2.33ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-12 09:40:30 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-12 09:40:30 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-12 09:40:30 [0.31ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-12 09:40:30 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-12 09:40:30 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-12 09:40:30 [1.12ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 31246 and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-12 09:40:30 [0.23ms] */
select * from `party` where `party`.`id` = 36632 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-12 09:40:30 [0.26ms] */
select * from `vehicle` where `id` = 111 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-12 09:40:30 [0.25ms] */
select * from `party_vehicle` where `vehicle_id` = 111 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-03-12 09:40:31 [1.99ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-12 09:40:31 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-12 09:40:31 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-12 09:40:31 [0.25ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-03-12 09:40:31 [0.21ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-12 09:40:31 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-12 09:40:31 [0.45ms] */
select * from `vehicle` where `vehicle`.`id` = 111 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-12 09:40:31 [0.38ms] */
select * from `vehicle` where `id` = 111 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-03-12 09:40:31 [0.41ms] */
select * from `party_vehicle` where `vehicle_id` = 111 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-03-12 09:40:31 [1.1ms] */
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` = 111 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-03-12 09:40:31 [2.15ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-03-12 09:40:31 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-03-12 09:40:31 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-03-12 09:40:31 [0.34ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-03-12 09:40:31 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-03-12 09:40:31 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-03-12 09:40:31 [0.15ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-12 09:40:31 [1.99ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-12 09:40:31 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-12 09:40:31 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-12 09:40:31 [0.31ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-12 09:40:31 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-12 09:40:31 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-12 09:40:31 [0.18ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-03-12 09:40:46 [1.32ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-12 09:40:46 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-12 09:40:46 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-03-12 09:40:46 [0.16ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-03-12 09:40:46 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-12 09:40:46 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-03-12 09:40:46 [0.16ms] */
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-03-12 09:40:46 [0.35ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401059) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-12 09:40:46 [0.28ms] */
select `parent_id` from `transaction` where `id` in (510745) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-12 09:40:46 [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-03-12 09:40:46 [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-03-12 09:40:46 [0.22ms] */
select * from `transaction` where `id` in (510745) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-12 09:40:46 [0.33ms] */
select * from `invoice` where `invoice`.`id` = 486422 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-03-12 09:40:46 [13.35ms] */
update `invoice` set `updated_by` = 153, `invoice`.`updated_at` = '2025-03-12 09:40:46' where `id` = 486422;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-03-12 09:40:46 [0.52ms] */
select * from `invoice` where `id` = 486422 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-12 09:40:46 [3.34ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 153, 'App\Models\User', 486422, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-03-12 09:40:46 [0.22ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 18 - 2025-03-12 09:40:46 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 19 - 2025-03-12 09:40:46 [3.16ms] */
update `transaction` set `updated_by` = 153, `transaction`.`updated_at` = '2025-03-12 09:40:46' where `id` = 510745;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-03-12 09:40:46 [1.61ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-03-12 09:40:46' where `id` in (401059) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-03-12 09:40:46 [0.51ms] */
select * from `vehicle` where `vehicle`.`id` = 111 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-03-12 09:40:46 [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 23 - 2025-03-12 09:40:46 [0.46ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 111 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-03-12 09:40:46 [0.37ms] */
select * from `party_vehicle` where `vehicle_id` = 111 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 25 - 2025-03-12 09:40:46 [0.38ms] */
select * from `party` where `party`.`id` = 36632 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 26 - 2025-03-12 09:40:46 [0.22ms] */
select * from `vehicle` where `vehicle`.`id` = 111 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 27 - 2025-03-12 09:40:46 [0.13ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-03-12 09:40:46 [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 29 - 2025-03-12 09:40:46 [0.22ms] */
select * from `branches` where `branches`.`id` = 16 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-03-12 09:40:46 [0.63ms] */
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 (36632, 2, 111, null, 2, 6, 16, 37, 37, 'OPEN', 26, null, 153, 153, '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-03-12 09:40:46 [0.36ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510785, 'INITIATED', '2025-03-12 09:40:46', 5, 153, 153, 153, '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-03-12 09:40:46 [0.21ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 20639, `transaction`.`updated_at` = '2025-03-12 09:40:46' where `id` = 510785;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-03-12 09:40:46 [0.23ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (401059) 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 34 - 2025-03-12 09:40:46 [0.2ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (401059) 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 35 - 2025-03-12 09:40:46 [0.28ms] */
insert into `invoice` (`transaction_id`, `party_id`, `invoice_date`, `due_date`, `invoice_amount`, `discounts`, `total_invoice_amount`, `outstanding_balance`, `taxes`, `status`, `grouped`, `parent`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510785, 36632, '2025-03-12 09:40:46', '2025-03-12 09:40:46', 38.00, 0, 38.00, 38.00, 0, 'OPEN', 'N', 'Y', 153, 153, '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-03-12 09:40:46 [0.19ms] */
select * from `invoice` where `id` = 486462 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-03-12 09:40:46 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":510785,"party_id":36632,"invoice_amount":"38.00","invoice_date":"2025-03-12 09:40:46","due_date":"2025-03-12 09:40:46","outstanding_balance":"38.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"38.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 153, 'App\Models\User', 486462, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-03-12 09:40:46 [0.25ms] */
select `invoice`.* from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (401059) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-03-12 09:40:46 [0.27ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Tax Service Fee', 'Combined Quarterly Tax Fees', 1, 38.00, 38, 486462, 153, 153, '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-03-12 09:40:46 [0.17ms] */
select * from `invoice_item` where `id` = 872407 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-03-12 09:40:46 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Quarterly Tax Fees","unit_price":"38.00","quantity":1,"total_price":"38.00","invoice_id":486462}}', 153, 'App\Models\User', 872407, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-03-12 09:40:46 [0.24ms] */
update `invoice` set `invoice_number` = 'INV-329-486462666', `invoice`.`updated_at` = '2025-03-12 09:40:46' where `id` = 486462;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-03-12 09:40:46 [0.19ms] */
select * from `invoice` where `id` = 486462 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-03-12 09:40:46 [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-329-486462666"},"old":{"invoice_number":null}}', 153, 'App\Models\User', 486462, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-03-12 09:40:46 [0.24ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 401059 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-03-12 09:40:46 [0.18ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 153, `vehicle_tax`.`updated_at` = '2025-03-12 09:40:46' where `id` = 401059;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-03-12 09:40:46 [0.19ms] */
select * from `vehicle_tax` where `id` = 401059 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-03-12 09:40:46 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 153, 'App\Models\User', 401059, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-03-12 09:40:46 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 510745 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 50 - 2025-03-12 09:40:46 [0.2ms] */
update `transaction` set `tax_collection_point_id` = 26, `parent_id` = 510785, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-12 09:40:46' where `id` = 510745;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-03-12 09:40:46 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486422 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 52 - 2025-03-12 09:40:46 [0.17ms] */
update `invoice` set `parent_id` = 486462, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-12 09:40:46' where `id` = 486422;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-03-12 09:40:46 [0.18ms] */
select * from `invoice` where `id` = 486422 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-03-12 09:40:46 [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":486462,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 153, 'App\Models\User', 486422, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-03-12 09:40:46 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 510745 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-03-12 09:40:46 [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 57 - 2025-03-12 09:40:46 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-03-12 09:40:46 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-03-12 09:40:46 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-03-12 09:40:46 [0.18ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-03-12 09:40:46 [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 (510745, 'APPROVED', '2025-03-12 09:40:46', 5, 153, null, 153, 153, '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-03-12 09:40:46 [0.23ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-03-12 09:40:46 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-12 09:40:46' where `id` = 510745;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-03-12 09:40:46 [0.19ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-03-12 09:40:46 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486422 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 66 - 2025-03-12 09:40:46 [0.18ms] */
update `transaction` set `invoice_id` = 486462, `transaction`.`updated_at` = '2025-03-12 09:40:46' where `id` = 510785;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-03-12 09:40:46 [0.29ms] */
update `vehicle` set `updated_by` = 153, `vehicle`.`updated_at` = '2025-03-12 09:40:46' where `id` = 111;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-03-12 09:40:46 [0.19ms] */
select * from `vehicle` where `id` = 111 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-03-12 09:40:46 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 153, 'App\Models\User', 111, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-03-12 09:40:46 [0.29ms] */
insert into `audits` (`old_values`, `new_values`, `event`, `auditable_id`, `auditable_type`, `user_id`, `user_type`, `tags`, `ip_address`, `user_agent`, `url`, `updated_at`, `created_at`) values ('{"updated_by":5}', '{"updated_by":153}', 'updated', 111, 'Modules\Vehicle\Entities\Vehicle', 153, 'App\Models\User', null, '41.223.109.136', 'Dart/3.4 (dart:io)', 'https://testtra.puntlandgov.org/api/make_payment', '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 71 - 2025-03-12 09:40:46 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 510785 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-03-12 09:40:46 [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 73 - 2025-03-12 09:40:46 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-03-12 09:40:46 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-03-12 09:40:46 [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 (510785, 'APPROVED', '2025-03-12 09:40:46', 5, 153, null, 153, 153, '2025-03-12 09:40:46', '2025-03-12 09:40:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 76 - 2025-03-12 09:40:46 [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 77 - 2025-03-12 09:40:46 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-12 09:40:46' where `id` = 510785;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2025-03-12 09:40:46 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 79 - 2025-03-12 09:40:46 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486462 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 80 - 2025-03-12 09:40:46 [0.22ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401059) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 81 - 2025-03-12 09:40:46 [0.33ms] */
select * from `invoice` where `transaction_id` = 510745 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 82 - 2025-03-12 09:40:46 [0.29ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486422 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 83 - 2025-03-12 09:40:46 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 510745 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 84 - 2025-03-12 09:40:46 [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 85 - 2025-03-12 09:40:46 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-12 09:40:46 [1.39ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-12 09:40:46 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-12 09:40:46 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-12 09:40:46 [0.16ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-12 09:40:46 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-12 09:40:46 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-12 09:40:46 [0.18ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:41:09 [1.31ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:41:09 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:41:09 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:41:09 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:41:09 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:41:09 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:41:09 [0.15ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:41:10 [2.02ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:41:10 [0.23ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:41:10 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:41:10 [0.25ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:41:10 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:41:10 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:41:10 [0.23ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-12 09:41:14 [2.4ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-12 09:41:14 [0.25ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-12 09:41:14 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-12 09:41:14 [0.32ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-12 09:41:14 [0.25ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-12 09:41:14 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-12 09:41:14 [1.8ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 31246 and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-12 09:41:14 [0.3ms] */
select * from `party` where `party`.`id` = 36632 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-12 09:41:14 [0.45ms] */
select * from `vehicle` where `id` = 111 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-12 09:41:14 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 111 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-03-12 09:41:14 [2.45ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-12 09:41:14 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-12 09:41:14 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-12 09:41:14 [0.45ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-03-12 09:41:14 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-12 09:41:14 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-12 09:41:14 [0.34ms] */
select * from `vehicle` where `vehicle`.`id` = 111 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-12 09:41:14 [0.26ms] */
select * from `vehicle` where `id` = 111 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-03-12 09:41:14 [0.18ms] */
select * from `party_vehicle` where `vehicle_id` = 111 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-03-12 09:41:14 [0.92ms] */
select `vehicle_tax`.`id`, `term`.`year`, `term`.`quarter`, `invoice`.`invoice_amount`, `invoice`.`outstanding_balance`, `vehicle_tax`.`exempt`, `invoice`.`status`, `tax_sticker`.`name` as `tax_sticker`, CASE
                WHEN term.quarter = 1 THEN DATE_FORMAT(CONCAT(term.year, "-03-31"), "%d-%m-%Y")
                WHEN term.quarter = 2 THEN DATE_FORMAT(CONCAT(term.year, "-06-30"), "%d-%m-%Y")
                WHEN term.quarter = 3 THEN DATE_FORMAT(CONCAT(term.year, "-09-30"), "%d-%m-%Y")
                WHEN term.quarter = 4 THEN DATE_FORMAT(CONCAT(term.year, "-12-31"), "%d-%m-%Y")
                ELSE NULL
                END as due_date from `vehicle_tax` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `transaction` on `vehicle_tax`.`transaction_id` = `transaction`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `tax_sticker` on `vehicle_tax`.`tax_sticker_id` = `tax_sticker`.`id` where `vehicle_tax`.`vehicle_id` = 111 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-03-12 09:41:15 [2ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-03-12 09:41:15 [0.29ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-03-12 09:41:15 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-03-12 09:41:15 [0.34ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-03-12 09:41:15 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-03-12 09:41:15 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-03-12 09:41:15 [0.13ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-12 09:41:15 [1.19ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-12 09:41:15 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-12 09:41:15 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-12 09:41:15 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-12 09:41:15 [0.37ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-12 09:41:15 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-12 09:41:15 [0.27ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-03-12 09:41:33 [1.33ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-12 09:41:33 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-12 09:41:33 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-03-12 09:41:33 [0.16ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-03-12 09:41:33 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-12 09:41:33 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-03-12 09:41:33 [0.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-03-12 09:41:33 [0.3ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401059) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-12 09:41:33 [0.55ms] */
select `parent_id` from `transaction` where `id` in (510745) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-12 09:41:33 [170.08ms] */
select `id` from `transaction` where `parent_id` in (510785) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 11 - 2025-03-12 09:41:33 [0.5ms] */
select * from `transaction` where `id` in (510785) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 12 - 2025-03-12 09:41:33 [0.21ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401059) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-12 09:41:33 [0.25ms] */
select * from `invoice` where `transaction_id` = 510745 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 14 - 2025-03-12 09:41:33 [0.24ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486422 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-03-12 09:41:33 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 510745 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-12 09:41:33 [0.14ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-03-12 09:41:33 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-12 09:41:34 [1.34ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-12 09:41:34 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-12 09:41:34 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-12 09:41:34 [0.18ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-12 09:41:34 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-12 09:41:34 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-12 09:41:34 [0.19ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-12 09:42:48 [1.34ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-12 09:42:48 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-12 09:42:48 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-12 09:42:48 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-12 09:42:48 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-12 09:42:48 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-12 09:42:48 [0.33ms] */
delete from `payment_documents` where `transaction_id` = 510745 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-12 09:42:48 [0.36ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2226121;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-03-12 09:42:48 [0.37ms] */
select * from `transaction` where `transaction`.`id` = 510745 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-03-12 09:42:48 [469.14ms] */
select * from `transaction` where `parent_id` = 510785 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-03-12 09:42:48 [11.3ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (510745, 'GOV_RECEIPT_IMAGE', 2226121, 1, '2025-03-12 09:42:48', '2025-03-12 09:42:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-03-12 09:42:48 [2.98ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (510785, 'GOV_RECEIPT_IMAGE', 2226121, 1, '2025-03-12 09:42:48', '2025-03-12 09:42:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:42:49 [1.4ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:42:49 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:42:49 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:42:49 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:42:49 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:42:49 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:42:49 [1.22ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:42:49 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:42:49 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:42:49 [0.16ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:42:49 [0.16ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:42:49 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:42:49 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:42:49 [0.17ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-12 09:43:02 [2.15ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-12 09:43:02 [0.16ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-12 09:43:02 [1.26ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 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-03-12 09:43:02 [6.48ms] */
update `userprofiles` set `login_count` = 309, `last_login` = '2025-03-12 09:43:02', `userprofiles`.`updated_at` = '2025-03-12 09:43:02' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-12 09:43:02 [0.25ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-12 09:43:02 [0.59ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-12 09:43:02 [0.24ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-12 09:43:02 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-12 09:43:02 [0.11ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-12 09:43:02 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-12 09:43:02 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-12 09:43:02 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-12 09:43:02 [4.43ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff', 154, 5, '[]', 0, '2025-03-12 09:43:02', '2025-03-12 09:43:02', '2026-03-12 09:43:02');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-12 09:43:02 [0.38ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-12 09:43:02 [2.86ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-12 09:43:02 [2.44ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-12 09:43:02 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-12 09:43:02 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-12 09:43:02 [0.32ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-12 09:43:02 [0.31ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-12 09:43:02 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-12 09:43:02 [6.21ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = '5656SXYVCYHC' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-12 09:43:02 [0.19ms] */
select * from `party` where `party`.`id` = 64940 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-12 09:43:02 [0.23ms] */
select * from `vehicle` where `id` = 99458 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-12 09:43:02 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 99458 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-12 09:43:02 [1.4ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-12 09:43:02 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-12 09:43:02 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-12 09:43:02 [0.17ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-12 09:43:02 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-12 09:43:02 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-12 09:43:02 [1.7ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'LIC1253RTA001' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-12 09:43:02 [0.33ms] */
select * from `party` where `party`.`id` = 64946 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-12 09:43:02 [0.51ms] */
select * from `vehicle` where `id` = 99468 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-12 09:43:02 [0.31ms] */
select * from `party_vehicle` where `vehicle_id` = 99468 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-12 09:43:02 [2ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-12 09:43:02 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-12 09:43:02 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-12 09:43:02 [0.3ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-12 09:43:02 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-12 09:43:02 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-12 09:43:02 [2.57ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'YP073' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-12 09:43:02 [0.16ms] */
select * from `party` where `party`.`id` = 54700 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-12 09:43:02 [0.26ms] */
select * from `vehicle` where `id` = 87438 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-12 09:43:02 [0.17ms] */
select * from `party_vehicle` where `vehicle_id` = 87438 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-12 09:43:02 [1.43ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-12 09:43:02 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-12 09:43:02 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-12 09:43:02 [0.16ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-12 09:43:02 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-12 09:43:02 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-12 09:43:02 [1.2ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'SFDYUF520002' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-12 09:43:02 [0.15ms] */
select * from `party` where `party`.`id` = 64942 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-12 09:43:02 [0.26ms] */
select * from `vehicle` where `id` = 99460 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-12 09:43:02 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 99460 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-12 09:43:02 [2.17ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-12 09:43:02 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-12 09:43:02 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-12 09:43:02 [0.3ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-12 09:43:02 [0.25ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-12 09:43:02 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-12 09:43:02 [2.01ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 23627 and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-12 09:43:02 [0.36ms] */
select * from `party` where `party`.`id` = 6359 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-12 09:43:02 [0.52ms] */
select * from `vehicle` where `id` = 10270 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-12 09:43:02 [0.3ms] */
select * from `party_vehicle` where `vehicle_id` = 10270 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-12 09:43:03 [2.09ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-12 09:43:03 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-12 09:43:03 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-12 09:43:03 [0.24ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-12 09:43:03 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-12 09:43:03 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-12 09:43:03 [2.22ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'TT11111' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-12 09:43:03 [0.31ms] */
select * from `party` where `party`.`id` = 21317 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-12 09:43:03 [0.43ms] */
select * from `vehicle` where `id` = 99457 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-12 09:43:03 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 99457 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-12 09:43:03 [1.48ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-12 09:43:03 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-12 09:43:03 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-12 09:43:03 [0.19ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-12 09:43:03 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'fad2dff87a86594cc72c50cea64b14bda3d349c6ba6e58fd03fa21396d81d9b6c50554c7c2453cff' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-12 09:43:03 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-12 09:43:03 [1.17ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'YUGYUGI3362592' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-12 09:43:03 [0.18ms] */
select * from `party` where `party`.`id` = 64943 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-12 09:43:03 [0.28ms] */
select * from `vehicle` where `id` = 99461 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-12 09:43:03 [0.18ms] */
select * from `party_vehicle` where `vehicle_id` = 99461 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-12 09:43:05 [1.43ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-12 09:43:05 [1.3ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-12 09:43:05 [1.38ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-12 09:43:05 [0.17ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-12 09:43:05 [0.18ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-12 09:43:05 [0.38ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 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 3 - 2025-03-12 09:43:05 [0.46ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 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-03-12 09:43:05 [6.15ms] */
update `userprofiles` set `login_count` = 310, `last_login` = '2025-03-12 09:43:05', `userprofiles`.`updated_at` = '2025-03-12 09:43:05' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-12 09:43:05 [0.27ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-12 09:43:05 [6.24ms] */
update `userprofiles` set `login_count` = 310, `last_login` = '2025-03-12 09:43:05', `userprofiles`.`updated_at` = '2025-03-12 09:43:05' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-12 09:43:05 [0.26ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-12 09:43:05 [0.56ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 154 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 6 - 2025-03-12 09:43:05 [0.64ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-12 09:43:05 [0.28ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-12 09:43:05 [0.24ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-12 09:43:05 [3.31ms] */
update `userprofiles` set `login_count` = 311, `userprofiles`.`updated_at` = '2025-03-12 09:43:05' where `id` = 154;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-12 09:43:05 [0.54ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-12 09:43:05 [0.25ms] */
select * from `users` where `email` = 'userpayment@puntlandgov.org' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-12 09:43:05 [0.54ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-12 09:43:05 [0.21ms] */
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 (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-12 09:43:05 [0.26ms] */
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 (154) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-12 09:43:05 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-12 09:43:05 [0.19ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-12 09:43:05 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-12 09:43:05 [0.15ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-12 09:43:05 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-12 09:43:05 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-12 09:43:05 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-12 09:43:05 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-12 09:43:05 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-12 09:43:05 [0.26ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-12 09:43:05 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-12 09:43:05 [0.21ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-12 09:43:05 [0.21ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-12 09:43:05 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-12 09:43:05 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-12 09:43:05 [3.14ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('cb710950767bf7d3925e77e9bb4f4344a276c561968910d14c7a7035959fcb6cd1db1558c5016d99', 154, 5, '[]', 0, '2025-03-12 09:43:05', '2025-03-12 09:43:05', '2026-03-12 09:43:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-12 09:43:05 [5.13ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('1e406ac9bf313752da3c9dd37777c9d49292a849bad235ca3a01ea89f2375e3132aa7130b7545802', 154, 5, '[]', 0, '2025-03-12 09:43:05', '2025-03-12 09:43:05', '2026-03-12 09:43:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-12 09:43:05 [3.06ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('8ef3c3ddcae7041c30f99b915eca347336785447d467bdc1bcf43682d50f1d3a7c283c41681ee8e1', 154, 5, '[]', 0, '2025-03-12 09:43:05', '2025-03-12 09:43:05', '2026-03-12 09:43:05');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-12 09:43:05 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'cb710950767bf7d3925e77e9bb4f4344a276c561968910d14c7a7035959fcb6cd1db1558c5016d99' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-12 09:43:05 [2.84ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'cb710950767bf7d3925e77e9bb4f4344a276c561968910d14c7a7035959fcb6cd1db1558c5016d99';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-12 09:43:05 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '1e406ac9bf313752da3c9dd37777c9d49292a849bad235ca3a01ea89f2375e3132aa7130b7545802' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-12 09:43:05 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '8ef3c3ddcae7041c30f99b915eca347336785447d467bdc1bcf43682d50f1d3a7c283c41681ee8e1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-12 09:43:05 [2.83ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '1e406ac9bf313752da3c9dd37777c9d49292a849bad235ca3a01ea89f2375e3132aa7130b7545802';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-12 09:43:05 [3.39ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '8ef3c3ddcae7041c30f99b915eca347336785447d467bdc1bcf43682d50f1d3a7c283c41681ee8e1';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-03-12 09:43:05 [1.47ms] */
select * from `oauth_access_tokens` where `id` = '1e406ac9bf313752da3c9dd37777c9d49292a849bad235ca3a01ea89f2375e3132aa7130b7545802' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-03-12 09:43:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1e406ac9bf313752da3c9dd37777c9d49292a849bad235ca3a01ea89f2375e3132aa7130b7545802' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-03-12 09:43:05 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-03-12 09:43:05 [0.28ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 1 - 2025-03-12 09:43:05 [1.79ms] */
select * from `oauth_access_tokens` where `id` = '8ef3c3ddcae7041c30f99b915eca347336785447d467bdc1bcf43682d50f1d3a7c283c41681ee8e1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-03-12 09:43:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '1e406ac9bf313752da3c9dd37777c9d49292a849bad235ca3a01ea89f2375e3132aa7130b7545802' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-03-12 09:43:05 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 2 - 2025-03-12 09:43:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '8ef3c3ddcae7041c30f99b915eca347336785447d467bdc1bcf43682d50f1d3a7c283c41681ee8e1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 3 - 2025-03-12 09:43:05 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-03-12 09:43:05 [1.18ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter`, `invoice`.`transaction_id`, `party`.`id` as `customer_id`, 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 customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `invoice`.`due_date`, `invoice`.`total_invoice_amount` as `invoice_amount`, `invoice`.`status`, `invoice`.`parent`, `invoice`.`created_at`, `invoice`.`updated_at`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `invoice` left join `party` on `invoice`.`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' left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `invoice`.`total_invoice_amount` > 0 and `service`.`name` = 'Tax' and `vehicle_tax`.`exempt` = 'N' and `transaction`.`vehicle_tax_id` is not null and `invoice`.`parent` = 'N' and `invoice`.`party_id` = 64946 and `license_plate` = 'LIC1253RTA001' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 4 - 2025-03-12 09:43:05 [0.17ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 5 - 2025-03-12 09:43:05 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '8ef3c3ddcae7041c30f99b915eca347336785447d467bdc1bcf43682d50f1d3a7c283c41681ee8e1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 6 - 2025-03-12 09:43:05 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 7 - 2025-03-12 09:43:05 [0.97ms] */
select DISTINCT payment.id as payment_id, `party`.`id` as `customer_id`, 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 customer_name, `vehicle`.`license_plate`, `payment`.`payment_amount`, `external_payment_reference_no` as `payment_reference_number`, `payment`.`payment_date`, `payment_method`.`name` as `payment_method`, `payment`.`paid_by`, `payment`.`paid_by_mobile` from `payment` left join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` left join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` and `invoice`.`parent` = 'N' left join `transaction` on `transaction`.`invoice_id` = `invoice`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `payment_method` on `payment`.`payment_method_id` = `payment_method`.`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 `service`.`name` = 'Tax' and `transaction`.`party_id` = 64946 and `vehicle`.`license_plate` = 'LIC1253RTA001' and `payment`.`deleted_at` is null order by `payment`.`payment_date` desc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 8 - 2025-03-12 09:43:05 [0.35ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter` from `invoice` left join `invoice_payment` on `invoice`.`id` = `invoice_payment`.`invoice_id` left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` where `invoice_payment`.`payment_id` = 177468 and `invoice`.`parent` = 'N';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 9 - 2025-03-12 09:43:05 [0.29ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter` from `invoice` left join `invoice_payment` on `invoice`.`id` = `invoice_payment`.`invoice_id` left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` where `invoice_payment`.`payment_id` = 177431 and `invoice`.`parent` = 'N';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 10 - 2025-03-12 09:43:05 [0.61ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter` from `invoice` left join `invoice_payment` on `invoice`.`id` = `invoice_payment`.`invoice_id` left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` where `invoice_payment`.`payment_id` = 177421 and `invoice`.`parent` = 'N';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 11 - 2025-03-12 09:43:05 [0.33ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter` from `invoice` left join `invoice_payment` on `invoice`.`id` = `invoice_payment`.`invoice_id` left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` where `invoice_payment`.`payment_id` = 177420 and `invoice`.`parent` = 'N';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-12 09:43:05 [1.38ms] */
select * from `oauth_access_tokens` where `id` = 'cb710950767bf7d3925e77e9bb4f4344a276c561968910d14c7a7035959fcb6cd1db1558c5016d99' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-12 09:43:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'cb710950767bf7d3925e77e9bb4f4344a276c561968910d14c7a7035959fcb6cd1db1558c5016d99' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-12 09:43:05 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-12 09:43:05 [0.17ms] */
select * from `users` where `id` = 154 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-12 09:43:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'cb710950767bf7d3925e77e9bb4f4344a276c561968910d14c7a7035959fcb6cd1db1558c5016d99' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-12 09:43:05 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-12 09:43:05 [0.34ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'LIC1253RTA001' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-12 09:43:05 [0.15ms] */
select * from `party` where `party`.`id` = 64946 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-12 09:43:05 [0.16ms] */
select * from `vehicle` where `id` = 99468 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-12 09:43:05 [0.16ms] */
select * from `party_vehicle` where `vehicle_id` = 99468 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-12 09:43:09 [1.47ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-12 09:43:09 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-12 09:43:09 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-12 09:43:09 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-12 09:43:09 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-12 09:43:09 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-12 09:43:09 [0.3ms] */
delete from `payment_documents` where `transaction_id` = 510745 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-12 09:43:09 [0.28ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 94664;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-03-12 09:43:09 [0.17ms] */
select * from `transaction` where `transaction`.`id` = 510745 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-03-12 09:43:09 [0.15ms] */
select * from `transaction` where `parent_id` = 510785 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-03-12 09:43:09 [5.94ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (510745, 'SERVICE_RECEIPT_IMAGE', 94664, 1, '2025-03-12 09:43:09', '2025-03-12 09:43:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-03-12 09:43:09 [2.71ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (510785, 'SERVICE_RECEIPT_IMAGE', 94664, 1, '2025-03-12 09:43:09', '2025-03-12 09:43:09');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-03-12 09:43:09 [1.25ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-03-12 09:43:09 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-03-12 09:43:09 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-03-12 09:43:09 [0.16ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-03-12 09:43:09 [0.13ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-03-12 09:43:09 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-03-12 09:43:09 [0.19ms] */
select * from `transaction` where `transaction`.`id` = 510745 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-03-12 09:43:09 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 510785 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-03-12 09:43:09 [0.23ms] */
select * from `invoice_payment` where `invoice_id` = 486462 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-03-12 09:43:10 [146.07ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 510785 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-03-12 09:43:10 [125.48ms] */
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` = 510785 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-03-12 09:43:10 [0.32ms] */
select * from `transaction` where `transaction`.`id` = 510785 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-03-12 09:43:10 [0.22ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-03-12 09:43:10 [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/confirm_payment
   Query 15 - 2025-03-12 09:43:10 [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/get_receipt_number
   Query 1 - 2025-03-12 09:43:10 [1.31ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:43:10 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:43:10 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:43:10 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:43:10 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:43:10 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:43:10 [0.79ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:43:10 [1.54ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:43:10 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:43:10 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:43:10 [0.35ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:43:10 [1.05ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:43:10 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:43:10 [0.96ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-03-12 09:43:10 [159.01ms] */
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` = 510785 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-03-12 09:43:10 [0.28ms] */
select * from `party` where `party`.`id` = 36632 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-03-12 09:43:10 [0.44ms] */
insert into `Payment` (`payment_date`, `external_payment_reference_no`, `payment_receipt_number`, `payment_method_id`, `payment_amount`, `paid_by`, `paid_by_mobile`, `siinpay_payref_number`, `district_id`, `payment_collected_by`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('2025-03-12 09:43:10', null, 2226121, 1, 38.00, 'sharmaake', 7770097, null, 37, 153, 153, 153, '2025-03-12 09:43:10', '2025-03-12 09:43:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-03-12 09:43:10 [0.22ms] */
select * from `Payment` where `id` = 177595 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-03-12 09:43:10 [0.34ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('Payment', '{"attributes":{"payment_method_id":1,"payment_amount":"38.00","payment_date":"2025-03-12 09:43:10","external_payment_reference_no":null,"payment_receipt_number":"2226121","siinpay_payref_number":null,"paid_by":"sharmaake","paid_by_mobile":"7770097","district_id":37,"migration_id":null,"payment_collected_by":153}}', 153, 'App\Models\User', 177595, 'Modules\Transaction\Entities\Payment', 'created', '2025-03-12 09:43:10', '2025-03-12 09:43:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-03-12 09:43:10 [0.35ms] */
select * from `transaction` where `transaction`.`id` = 510785 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-03-12 09:43:10 [0.18ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-03-12 09:43:10 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-03-12 09:43:10 [0.34ms] */
select * from `invoice` where `invoice`.`id` = 486422 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-03-12 09:43:10 [0.39ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-03-12 09:43:10', 486422, 177595, '2025-03-12 09:43:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-03-12 09:43:10 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 486422 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-03-12 09:43:10 [0.41ms] */
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` = 486422 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-03-12 09:43:10 [0.48ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486422 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 29 - 2025-03-12 09:43:10 [0.31ms] */
update `invoice` set `invoice_amount` = 38, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 38, `status` = 'PAID', `invoice`.`updated_at` = '2025-03-12 09:43:10' where `id` = 486422;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-03-12 09:43:10 [0.26ms] */
select * from `invoice` where `id` = 486422 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-03-12 09:43:10 [0.29ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"38.00","status":"OPEN"}}', 153, 'App\Models\User', 486422, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:43:10', '2025-03-12 09:43:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-03-12 09:43:10 [0.32ms] */
select * from `transaction` where `transaction`.`id` = 510745 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-03-12 09:43:10 [0.19ms] */
select * from `transaction` where `transaction`.`id` = 510745 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-03-12 09:43:10 [0.16ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 35 - 2025-03-12 09:43:10 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 36 - 2025-03-12 09:43:10 [0.29ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 37 - 2025-03-12 09:43:10 [0.52ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510745, 'PAID', '2025-03-12 09:43:10', 7, 153, null, 153, 153, '2025-03-12 09:43:10', '2025-03-12 09:43:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-03-12 09:43:10 [0.33ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 39 - 2025-03-12 09:43:10 [0.43ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-03-12 09:43:10' where `id` = 510745;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-03-12 09:43:10 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 41 - 2025-03-12 09:43:10 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 486422 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 42 - 2025-03-12 09:43:10 [0.33ms] */
select * from `vehicle_tax` where `transaction_id` = 510745 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-03-12 09:43:10 [0.25ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-03-12 09:43:10' where `id` = 401059;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-03-12 09:43:10 [0.24ms] */
select * from `vehicle_tax` where `id` = 401059 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-03-12 09:43:10 [0.29ms] */
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"}}', 153, 'App\Models\User', 401059, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-12 09:43:10', '2025-03-12 09:43:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-03-12 09:43:10 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 486462 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 47 - 2025-03-12 09:43:10 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 486462 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-03-12 09:43:10 [0.21ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-03-12 09:43:10', 486462, 177595, '2025-03-12 09:43:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-03-12 09:43:10 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 486462 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-03-12 09:43:10 [0.32ms] */
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` = 486462 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-03-12 09:43:10 [0.23ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-03-12 09:43:10' where `id` = 486462;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-03-12 09:43:10 [0.24ms] */
select * from `invoice` where `id` = 486462 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-03-12 09:43:10 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"38.00","status":"OPEN"}}', 153, 'App\Models\User', 486462, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:43:10', '2025-03-12 09:43:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-03-12 09:43:10 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 510785 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-03-12 09:43:10 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 510785 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-03-12 09:43:10 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-03-12 09:43:10 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 58 - 2025-03-12 09:43:10 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 59 - 2025-03-12 09:43:10 [0.22ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510785, 'PAID', '2025-03-12 09:43:10', 7, 153, null, 153, 153, '2025-03-12 09:43:10', '2025-03-12 09:43:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-03-12 09:43:10 [0.26ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-03-12 09:43:10 [0.25ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-03-12 09:43:10' where `id` = 510785;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-03-12 09:43:10 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-03-12 09:43:10 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 486462 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-03-12 09:43:10 [2.95ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-03-12 09:43:10' where `receipt_number` = 2226121 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-03-12 09:43:10 [2.44ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-03-12 09:43:10' where `receipt_number` = 94664 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:43:10 [1.58ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:43:10 [0.2ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:43:10 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:43:10 [0.22ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:43:10 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:43:10 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:43:10 [0.21ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-03-12 09:43:26 [1.36ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-03-12 09:43:26 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-03-12 09:43:26 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-03-12 09:43:26 [0.18ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-03-12 09:43:26 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-03-12 09:43:26 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-03-12 09:43:26 [0.95ms] */
select * from `vehicle_tax` where `id` = 401059 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-03-12 09:43:26 [0.92ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-03-12 09:43:32 [1.79ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-03-12 09:43:32 [0.2ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-03-12 09:43:32 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-03-12 09:43:32 [0.25ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-03-12 09:43:32 [0.22ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-03-12 09:43:32 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-03-12 09:43:33 [1.29ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-03-12 09:43:33 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-03-12 09:43:33 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-03-12 09:43:33 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-03-12 09:43:33 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 6 - 2025-03-12 09:43:33 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 7 - 2025-03-12 09:43:33 [0.94ms] */
select * from `vehicle_tax` where `id` in (401059) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 8 - 2025-03-12 09:43:33 [0.94ms] */
select * from `transaction` where `transaction`.`id` = 510745 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 9 - 2025-03-12 09:43:33 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 510745 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 10 - 2025-03-12 09:43:33 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 11 - 2025-03-12 09:43:33 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 12 - 2025-03-12 09:43:33 [0.15ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 13 - 2025-03-12 09:43:33 [1.56ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510745, 'APPROVED', '2025-03-12 09:43:33', 8, 153, null, 153, 153, '2025-03-12 09:43:33', '2025-03-12 09:43:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 14 - 2025-03-12 09:43:33 [0.15ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 15 - 2025-03-12 09:43:33 [0.51ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-03-12 09:43:33' where `id` = 510745;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-03-12 09:43:33 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 17 - 2025-03-12 09:43:33 [0.28ms] */
select * from `vehicle_tax` where `transaction_id` = 510745 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-03-12 09:43:33 [0.2ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-03-12 09:43:33' where `id` = 401059;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-03-12 09:43:33 [0.19ms] */
select * from `vehicle_tax` where `id` = 401059 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-03-12 09:43:33 [1.05ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"ISSUED"},"old":{"status":"PAID"}}', 153, 'App\Models\User', 401059, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-12 09:43:33', '2025-03-12 09:43:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-03-12 09:43:33 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 486422 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 22 - 2025-03-12 09:43:33 [0.29ms] */
select * from `transaction` where `id` = 510745 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 23 - 2025-03-12 09:43:33 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 510785 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 24 - 2025-03-12 09:43:33 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 25 - 2025-03-12 09:43:33 [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/complete_transaction
   Query 26 - 2025-03-12 09:43:33 [0.15ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 27 - 2025-03-12 09:43:33 [0.23ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510785, 'APPROVED', '2025-03-12 09:43:33', 8, 153, null, 153, 153, '2025-03-12 09:43:33', '2025-03-12 09:43:33');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 28 - 2025-03-12 09:43:33 [0.14ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 29 - 2025-03-12 09:43:33 [0.25ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-03-12 09:43:33' where `id` = 510785;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 30 - 2025-03-12 09:43:33 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 31 - 2025-03-12 09:43:33 [0.23ms] */
select * from `vehicle_tax` where `transaction_id` = 510785 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/complete_transaction
   Query 32 - 2025-03-12 09:43:33 [0.29ms] */
select * from `invoice` where `invoice`.`id` = 486462 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:43:35 [1.54ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:43:35 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:43:35 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:43:35 [0.17ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:43:35 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:43:35 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:43:35 [0.16ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 5 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:44:05 [2.31ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:44:05 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:44:05 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:44:05 [0.31ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:44:05 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '0b383e93f802620cd03fe6f1443a72b8c6ad2742597863a8810825af828fa29a33b13e75645d468d' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:44:05 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:44:05 [0.15ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 5 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-12 09:45:12 [1.49ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-12 09:45:12 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-12 09:45:12 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-12 09:45:12 [0.24ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-12 09:45:12 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-12 09:45:12 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-12 09:45:12 [0.47ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 31246 and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-12 09:45:12 [0.2ms] */
select * from `party` where `party`.`id` = 36632 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-12 09:45:12 [0.2ms] */
select * from `vehicle` where `id` = 111 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 10 - 2025-03-12 09:45:12 [0.19ms] */
select * from `party_vehicle` where `vehicle_id` = 111 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 1 - 2025-03-12 09:45:12 [14.62ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 2 - 2025-03-12 09:45:12 [0.25ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 3 - 2025-03-12 09:45:12 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 4 - 2025-03-12 09:45:12 [0.25ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 5 - 2025-03-12 09:45:12 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 6 - 2025-03-12 09:45:12 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 7 - 2025-03-12 09:45:12 [0.23ms] */
select * from `vehicle` where `vehicle`.`id` = 111 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 8 - 2025-03-12 09:45:12 [0.18ms] */
select * from `vehicle` where `id` = 111 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/taxes
   Query 9 - 2025-03-12 09:45:12 [0.2ms] */
select * from `party_vehicle` where `vehicle_id` = 111 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-03-12 09:45:12 [9.43ms] */
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` = 111 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-03-12 09:45:13 [1.55ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 2 - 2025-03-12 09:45:13 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 3 - 2025-03-12 09:45:13 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 4 - 2025-03-12 09:45:13 [0.2ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 5 - 2025-03-12 09:45:13 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 6 - 2025-03-12 09:45:13 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/region-list
   Query 7 - 2025-03-12 09:45:13 [0.15ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-12 09:45:13 [1.42ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-12 09:45:13 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-12 09:45:13 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-12 09:45:13 [0.19ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-12 09:45:13 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-12 09:45:13 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-12 09:45:13 [0.2ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 1 - 2025-03-12 09:45:16 [1.38ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 2 - 2025-03-12 09:45:16 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 3 - 2025-03-12 09:45:16 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 4 - 2025-03-12 09:45:16 [0.18ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 5 - 2025-03-12 09:45:16 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 6 - 2025-03-12 09:45:16 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 7 - 2025-03-12 09:45:16 [0.16ms] */
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-03-12 09:45:16 [0.32ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401060) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 9 - 2025-03-12 09:45:16 [0.26ms] */
select `parent_id` from `transaction` where `id` in (510746) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 10 - 2025-03-12 09:45:16 [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-03-12 09:45:16 [0.24ms] */
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-03-12 09:45:16 [0.24ms] */
select * from `transaction` where `id` in (510746) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 13 - 2025-03-12 09:45:16 [0.34ms] */
select * from `invoice` where `invoice`.`id` = 486423 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-03-12 09:45:16 [5.93ms] */
update `invoice` set `updated_by` = 153, `invoice`.`updated_at` = '2025-03-12 09:45:16' where `id` = 486423;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 15 - 2025-03-12 09:45:16 [0.25ms] */
select * from `invoice` where `id` = 486423 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 16 - 2025-03-12 09:45:16 [3.25ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 153, 'App\Models\User', 486423, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:45:16', '2025-03-12 09:45:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 17 - 2025-03-12 09:45:16 [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-03-12 09:45:16 [0.32ms] */
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-03-12 09:45:16 [3.45ms] */
update `transaction` set `updated_by` = 153, `transaction`.`updated_at` = '2025-03-12 09:45:16' where `id` = 510746;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 20 - 2025-03-12 09:45:16 [3.33ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-03-12 09:45:16' where `id` in (401060) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 21 - 2025-03-12 09:45:16 [0.46ms] */
select * from `vehicle` where `vehicle`.`id` = 111 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 22 - 2025-03-12 09:45:16 [0.23ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 23 - 2025-03-12 09:45:16 [0.22ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 111 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 24 - 2025-03-12 09:45:16 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 111 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 25 - 2025-03-12 09:45:16 [0.24ms] */
select * from `party` where `party`.`id` = 36632 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 26 - 2025-03-12 09:45:16 [0.22ms] */
select * from `vehicle` where `vehicle`.`id` = 111 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 27 - 2025-03-12 09:45:16 [0.13ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 28 - 2025-03-12 09:45:16 [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 29 - 2025-03-12 09:45:16 [0.14ms] */
select * from `branches` where `branches`.`id` = 16 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 30 - 2025-03-12 09:45:16 [0.74ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (36632, 2, 111, null, 2, 6, 16, 37, 37, 'OPEN', 26, null, 153, 153, '2025-03-12 09:45:16', '2025-03-12 09:45:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 31 - 2025-03-12 09:45:16 [0.36ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510786, 'INITIATED', '2025-03-12 09:45:16', 5, 153, 153, 153, '2025-03-12 09:45:16', '2025-03-12 09:45:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 32 - 2025-03-12 09:45:16 [0.25ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 20639, `transaction`.`updated_at` = '2025-03-12 09:45:16' where `id` = 510786;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 33 - 2025-03-12 09:45:16 [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 (401060) 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 34 - 2025-03-12 09:45:16 [0.2ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (401060) 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 35 - 2025-03-12 09:45:16 [0.29ms] */
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 (510786, 36632, '2025-03-12 09:45:16', '2025-03-12 09:45:16', 38.00, 0, 38.00, 38.00, 0, 'OPEN', 'N', 'Y', 153, 153, '2025-03-12 09:45:16', '2025-03-12 09:45:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 36 - 2025-03-12 09:45:16 [0.19ms] */
select * from `invoice` where `id` = 486463 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 37 - 2025-03-12 09:45:16 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":510786,"party_id":36632,"invoice_amount":"38.00","invoice_date":"2025-03-12 09:45:16","due_date":"2025-03-12 09:45:16","outstanding_balance":"38.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"38.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 153, 'App\Models\User', 486463, 'Modules\Transaction\Entities\Invoice', 'created', '2025-03-12 09:45:16', '2025-03-12 09:45:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 38 - 2025-03-12 09:45:16 [0.25ms] */
select `invoice`.* from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (401060) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 39 - 2025-03-12 09:45:16 [0.26ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Tax Service Fee', 'Combined Quarterly Tax Fees', 1, 38.00, 38, 486463, 153, 153, '2025-03-12 09:45:16', '2025-03-12 09:45:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 40 - 2025-03-12 09:45:16 [0.18ms] */
select * from `invoice_item` where `id` = 872408 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 41 - 2025-03-12 09:45:16 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Quarterly Tax Fees","unit_price":"38.00","quantity":1,"total_price":"38.00","invoice_id":486463}}', 153, 'App\Models\User', 872408, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-03-12 09:45:16', '2025-03-12 09:45:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 42 - 2025-03-12 09:45:16 [0.23ms] */
update `invoice` set `invoice_number` = 'INV-262-486463343', `invoice`.`updated_at` = '2025-03-12 09:45:16' where `id` = 486463;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 43 - 2025-03-12 09:45:16 [0.19ms] */
select * from `invoice` where `id` = 486463 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 44 - 2025-03-12 09:45:16 [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-262-486463343"},"old":{"invoice_number":null}}', 153, 'App\Models\User', 486463, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:45:16', '2025-03-12 09:45:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 45 - 2025-03-12 09:45:16 [0.27ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 401060 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 46 - 2025-03-12 09:45:16 [0.17ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 153, `vehicle_tax`.`updated_at` = '2025-03-12 09:45:16' where `id` = 401060;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 47 - 2025-03-12 09:45:16 [0.19ms] */
select * from `vehicle_tax` where `id` = 401060 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 48 - 2025-03-12 09:45:16 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 153, 'App\Models\User', 401060, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-12 09:45:16', '2025-03-12 09:45:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 49 - 2025-03-12 09:45:16 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 510746 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 50 - 2025-03-12 09:45:16 [0.2ms] */
update `transaction` set `tax_collection_point_id` = 26, `parent_id` = 510786, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-03-12 09:45:16' where `id` = 510746;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 51 - 2025-03-12 09:45:16 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486423 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 52 - 2025-03-12 09:45:16 [0.17ms] */
update `invoice` set `parent_id` = 486463, `grouped` = 'Y', `invoice`.`updated_at` = '2025-03-12 09:45:16' where `id` = 486423;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 53 - 2025-03-12 09:45:16 [0.18ms] */
select * from `invoice` where `id` = 486423 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 54 - 2025-03-12 09:45:16 [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":486463,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 153, 'App\Models\User', 486423, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:45:16', '2025-03-12 09:45:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 55 - 2025-03-12 09:45:16 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 510746 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 56 - 2025-03-12 09:45:16 [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 57 - 2025-03-12 09:45:16 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 58 - 2025-03-12 09:45:16 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 59 - 2025-03-12 09:45:16 [0.38ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 60 - 2025-03-12 09:45:16 [0.17ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 61 - 2025-03-12 09:45:16 [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 (510746, 'APPROVED', '2025-03-12 09:45:16', 5, 153, null, 153, 153, '2025-03-12 09:45:16', '2025-03-12 09:45:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 62 - 2025-03-12 09:45:16 [0.23ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 63 - 2025-03-12 09:45:16 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-12 09:45:16' where `id` = 510746;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 64 - 2025-03-12 09:45:16 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 65 - 2025-03-12 09:45:16 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486423 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 66 - 2025-03-12 09:45:16 [0.18ms] */
update `transaction` set `invoice_id` = 486463, `transaction`.`updated_at` = '2025-03-12 09:45:16' where `id` = 510786;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 67 - 2025-03-12 09:45:16 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 510786 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 68 - 2025-03-12 09:45:16 [0.18ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 69 - 2025-03-12 09:45:16 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 70 - 2025-03-12 09:45:16 [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 71 - 2025-03-12 09:45:16 [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 (510786, 'APPROVED', '2025-03-12 09:45:16', 5, 153, null, 153, 153, '2025-03-12 09:45:16', '2025-03-12 09:45:16');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 72 - 2025-03-12 09:45:16 [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 73 - 2025-03-12 09:45:16 [0.24ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-03-12 09:45:16' where `id` = 510786;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 74 - 2025-03-12 09:45:16 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 75 - 2025-03-12 09:45:16 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 486463 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 76 - 2025-03-12 09:45:16 [0.21ms] */
select `transaction_id` from `vehicle_tax` where `id` in (401060) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 77 - 2025-03-12 09:45:16 [0.32ms] */
select * from `invoice` where `transaction_id` = 510746 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 78 - 2025-03-12 09:45:16 [0.28ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486423 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 79 - 2025-03-12 09:45:16 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 510746 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/make_payment
   Query 80 - 2025-03-12 09:45:16 [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 81 - 2025-03-12 09:45:16 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 1 - 2025-03-12 09:45:16 [2.19ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 2 - 2025-03-12 09:45:16 [0.21ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 3 - 2025-03-12 09:45:16 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 4 - 2025-03-12 09:45:16 [0.25ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 5 - 2025-03-12 09:45:16 [0.21ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 6 - 2025-03-12 09:45:16 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/api/payment_providers
   Query 7 - 2025-03-12 09:45:16 [0.27ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-12 09:45:38 [1.78ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-12 09:45:38 [0.25ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-12 09:45:38 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-12 09:45:38 [0.16ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-12 09:45:38 [0.33ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-12 09:45:38 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-12 09:45:38 [0.38ms] */
delete from `payment_documents` where `transaction_id` = 510746 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-12 09:45:38 [0.37ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2226121;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-12 09:45:50 [1.36ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-12 09:45:50 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-12 09:45:50 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-12 09:45:50 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-12 09:45:50 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-12 09:45:50 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-12 09:45:50 [0.3ms] */
delete from `payment_documents` where `transaction_id` = 510746 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-12 09:45:50 [0.27ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2223651;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-03-12 09:45:50 [1.55ms] */
select * from `transaction` where `transaction`.`id` = 510746 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-03-12 09:45:50 [500.09ms] */
select * from `transaction` where `parent_id` = 510786 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-03-12 09:45:50 [20.6ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (510746, 'GOV_RECEIPT_IMAGE', 2223651, 1, '2025-03-12 09:45:50', '2025-03-12 09:45:50');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-03-12 09:45:50 [3.94ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (510786, 'GOV_RECEIPT_IMAGE', 2223651, 1, '2025-03-12 09:45:50', '2025-03-12 09:45:50');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:45:51 [1.69ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:45:51 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:45:51 [0.32ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:45:51 [0.33ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:45:51 [0.29ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:45:51 [0.28ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:45:51 [0.28ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:45:51 [1.21ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:45:51 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:45:51 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:45:51 [0.16ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:45:51 [0.17ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:45:51 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:45:51 [0.15ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-03-12 09:45:57 [1.32ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-03-12 09:45:57 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-03-12 09:45:57 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-03-12 09:45:57 [0.17ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-03-12 09:45:57 [0.13ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-03-12 09:45:57 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-03-12 09:45:57 [0.59ms] */
delete from `payment_documents` where `transaction_id` = 510746 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-03-12 09:45:57 [0.28ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 106324;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-03-12 09:45:57 [0.17ms] */
select * from `transaction` where `transaction`.`id` = 510746 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-03-12 09:45:57 [0.15ms] */
select * from `transaction` where `parent_id` = 510786 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-03-12 09:45:57 [2.83ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (510746, 'SERVICE_RECEIPT_IMAGE', 106324, 1, '2025-03-12 09:45:57', '2025-03-12 09:45:57');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-03-12 09:45:57 [3.34ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (510786, 'SERVICE_RECEIPT_IMAGE', 106324, 1, '2025-03-12 09:45:57', '2025-03-12 09:45:57');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-03-12 09:45:57 [2.16ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-03-12 09:45:57 [0.25ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-03-12 09:45:57 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-03-12 09:45:57 [0.3ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-03-12 09:45:57 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-03-12 09:45:57 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-03-12 09:45:57 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 510746 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-03-12 09:45:57 [1.45ms] */
select * from `transaction` where `transaction`.`id` = 510786 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-03-12 09:45:57 [1.09ms] */
select * from `invoice_payment` where `invoice_id` = 486463 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:45:58 [1.37ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:45:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:45:58 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:45:58 [0.16ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:45:58 [0.13ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:45:58 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:45:58 [1.21ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:45:58 [0.13ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:45:58 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:45:58 [0.17ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:45:58 [0.23ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:45:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:45:58 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:45:58 [0.15ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-03-12 09:45:58 [371.26ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 510786 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-03-12 09:45:58 [191.86ms] */
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` = 510786 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-03-12 09:45:58 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 510786 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-03-12 09:45:58 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-03-12 09:45:58 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 15 - 2025-03-12 09:45:58 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-03-12 09:45:58 [226.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` = 510786 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-03-12 09:45:58 [0.3ms] */
select * from `party` where `party`.`id` = 36632 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-03-12 09:45:58 [1.25ms] */
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-03-12 09:45:58', null, 2223651, 1, 38.00, 'sharmake', 7770097, null, 37, 153, 153, 153, '2025-03-12 09:45:58', '2025-03-12 09:45:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-03-12 09:45:58 [0.4ms] */
select * from `Payment` where `id` = 177596 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-03-12 09:45:58 [1.46ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('Payment', '{"attributes":{"payment_method_id":1,"payment_amount":"38.00","payment_date":"2025-03-12 09:45:58","external_payment_reference_no":null,"payment_receipt_number":"2223651","siinpay_payref_number":null,"paid_by":"sharmake","paid_by_mobile":"7770097","district_id":37,"migration_id":null,"payment_collected_by":153}}', 153, 'App\Models\User', 177596, 'Modules\Transaction\Entities\Payment', 'created', '2025-03-12 09:45:58', '2025-03-12 09:45:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-03-12 09:45:58 [0.4ms] */
select * from `transaction` where `transaction`.`id` = 510786 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-03-12 09:45:58 [0.18ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-03-12 09:45:58 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-03-12 09:45:58 [0.39ms] */
select * from `invoice` where `invoice`.`id` = 486423 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-03-12 09:45:58 [0.65ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-03-12 09:45:58', 486423, 177596, '2025-03-12 09:45:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-03-12 09:45:58 [0.29ms] */
select * from `invoice` where `invoice`.`id` = 486423 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-03-12 09:45:58 [0.4ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 486423 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-03-12 09:45:58 [0.78ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 486423 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 29 - 2025-03-12 09:45:58 [0.33ms] */
update `invoice` set `invoice_amount` = 38, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 38, `status` = 'PAID', `invoice`.`updated_at` = '2025-03-12 09:45:58' where `id` = 486423;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-03-12 09:45:58 [0.27ms] */
select * from `invoice` where `id` = 486423 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-03-12 09:45:58 [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":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"38.00","status":"OPEN"}}', 153, 'App\Models\User', 486423, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:45:58', '2025-03-12 09:45:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-03-12 09:45:58 [0.35ms] */
select * from `transaction` where `transaction`.`id` = 510746 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-03-12 09:45:58 [0.19ms] */
select * from `transaction` where `transaction`.`id` = 510746 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-03-12 09:45:58 [0.17ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 35 - 2025-03-12 09:45:58 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 36 - 2025-03-12 09:45:58 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 37 - 2025-03-12 09:45:58 [1.29ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (510746, 'PAID', '2025-03-12 09:45:58', 7, 153, null, 153, 153, '2025-03-12 09:45:58', '2025-03-12 09:45:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-03-12 09:45:58 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 39 - 2025-03-12 09:45:58 [0.43ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-03-12 09:45:58' where `id` = 510746;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-03-12 09:45:58 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 41 - 2025-03-12 09:45:58 [0.32ms] */
select * from `invoice` where `invoice`.`id` = 486423 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 42 - 2025-03-12 09:45:58 [0.44ms] */
select * from `vehicle_tax` where `transaction_id` = 510746 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-03-12 09:45:58 [0.24ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-03-12 09:45:58' where `id` = 401060;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-03-12 09:45:58 [0.25ms] */
select * from `vehicle_tax` where `id` = 401060 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-03-12 09:45:58 [0.35ms] */
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"}}', 153, 'App\Models\User', 401060, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-03-12 09:45:58', '2025-03-12 09:45:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-03-12 09:45:58 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 486463 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 47 - 2025-03-12 09:45:58 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 486463 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-03-12 09:45:58 [0.23ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-03-12 09:45:58', 486463, 177596, '2025-03-12 09:45:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-03-12 09:45:58 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 486463 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-03-12 09:45:58 [0.42ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 486463 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-03-12 09:45:58 [0.26ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-03-12 09:45:58' where `id` = 486463;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-03-12 09:45:58 [0.23ms] */
select * from `invoice` where `id` = 486463 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-03-12 09:45:58 [0.23ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"38.00","status":"OPEN"}}', 153, 'App\Models\User', 486463, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-03-12 09:45:58', '2025-03-12 09:45:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-03-12 09:45:58 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 510786 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-03-12 09:45:58 [1.67ms] */
select * from `transaction` where `transaction`.`id` = 510786 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-03-12 09:45:58 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-03-12 09:45:58 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 58 - 2025-03-12 09:45:58 [0.2ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 59 - 2025-03-12 09:45:58 [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 (510786, 'PAID', '2025-03-12 09:45:58', 7, 153, null, 153, 153, '2025-03-12 09:45:58', '2025-03-12 09:45:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-03-12 09:45:58 [0.26ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-03-12 09:45:58 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-03-12 09:45:58' where `id` = 510786;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-03-12 09:45:58 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-03-12 09:45:58 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 486463 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-03-12 09:45:58 [3.62ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-03-12 09:45:58' where `receipt_number` = 2223651 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-03-12 09:45:58 [2.69ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-03-12 09:45:58' where `receipt_number` = 106324 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-03-12 09:45:59 [1.28ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-03-12 09:45:59 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-03-12 09:45:59 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-03-12 09:45:59 [0.16ms] */
select * from `users` where `id` = 153 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-03-12 09:45:59 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-03-12 09:45:59 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-03-12 09:45:59 [0.15ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 153 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-03-12 09:46:01 [2.11ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-03-12 09:46:01 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'b0ed05295c13ee7c4f4ed962b326b2336bf3fc3d1e4528571cc2f0906bad374047bb0678fb6d52ef' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-03-12 09:46:01 [0.27ms] */
