select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 263 - 2024-11-29 07:01:10 [0.13ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 264 - 2024-11-29 07:01:10 [0.3ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 265 - 2024-11-29 07:01:10 [0.31ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 266 - 2024-11-29 07:01:10 [0.13ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 267 - 2024-11-29 07:01:10 [0.17ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 268 - 2024-11-29 07:01:10 [0.33ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 269 - 2024-11-29 07:01:10 [0.14ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 270 - 2024-11-29 07:01:10 [0.18ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 271 - 2024-11-29 07:01:10 [0.34ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 272 - 2024-11-29 07:01:10 [0.14ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 273 - 2024-11-29 07:01:10 [0.18ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 274 - 2024-11-29 07:01:10 [0.34ms] */
select * from `vehicle_tax` where `status` = 'OPEN' and `vehicle_id` = 89733 and `vehicle_tax`.`deleted_at` is null order by `term_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 275 - 2024-11-29 07:01:10 [0.17ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 89733 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 276 - 2024-11-29 07:01:10 [0.19ms] */
select * from `party_vehicle` where `vehicle_id` = 89733 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-component
   Query 277 - 2024-11-29 07:01:10 [0.2ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 278 - 2024-11-29 07:01:10 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 279 - 2024-11-29 07:01:10 [0.48ms] */
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` = 89733 and date(`term`.`first_date_of_quarter`) <= '2024-11-29' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 280 - 2024-11-29 07:01:10 [0.28ms] */
select `id` from `vehicle_tax` where `status` = 'OPEN' and `vehicle_id` = 89733 and `vehicle_tax`.`deleted_at` is null order by `term_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 281 - 2024-11-29 07:01:10 [0.39ms] */
select sum(`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 (99069, 99073, 99077, 99078, 99079, 99080, 99081, 99082) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 282 - 2024-11-29 07:01:10 [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-component
   Query 283 - 2024-11-29 07:01:10 [0.15ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 284 - 2024-11-29 07:01:10 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 102352 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 285 - 2024-11-29 07:01:10 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 101952 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 286 - 2024-11-29 07:01:10 [0.14ms] */
select * from `term` where `term`.`id` = 94 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 287 - 2024-11-29 07:01:10 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 102360 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 288 - 2024-11-29 07:01:10 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 101960 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 289 - 2024-11-29 07:01:10 [0.15ms] */
select * from `term` where `term`.`id` = 95 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 290 - 2024-11-29 07:01:10 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 102361 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 291 - 2024-11-29 07:01:10 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 101961 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 292 - 2024-11-29 07:01:10 [0.14ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 293 - 2024-11-29 07:01:10 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 102362 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 294 - 2024-11-29 07:01:10 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 101962 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 295 - 2024-11-29 07:01:10 [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-component
   Query 296 - 2024-11-29 07:01:10 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 102356 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 297 - 2024-11-29 07:01:10 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 101956 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 298 - 2024-11-29 07:01:10 [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-component
   Query 299 - 2024-11-29 07:01:10 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 102363 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 300 - 2024-11-29 07:01:10 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 101963 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 301 - 2024-11-29 07:01:10 [0.14ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 302 - 2024-11-29 07:01:10 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 102364 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 303 - 2024-11-29 07:01:10 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 101964 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 304 - 2024-11-29 07:01:10 [0.14ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 305 - 2024-11-29 07:01:10 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 102365 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 306 - 2024-11-29 07:01:10 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 101965 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 307 - 2024-11-29 07:01: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/livewire/message/service.tax-component
   Query 308 - 2024-11-29 07:01:10 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 309 - 2024-11-29 07:01:10 [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/livewire/message/service.tax-component
   Query 310 - 2024-11-29 07:01: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/livewire/message/service.tax-component
   Query 311 - 2024-11-29 07:01:10 [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/livewire/message/service.tax-component
   Query 312 - 2024-11-29 07:01: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/livewire/message/service.tax-component
   Query 313 - 2024-11-29 07:01:10 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 314 - 2024-11-29 07:01: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/livewire/message/service.tax-component
   Query 315 - 2024-11-29 07:01:10 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 316 - 2024-11-29 07:01:10 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 317 - 2024-11-29 07:01:10 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 318 - 2024-11-29 07:01: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/livewire/message/service.tax-component
   Query 319 - 2024-11-29 07:01:10 [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/livewire/message/service.tax-component
   Query 320 - 2024-11-29 07:01: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/livewire/message/service.tax-component
   Query 321 - 2024-11-29 07:01:10 [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/livewire/message/service.tax-component
   Query 322 - 2024-11-29 07:01: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/livewire/message/service.tax-component
   Query 1 - 2024-11-29 07:01:26 [1.62ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 2 - 2024-11-29 07:01:26 [0.67ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 3 - 2024-11-29 07:01:26 [0.55ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 4 - 2024-11-29 07:01:26 [0.59ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 5 - 2024-11-29 07:01:26 [0.5ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` in (99069, 99077, 99078, 99079, 99073, 99080, 99081, 99082);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 6 - 2024-11-29 07:01:26 [0.27ms] */
select * from `term` where `term`.`id` in (93, 94, 95, 96, 97, 98, 99, 100) and `term`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 7 - 2024-11-29 07:01:26 [0.46ms] */
select * from `transaction` where `transaction`.`id` in (102352, 102356, 102360, 102361, 102362, 102363, 102364, 102365) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 8 - 2024-11-29 07:01:26 [0.48ms] */
select * from `invoice` where `invoice`.`id` in (101952, 101956, 101960, 101961, 101962, 101963, 101964, 101965) and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 9 - 2024-11-29 07:01:26 [0.25ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 98706 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 10 - 2024-11-29 07:01:26 [0.24ms] */
select * from `party` where `party`.`id` in (57116) and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 11 - 2024-11-29 07:01:26 [0.36ms] */
select * from `vehicle` where `vehicle`.`id` in (89733) and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 12 - 2024-11-29 07:01:26 [0.16ms] */
select * from `classification_type` where `classification_type`.`id` in (2) and `classification_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 13 - 2024-11-29 07:01:26 [0.25ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 14 - 2024-11-29 07:01:26 [0.37ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 15 - 2024-11-29 07:01:26 [0.4ms] */
select * from `service_fee` where (`sub_category_id` = 4 and `service_id` = 2 or `sub_category_id` is null and `service_id` = 2) and `service_fee`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 16 - 2024-11-29 07:01:26 [0.35ms] */
select `id` from `term` where `quarter` = 1 and `year` >= 2023 and `term`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 17 - 2024-11-29 07:01:26 [0.23ms] */
select `id` from `term` where `quarter` != 1 and `year` >= 2023 and `term`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 18 - 2024-11-29 07:01:26 [0.83ms] */
select * from `vehicle_tax` where `vehicle_id` = 89733 and `term_id` in (93, 97, 101) and `status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 19 - 2024-11-29 07:01:26 [0.65ms] */
select * from `vehicle_tax` where `vehicle_id` = 89733 and `term_id` in (94, 95, 96, 98, 99, 100) and `status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 20 - 2024-11-29 07:01:26 [0.36ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 21 - 2024-11-29 07:01:26 [0.52ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99069 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 22 - 2024-11-29 07:01:26 [0.39ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 23 - 2024-11-29 07:01:26 [0.33ms] */
select * from `term` where `quarter` = 4 and `year` = 2023 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 24 - 2024-11-29 07:01:26 [6.89ms] */
update `vehicle_tax` set `term_id` = 96, `category` = 'Yearly', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:26' where `id` = 99069;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 25 - 2024-11-29 07:01:26 [0.54ms] */
select * from `vehicle_tax` where `id` = 99069 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 26 - 2024-11-29 07:01:26 [3.32ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"term_id":96},"old":{"term_id":93}}', 5, 'App\Models\User', 99069, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:26', '2024-11-29 07:01:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 27 - 2024-11-29 07:01:26 [0.55ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99073 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 28 - 2024-11-29 07:01:26 [0.38ms] */
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-component
   Query 29 - 2024-11-29 07:01:26 [0.43ms] */
select * from `term` where `quarter` = 4 and `year` = 2024 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 30 - 2024-11-29 07:01:26 [3.47ms] */
update `vehicle_tax` set `term_id` = 100, `category` = 'Yearly', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:26' where `id` = 99073;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 31 - 2024-11-29 07:01:26 [0.64ms] */
select * from `vehicle_tax` where `id` = 99073 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 32 - 2024-11-29 07:01:26 [3.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":{"term_id":100},"old":{"term_id":97}}', 5, 'App\Models\User', 99073, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:26', '2024-11-29 07:01:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 33 - 2024-11-29 07:01:26 [0.47ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99077 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 34 - 2024-11-29 07:01:26 [0.48ms] */
select * from `transaction` where `transaction`.`id` = 102360 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 35 - 2024-11-29 07:01:26 [0.47ms] */
select * from `invoice` where `invoice`.`id` = 101960 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 36 - 2024-11-29 07:01:26 [3.16ms] */
update `vehicle_tax` set `deleted_by` = 5, `vehicle_tax`.`updated_at` = '2024-11-29 07:01:26' where `id` = 99077;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 37 - 2024-11-29 07:01:26 [0.48ms] */
select * from `vehicle_tax` where `id` = 99077 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 38 - 2024-11-29 07:01:26 [3.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":[],"old":[]}', 5, 'App\Models\User', 99077, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:26', '2024-11-29 07:01:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 39 - 2024-11-29 07:01:26 [3.22ms] */
update `vehicle_tax` set `deleted_at` = '2024-11-29 07:01:26', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:26' where `id` = 99077;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 40 - 2024-11-29 07:01:26 [0.52ms] */
select * from `vehicle_tax` where `id` = 99077 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 41 - 2024-11-29 07:01:26 [3.54ms] */
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":"OPEN","tax_number":"HQO-102351-756","tax_sticker_id":null,"vehicle_id":89733,"term_id":94,"party_id":57116,"transaction_id":102360,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99077, 'Modules\Vehicle\Entities\VehicleTax', 'deleted', '2024-11-29 07:01:26', '2024-11-29 07:01:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 42 - 2024-11-29 07:01:26 [3.49ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2024-11-29 07:01:26' where `id` = 102360;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 43 - 2024-11-29 07:01:26 [3.29ms] */
update `transaction` set `deleted_at` = '2024-11-29 07:01:26', `transaction`.`updated_at` = '2024-11-29 07:01:26' where `id` = 102360;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 44 - 2024-11-29 07:01:26 [3.28ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2024-11-29 07:01:26' where `id` = 101960;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 45 - 2024-11-29 07:01:26 [0.53ms] */
select * from `invoice` where `id` = 101960 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 46 - 2024-11-29 07:01:26 [3.42ms] */
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', 101960, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:26', '2024-11-29 07:01:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 47 - 2024-11-29 07:01:26 [3.42ms] */
update `invoice` set `deleted_at` = '2024-11-29 07:01:26', `invoice`.`updated_at` = '2024-11-29 07:01:26' where `id` = 101960;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 48 - 2024-11-29 07:01:26 [0.56ms] */
select * from `invoice` where `id` = 101960 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 49 - 2024-11-29 07:01:26 [3.42ms] */
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":102360,"party_id":57116,"invoice_amount":"31.00","invoice_date":"2023-03-01 00:00:00","due_date":"2023-03-01 00:00:00","outstanding_balance":"31.00","discounts":"0.00","taxes":null,"total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-406-101960766","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101960, 'Modules\Transaction\Entities\Invoice', 'deleted', '2024-11-29 07:01:26', '2024-11-29 07:01:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 50 - 2024-11-29 07:01:26 [0.48ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99078 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 51 - 2024-11-29 07:01:26 [0.49ms] */
select * from `transaction` where `transaction`.`id` = 102361 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 52 - 2024-11-29 07:01:26 [0.55ms] */
select * from `invoice` where `invoice`.`id` = 101961 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 53 - 2024-11-29 07:01:26 [3.38ms] */
update `vehicle_tax` set `deleted_by` = 5, `vehicle_tax`.`updated_at` = '2024-11-29 07:01:26' where `id` = 99078;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 54 - 2024-11-29 07:01:26 [0.55ms] */
select * from `vehicle_tax` where `id` = 99078 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 55 - 2024-11-29 07:01:26 [5.64ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 99078, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:26', '2024-11-29 07:01:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 56 - 2024-11-29 07:01:26 [3.23ms] */
update `vehicle_tax` set `deleted_at` = '2024-11-29 07:01:26', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:26' where `id` = 99078;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 57 - 2024-11-29 07:01:26 [0.5ms] */
select * from `vehicle_tax` where `id` = 99078 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 58 - 2024-11-29 07:01:26 [5.52ms] */
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":"OPEN","tax_number":"F1I-102351-228","tax_sticker_id":null,"vehicle_id":89733,"term_id":95,"party_id":57116,"transaction_id":102361,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99078, 'Modules\Vehicle\Entities\VehicleTax', 'deleted', '2024-11-29 07:01:26', '2024-11-29 07:01:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 59 - 2024-11-29 07:01:26 [3.39ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2024-11-29 07:01:26' where `id` = 102361;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 60 - 2024-11-29 07:01:26 [3.42ms] */
update `transaction` set `deleted_at` = '2024-11-29 07:01:26', `transaction`.`updated_at` = '2024-11-29 07:01:26' where `id` = 102361;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 61 - 2024-11-29 07:01:26 [3.38ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2024-11-29 07:01:26' where `id` = 101961;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 62 - 2024-11-29 07:01:26 [0.51ms] */
select * from `invoice` where `id` = 101961 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 63 - 2024-11-29 07:01:26 [3.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 101961, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:26', '2024-11-29 07:01:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 64 - 2024-11-29 07:01:26 [3.1ms] */
update `invoice` set `deleted_at` = '2024-11-29 07:01:26', `invoice`.`updated_at` = '2024-11-29 07:01:26' where `id` = 101961;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 65 - 2024-11-29 07:01:26 [0.47ms] */
select * from `invoice` where `id` = 101961 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 66 - 2024-11-29 07:01:26 [3.32ms] */
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":102361,"party_id":57116,"invoice_amount":"31.00","invoice_date":"2023-06-01 00:00:00","due_date":"2023-06-01 00:00:00","outstanding_balance":"31.00","discounts":"0.00","taxes":null,"total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-216-101961818","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101961, 'Modules\Transaction\Entities\Invoice', 'deleted', '2024-11-29 07:01:26', '2024-11-29 07:01:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 67 - 2024-11-29 07:01:26 [0.56ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99079 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 68 - 2024-11-29 07:01:26 [0.57ms] */
select * from `transaction` where `transaction`.`id` = 102362 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 69 - 2024-11-29 07:01:26 [0.55ms] */
select * from `invoice` where `invoice`.`id` = 101962 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 70 - 2024-11-29 07:01:26 [3.47ms] */
update `vehicle_tax` set `deleted_by` = 5, `vehicle_tax`.`updated_at` = '2024-11-29 07:01:26' where `id` = 99079;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 71 - 2024-11-29 07:01:26 [0.47ms] */
select * from `vehicle_tax` where `id` = 99079 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 72 - 2024-11-29 07:01:26 [3.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 99079, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:26', '2024-11-29 07:01:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 73 - 2024-11-29 07:01:26 [5.4ms] */
update `vehicle_tax` set `deleted_at` = '2024-11-29 07:01:26', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:26' where `id` = 99079;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 74 - 2024-11-29 07:01:26 [0.54ms] */
select * from `vehicle_tax` where `id` = 99079 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 75 - 2024-11-29 07:01:26 [3.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":"OPEN","tax_number":"BG0-102351-624","tax_sticker_id":null,"vehicle_id":89733,"term_id":96,"party_id":57116,"transaction_id":102362,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99079, 'Modules\Vehicle\Entities\VehicleTax', 'deleted', '2024-11-29 07:01:26', '2024-11-29 07:01:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 76 - 2024-11-29 07:01:26 [3.21ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2024-11-29 07:01:26' where `id` = 102362;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 77 - 2024-11-29 07:01:26 [3.07ms] */
update `transaction` set `deleted_at` = '2024-11-29 07:01:26', `transaction`.`updated_at` = '2024-11-29 07:01:26' where `id` = 102362;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 78 - 2024-11-29 07:01:26 [3.13ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2024-11-29 07:01:26' where `id` = 101962;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 79 - 2024-11-29 07:01:26 [0.55ms] */
select * from `invoice` where `id` = 101962 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 80 - 2024-11-29 07:01:26 [3.24ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 101962, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:26', '2024-11-29 07:01:26');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 81 - 2024-11-29 07:01:27 [3.2ms] */
update `invoice` set `deleted_at` = '2024-11-29 07:01:26', `invoice`.`updated_at` = '2024-11-29 07:01:26' where `id` = 101962;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 82 - 2024-11-29 07:01:27 [0.5ms] */
select * from `invoice` where `id` = 101962 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 83 - 2024-11-29 07:01:27 [3.01ms] */
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":102362,"party_id":57116,"invoice_amount":"31.00","invoice_date":"2023-09-01 00:00:00","due_date":"2023-09-01 00:00:00","outstanding_balance":"31.00","discounts":"0.00","taxes":null,"total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-678-101962258","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101962, 'Modules\Transaction\Entities\Invoice', 'deleted', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 84 - 2024-11-29 07:01:27 [0.47ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99080 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 85 - 2024-11-29 07:01:27 [0.48ms] */
select * from `transaction` where `transaction`.`id` = 102363 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 86 - 2024-11-29 07:01:27 [0.49ms] */
select * from `invoice` where `invoice`.`id` = 101963 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 87 - 2024-11-29 07:01:27 [3.48ms] */
update `vehicle_tax` set `deleted_by` = 5, `vehicle_tax`.`updated_at` = '2024-11-29 07:01:27' where `id` = 99080;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 88 - 2024-11-29 07:01:27 [0.65ms] */
select * from `vehicle_tax` where `id` = 99080 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 89 - 2024-11-29 07:01:27 [3.24ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 99080, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 90 - 2024-11-29 07:01:27 [3.7ms] */
update `vehicle_tax` set `deleted_at` = '2024-11-29 07:01:27', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:27' where `id` = 99080;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 91 - 2024-11-29 07:01:27 [0.5ms] */
select * from `vehicle_tax` where `id` = 99080 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 92 - 2024-11-29 07:01:27 [3.08ms] */
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":"OPEN","tax_number":"Z9U-102351-522","tax_sticker_id":null,"vehicle_id":89733,"term_id":98,"party_id":57116,"transaction_id":102363,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99080, 'Modules\Vehicle\Entities\VehicleTax', 'deleted', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 93 - 2024-11-29 07:01:27 [3.1ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2024-11-29 07:01:27' where `id` = 102363;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 94 - 2024-11-29 07:01:27 [3.3ms] */
update `transaction` set `deleted_at` = '2024-11-29 07:01:27', `transaction`.`updated_at` = '2024-11-29 07:01:27' where `id` = 102363;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 95 - 2024-11-29 07:01:27 [3.13ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2024-11-29 07:01:27' where `id` = 101963;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 96 - 2024-11-29 07:01:27 [0.62ms] */
select * from `invoice` where `id` = 101963 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 97 - 2024-11-29 07:01:27 [3.05ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 101963, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 98 - 2024-11-29 07:01:27 [3ms] */
update `invoice` set `deleted_at` = '2024-11-29 07:01:27', `invoice`.`updated_at` = '2024-11-29 07:01:27' where `id` = 101963;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 99 - 2024-11-29 07:01:27 [0.49ms] */
select * from `invoice` where `id` = 101963 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 100 - 2024-11-29 07:01:27 [2.95ms] */
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":102363,"party_id":57116,"invoice_amount":"31.00","invoice_date":"2024-03-01 00:00:00","due_date":"2024-03-01 00:00:00","outstanding_balance":"31.00","discounts":"0.00","taxes":null,"total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-994-101963706","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101963, 'Modules\Transaction\Entities\Invoice', 'deleted', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 101 - 2024-11-29 07:01:27 [0.64ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99081 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 102 - 2024-11-29 07:01:27 [0.63ms] */
select * from `transaction` where `transaction`.`id` = 102364 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 103 - 2024-11-29 07:01:27 [0.62ms] */
select * from `invoice` where `invoice`.`id` = 101964 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 104 - 2024-11-29 07:01:27 [3.16ms] */
update `vehicle_tax` set `deleted_by` = 5, `vehicle_tax`.`updated_at` = '2024-11-29 07:01:27' where `id` = 99081;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 105 - 2024-11-29 07:01:27 [0.59ms] */
select * from `vehicle_tax` where `id` = 99081 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 106 - 2024-11-29 07:01:27 [4.6ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 99081, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 107 - 2024-11-29 07:01:27 [3.27ms] */
update `vehicle_tax` set `deleted_at` = '2024-11-29 07:01:27', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:27' where `id` = 99081;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 108 - 2024-11-29 07:01:27 [0.48ms] */
select * from `vehicle_tax` where `id` = 99081 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 109 - 2024-11-29 07:01:27 [3.44ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"YPV-102351-265","tax_sticker_id":null,"vehicle_id":89733,"term_id":99,"party_id":57116,"transaction_id":102364,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99081, 'Modules\Vehicle\Entities\VehicleTax', 'deleted', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 110 - 2024-11-29 07:01:27 [3.6ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2024-11-29 07:01:27' where `id` = 102364;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 111 - 2024-11-29 07:01:27 [3.2ms] */
update `transaction` set `deleted_at` = '2024-11-29 07:01:27', `transaction`.`updated_at` = '2024-11-29 07:01:27' where `id` = 102364;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 112 - 2024-11-29 07:01:27 [3.18ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2024-11-29 07:01:27' where `id` = 101964;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 113 - 2024-11-29 07:01:27 [0.66ms] */
select * from `invoice` where `id` = 101964 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 114 - 2024-11-29 07:01:27 [3.02ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 101964, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 115 - 2024-11-29 07:01:27 [2.97ms] */
update `invoice` set `deleted_at` = '2024-11-29 07:01:27', `invoice`.`updated_at` = '2024-11-29 07:01:27' where `id` = 101964;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 116 - 2024-11-29 07:01:27 [0.55ms] */
select * from `invoice` where `id` = 101964 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 117 - 2024-11-29 07:01:27 [3.1ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102364,"party_id":57116,"invoice_amount":"31.00","invoice_date":"2024-06-01 00:00:00","due_date":"2024-06-01 00:00:00","outstanding_balance":"31.00","discounts":"0.00","taxes":null,"total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-912-101964765","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101964, 'Modules\Transaction\Entities\Invoice', 'deleted', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 118 - 2024-11-29 07:01:27 [0.52ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99082 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 119 - 2024-11-29 07:01:27 [0.53ms] */
select * from `transaction` where `transaction`.`id` = 102365 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 120 - 2024-11-29 07:01:27 [0.51ms] */
select * from `invoice` where `invoice`.`id` = 101965 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 121 - 2024-11-29 07:01:27 [3.03ms] */
update `vehicle_tax` set `deleted_by` = 5, `vehicle_tax`.`updated_at` = '2024-11-29 07:01:27' where `id` = 99082;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 122 - 2024-11-29 07:01:27 [0.48ms] */
select * from `vehicle_tax` where `id` = 99082 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 123 - 2024-11-29 07:01:27 [3.08ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 99082, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 124 - 2024-11-29 07:01:27 [8.46ms] */
update `vehicle_tax` set `deleted_at` = '2024-11-29 07:01:27', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:27' where `id` = 99082;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 125 - 2024-11-29 07:01:27 [0.45ms] */
select * from `vehicle_tax` where `id` = 99082 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 126 - 2024-11-29 07:01:27 [5.97ms] */
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":"OPEN","tax_number":"WOG-102351-951","tax_sticker_id":null,"vehicle_id":89733,"term_id":100,"party_id":57116,"transaction_id":102365,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99082, 'Modules\Vehicle\Entities\VehicleTax', 'deleted', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 127 - 2024-11-29 07:01:27 [2.95ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2024-11-29 07:01:27' where `id` = 102365;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 128 - 2024-11-29 07:01:27 [2.83ms] */
update `transaction` set `deleted_at` = '2024-11-29 07:01:27', `transaction`.`updated_at` = '2024-11-29 07:01:27' where `id` = 102365;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 129 - 2024-11-29 07:01:27 [2.82ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2024-11-29 07:01:27' where `id` = 101965;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 130 - 2024-11-29 07:01:27 [0.37ms] */
select * from `invoice` where `id` = 101965 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 131 - 2024-11-29 07:01:27 [2.77ms] */
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', 101965, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 132 - 2024-11-29 07:01:27 [2.83ms] */
update `invoice` set `deleted_at` = '2024-11-29 07:01:27', `invoice`.`updated_at` = '2024-11-29 07:01:27' where `id` = 101965;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 133 - 2024-11-29 07:01:27 [0.36ms] */
select * from `invoice` where `id` = 101965 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 134 - 2024-11-29 07:01:27 [2.86ms] */
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":102365,"party_id":57116,"invoice_amount":"31.00","invoice_date":"2024-09-01 00:00:00","due_date":"2024-09-01 00:00:00","outstanding_balance":"31.00","discounts":"0.00","taxes":null,"total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-995-101965701","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101965, 'Modules\Transaction\Entities\Invoice', 'deleted', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 135 - 2024-11-29 07:01:27 [4.88ms] */
update `vehicle` set `tax_category` = 'Yearly', `vehicle`.`updated_at` = '2024-11-29 07:01:27' where `id` = 89733;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 136 - 2024-11-29 07:01:27 [0.35ms] */
select * from `vehicle` where `id` = 89733 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 137 - 2024-11-29 07:01:27 [2.9ms] */
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', 89733, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 138 - 2024-11-29 07:01:27 [2.86ms] */
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 ('{"tax_category":"Quarterly"}', '{"tax_category":"Yearly"}', 'updated', 89733, 'Modules\Vehicle\Entities\Vehicle', 5, 'App\Models\User', null, '103.208.230.53', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36', 'https://testtra.puntlandgov.org/livewire/message/service.tax-component', '2024-11-29 07:01:27', '2024-11-29 07:01:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 139 - 2024-11-29 07:01:27 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 89733 and `party_vehicle`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 140 - 2024-11-29 07:01:27 [0.21ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 89733 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 141 - 2024-11-29 07:01:27 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 89733 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-component
   Query 142 - 2024-11-29 07:01:27 [0.37ms] */
select * from `transaction` where `transaction`.`id` = 102351 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 143 - 2024-11-29 07:01:27 [0.22ms] */
select * from `service_workflow` where `service_workflow`.`id` = 1 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 144 - 2024-11-29 07:01:27 [0.2ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 145 - 2024-11-29 07:01:27 [0.22ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 146 - 2024-11-29 07:01:27 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 147 - 2024-11-29 07:01:27 [0.21ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 148 - 2024-11-29 07:01:27 [0.46ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 149 - 2024-11-29 07:01:27 [0.42ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 150 - 2024-11-29 07:01:27 [0.49ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 151 - 2024-11-29 07:01:27 [0.24ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 152 - 2024-11-29 07:01:27 [0.34ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 153 - 2024-11-29 07:01:27 [0.18ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 154 - 2024-11-29 07:01:27 [0.31ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 155 - 2024-11-29 07:01:27 [3.62ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 156 - 2024-11-29 07:01:27 [0.21ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 157 - 2024-11-29 07:01:27 [0.34ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 158 - 2024-11-29 07:01:27 [0.29ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 159 - 2024-11-29 07:01:27 [0.3ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 160 - 2024-11-29 07:01:27 [0.17ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 161 - 2024-11-29 07:01:27 [0.28ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 162 - 2024-11-29 07:01:27 [0.17ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 163 - 2024-11-29 07:01:27 [0.28ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 164 - 2024-11-29 07:01:27 [0.13ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 165 - 2024-11-29 07:01:27 [0.16ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 166 - 2024-11-29 07:01:27 [0.33ms] */
select * from `vehicle_tax` where `status` = 'OPEN' and `vehicle_id` = 89733 and `vehicle_tax`.`deleted_at` is null order by `term_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 167 - 2024-11-29 07:01:27 [0.17ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 89733 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 168 - 2024-11-29 07:01:27 [0.18ms] */
select * from `party_vehicle` where `vehicle_id` = 89733 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-component
   Query 169 - 2024-11-29 07:01:27 [0.18ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 170 - 2024-11-29 07:01:27 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 171 - 2024-11-29 07:01:27 [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` = 89733 and `term`.`year` <= 2024 and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 172 - 2024-11-29 07:01:27 [0.29ms] */
select `id` from `vehicle_tax` where `status` = 'OPEN' and `vehicle_id` = 89733 and `vehicle_tax`.`deleted_at` is null order by `term_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 173 - 2024-11-29 07:01:27 [0.34ms] */
select sum(`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 (99069, 99073) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 174 - 2024-11-29 07:01:27 [0.22ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 175 - 2024-11-29 07:01:27 [0.18ms] */
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-component
   Query 176 - 2024-11-29 07:01:27 [0.28ms] */
select * from `transaction` where `transaction`.`id` = 102352 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 177 - 2024-11-29 07:01:27 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 101952 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 178 - 2024-11-29 07:01:27 [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-component
   Query 179 - 2024-11-29 07:01:27 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 102356 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 180 - 2024-11-29 07:01:27 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 101956 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 181 - 2024-11-29 07:01:27 [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/livewire/message/service.tax-component
   Query 182 - 2024-11-29 07:01:27 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 183 - 2024-11-29 07:01:27 [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/livewire/message/service.tax-component
   Query 184 - 2024-11-29 07:01:27 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 1 - 2024-11-29 07:01:51 [1.49ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 2 - 2024-11-29 07:01:51 [0.61ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 3 - 2024-11-29 07:01:51 [0.47ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 4 - 2024-11-29 07:01:51 [0.5ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 5 - 2024-11-29 07:01:51 [0.43ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` in (99069, 99073);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 6 - 2024-11-29 07:01:51 [0.19ms] */
select * from `term` where `term`.`id` in (96, 100) and `term`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 7 - 2024-11-29 07:01:51 [0.33ms] */
select * from `transaction` where `transaction`.`id` in (102352, 102356) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 8 - 2024-11-29 07:01:51 [0.33ms] */
select * from `invoice` where `invoice`.`id` in (101952, 101956) and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 9 - 2024-11-29 07:01:51 [0.18ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 98706 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 10 - 2024-11-29 07:01:51 [0.17ms] */
select * from `party` where `party`.`id` in (57116) and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 11 - 2024-11-29 07:01:51 [0.3ms] */
select * from `vehicle` where `vehicle`.`id` in (89733) and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 12 - 2024-11-29 07:01:51 [0.18ms] */
select * from `classification_type` where `classification_type`.`id` in (2) and `classification_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 13 - 2024-11-29 07:01:51 [0.26ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 14 - 2024-11-29 07:01:51 [0.26ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 15 - 2024-11-29 07:01:51 [0.2ms] */
select * from `service_fee` where (`sub_category_id` = 4 and `service_id` = 2 or `sub_category_id` is null and `service_id` = 2) and `service_fee`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 16 - 2024-11-29 07:01:51 [0.15ms] */
select `id` from `term` where `quarter` = 4 and `year` >= 2023 and `term`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 17 - 2024-11-29 07:01:51 [0.37ms] */
select * from `vehicle_tax` where `vehicle_id` = 89733 and `term_id` in (96, 100) and `status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 18 - 2024-11-29 07:01:51 [0.25ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99069 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 19 - 2024-11-29 07:01:51 [0.14ms] */
select * from `term` where `term`.`id` = 96 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 20 - 2024-11-29 07:01:51 [0.13ms] */
select * from `term` where `quarter` = 1 and `year` = 2023 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 21 - 2024-11-29 07:01:51 [5.9ms] */
update `vehicle_tax` set `term_id` = 93, `category` = 'Quarterly', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:51' where `id` = 99069;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 22 - 2024-11-29 07:01:51 [0.49ms] */
select * from `vehicle_tax` where `id` = 99069 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 23 - 2024-11-29 07:01:51 [3.27ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"term_id":93},"old":{"term_id":96}}', 5, 'App\Models\User', 99069, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 24 - 2024-11-29 07:01:51 [0.42ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99073 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 25 - 2024-11-29 07:01:51 [0.36ms] */
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-component
   Query 26 - 2024-11-29 07:01:51 [0.22ms] */
select * from `term` where `quarter` = 1 and `year` = 2024 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 27 - 2024-11-29 07:01:51 [3.05ms] */
update `vehicle_tax` set `term_id` = 97, `category` = 'Quarterly', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:51' where `id` = 99073;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 28 - 2024-11-29 07:01:51 [0.56ms] */
select * from `vehicle_tax` where `id` = 99073 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 29 - 2024-11-29 07:01:51 [3.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"term_id":97},"old":{"term_id":100}}', 5, 'App\Models\User', 99073, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 30 - 2024-11-29 07:01:51 [3.48ms] */
update `vehicle` set `tax_category` = 'Quarterly', `vehicle`.`updated_at` = '2024-11-29 07:01:51' where `id` = 89733;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 31 - 2024-11-29 07:01:51 [0.73ms] */
select * from `vehicle` where `id` = 89733 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 32 - 2024-11-29 07:01:51 [3.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":[]}', 5, 'App\Models\User', 89733, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 33 - 2024-11-29 07:01:51 [4.91ms] */
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 ('{"tax_category":"Yearly"}', '{"tax_category":"Quarterly"}', 'updated', 89733, 'Modules\Vehicle\Entities\Vehicle', 5, 'App\Models\User', null, '103.208.230.53', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36', 'https://testtra.puntlandgov.org/livewire/message/service.tax-component', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 34 - 2024-11-29 07:01:51 [0.28ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 89733 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 35 - 2024-11-29 07:01:51 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 89733 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-component
   Query 36 - 2024-11-29 07:01:51 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 102351 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 37 - 2024-11-29 07:01:51 [0.24ms] */
select * from `service_workflow` where `service_workflow`.`id` = 1 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 38 - 2024-11-29 07:01:51 [0.22ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 39 - 2024-11-29 07:01:51 [0.21ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 40 - 2024-11-29 07:01:51 [0.28ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 41 - 2024-11-29 07:01:51 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 42 - 2024-11-29 07:01:51 [0.41ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 43 - 2024-11-29 07:01:51 [3.68ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 44 - 2024-11-29 07:01:51 [0.41ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 45 - 2024-11-29 07:01:51 [0.42ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 46 - 2024-11-29 07:01:51 [0.2ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 47 - 2024-11-29 07:01:51 [0.18ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 48 - 2024-11-29 07:01:51 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 49 - 2024-11-29 07:01:51 [0.41ms] */
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 (57116, 2, 89733, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 50 - 2024-11-29 07:01:51 [0.24ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102366, 'INITIATED', '2024-11-29 07:01:51', 5, 5, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 51 - 2024-11-29 07:01:51 [0.19ms] */
select * from `term` where `year` = 2023 and `quarter` = 2 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 52 - 2024-11-29 07:01:51 [0.25ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'IPA-102351-927', 89733, 94, 57116, 98706, 102366, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 53 - 2024-11-29 07:01:51 [0.23ms] */
select * from `vehicle_tax` where `id` = 99083 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 54 - 2024-11-29 07:01:51 [0.23ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"IPA-102351-927","tax_sticker_id":null,"vehicle_id":89733,"term_id":94,"party_id":57116,"transaction_id":102366,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99083, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 55 - 2024-11-29 07:01:51 [0.19ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 56 - 2024-11-29 07:01:51 [0.27ms] */
(select * from `service_fee` where `sub_category_id` = 4 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 4 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 57 - 2024-11-29 07:01:51 [0.2ms] */
select * from `term` where `term`.`id` = 94 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 58 - 2024-11-29 07:01:51 [0.24ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 59 - 2024-11-29 07:01:51 [0.27ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102366, '2023-03-01 00:00:00', '2023-03-01 00:00:00', 'OPEN', 57116, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 60 - 2024-11-29 07:01:51 [0.22ms] */
select * from `invoice` where `id` = 101966 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 61 - 2024-11-29 07:01:51 [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":102366,"party_id":57116,"invoice_amount":"0.00","invoice_date":"2023-03-01 00:00:00","due_date":"2023-03-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101966, 'Modules\Transaction\Entities\Invoice', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 62 - 2024-11-29 07:01:51 [0.19ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 14 HP', 'Quarterly TaxFee for 14 HP', 1, 23.00, 23.00, 101966, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 63 - 2024-11-29 07:01:51 [0.2ms] */
select * from `invoice_item` where `id` = 199669 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 64 - 2024-11-29 07:01:51 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly TaxFee for 14 HP","description":"Quarterly TaxFee for 14 HP","unit_price":"23.00","quantity":1,"total_price":"23.00","invoice_id":101966}}', 5, 'App\Models\User', 199669, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 65 - 2024-11-29 07:01:51 [0.17ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 101966, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 66 - 2024-11-29 07:01:51 [0.2ms] */
select * from `invoice_item` where `id` = 199670 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 67 - 2024-11-29 07:01:51 [0.18ms] */
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":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":101966}}', 5, 'App\Models\User', 199670, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 68 - 2024-11-29 07:01:51 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 101966 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 69 - 2024-11-29 07:01:51 [0.31ms] */
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` = 101966 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 70 - 2024-11-29 07:01:51 [0.25ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101966 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 71 - 2024-11-29 07:01:51 [0.22ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 31, `discounts` = 0, `total_invoice_amount` = 31, `invoice`.`updated_at` = '2024-11-29 07:01:51' where `id` = 101966;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 72 - 2024-11-29 07:01:51 [0.22ms] */
select * from `invoice` where `id` = 101966 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 73 - 2024-11-29 07:01:51 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 5, 'App\Models\User', 101966, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 74 - 2024-11-29 07:01:51 [0.19ms] */
update `invoice` set `invoice_number` = 'INV-889-101966314', `invoice`.`updated_at` = '2024-11-29 07:01:51' where `id` = 101966;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 75 - 2024-11-29 07:01:51 [0.22ms] */
select * from `invoice` where `id` = 101966 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 76 - 2024-11-29 07:01:51 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00","invoice_number":"INV-889-101966314","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 5, 'App\Models\User', 101966, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 77 - 2024-11-29 07:01:51 [0.22ms] */
update `transaction` set `party_vehicle_id` = 98706, `vehicle_tax_id` = 99083, `invoice_id` = 101966, `transaction`.`updated_at` = '2024-11-29 07:01:51' where `id` = 102366;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 78 - 2024-11-29 07:01:51 [0.34ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 79 - 2024-11-29 07:01:51 [0.32ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 80 - 2024-11-29 07:01:51 [0.24ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 81 - 2024-11-29 07:01:51 [0.26ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 82 - 2024-11-29 07:01:51 [0.26ms] */
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 (57116, 2, 89733, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 83 - 2024-11-29 07:01:51 [0.2ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102367, 'INITIATED', '2024-11-29 07:01:51', 5, 5, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 84 - 2024-11-29 07:01:51 [0.26ms] */
select * from `term` where `year` = 2023 and `quarter` = 3 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 85 - 2024-11-29 07:01:51 [0.21ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'THC-102351-909', 89733, 95, 57116, 98706, 102367, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 86 - 2024-11-29 07:01:51 [0.21ms] */
select * from `vehicle_tax` where `id` = 99084 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 87 - 2024-11-29 07:01:51 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"THC-102351-909","tax_sticker_id":null,"vehicle_id":89733,"term_id":95,"party_id":57116,"transaction_id":102367,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99084, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 88 - 2024-11-29 07:01:51 [0.29ms] */
(select * from `service_fee` where `sub_category_id` = 4 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 4 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 89 - 2024-11-29 07:01:51 [0.23ms] */
select * from `term` where `term`.`id` = 95 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 90 - 2024-11-29 07:01:51 [0.24ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 91 - 2024-11-29 07:01:51 [0.22ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102367, '2023-06-01 00:00:00', '2023-06-01 00:00:00', 'OPEN', 57116, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 92 - 2024-11-29 07:01:51 [0.24ms] */
select * from `invoice` where `id` = 101967 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 93 - 2024-11-29 07:01:51 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102367,"party_id":57116,"invoice_amount":"0.00","invoice_date":"2023-06-01 00:00:00","due_date":"2023-06-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101967, 'Modules\Transaction\Entities\Invoice', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 94 - 2024-11-29 07:01:51 [0.19ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 14 HP', 'Quarterly TaxFee for 14 HP', 1, 23.00, 23.00, 101967, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 95 - 2024-11-29 07:01:51 [0.22ms] */
select * from `invoice_item` where `id` = 199671 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 96 - 2024-11-29 07:01:51 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly TaxFee for 14 HP","description":"Quarterly TaxFee for 14 HP","unit_price":"23.00","quantity":1,"total_price":"23.00","invoice_id":101967}}', 5, 'App\Models\User', 199671, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 97 - 2024-11-29 07:01:51 [0.19ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 101967, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 98 - 2024-11-29 07:01:51 [0.21ms] */
select * from `invoice_item` where `id` = 199672 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 99 - 2024-11-29 07:01:51 [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":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":101967}}', 5, 'App\Models\User', 199672, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 100 - 2024-11-29 07:01:51 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 101967 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 101 - 2024-11-29 07:01:51 [0.29ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 101967 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 102 - 2024-11-29 07:01:51 [0.26ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101967 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 103 - 2024-11-29 07:01:51 [0.21ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 31, `discounts` = 0, `total_invoice_amount` = 31, `invoice`.`updated_at` = '2024-11-29 07:01:51' where `id` = 101967;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 104 - 2024-11-29 07:01:51 [0.22ms] */
select * from `invoice` where `id` = 101967 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 105 - 2024-11-29 07:01:51 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 5, 'App\Models\User', 101967, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 106 - 2024-11-29 07:01:51 [0.19ms] */
update `invoice` set `invoice_number` = 'INV-239-101967129', `invoice`.`updated_at` = '2024-11-29 07:01:51' where `id` = 101967;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 107 - 2024-11-29 07:01:51 [0.21ms] */
select * from `invoice` where `id` = 101967 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 108 - 2024-11-29 07:01:51 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00","invoice_number":"INV-239-101967129","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 5, 'App\Models\User', 101967, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 109 - 2024-11-29 07:01:51 [0.24ms] */
update `transaction` set `party_vehicle_id` = 98706, `vehicle_tax_id` = 99084, `invoice_id` = 101967, `transaction`.`updated_at` = '2024-11-29 07:01:51' where `id` = 102367;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 110 - 2024-11-29 07:01:51 [0.35ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 111 - 2024-11-29 07:01:51 [0.3ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 112 - 2024-11-29 07:01:51 [0.23ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 113 - 2024-11-29 07:01:51 [0.24ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 114 - 2024-11-29 07:01:51 [0.25ms] */
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 (57116, 2, 89733, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 115 - 2024-11-29 07:01:51 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102368, 'INITIATED', '2024-11-29 07:01:51', 5, 5, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 116 - 2024-11-29 07:01:51 [0.26ms] */
select * from `term` where `year` = 2023 and `quarter` = 4 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 117 - 2024-11-29 07:01:51 [0.22ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', '304-102351-835', 89733, 96, 57116, 98706, 102368, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 118 - 2024-11-29 07:01:51 [0.24ms] */
select * from `vehicle_tax` where `id` = 99085 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 119 - 2024-11-29 07:01:51 [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":"OPEN","tax_number":"304-102351-835","tax_sticker_id":null,"vehicle_id":89733,"term_id":96,"party_id":57116,"transaction_id":102368,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99085, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 120 - 2024-11-29 07:01:51 [0.29ms] */
(select * from `service_fee` where `sub_category_id` = 4 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 4 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 121 - 2024-11-29 07:01:51 [0.22ms] */
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-component
   Query 122 - 2024-11-29 07:01:51 [0.24ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 123 - 2024-11-29 07:01:51 [0.23ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102368, '2023-09-01 00:00:00', '2023-09-01 00:00:00', 'OPEN', 57116, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 124 - 2024-11-29 07:01:51 [0.25ms] */
select * from `invoice` where `id` = 101968 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 125 - 2024-11-29 07:01:51 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102368,"party_id":57116,"invoice_amount":"0.00","invoice_date":"2023-09-01 00:00:00","due_date":"2023-09-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101968, 'Modules\Transaction\Entities\Invoice', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 126 - 2024-11-29 07:01:51 [0.19ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 14 HP', 'Quarterly TaxFee for 14 HP', 1, 23.00, 23.00, 101968, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 127 - 2024-11-29 07:01:51 [0.21ms] */
select * from `invoice_item` where `id` = 199673 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 128 - 2024-11-29 07:01:51 [0.35ms] */
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":"Quarterly TaxFee for 14 HP","description":"Quarterly TaxFee for 14 HP","unit_price":"23.00","quantity":1,"total_price":"23.00","invoice_id":101968}}', 5, 'App\Models\User', 199673, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 129 - 2024-11-29 07:01:51 [0.25ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 101968, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 130 - 2024-11-29 07:01:51 [0.29ms] */
select * from `invoice_item` where `id` = 199674 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 131 - 2024-11-29 07:01:51 [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":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":101968}}', 5, 'App\Models\User', 199674, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 132 - 2024-11-29 07:01:51 [0.26ms] */
select * from `invoice` where `invoice`.`id` = 101968 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 133 - 2024-11-29 07:01:51 [0.3ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 101968 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 134 - 2024-11-29 07:01:51 [0.27ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101968 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 135 - 2024-11-29 07:01:51 [0.23ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 31, `discounts` = 0, `total_invoice_amount` = 31, `invoice`.`updated_at` = '2024-11-29 07:01:51' where `id` = 101968;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 136 - 2024-11-29 07:01:51 [0.24ms] */
select * from `invoice` where `id` = 101968 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 137 - 2024-11-29 07:01:51 [0.21ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 5, 'App\Models\User', 101968, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 138 - 2024-11-29 07:01:51 [0.21ms] */
update `invoice` set `invoice_number` = 'INV-935-101968394', `invoice`.`updated_at` = '2024-11-29 07:01:51' where `id` = 101968;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 139 - 2024-11-29 07:01:51 [0.25ms] */
select * from `invoice` where `id` = 101968 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 140 - 2024-11-29 07:01:51 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00","invoice_number":"INV-935-101968394","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 5, 'App\Models\User', 101968, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 141 - 2024-11-29 07:01:51 [0.25ms] */
update `transaction` set `party_vehicle_id` = 98706, `vehicle_tax_id` = 99085, `invoice_id` = 101968, `transaction`.`updated_at` = '2024-11-29 07:01:51' where `id` = 102368;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 142 - 2024-11-29 07:01:51 [0.33ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 143 - 2024-11-29 07:01:51 [3.21ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 144 - 2024-11-29 07:01:51 [0.37ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 145 - 2024-11-29 07:01:51 [0.33ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 146 - 2024-11-29 07:01:51 [0.32ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 147 - 2024-11-29 07:01:51 [0.26ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 148 - 2024-11-29 07:01:51 [0.26ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 149 - 2024-11-29 07:01:51 [0.27ms] */
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 (57116, 2, 89733, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 150 - 2024-11-29 07:01:51 [0.22ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102369, 'INITIATED', '2024-11-29 07:01:51', 5, 5, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 151 - 2024-11-29 07:01:51 [0.28ms] */
select * from `term` where `year` = 2024 and `quarter` = 2 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 152 - 2024-11-29 07:01:51 [0.23ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'QQS-102351-864', 89733, 98, 57116, 98706, 102369, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 153 - 2024-11-29 07:01:51 [0.25ms] */
select * from `vehicle_tax` where `id` = 99086 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 154 - 2024-11-29 07:01:51 [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":"OPEN","tax_number":"QQS-102351-864","tax_sticker_id":null,"vehicle_id":89733,"term_id":98,"party_id":57116,"transaction_id":102369,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99086, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 155 - 2024-11-29 07:01:51 [0.29ms] */
(select * from `service_fee` where `sub_category_id` = 4 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 4 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 156 - 2024-11-29 07:01:51 [0.23ms] */
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-component
   Query 157 - 2024-11-29 07:01:51 [0.24ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 158 - 2024-11-29 07:01:51 [0.21ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102369, '2024-03-01 00:00:00', '2024-03-01 00:00:00', 'OPEN', 57116, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 159 - 2024-11-29 07:01:51 [0.23ms] */
select * from `invoice` where `id` = 101969 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 160 - 2024-11-29 07:01:51 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102369,"party_id":57116,"invoice_amount":"0.00","invoice_date":"2024-03-01 00:00:00","due_date":"2024-03-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101969, 'Modules\Transaction\Entities\Invoice', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 161 - 2024-11-29 07:01:51 [0.18ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 14 HP', 'Quarterly TaxFee for 14 HP', 1, 23.00, 23.00, 101969, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 162 - 2024-11-29 07:01:51 [0.2ms] */
select * from `invoice_item` where `id` = 199675 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 163 - 2024-11-29 07:01:51 [0.18ms] */
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":"Quarterly TaxFee for 14 HP","description":"Quarterly TaxFee for 14 HP","unit_price":"23.00","quantity":1,"total_price":"23.00","invoice_id":101969}}', 5, 'App\Models\User', 199675, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 164 - 2024-11-29 07:01:51 [0.18ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 101969, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 165 - 2024-11-29 07:01:51 [0.2ms] */
select * from `invoice_item` where `id` = 199676 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 166 - 2024-11-29 07:01:51 [0.18ms] */
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":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":101969}}', 5, 'App\Models\User', 199676, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 167 - 2024-11-29 07:01:51 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 101969 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 168 - 2024-11-29 07:01:51 [0.28ms] */
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` = 101969 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 169 - 2024-11-29 07:01:51 [0.24ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101969 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 170 - 2024-11-29 07:01:51 [0.21ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 31, `discounts` = 0, `total_invoice_amount` = 31, `invoice`.`updated_at` = '2024-11-29 07:01:51' where `id` = 101969;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 171 - 2024-11-29 07:01:51 [0.23ms] */
select * from `invoice` where `id` = 101969 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 172 - 2024-11-29 07:01:51 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 5, 'App\Models\User', 101969, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 173 - 2024-11-29 07:01:51 [0.19ms] */
update `invoice` set `invoice_number` = 'INV-906-101969246', `invoice`.`updated_at` = '2024-11-29 07:01:51' where `id` = 101969;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 174 - 2024-11-29 07:01:51 [0.22ms] */
select * from `invoice` where `id` = 101969 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 175 - 2024-11-29 07:01:51 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00","invoice_number":"INV-906-101969246","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 5, 'App\Models\User', 101969, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 176 - 2024-11-29 07:01:51 [0.24ms] */
update `transaction` set `party_vehicle_id` = 98706, `vehicle_tax_id` = 99086, `invoice_id` = 101969, `transaction`.`updated_at` = '2024-11-29 07:01:51' where `id` = 102369;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 177 - 2024-11-29 07:01:51 [0.35ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 178 - 2024-11-29 07:01:51 [0.33ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 179 - 2024-11-29 07:01:51 [0.25ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 180 - 2024-11-29 07:01:51 [0.26ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 181 - 2024-11-29 07:01:51 [0.26ms] */
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 (57116, 2, 89733, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 182 - 2024-11-29 07:01:51 [0.22ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102370, 'INITIATED', '2024-11-29 07:01:51', 5, 5, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 183 - 2024-11-29 07:01:51 [0.28ms] */
select * from `term` where `year` = 2024 and `quarter` = 3 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 184 - 2024-11-29 07:01:51 [0.22ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'JZP-102351-744', 89733, 99, 57116, 98706, 102370, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 185 - 2024-11-29 07:01:51 [0.23ms] */
select * from `vehicle_tax` where `id` = 99087 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 186 - 2024-11-29 07:01:51 [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":"OPEN","tax_number":"JZP-102351-744","tax_sticker_id":null,"vehicle_id":89733,"term_id":99,"party_id":57116,"transaction_id":102370,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99087, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 187 - 2024-11-29 07:01:51 [0.3ms] */
(select * from `service_fee` where `sub_category_id` = 4 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 4 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 188 - 2024-11-29 07:01:51 [0.2ms] */
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-component
   Query 189 - 2024-11-29 07:01:51 [0.22ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 190 - 2024-11-29 07:01:51 [0.2ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102370, '2024-06-01 00:00:00', '2024-06-01 00:00:00', 'OPEN', 57116, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 191 - 2024-11-29 07:01:51 [0.22ms] */
select * from `invoice` where `id` = 101970 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 192 - 2024-11-29 07:01:51 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102370,"party_id":57116,"invoice_amount":"0.00","invoice_date":"2024-06-01 00:00:00","due_date":"2024-06-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101970, 'Modules\Transaction\Entities\Invoice', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 193 - 2024-11-29 07:01:51 [0.27ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 14 HP', 'Quarterly TaxFee for 14 HP', 1, 23.00, 23.00, 101970, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 194 - 2024-11-29 07:01:51 [0.2ms] */
select * from `invoice_item` where `id` = 199677 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 195 - 2024-11-29 07:01:51 [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":"Quarterly TaxFee for 14 HP","description":"Quarterly TaxFee for 14 HP","unit_price":"23.00","quantity":1,"total_price":"23.00","invoice_id":101970}}', 5, 'App\Models\User', 199677, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 196 - 2024-11-29 07:01:51 [0.18ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 101970, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 197 - 2024-11-29 07:01:51 [0.2ms] */
select * from `invoice_item` where `id` = 199678 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 198 - 2024-11-29 07:01:51 [0.18ms] */
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":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":101970}}', 5, 'App\Models\User', 199678, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 199 - 2024-11-29 07:01:51 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 101970 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 200 - 2024-11-29 07:01:51 [0.27ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 101970 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 201 - 2024-11-29 07:01:51 [0.24ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101970 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 202 - 2024-11-29 07:01:51 [0.21ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 31, `discounts` = 0, `total_invoice_amount` = 31, `invoice`.`updated_at` = '2024-11-29 07:01:51' where `id` = 101970;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 203 - 2024-11-29 07:01:51 [0.24ms] */
select * from `invoice` where `id` = 101970 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 204 - 2024-11-29 07:01:51 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 5, 'App\Models\User', 101970, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 205 - 2024-11-29 07:01:51 [0.21ms] */
update `invoice` set `invoice_number` = 'INV-226-101970156', `invoice`.`updated_at` = '2024-11-29 07:01:51' where `id` = 101970;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 206 - 2024-11-29 07:01:51 [0.24ms] */
select * from `invoice` where `id` = 101970 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 207 - 2024-11-29 07:01:51 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00","invoice_number":"INV-226-101970156","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 5, 'App\Models\User', 101970, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 208 - 2024-11-29 07:01:51 [0.23ms] */
update `transaction` set `party_vehicle_id` = 98706, `vehicle_tax_id` = 99087, `invoice_id` = 101970, `transaction`.`updated_at` = '2024-11-29 07:01:51' where `id` = 102370;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 209 - 2024-11-29 07:01:51 [0.35ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 210 - 2024-11-29 07:01:51 [0.33ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 211 - 2024-11-29 07:01:51 [0.25ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 212 - 2024-11-29 07:01:51 [0.25ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 213 - 2024-11-29 07:01:51 [0.26ms] */
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 (57116, 2, 89733, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 214 - 2024-11-29 07:01:51 [0.21ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102371, 'INITIATED', '2024-11-29 07:01:51', 5, 5, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 215 - 2024-11-29 07:01:51 [0.28ms] */
select * from `term` where `year` = 2024 and `quarter` = 4 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 216 - 2024-11-29 07:01:51 [0.23ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', '64J-102351-753', 89733, 100, 57116, 98706, 102371, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 217 - 2024-11-29 07:01:51 [0.23ms] */
select * from `vehicle_tax` where `id` = 99088 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 218 - 2024-11-29 07:01:51 [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":"OPEN","tax_number":"64J-102351-753","tax_sticker_id":null,"vehicle_id":89733,"term_id":100,"party_id":57116,"transaction_id":102371,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99088, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 219 - 2024-11-29 07:01:51 [0.26ms] */
(select * from `service_fee` where `sub_category_id` = 4 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 4 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 220 - 2024-11-29 07:01:51 [0.2ms] */
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-component
   Query 221 - 2024-11-29 07:01:51 [0.22ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 222 - 2024-11-29 07:01:51 [0.22ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102371, '2024-09-01 00:00:00', '2024-09-01 00:00:00', 'OPEN', 57116, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 223 - 2024-11-29 07:01:51 [0.22ms] */
select * from `invoice` where `id` = 101971 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 224 - 2024-11-29 07:01:51 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102371,"party_id":57116,"invoice_amount":"0.00","invoice_date":"2024-09-01 00:00:00","due_date":"2024-09-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101971, 'Modules\Transaction\Entities\Invoice', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 225 - 2024-11-29 07:01:51 [0.17ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 14 HP', 'Quarterly TaxFee for 14 HP', 1, 23.00, 23.00, 101971, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 226 - 2024-11-29 07:01:51 [0.2ms] */
select * from `invoice_item` where `id` = 199679 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 227 - 2024-11-29 07:01:51 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly TaxFee for 14 HP","description":"Quarterly TaxFee for 14 HP","unit_price":"23.00","quantity":1,"total_price":"23.00","invoice_id":101971}}', 5, 'App\Models\User', 199679, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 228 - 2024-11-29 07:01:51 [0.17ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 101971, 5, 5, '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 229 - 2024-11-29 07:01:51 [0.19ms] */
select * from `invoice_item` where `id` = 199680 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 230 - 2024-11-29 07:01:51 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":101971}}', 5, 'App\Models\User', 199680, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 231 - 2024-11-29 07:01:51 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 101971 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 232 - 2024-11-29 07:01:51 [0.29ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 101971 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 233 - 2024-11-29 07:01:51 [0.24ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101971 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 234 - 2024-11-29 07:01:51 [0.21ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 31, `discounts` = 0, `total_invoice_amount` = 31, `invoice`.`updated_at` = '2024-11-29 07:01:51' where `id` = 101971;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 235 - 2024-11-29 07:01:51 [0.22ms] */
select * from `invoice` where `id` = 101971 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 236 - 2024-11-29 07:01:51 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 5, 'App\Models\User', 101971, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 237 - 2024-11-29 07:01:51 [0.21ms] */
update `invoice` set `invoice_number` = 'INV-616-101971493', `invoice`.`updated_at` = '2024-11-29 07:01:51' where `id` = 101971;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 238 - 2024-11-29 07:01:51 [0.24ms] */
select * from `invoice` where `id` = 101971 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 239 - 2024-11-29 07:01:51 [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":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00","invoice_number":"INV-616-101971493","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 5, 'App\Models\User', 101971, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:51', '2024-11-29 07:01:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 240 - 2024-11-29 07:01:51 [0.24ms] */
update `transaction` set `party_vehicle_id` = 98706, `vehicle_tax_id` = 99088, `invoice_id` = 101971, `transaction`.`updated_at` = '2024-11-29 07:01:51' where `id` = 102371;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 241 - 2024-11-29 07:01:51 [0.22ms] */
select * from `party_vehicle` where `vehicle_id` = 89733 and `party_vehicle`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 242 - 2024-11-29 07:01:51 [0.18ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 89733 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 243 - 2024-11-29 07:01:51 [0.19ms] */
select * from `party_vehicle` where `vehicle_id` = 89733 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-component
   Query 244 - 2024-11-29 07:01:51 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 102351 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 245 - 2024-11-29 07:01:51 [0.18ms] */
select * from `service_workflow` where `service_workflow`.`id` = 1 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 246 - 2024-11-29 07:01:51 [0.16ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 247 - 2024-11-29 07:01:51 [0.18ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 248 - 2024-11-29 07:01:51 [0.18ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 249 - 2024-11-29 07:01:51 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 250 - 2024-11-29 07:01:51 [0.34ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 251 - 2024-11-29 07:01:51 [2.88ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 252 - 2024-11-29 07:01:51 [0.37ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 253 - 2024-11-29 07:01:51 [0.33ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 254 - 2024-11-29 07:01:51 [0.15ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 255 - 2024-11-29 07:01:51 [0.19ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 256 - 2024-11-29 07:01:51 [0.31ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 257 - 2024-11-29 07:01:51 [0.16ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 258 - 2024-11-29 07:01:51 [0.19ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 259 - 2024-11-29 07:01:51 [0.31ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 260 - 2024-11-29 07:01:51 [0.14ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 261 - 2024-11-29 07:01:51 [0.18ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 262 - 2024-11-29 07:01:51 [0.29ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 263 - 2024-11-29 07:01:51 [0.14ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 264 - 2024-11-29 07:01:51 [0.3ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 265 - 2024-11-29 07:01:51 [0.32ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 266 - 2024-11-29 07:01:51 [0.15ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 267 - 2024-11-29 07:01:51 [0.19ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 268 - 2024-11-29 07:01:51 [0.32ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 269 - 2024-11-29 07:01:51 [0.15ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 270 - 2024-11-29 07:01:51 [0.2ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 271 - 2024-11-29 07:01:51 [0.31ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 272 - 2024-11-29 07:01:51 [0.15ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 273 - 2024-11-29 07:01:51 [0.18ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 274 - 2024-11-29 07:01:51 [0.64ms] */
select * from `vehicle_tax` where `status` = 'OPEN' and `vehicle_id` = 89733 and `vehicle_tax`.`deleted_at` is null order by `term_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 275 - 2024-11-29 07:01:51 [0.21ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 89733 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 276 - 2024-11-29 07:01:51 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 89733 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-component
   Query 277 - 2024-11-29 07:01:51 [0.21ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 278 - 2024-11-29 07:01:51 [0.54ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 279 - 2024-11-29 07:01:51 [0.74ms] */
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` = 89733 and date(`term`.`first_date_of_quarter`) <= '2024-11-29' and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 280 - 2024-11-29 07:01:51 [0.58ms] */
select `id` from `vehicle_tax` where `status` = 'OPEN' and `vehicle_id` = 89733 and `vehicle_tax`.`deleted_at` is null order by `term_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 281 - 2024-11-29 07:01:51 [0.64ms] */
select sum(`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 (99069, 99073, 99083, 99084, 99085, 99086, 99087, 99088) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 282 - 2024-11-29 07:01:51 [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-component
   Query 283 - 2024-11-29 07:01:51 [0.14ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 284 - 2024-11-29 07:01:51 [0.51ms] */
select * from `transaction` where `transaction`.`id` = 102352 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 285 - 2024-11-29 07:01:51 [0.47ms] */
select * from `invoice` where `invoice`.`id` = 101952 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 286 - 2024-11-29 07:01:51 [0.15ms] */
select * from `term` where `term`.`id` = 94 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 287 - 2024-11-29 07:01:51 [0.47ms] */
select * from `transaction` where `transaction`.`id` = 102366 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 288 - 2024-11-29 07:01:51 [0.45ms] */
select * from `invoice` where `invoice`.`id` = 101966 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 289 - 2024-11-29 07:01:51 [0.14ms] */
select * from `term` where `term`.`id` = 95 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 290 - 2024-11-29 07:01:51 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 102367 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 291 - 2024-11-29 07:01:51 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 101967 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 292 - 2024-11-29 07:01:51 [0.15ms] */
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-component
   Query 293 - 2024-11-29 07:01:51 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 102368 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 294 - 2024-11-29 07:01:51 [0.37ms] */
select * from `invoice` where `invoice`.`id` = 101968 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 295 - 2024-11-29 07:01:51 [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-component
   Query 296 - 2024-11-29 07:01:51 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 102356 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 297 - 2024-11-29 07:01:51 [0.29ms] */
select * from `invoice` where `invoice`.`id` = 101956 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 298 - 2024-11-29 07:01:51 [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-component
   Query 299 - 2024-11-29 07:01:51 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 102369 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 300 - 2024-11-29 07:01:51 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 101969 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 301 - 2024-11-29 07:01:51 [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-component
   Query 302 - 2024-11-29 07:01:51 [0.5ms] */
select * from `transaction` where `transaction`.`id` = 102370 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 303 - 2024-11-29 07:01:51 [0.5ms] */
select * from `invoice` where `invoice`.`id` = 101970 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 304 - 2024-11-29 07:01:51 [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-component
   Query 305 - 2024-11-29 07:01:51 [0.48ms] */
select * from `transaction` where `transaction`.`id` = 102371 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 306 - 2024-11-29 07:01:51 [0.47ms] */
select * from `invoice` where `invoice`.`id` = 101971 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 307 - 2024-11-29 07:01:51 [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/livewire/message/service.tax-component
   Query 308 - 2024-11-29 07:01:51 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 309 - 2024-11-29 07:01:51 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 310 - 2024-11-29 07:01:51 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 311 - 2024-11-29 07:01:51 [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/livewire/message/service.tax-component
   Query 312 - 2024-11-29 07:01:51 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 313 - 2024-11-29 07:01:51 [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/livewire/message/service.tax-component
   Query 314 - 2024-11-29 07:01:51 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 315 - 2024-11-29 07:01:51 [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/livewire/message/service.tax-component
   Query 316 - 2024-11-29 07:01:51 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 317 - 2024-11-29 07:01:51 [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/livewire/message/service.tax-component
   Query 318 - 2024-11-29 07:01:51 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 319 - 2024-11-29 07:01:51 [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/livewire/message/service.tax-component
   Query 320 - 2024-11-29 07:01:51 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 321 - 2024-11-29 07:01:51 [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/livewire/message/service.tax-component
   Query 322 - 2024-11-29 07:01:51 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 1 - 2024-11-29 07:01:58 [1.32ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 2 - 2024-11-29 07:01:58 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 3 - 2024-11-29 07:01:58 [0.31ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 4 - 2024-11-29 07:01:58 [0.37ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 5 - 2024-11-29 07:01:58 [0.36ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` in (99069, 99083, 99084, 99085, 99073, 99086, 99087, 99088);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 6 - 2024-11-29 07:01:58 [0.15ms] */
select * from `term` where `term`.`id` in (93, 94, 95, 96, 97, 98, 99, 100) and `term`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 7 - 2024-11-29 07:01:58 [0.36ms] */
select * from `transaction` where `transaction`.`id` in (102352, 102356, 102366, 102367, 102368, 102369, 102370, 102371) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 8 - 2024-11-29 07:01:58 [0.32ms] */
select * from `invoice` where `invoice`.`id` in (101952, 101956, 101966, 101967, 101968, 101969, 101970, 101971) and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 9 - 2024-11-29 07:01:58 [0.16ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 98706 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 10 - 2024-11-29 07:01:58 [0.15ms] */
select * from `party` where `party`.`id` in (57116) and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 11 - 2024-11-29 07:01:58 [0.24ms] */
select * from `vehicle` where `vehicle`.`id` in (89733) and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 12 - 2024-11-29 07:01:58 [0.15ms] */
select * from `classification_type` where `classification_type`.`id` in (2) and `classification_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 13 - 2024-11-29 07:01:58 [0.22ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 14 - 2024-11-29 07:01:58 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 15 - 2024-11-29 07:01:58 [0.28ms] */
select * from `service_fee` where (`sub_category_id` = 4 and `service_id` = 2 or `sub_category_id` is null and `service_id` = 2) and `service_fee`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 16 - 2024-11-29 07:01:58 [0.23ms] */
select `id` from `term` where `quarter` = 1 and `year` >= 2023 and `term`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 17 - 2024-11-29 07:01:58 [0.24ms] */
select `id` from `term` where `quarter` != 1 and `year` >= 2023 and `term`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 18 - 2024-11-29 07:01:58 [0.74ms] */
select * from `vehicle_tax` where `vehicle_id` = 89733 and `term_id` in (93, 97, 101) and `status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 19 - 2024-11-29 07:01:58 [0.73ms] */
select * from `vehicle_tax` where `vehicle_id` = 89733 and `term_id` in (94, 95, 96, 98, 99, 100) and `status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 20 - 2024-11-29 07:01:58 [0.24ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 21 - 2024-11-29 07:01:58 [0.5ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99069 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 22 - 2024-11-29 07:01:58 [0.21ms] */
select * from `term` where `term`.`id` = 93 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 23 - 2024-11-29 07:01:58 [0.21ms] */
select * from `term` where `quarter` = 4 and `year` = 2023 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 24 - 2024-11-29 07:01:58 [13.89ms] */
update `vehicle_tax` set `term_id` = 96, `category` = 'Yearly', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99069;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 25 - 2024-11-29 07:01:58 [0.6ms] */
select * from `vehicle_tax` where `id` = 99069 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 26 - 2024-11-29 07:01:58 [3.45ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"term_id":96},"old":{"term_id":93}}', 5, 'App\Models\User', 99069, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 27 - 2024-11-29 07:01:58 [0.64ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99073 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 28 - 2024-11-29 07:01:58 [0.23ms] */
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-component
   Query 29 - 2024-11-29 07:01:58 [0.21ms] */
select * from `term` where `quarter` = 4 and `year` = 2024 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 30 - 2024-11-29 07:01:58 [3.44ms] */
update `vehicle_tax` set `term_id` = 100, `category` = 'Yearly', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99073;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 31 - 2024-11-29 07:01:58 [0.51ms] */
select * from `vehicle_tax` where `id` = 99073 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 32 - 2024-11-29 07:01:58 [3.06ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"term_id":100},"old":{"term_id":97}}', 5, 'App\Models\User', 99073, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 33 - 2024-11-29 07:01:58 [0.46ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99083 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 34 - 2024-11-29 07:01:58 [0.48ms] */
select * from `transaction` where `transaction`.`id` = 102366 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 35 - 2024-11-29 07:01:58 [0.46ms] */
select * from `invoice` where `invoice`.`id` = 101966 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 36 - 2024-11-29 07:01:58 [3.38ms] */
update `vehicle_tax` set `deleted_by` = 5, `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99083;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 37 - 2024-11-29 07:01:58 [0.6ms] */
select * from `vehicle_tax` where `id` = 99083 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 38 - 2024-11-29 07:01:58 [3.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":[],"old":[]}', 5, 'App\Models\User', 99083, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 39 - 2024-11-29 07:01:58 [3.11ms] */
update `vehicle_tax` set `deleted_at` = '2024-11-29 07:01:58', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99083;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 40 - 2024-11-29 07:01:58 [0.5ms] */
select * from `vehicle_tax` where `id` = 99083 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 41 - 2024-11-29 07:01:58 [3.09ms] */
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":"OPEN","tax_number":"IPA-102351-927","tax_sticker_id":null,"vehicle_id":89733,"term_id":94,"party_id":57116,"transaction_id":102366,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99083, 'Modules\Vehicle\Entities\VehicleTax', 'deleted', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 42 - 2024-11-29 07:01:58 [3.37ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2024-11-29 07:01:58' where `id` = 102366;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 43 - 2024-11-29 07:01:58 [3.42ms] */
update `transaction` set `deleted_at` = '2024-11-29 07:01:58', `transaction`.`updated_at` = '2024-11-29 07:01:58' where `id` = 102366;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 44 - 2024-11-29 07:01:58 [3.15ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2024-11-29 07:01:58' where `id` = 101966;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 45 - 2024-11-29 07:01:58 [0.49ms] */
select * from `invoice` where `id` = 101966 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 46 - 2024-11-29 07:01:58 [3ms] */
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', 101966, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 47 - 2024-11-29 07:01:58 [3.55ms] */
update `invoice` set `deleted_at` = '2024-11-29 07:01:58', `invoice`.`updated_at` = '2024-11-29 07:01:58' where `id` = 101966;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 48 - 2024-11-29 07:01:58 [0.69ms] */
select * from `invoice` where `id` = 101966 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 49 - 2024-11-29 07:01:58 [3.37ms] */
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":102366,"party_id":57116,"invoice_amount":"31.00","invoice_date":"2023-03-01 00:00:00","due_date":"2023-03-01 00:00:00","outstanding_balance":"31.00","discounts":"0.00","taxes":null,"total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-889-101966314","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101966, 'Modules\Transaction\Entities\Invoice', 'deleted', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 50 - 2024-11-29 07:01:58 [0.68ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99084 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 51 - 2024-11-29 07:01:58 [0.71ms] */
select * from `transaction` where `transaction`.`id` = 102367 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 52 - 2024-11-29 07:01:58 [0.68ms] */
select * from `invoice` where `invoice`.`id` = 101967 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 53 - 2024-11-29 07:01:58 [3.41ms] */
update `vehicle_tax` set `deleted_by` = 5, `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99084;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 54 - 2024-11-29 07:01:58 [0.27ms] */
select * from `vehicle_tax` where `id` = 99084 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 55 - 2024-11-29 07:01:58 [3.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":[],"old":[]}', 5, 'App\Models\User', 99084, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 56 - 2024-11-29 07:01:58 [3.12ms] */
update `vehicle_tax` set `deleted_at` = '2024-11-29 07:01:58', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99084;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 57 - 2024-11-29 07:01:58 [0.45ms] */
select * from `vehicle_tax` where `id` = 99084 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 58 - 2024-11-29 07:01:58 [3.24ms] */
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":"OPEN","tax_number":"THC-102351-909","tax_sticker_id":null,"vehicle_id":89733,"term_id":95,"party_id":57116,"transaction_id":102367,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99084, 'Modules\Vehicle\Entities\VehicleTax', 'deleted', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 59 - 2024-11-29 07:01:58 [5.46ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2024-11-29 07:01:58' where `id` = 102367;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 60 - 2024-11-29 07:01:58 [3.43ms] */
update `transaction` set `deleted_at` = '2024-11-29 07:01:58', `transaction`.`updated_at` = '2024-11-29 07:01:58' where `id` = 102367;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 61 - 2024-11-29 07:01:58 [3.36ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2024-11-29 07:01:58' where `id` = 101967;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 62 - 2024-11-29 07:01:58 [0.58ms] */
select * from `invoice` where `id` = 101967 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 63 - 2024-11-29 07:01:58 [3.29ms] */
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', 101967, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 64 - 2024-11-29 07:01:58 [3.31ms] */
update `invoice` set `deleted_at` = '2024-11-29 07:01:58', `invoice`.`updated_at` = '2024-11-29 07:01:58' where `id` = 101967;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 65 - 2024-11-29 07:01:58 [0.57ms] */
select * from `invoice` where `id` = 101967 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 66 - 2024-11-29 07:01:58 [3.38ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102367,"party_id":57116,"invoice_amount":"31.00","invoice_date":"2023-06-01 00:00:00","due_date":"2023-06-01 00:00:00","outstanding_balance":"31.00","discounts":"0.00","taxes":null,"total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-239-101967129","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101967, 'Modules\Transaction\Entities\Invoice', 'deleted', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 67 - 2024-11-29 07:01:58 [0.6ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99085 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 68 - 2024-11-29 07:01:58 [0.69ms] */
select * from `transaction` where `transaction`.`id` = 102368 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 69 - 2024-11-29 07:01:58 [0.75ms] */
select * from `invoice` where `invoice`.`id` = 101968 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 70 - 2024-11-29 07:01:58 [3.32ms] */
update `vehicle_tax` set `deleted_by` = 5, `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99085;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 71 - 2024-11-29 07:01:58 [0.49ms] */
select * from `vehicle_tax` where `id` = 99085 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 72 - 2024-11-29 07:01:58 [3.26ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 99085, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 73 - 2024-11-29 07:01:58 [3.31ms] */
update `vehicle_tax` set `deleted_at` = '2024-11-29 07:01:58', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99085;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 74 - 2024-11-29 07:01:58 [0.58ms] */
select * from `vehicle_tax` where `id` = 99085 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 75 - 2024-11-29 07:01:58 [3.39ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"304-102351-835","tax_sticker_id":null,"vehicle_id":89733,"term_id":96,"party_id":57116,"transaction_id":102368,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99085, 'Modules\Vehicle\Entities\VehicleTax', 'deleted', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 76 - 2024-11-29 07:01:58 [3.25ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2024-11-29 07:01:58' where `id` = 102368;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 77 - 2024-11-29 07:01:58 [5.28ms] */
update `transaction` set `deleted_at` = '2024-11-29 07:01:58', `transaction`.`updated_at` = '2024-11-29 07:01:58' where `id` = 102368;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 78 - 2024-11-29 07:01:58 [4.23ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2024-11-29 07:01:58' where `id` = 101968;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 79 - 2024-11-29 07:01:58 [0.58ms] */
select * from `invoice` where `id` = 101968 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 80 - 2024-11-29 07:01:58 [3.27ms] */
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', 101968, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 81 - 2024-11-29 07:01:58 [3.16ms] */
update `invoice` set `deleted_at` = '2024-11-29 07:01:58', `invoice`.`updated_at` = '2024-11-29 07:01:58' where `id` = 101968;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 82 - 2024-11-29 07:01:58 [0.45ms] */
select * from `invoice` where `id` = 101968 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 83 - 2024-11-29 07:01:58 [3.01ms] */
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":102368,"party_id":57116,"invoice_amount":"31.00","invoice_date":"2023-09-01 00:00:00","due_date":"2023-09-01 00:00:00","outstanding_balance":"31.00","discounts":"0.00","taxes":null,"total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-935-101968394","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101968, 'Modules\Transaction\Entities\Invoice', 'deleted', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 84 - 2024-11-29 07:01:58 [0.5ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99086 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 85 - 2024-11-29 07:01:58 [0.51ms] */
select * from `transaction` where `transaction`.`id` = 102369 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 86 - 2024-11-29 07:01:58 [0.51ms] */
select * from `invoice` where `invoice`.`id` = 101969 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 87 - 2024-11-29 07:01:58 [3.09ms] */
update `vehicle_tax` set `deleted_by` = 5, `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99086;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 88 - 2024-11-29 07:01:58 [0.76ms] */
select * from `vehicle_tax` where `id` = 99086 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 89 - 2024-11-29 07:01:58 [3.07ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 99086, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 90 - 2024-11-29 07:01:58 [3.04ms] */
update `vehicle_tax` set `deleted_at` = '2024-11-29 07:01:58', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99086;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 91 - 2024-11-29 07:01:58 [0.53ms] */
select * from `vehicle_tax` where `id` = 99086 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 92 - 2024-11-29 07:01:58 [3.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"QQS-102351-864","tax_sticker_id":null,"vehicle_id":89733,"term_id":98,"party_id":57116,"transaction_id":102369,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99086, 'Modules\Vehicle\Entities\VehicleTax', 'deleted', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 93 - 2024-11-29 07:01:58 [3.23ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2024-11-29 07:01:58' where `id` = 102369;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 94 - 2024-11-29 07:01:58 [3.11ms] */
update `transaction` set `deleted_at` = '2024-11-29 07:01:58', `transaction`.`updated_at` = '2024-11-29 07:01:58' where `id` = 102369;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 95 - 2024-11-29 07:01:58 [3.17ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2024-11-29 07:01:58' where `id` = 101969;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 96 - 2024-11-29 07:01:58 [0.52ms] */
select * from `invoice` where `id` = 101969 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 97 - 2024-11-29 07:01:58 [3.38ms] */
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', 101969, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 98 - 2024-11-29 07:01:58 [7.36ms] */
update `invoice` set `deleted_at` = '2024-11-29 07:01:58', `invoice`.`updated_at` = '2024-11-29 07:01:58' where `id` = 101969;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 99 - 2024-11-29 07:01:58 [0.58ms] */
select * from `invoice` where `id` = 101969 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 100 - 2024-11-29 07:01:58 [7.59ms] */
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":102369,"party_id":57116,"invoice_amount":"31.00","invoice_date":"2024-03-01 00:00:00","due_date":"2024-03-01 00:00:00","outstanding_balance":"31.00","discounts":"0.00","taxes":null,"total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-906-101969246","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101969, 'Modules\Transaction\Entities\Invoice', 'deleted', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 101 - 2024-11-29 07:01:58 [0.58ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99087 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 102 - 2024-11-29 07:01:58 [0.59ms] */
select * from `transaction` where `transaction`.`id` = 102370 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 103 - 2024-11-29 07:01:58 [0.58ms] */
select * from `invoice` where `invoice`.`id` = 101970 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 104 - 2024-11-29 07:01:58 [11.48ms] */
update `vehicle_tax` set `deleted_by` = 5, `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99087;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 105 - 2024-11-29 07:01:58 [0.59ms] */
select * from `vehicle_tax` where `id` = 99087 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 106 - 2024-11-29 07:01:58 [7.64ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 99087, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 107 - 2024-11-29 07:01:58 [11.46ms] */
update `vehicle_tax` set `deleted_at` = '2024-11-29 07:01:58', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99087;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 108 - 2024-11-29 07:01:58 [0.56ms] */
select * from `vehicle_tax` where `id` = 99087 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 109 - 2024-11-29 07:01:58 [7.64ms] */
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":"OPEN","tax_number":"JZP-102351-744","tax_sticker_id":null,"vehicle_id":89733,"term_id":99,"party_id":57116,"transaction_id":102370,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99087, 'Modules\Vehicle\Entities\VehicleTax', 'deleted', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 110 - 2024-11-29 07:01:58 [3.28ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2024-11-29 07:01:58' where `id` = 102370;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 111 - 2024-11-29 07:01:58 [3.25ms] */
update `transaction` set `deleted_at` = '2024-11-29 07:01:58', `transaction`.`updated_at` = '2024-11-29 07:01:58' where `id` = 102370;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 112 - 2024-11-29 07:01:58 [3.3ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2024-11-29 07:01:58' where `id` = 101970;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 113 - 2024-11-29 07:01:58 [0.32ms] */
select * from `invoice` where `id` = 101970 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 114 - 2024-11-29 07:01:58 [4.86ms] */
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', 101970, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 115 - 2024-11-29 07:01:58 [3.24ms] */
update `invoice` set `deleted_at` = '2024-11-29 07:01:58', `invoice`.`updated_at` = '2024-11-29 07:01:58' where `id` = 101970;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 116 - 2024-11-29 07:01:58 [0.6ms] */
select * from `invoice` where `id` = 101970 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 117 - 2024-11-29 07:01:58 [3.45ms] */
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":102370,"party_id":57116,"invoice_amount":"31.00","invoice_date":"2024-06-01 00:00:00","due_date":"2024-06-01 00:00:00","outstanding_balance":"31.00","discounts":"0.00","taxes":null,"total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-226-101970156","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101970, 'Modules\Transaction\Entities\Invoice', 'deleted', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 118 - 2024-11-29 07:01:58 [0.62ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99088 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 119 - 2024-11-29 07:01:58 [0.58ms] */
select * from `transaction` where `transaction`.`id` = 102371 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 120 - 2024-11-29 07:01:58 [0.57ms] */
select * from `invoice` where `invoice`.`id` = 101971 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 121 - 2024-11-29 07:01:58 [3.23ms] */
update `vehicle_tax` set `deleted_by` = 5, `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99088;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 122 - 2024-11-29 07:01:58 [0.49ms] */
select * from `vehicle_tax` where `id` = 99088 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 123 - 2024-11-29 07:01:58 [3.12ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":[],"old":[]}', 5, 'App\Models\User', 99088, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 124 - 2024-11-29 07:01:58 [3.23ms] */
update `vehicle_tax` set `deleted_at` = '2024-11-29 07:01:58', `vehicle_tax`.`updated_at` = '2024-11-29 07:01:58' where `id` = 99088;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 125 - 2024-11-29 07:01:58 [0.62ms] */
select * from `vehicle_tax` where `id` = 99088 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 126 - 2024-11-29 07:01:58 [3.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":"OPEN","tax_number":"64J-102351-753","tax_sticker_id":null,"vehicle_id":89733,"term_id":100,"party_id":57116,"transaction_id":102371,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99088, 'Modules\Vehicle\Entities\VehicleTax', 'deleted', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 127 - 2024-11-29 07:01:58 [3.21ms] */
update `transaction` set `deleted_by` = 5, `transaction`.`updated_at` = '2024-11-29 07:01:58' where `id` = 102371;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 128 - 2024-11-29 07:01:58 [3.1ms] */
update `transaction` set `deleted_at` = '2024-11-29 07:01:58', `transaction`.`updated_at` = '2024-11-29 07:01:58' where `id` = 102371;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 129 - 2024-11-29 07:01:58 [1.72ms] */
update `invoice` set `deleted_by` = 5, `invoice`.`updated_at` = '2024-11-29 07:01:58' where `id` = 101971;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 130 - 2024-11-29 07:01:58 [0.46ms] */
select * from `invoice` where `id` = 101971 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 131 - 2024-11-29 07:01:58 [3.88ms] */
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', 101971, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 132 - 2024-11-29 07:01:58 [5.35ms] */
update `invoice` set `deleted_at` = '2024-11-29 07:01:58', `invoice`.`updated_at` = '2024-11-29 07:01:58' where `id` = 101971;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 133 - 2024-11-29 07:01:58 [0.59ms] */
select * from `invoice` where `id` = 101971 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 134 - 2024-11-29 07:01:58 [3.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":102371,"party_id":57116,"invoice_amount":"31.00","invoice_date":"2024-09-01 00:00:00","due_date":"2024-09-01 00:00:00","outstanding_balance":"31.00","discounts":"0.00","taxes":null,"total_invoice_amount":"31.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-616-101971493","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101971, 'Modules\Transaction\Entities\Invoice', 'deleted', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 135 - 2024-11-29 07:01:58 [3.37ms] */
update `vehicle` set `tax_category` = 'Yearly', `vehicle`.`updated_at` = '2024-11-29 07:01:58' where `id` = 89733;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 136 - 2024-11-29 07:01:58 [0.58ms] */
select * from `vehicle` where `id` = 89733 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 137 - 2024-11-29 07:01:58 [3.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":[]}', 5, 'App\Models\User', 89733, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 138 - 2024-11-29 07:01:58 [3.25ms] */
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 ('{"tax_category":"Quarterly"}', '{"tax_category":"Yearly"}', 'updated', 89733, 'Modules\Vehicle\Entities\Vehicle', 5, 'App\Models\User', null, '103.208.230.53', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36', 'https://testtra.puntlandgov.org/livewire/message/service.tax-component', '2024-11-29 07:01:58', '2024-11-29 07:01:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 139 - 2024-11-29 07:01:58 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 89733 and `party_vehicle`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 140 - 2024-11-29 07:01:58 [0.21ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 89733 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 141 - 2024-11-29 07:01:58 [0.22ms] */
select * from `party_vehicle` where `vehicle_id` = 89733 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-component
   Query 142 - 2024-11-29 07:01:58 [0.38ms] */
select * from `transaction` where `transaction`.`id` = 102351 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 143 - 2024-11-29 07:01:58 [0.22ms] */
select * from `service_workflow` where `service_workflow`.`id` = 1 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 144 - 2024-11-29 07:01:58 [0.21ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 145 - 2024-11-29 07:01:58 [0.22ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 146 - 2024-11-29 07:01:58 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 147 - 2024-11-29 07:01:58 [0.21ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 148 - 2024-11-29 07:01:58 [0.49ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 149 - 2024-11-29 07:01:58 [0.44ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 150 - 2024-11-29 07:01:58 [0.43ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 151 - 2024-11-29 07:01:58 [0.24ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 152 - 2024-11-29 07:01:58 [0.32ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 153 - 2024-11-29 07:01:58 [0.19ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 154 - 2024-11-29 07:01:58 [0.31ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 155 - 2024-11-29 07:01:58 [3.49ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 156 - 2024-11-29 07:01:58 [0.19ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 157 - 2024-11-29 07:01:58 [0.32ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 158 - 2024-11-29 07:01:58 [0.3ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 159 - 2024-11-29 07:01:58 [0.32ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 160 - 2024-11-29 07:01:58 [0.18ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 161 - 2024-11-29 07:01:58 [0.3ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 162 - 2024-11-29 07:01:58 [0.17ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 163 - 2024-11-29 07:01:58 [0.28ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 164 - 2024-11-29 07:01:58 [0.13ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 165 - 2024-11-29 07:01:58 [0.19ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 166 - 2024-11-29 07:01:58 [0.52ms] */
select * from `vehicle_tax` where `status` = 'OPEN' and `vehicle_id` = 89733 and `vehicle_tax`.`deleted_at` is null order by `term_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 167 - 2024-11-29 07:01:58 [0.17ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 89733 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 168 - 2024-11-29 07:01:58 [0.19ms] */
select * from `party_vehicle` where `vehicle_id` = 89733 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-component
   Query 169 - 2024-11-29 07:01:58 [0.17ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 170 - 2024-11-29 07:01:58 [0.45ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 171 - 2024-11-29 07:01:58 [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` = 89733 and `term`.`year` <= 2024 and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 172 - 2024-11-29 07:01:58 [0.46ms] */
select `id` from `vehicle_tax` where `status` = 'OPEN' and `vehicle_id` = 89733 and `vehicle_tax`.`deleted_at` is null order by `term_id` asc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 173 - 2024-11-29 07:01:58 [0.52ms] */
select sum(`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 (99069, 99073) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 174 - 2024-11-29 07:01:58 [0.2ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 175 - 2024-11-29 07:01:58 [0.15ms] */
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-component
   Query 176 - 2024-11-29 07:01:58 [0.46ms] */
select * from `transaction` where `transaction`.`id` = 102352 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 177 - 2024-11-29 07:01:58 [0.43ms] */
select * from `invoice` where `invoice`.`id` = 101952 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 178 - 2024-11-29 07:01:58 [0.14ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 179 - 2024-11-29 07:01:58 [0.43ms] */
select * from `transaction` where `transaction`.`id` = 102356 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 180 - 2024-11-29 07:01:58 [0.44ms] */
select * from `invoice` where `invoice`.`id` = 101956 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 181 - 2024-11-29 07:01:58 [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/livewire/message/service.tax-component
   Query 182 - 2024-11-29 07:01:58 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 183 - 2024-11-29 07:01:58 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 184 - 2024-11-29 07:01: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/livewire/message/service.tax-component
   Query 1 - 2024-11-29 07:02:18 [1.41ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 2 - 2024-11-29 07:02:18 [0.41ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 3 - 2024-11-29 07:02:18 [0.31ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 4 - 2024-11-29 07:02:18 [0.36ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'test_tra' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 5 - 2024-11-29 07:02:18 [0.35ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` in (99069, 99073);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 6 - 2024-11-29 07:02:18 [0.15ms] */
select * from `term` where `term`.`id` in (96, 100) and `term`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 7 - 2024-11-29 07:02:18 [0.32ms] */
select * from `transaction` where `transaction`.`id` in (102352, 102356) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 8 - 2024-11-29 07:02:18 [0.27ms] */
select * from `invoice` where `invoice`.`id` in (101952, 101956) and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 9 - 2024-11-29 07:02:18 [0.17ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 98706 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 10 - 2024-11-29 07:02:18 [0.27ms] */
select * from `party` where `party`.`id` in (57116) and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 11 - 2024-11-29 07:02:18 [0.39ms] */
select * from `vehicle` where `vehicle`.`id` in (89733) and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 12 - 2024-11-29 07:02:18 [0.24ms] */
select * from `classification_type` where `classification_type`.`id` in (2) and `classification_type`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 13 - 2024-11-29 07:02:18 [0.36ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 14 - 2024-11-29 07:02:18 [0.39ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 15 - 2024-11-29 07:02:18 [0.17ms] */
select * from `service_fee` where (`sub_category_id` = 4 and `service_id` = 2 or `sub_category_id` is null and `service_id` = 2) and `service_fee`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 16 - 2024-11-29 07:02:18 [0.13ms] */
select `id` from `term` where `quarter` = 4 and `year` >= 2023 and `term`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 17 - 2024-11-29 07:02:18 [0.43ms] */
select * from `vehicle_tax` where `vehicle_id` = 89733 and `term_id` in (96, 100) and `status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 18 - 2024-11-29 07:02:18 [0.36ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99069 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 19 - 2024-11-29 07:02:18 [0.15ms] */
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-component
   Query 20 - 2024-11-29 07:02:18 [0.13ms] */
select * from `term` where `quarter` = 1 and `year` = 2023 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 21 - 2024-11-29 07:02:18 [19.3ms] */
update `vehicle_tax` set `term_id` = 93, `category` = 'Quarterly', `vehicle_tax`.`updated_at` = '2024-11-29 07:02:18' where `id` = 99069;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 22 - 2024-11-29 07:02:18 [0.65ms] */
select * from `vehicle_tax` where `id` = 99069 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 23 - 2024-11-29 07:02:18 [4.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":{"term_id":93},"old":{"term_id":96}}', 5, 'App\Models\User', 99069, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 24 - 2024-11-29 07:02:18 [0.65ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 99073 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 25 - 2024-11-29 07:02:18 [0.26ms] */
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-component
   Query 26 - 2024-11-29 07:02:18 [0.28ms] */
select * from `term` where `quarter` = 1 and `year` = 2024 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 27 - 2024-11-29 07:02:18 [3.78ms] */
update `vehicle_tax` set `term_id` = 97, `category` = 'Quarterly', `vehicle_tax`.`updated_at` = '2024-11-29 07:02:18' where `id` = 99073;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 28 - 2024-11-29 07:02:18 [0.7ms] */
select * from `vehicle_tax` where `id` = 99073 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 29 - 2024-11-29 07:02:18 [3.53ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"term_id":97},"old":{"term_id":100}}', 5, 'App\Models\User', 99073, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 30 - 2024-11-29 07:02:18 [3.53ms] */
update `vehicle` set `tax_category` = 'Quarterly', `vehicle`.`updated_at` = '2024-11-29 07:02:18' where `id` = 89733;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 31 - 2024-11-29 07:02:18 [0.52ms] */
select * from `vehicle` where `id` = 89733 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 32 - 2024-11-29 07:02:18 [3.4ms] */
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', 89733, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 33 - 2024-11-29 07:02:18 [5.43ms] */
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 ('{"tax_category":"Yearly"}', '{"tax_category":"Quarterly"}', 'updated', 89733, 'Modules\Vehicle\Entities\Vehicle', 5, 'App\Models\User', null, '103.208.230.53', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36', 'https://testtra.puntlandgov.org/livewire/message/service.tax-component', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 34 - 2024-11-29 07:02:18 [0.22ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 89733 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 35 - 2024-11-29 07:02:18 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 89733 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-component
   Query 36 - 2024-11-29 07:02:18 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 102351 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 37 - 2024-11-29 07:02:18 [0.21ms] */
select * from `service_workflow` where `service_workflow`.`id` = 1 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 38 - 2024-11-29 07:02:18 [0.21ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 39 - 2024-11-29 07:02:18 [0.22ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 40 - 2024-11-29 07:02:18 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` = 89733 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 41 - 2024-11-29 07:02:18 [0.23ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 42 - 2024-11-29 07:02:18 [0.42ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 43 - 2024-11-29 07:02:18 [2.77ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 44 - 2024-11-29 07:02:18 [0.25ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 45 - 2024-11-29 07:02:18 [0.24ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 46 - 2024-11-29 07:02:18 [0.14ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 47 - 2024-11-29 07:02:18 [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/livewire/message/service.tax-component
   Query 48 - 2024-11-29 07:02:18 [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/livewire/message/service.tax-component
   Query 49 - 2024-11-29 07:02:18 [0.31ms] */
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 (57116, 2, 89733, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 50 - 2024-11-29 07:02:18 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102372, 'INITIATED', '2024-11-29 07:02:18', 5, 5, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 51 - 2024-11-29 07:02:18 [0.13ms] */
select * from `term` where `year` = 2023 and `quarter` = 2 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 52 - 2024-11-29 07:02:18 [0.18ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'W43-102351-815', 89733, 94, 57116, 98706, 102372, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 53 - 2024-11-29 07:02:18 [0.17ms] */
select * from `vehicle_tax` where `id` = 99089 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 54 - 2024-11-29 07:02:18 [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":"OPEN","tax_number":"W43-102351-815","tax_sticker_id":null,"vehicle_id":89733,"term_id":94,"party_id":57116,"transaction_id":102372,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99089, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 55 - 2024-11-29 07:02:18 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 56 - 2024-11-29 07:02:18 [0.23ms] */
(select * from `service_fee` where `sub_category_id` = 4 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 4 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 57 - 2024-11-29 07:02:18 [0.17ms] */
select * from `term` where `term`.`id` = 94 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 58 - 2024-11-29 07:02:18 [0.2ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 59 - 2024-11-29 07:02:18 [0.19ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102372, '2023-03-01 00:00:00', '2023-03-01 00:00:00', 'OPEN', 57116, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 60 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice` where `id` = 101972 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 61 - 2024-11-29 07:02:18 [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":{"transaction_id":102372,"party_id":57116,"invoice_amount":"0.00","invoice_date":"2023-03-01 00:00:00","due_date":"2023-03-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101972, 'Modules\Transaction\Entities\Invoice', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 62 - 2024-11-29 07:02:18 [0.16ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 14 HP', 'Quarterly TaxFee for 14 HP', 1, 23.00, 23.00, 101972, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 63 - 2024-11-29 07:02:18 [0.16ms] */
select * from `invoice_item` where `id` = 199681 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 64 - 2024-11-29 07:02:18 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly TaxFee for 14 HP","description":"Quarterly TaxFee for 14 HP","unit_price":"23.00","quantity":1,"total_price":"23.00","invoice_id":101972}}', 5, 'App\Models\User', 199681, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 65 - 2024-11-29 07:02:18 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 101972, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 66 - 2024-11-29 07:02:18 [0.16ms] */
select * from `invoice_item` where `id` = 199682 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 67 - 2024-11-29 07:02:18 [0.15ms] */
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":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":101972}}', 5, 'App\Models\User', 199682, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 68 - 2024-11-29 07:02:18 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 101972 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 69 - 2024-11-29 07:02:18 [0.24ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 101972 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 70 - 2024-11-29 07:02:18 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101972 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 71 - 2024-11-29 07:02:18 [0.19ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 31, `discounts` = 0, `total_invoice_amount` = 31, `invoice`.`updated_at` = '2024-11-29 07:02:18' where `id` = 101972;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 72 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice` where `id` = 101972 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 73 - 2024-11-29 07:02:18 [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_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 5, 'App\Models\User', 101972, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 74 - 2024-11-29 07:02:18 [0.15ms] */
update `invoice` set `invoice_number` = 'INV-435-101972216', `invoice`.`updated_at` = '2024-11-29 07:02:18' where `id` = 101972;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 75 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice` where `id` = 101972 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 76 - 2024-11-29 07:02:18 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00","invoice_number":"INV-435-101972216","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 5, 'App\Models\User', 101972, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 77 - 2024-11-29 07:02:18 [0.17ms] */
update `transaction` set `party_vehicle_id` = 98706, `vehicle_tax_id` = 99089, `invoice_id` = 101972, `transaction`.`updated_at` = '2024-11-29 07:02:18' where `id` = 102372;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 78 - 2024-11-29 07:02:18 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 79 - 2024-11-29 07:02:18 [0.25ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 80 - 2024-11-29 07:02:18 [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/livewire/message/service.tax-component
   Query 81 - 2024-11-29 07:02:18 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 82 - 2024-11-29 07:02:18 [0.19ms] */
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 (57116, 2, 89733, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 83 - 2024-11-29 07:02:18 [0.16ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102373, 'INITIATED', '2024-11-29 07:02:18', 5, 5, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 84 - 2024-11-29 07:02:18 [0.2ms] */
select * from `term` where `year` = 2023 and `quarter` = 3 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 85 - 2024-11-29 07:02:18 [0.17ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', '0I5-102351-891', 89733, 95, 57116, 98706, 102373, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 86 - 2024-11-29 07:02:18 [0.17ms] */
select * from `vehicle_tax` where `id` = 99090 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 87 - 2024-11-29 07:02:18 [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":"OPEN","tax_number":"0I5-102351-891","tax_sticker_id":null,"vehicle_id":89733,"term_id":95,"party_id":57116,"transaction_id":102373,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99090, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 88 - 2024-11-29 07:02:18 [0.22ms] */
(select * from `service_fee` where `sub_category_id` = 4 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 4 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 89 - 2024-11-29 07:02:18 [0.17ms] */
select * from `term` where `term`.`id` = 95 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 90 - 2024-11-29 07:02:18 [0.19ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 91 - 2024-11-29 07:02:18 [0.16ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102373, '2023-06-01 00:00:00', '2023-06-01 00:00:00', 'OPEN', 57116, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 92 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice` where `id` = 101973 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 93 - 2024-11-29 07:02:18 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102373,"party_id":57116,"invoice_amount":"0.00","invoice_date":"2023-06-01 00:00:00","due_date":"2023-06-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101973, 'Modules\Transaction\Entities\Invoice', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 94 - 2024-11-29 07:02:18 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 14 HP', 'Quarterly TaxFee for 14 HP', 1, 23.00, 23.00, 101973, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 95 - 2024-11-29 07:02:18 [0.17ms] */
select * from `invoice_item` where `id` = 199683 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 96 - 2024-11-29 07:02:18 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Quarterly TaxFee for 14 HP","description":"Quarterly TaxFee for 14 HP","unit_price":"23.00","quantity":1,"total_price":"23.00","invoice_id":101973}}', 5, 'App\Models\User', 199683, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 97 - 2024-11-29 07:02:18 [0.14ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 101973, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 98 - 2024-11-29 07:02:18 [0.16ms] */
select * from `invoice_item` where `id` = 199684 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 99 - 2024-11-29 07:02:18 [0.15ms] */
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":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":101973}}', 5, 'App\Models\User', 199684, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 100 - 2024-11-29 07:02:18 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 101973 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 101 - 2024-11-29 07:02:18 [0.22ms] */
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` = 101973 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 102 - 2024-11-29 07:02:18 [0.19ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101973 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 103 - 2024-11-29 07:02:18 [0.17ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 31, `discounts` = 0, `total_invoice_amount` = 31, `invoice`.`updated_at` = '2024-11-29 07:02:18' where `id` = 101973;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 104 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice` where `id` = 101973 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 105 - 2024-11-29 07:02:18 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 5, 'App\Models\User', 101973, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 106 - 2024-11-29 07:02:18 [0.15ms] */
update `invoice` set `invoice_number` = 'INV-919-101973887', `invoice`.`updated_at` = '2024-11-29 07:02:18' where `id` = 101973;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 107 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice` where `id` = 101973 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 108 - 2024-11-29 07:02:18 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00","invoice_number":"INV-919-101973887","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 5, 'App\Models\User', 101973, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 109 - 2024-11-29 07:02:18 [0.17ms] */
update `transaction` set `party_vehicle_id` = 98706, `vehicle_tax_id` = 99090, `invoice_id` = 101973, `transaction`.`updated_at` = '2024-11-29 07:02:18' where `id` = 102373;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 110 - 2024-11-29 07:02:18 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 111 - 2024-11-29 07:02:18 [0.25ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2023 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 112 - 2024-11-29 07:02:18 [0.19ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 113 - 2024-11-29 07:02:18 [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/livewire/message/service.tax-component
   Query 114 - 2024-11-29 07:02:18 [0.19ms] */
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 (57116, 2, 89733, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 115 - 2024-11-29 07:02:18 [0.15ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102374, 'INITIATED', '2024-11-29 07:02:18', 5, 5, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 116 - 2024-11-29 07:02:18 [0.2ms] */
select * from `term` where `year` = 2023 and `quarter` = 4 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 117 - 2024-11-29 07:02:18 [0.16ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'OWR-102351-754', 89733, 96, 57116, 98706, 102374, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 118 - 2024-11-29 07:02:18 [0.17ms] */
select * from `vehicle_tax` where `id` = 99091 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 119 - 2024-11-29 07:02:18 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"OWR-102351-754","tax_sticker_id":null,"vehicle_id":89733,"term_id":96,"party_id":57116,"transaction_id":102374,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99091, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 120 - 2024-11-29 07:02:18 [0.21ms] */
(select * from `service_fee` where `sub_category_id` = 4 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 4 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 121 - 2024-11-29 07:02:18 [0.17ms] */
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-component
   Query 122 - 2024-11-29 07:02:18 [0.19ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 123 - 2024-11-29 07:02:18 [0.16ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102374, '2023-09-01 00:00:00', '2023-09-01 00:00:00', 'OPEN', 57116, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 124 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice` where `id` = 101974 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 125 - 2024-11-29 07:02:18 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102374,"party_id":57116,"invoice_amount":"0.00","invoice_date":"2023-09-01 00:00:00","due_date":"2023-09-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101974, 'Modules\Transaction\Entities\Invoice', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 126 - 2024-11-29 07:02:18 [0.14ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 14 HP', 'Quarterly TaxFee for 14 HP', 1, 23.00, 23.00, 101974, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 127 - 2024-11-29 07:02:18 [0.16ms] */
select * from `invoice_item` where `id` = 199685 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 128 - 2024-11-29 07:02:18 [0.15ms] */
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":"Quarterly TaxFee for 14 HP","description":"Quarterly TaxFee for 14 HP","unit_price":"23.00","quantity":1,"total_price":"23.00","invoice_id":101974}}', 5, 'App\Models\User', 199685, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 129 - 2024-11-29 07:02:18 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 101974, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 130 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice_item` where `id` = 199686 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 131 - 2024-11-29 07:02:18 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":101974}}', 5, 'App\Models\User', 199686, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 132 - 2024-11-29 07:02:18 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 101974 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 133 - 2024-11-29 07:02:18 [0.22ms] */
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` = 101974 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 134 - 2024-11-29 07:02:18 [0.19ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101974 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 135 - 2024-11-29 07:02:18 [0.17ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 31, `discounts` = 0, `total_invoice_amount` = 31, `invoice`.`updated_at` = '2024-11-29 07:02:18' where `id` = 101974;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 136 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice` where `id` = 101974 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 137 - 2024-11-29 07:02:18 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 5, 'App\Models\User', 101974, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 138 - 2024-11-29 07:02:18 [0.15ms] */
update `invoice` set `invoice_number` = 'INV-962-101974308', `invoice`.`updated_at` = '2024-11-29 07:02:18' where `id` = 101974;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 139 - 2024-11-29 07:02:18 [0.2ms] */
select * from `invoice` where `id` = 101974 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 140 - 2024-11-29 07:02:18 [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_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00","invoice_number":"INV-962-101974308","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 5, 'App\Models\User', 101974, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 141 - 2024-11-29 07:02:18 [0.17ms] */
update `transaction` set `party_vehicle_id` = 98706, `vehicle_tax_id` = 99091, `invoice_id` = 101974, `transaction`.`updated_at` = '2024-11-29 07:02:18' where `id` = 102374;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 142 - 2024-11-29 07:02:18 [0.24ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 1 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 143 - 2024-11-29 07:02:18 [1.82ms] */
select count(*) as aggregate from `vehicle_tax` where `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 144 - 2024-11-29 07:02:18 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 145 - 2024-11-29 07:02:18 [0.25ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 146 - 2024-11-29 07:02:18 [0.24ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 147 - 2024-11-29 07:02:18 [0.18ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 148 - 2024-11-29 07:02:18 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 149 - 2024-11-29 07:02:18 [0.19ms] */
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 (57116, 2, 89733, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 150 - 2024-11-29 07:02:18 [0.16ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102375, 'INITIATED', '2024-11-29 07:02:18', 5, 5, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 151 - 2024-11-29 07:02:18 [0.2ms] */
select * from `term` where `year` = 2024 and `quarter` = 2 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 152 - 2024-11-29 07:02:18 [0.16ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'RDE-102351-970', 89733, 98, 57116, 98706, 102375, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 153 - 2024-11-29 07:02:18 [0.19ms] */
select * from `vehicle_tax` where `id` = 99092 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 154 - 2024-11-29 07:02:18 [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":"OPEN","tax_number":"RDE-102351-970","tax_sticker_id":null,"vehicle_id":89733,"term_id":98,"party_id":57116,"transaction_id":102375,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99092, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 155 - 2024-11-29 07:02:18 [0.21ms] */
(select * from `service_fee` where `sub_category_id` = 4 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 4 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 156 - 2024-11-29 07:02:18 [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-component
   Query 157 - 2024-11-29 07:02:18 [0.19ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 158 - 2024-11-29 07:02:18 [0.16ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102375, '2024-03-01 00:00:00', '2024-03-01 00:00:00', 'OPEN', 57116, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 159 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice` where `id` = 101975 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 160 - 2024-11-29 07:02:18 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102375,"party_id":57116,"invoice_amount":"0.00","invoice_date":"2024-03-01 00:00:00","due_date":"2024-03-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101975, 'Modules\Transaction\Entities\Invoice', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 161 - 2024-11-29 07:02:18 [0.17ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 14 HP', 'Quarterly TaxFee for 14 HP', 1, 23.00, 23.00, 101975, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 162 - 2024-11-29 07:02:18 [0.16ms] */
select * from `invoice_item` where `id` = 199687 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 163 - 2024-11-29 07:02:18 [0.15ms] */
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":"Quarterly TaxFee for 14 HP","description":"Quarterly TaxFee for 14 HP","unit_price":"23.00","quantity":1,"total_price":"23.00","invoice_id":101975}}', 5, 'App\Models\User', 199687, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 164 - 2024-11-29 07:02:18 [0.14ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 101975, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 165 - 2024-11-29 07:02:18 [0.16ms] */
select * from `invoice_item` where `id` = 199688 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 166 - 2024-11-29 07:02:18 [0.15ms] */
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":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":101975}}', 5, 'App\Models\User', 199688, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 167 - 2024-11-29 07:02:18 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 101975 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 168 - 2024-11-29 07:02:18 [0.22ms] */
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` = 101975 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 169 - 2024-11-29 07:02:18 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101975 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 170 - 2024-11-29 07:02:18 [0.26ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 31, `discounts` = 0, `total_invoice_amount` = 31, `invoice`.`updated_at` = '2024-11-29 07:02:18' where `id` = 101975;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 171 - 2024-11-29 07:02:18 [0.38ms] */
select * from `invoice` where `id` = 101975 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 172 - 2024-11-29 07:02:18 [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":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 5, 'App\Models\User', 101975, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 173 - 2024-11-29 07:02:18 [0.29ms] */
update `invoice` set `invoice_number` = 'INV-958-101975996', `invoice`.`updated_at` = '2024-11-29 07:02:18' where `id` = 101975;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 174 - 2024-11-29 07:02:18 [0.34ms] */
select * from `invoice` where `id` = 101975 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 175 - 2024-11-29 07:02:18 [0.34ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00","invoice_number":"INV-958-101975996","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 5, 'App\Models\User', 101975, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 176 - 2024-11-29 07:02:18 [0.32ms] */
update `transaction` set `party_vehicle_id` = 98706, `vehicle_tax_id` = 99092, `invoice_id` = 101975, `transaction`.`updated_at` = '2024-11-29 07:02:18' where `id` = 102375;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 177 - 2024-11-29 07:02:18 [0.53ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 178 - 2024-11-29 07:02:18 [0.5ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 179 - 2024-11-29 07:02:18 [0.42ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 180 - 2024-11-29 07:02:18 [0.37ms] */
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/livewire/message/service.tax-component
   Query 181 - 2024-11-29 07:02:18 [0.34ms] */
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 (57116, 2, 89733, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 182 - 2024-11-29 07:02:18 [0.31ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102376, 'INITIATED', '2024-11-29 07:02:18', 5, 5, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 183 - 2024-11-29 07:02:18 [0.44ms] */
select * from `term` where `year` = 2024 and `quarter` = 3 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 184 - 2024-11-29 07:02:18 [0.23ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'TDN-102351-133', 89733, 99, 57116, 98706, 102376, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 185 - 2024-11-29 07:02:18 [0.17ms] */
select * from `vehicle_tax` where `id` = 99093 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 186 - 2024-11-29 07:02:18 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"TDN-102351-133","tax_sticker_id":null,"vehicle_id":89733,"term_id":99,"party_id":57116,"transaction_id":102376,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99093, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 187 - 2024-11-29 07:02:18 [0.21ms] */
(select * from `service_fee` where `sub_category_id` = 4 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 4 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 188 - 2024-11-29 07:02:18 [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-component
   Query 189 - 2024-11-29 07:02:18 [0.19ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 190 - 2024-11-29 07:02:18 [0.17ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102376, '2024-06-01 00:00:00', '2024-06-01 00:00:00', 'OPEN', 57116, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 191 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice` where `id` = 101976 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 192 - 2024-11-29 07:02:18 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102376,"party_id":57116,"invoice_amount":"0.00","invoice_date":"2024-06-01 00:00:00","due_date":"2024-06-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101976, 'Modules\Transaction\Entities\Invoice', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 193 - 2024-11-29 07:02:18 [0.21ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 14 HP', 'Quarterly TaxFee for 14 HP', 1, 23.00, 23.00, 101976, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 194 - 2024-11-29 07:02:18 [0.17ms] */
select * from `invoice_item` where `id` = 199689 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 195 - 2024-11-29 07:02:18 [0.15ms] */
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":"Quarterly TaxFee for 14 HP","description":"Quarterly TaxFee for 14 HP","unit_price":"23.00","quantity":1,"total_price":"23.00","invoice_id":101976}}', 5, 'App\Models\User', 199689, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 196 - 2024-11-29 07:02:18 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 101976, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 197 - 2024-11-29 07:02:18 [0.16ms] */
select * from `invoice_item` where `id` = 199690 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 198 - 2024-11-29 07:02:18 [0.15ms] */
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":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":101976}}', 5, 'App\Models\User', 199690, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 199 - 2024-11-29 07:02:18 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 101976 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 200 - 2024-11-29 07:02:18 [0.22ms] */
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` = 101976 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 201 - 2024-11-29 07:02:18 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 101976 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 202 - 2024-11-29 07:02:18 [0.2ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 31, `discounts` = 0, `total_invoice_amount` = 31, `invoice`.`updated_at` = '2024-11-29 07:02:18' where `id` = 101976;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 203 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice` where `id` = 101976 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 204 - 2024-11-29 07:02:18 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 5, 'App\Models\User', 101976, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 205 - 2024-11-29 07:02:18 [0.15ms] */
update `invoice` set `invoice_number` = 'INV-664-101976369', `invoice`.`updated_at` = '2024-11-29 07:02:18' where `id` = 101976;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 206 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice` where `id` = 101976 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 207 - 2024-11-29 07:02:18 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"31.00","outstanding_balance":"31.00","discounts":"0.00","total_invoice_amount":"31.00","invoice_number":"INV-664-101976369","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 5, 'App\Models\User', 101976, 'Modules\Transaction\Entities\Invoice', 'updated', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 208 - 2024-11-29 07:02:18 [0.19ms] */
update `transaction` set `party_vehicle_id` = 98706, `vehicle_tax_id` = 99093, `invoice_id` = 101976, `transaction`.`updated_at` = '2024-11-29 07:02:18' where `id` = 102376;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 209 - 2024-11-29 07:02:18 [0.28ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 210 - 2024-11-29 07:02:18 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 89733 and `term`.`year` = 2024 and `status` in ('INPROGRESS', 'ISSUED') and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 211 - 2024-11-29 07:02:18 [0.19ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 212 - 2024-11-29 07:02:18 [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/livewire/message/service.tax-component
   Query 213 - 2024-11-29 07:02:18 [0.19ms] */
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 (57116, 2, 89733, null, 2, 6, null, 37, 37, 'OPEN', null, null, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 214 - 2024-11-29 07:02:18 [0.16ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102377, 'INITIATED', '2024-11-29 07:02:18', 5, 5, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 215 - 2024-11-29 07:02:18 [0.2ms] */
select * from `term` where `year` = 2024 and `quarter` = 4 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 216 - 2024-11-29 07:02:18 [0.21ms] */
insert into `vehicle_tax` (`status`, `tax_number`, `vehicle_id`, `term_id`, `party_id`, `party_vehicle_id`, `transaction_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('OPEN', 'AVC-102351-729', 89733, 100, 57116, 98706, 102377, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 217 - 2024-11-29 07:02:18 [0.18ms] */
select * from `vehicle_tax` where `id` = 99094 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 218 - 2024-11-29 07:02:18 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"AVC-102351-729","tax_sticker_id":null,"vehicle_id":89733,"term_id":100,"party_id":57116,"transaction_id":102377,"party_vehicle_id":98706,"exempt":"N","migration_id":null}}', 5, 'App\Models\User', 99094, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 219 - 2024-11-29 07:02:18 [0.21ms] */
(select * from `service_fee` where `sub_category_id` = 4 and `classification_id` = 2 and `service_id` = 2 and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` is null and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 4 and `classification_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `classification_id` = 2 and `sub_category_id` is null and `frequency_type_id` = 2 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 220 - 2024-11-29 07:02:18 [0.17ms] */
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-component
   Query 221 - 2024-11-29 07:02:18 [0.19ms] */
select * from `party` where `party`.`id` = 57116 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-component
   Query 222 - 2024-11-29 07:02:18 [0.16ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (102377, '2024-09-01 00:00:00', '2024-09-01 00:00:00', 'OPEN', 57116, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 223 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice` where `id` = 101977 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 224 - 2024-11-29 07:02:18 [0.15ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":102377,"party_id":57116,"invoice_amount":"0.00","invoice_date":"2024-09-01 00:00:00","due_date":"2024-09-01 00:00:00","outstanding_balance":"0.00","discounts":null,"taxes":null,"total_invoice_amount":"0.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 5, 'App\Models\User', 101977, 'Modules\Transaction\Entities\Invoice', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 225 - 2024-11-29 07:02:18 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Quarterly TaxFee for 14 HP', 'Quarterly TaxFee for 14 HP', 1, 23.00, 23.00, 101977, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 226 - 2024-11-29 07:02:18 [0.18ms] */
select * from `invoice_item` where `id` = 199691 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 227 - 2024-11-29 07:02:18 [0.15ms] */
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":"Quarterly TaxFee for 14 HP","description":"Quarterly TaxFee for 14 HP","unit_price":"23.00","quantity":1,"total_price":"23.00","invoice_id":101977}}', 5, 'App\Models\User', 199691, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 228 - 2024-11-29 07:02:18 [0.15ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Service Fee for Quarterly Tax', 'Service Fee for Quarterly Tax', 1, 8.00, 8.00, 101977, 5, 5, '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 229 - 2024-11-29 07:02:18 [0.17ms] */
select * from `invoice_item` where `id` = 199692 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 230 - 2024-11-29 07:02:18 [0.15ms] */
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":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":101977}}', 5, 'App\Models\User', 199692, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2024-11-29 07:02:18', '2024-11-29 07:02:18');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/livewire/message/service.tax-component
   Query 231 - 2024-11-29 07:02:18 [0.19ms] */
