select * from `invoice_item` where `id` = 1058000 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 296 - 2025-04-18 00:04:06 [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":"Service Fee for Yearly Tax","description":"Service Fee for Yearly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":586649}}', 134, 'App\Models\User', 1058000, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 297 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 586649 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 298 - 2025-04-18 00:04:06 [0.25ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 586649 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 299 - 2025-04-18 00:04:06 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 586649 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 300 - 2025-04-18 00:04:06 [0.19ms] */
update `invoice` set `invoice_amount` = 127, `outstanding_balance` = 127, `discounts` = 0, `total_invoice_amount` = 127, `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586649;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 301 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586649 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 302 - 2025-04-18 00:04:06 [0.24ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_amount":"127.00","outstanding_balance":"127.00","discounts":"0.00","total_invoice_amount":"127.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 134, 'App\Models\User', 586649, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 303 - 2025-04-18 00:04:06 [0.17ms] */
update `invoice` set `invoice_number` = 'INV-765-586649789', `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586649;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 304 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586649 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 305 - 2025-04-18 00:04:06 [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":"127.00","outstanding_balance":"127.00","discounts":"0.00","total_invoice_amount":"127.00","invoice_number":"INV-765-586649789","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 134, 'App\Models\User', 586649, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 306 - 2025-04-18 00:04:06 [0.2ms] */
update `transaction` set `party_vehicle_id` = 28342, `vehicle_tax_id` = 486389, `invoice_id` = 586649, `transaction`.`updated_at` = '2025-04-18 00:04:06' where `id` = 612771;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 307 - 2025-04-18 00:04:06 [0.27ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 71271 and `term`.`year` = 2025 and `term`.`quarter` = 2 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 308 - 2025-04-18 00:04:06 [0.2ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 309 - 2025-04-18 00:04:06 [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://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 310 - 2025-04-18 00:04:06 [0.28ms] */
insert into `transaction` (`party_id`, `service_id`, `vehicle_id`, `driver_license_id`, `service_workflow_id`, `current_workflow_state_id`, `branch_id`, `deliver_district_id`, `district_id`, `status`, `tax_collection_point_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (47823, 2, 71271, null, 2, 6, 8, 28, 28, 'OPEN', null, null, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 311 - 2025-04-18 00:04:06 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612772, 'INITIATED', '2025-04-18 00:04:06', 5, 134, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 312 - 2025-04-18 00:04:06 [0.21ms] */
select * from `term` where `year` = 2025 and `quarter` = 2 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 313 - 2025-04-18 00:04:06 [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', 'TO4-28342-167', 71271, 104, 47823, 28342, 612772, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 314 - 2025-04-18 00:04:06 [0.18ms] */
select * from `vehicle_tax` where `id` = 486390 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 315 - 2025-04-18 00:04:06 [0.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":"TO4-28342-167","tax_sticker_id":null,"vehicle_id":71271,"term_id":104,"party_id":47823,"transaction_id":612772,"party_vehicle_id":28342,"exempt":"N","migration_id":null}}', 134, 'App\Models\User', 486390, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 316 - 2025-04-18 00:04:06 [0.24ms] */
(select * from `service_fee` where `sub_category_id` = 13 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` = 13 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://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 317 - 2025-04-18 00:04:06 [0.19ms] */
(select * from `service_fee` where `sub_category_id` = 13 and `classification_id` is null and `service_id` = 2 and `frequency_type_id` = 3 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` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 13 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 318 - 2025-04-18 00:04:06 [0.17ms] */
select * from `term` where `term`.`id` = 104 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 319 - 2025-04-18 00:04:06 [0.19ms] */
select * from `party` where `party`.`id` = 47823 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 320 - 2025-04-18 00:04:06 [0.2ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612772, '2025-03-01 00:00:00', '2025-03-01 00:00:00', 'OPEN', 47823, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 321 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586650 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 322 - 2025-04-18 00:04:06 [0.7ms] */
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":612772,"party_id":47823,"invoice_amount":"0.00","invoice_date":"2025-03-01 00:00:00","due_date":"2025-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}}', 134, 'App\Models\User', 586650, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 323 - 2025-04-18 00:04:06 [0.22ms] */
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 7-12 TANS', '7-12 TANS Quarterly Tax', 1, 86.00, 86.00, 586650, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 324 - 2025-04-18 00:04:06 [0.24ms] */
select * from `invoice_item` where `id` = 1058001 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 325 - 2025-04-18 00:04:06 [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 7-12 TANS","description":"7-12 TANS Quarterly Tax","unit_price":"86.00","quantity":1,"total_price":"86.00","invoice_id":586650}}', 134, 'App\Models\User', 1058001, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 326 - 2025-04-18 00:04:06 [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, 586650, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 327 - 2025-04-18 00:04:06 [0.17ms] */
select * from `invoice_item` where `id` = 1058002 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 328 - 2025-04-18 00:04:06 [0.25ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Service Fee for Quarterly Tax","description":"Service Fee for Quarterly Tax","unit_price":"8.00","quantity":1,"total_price":"8.00","invoice_id":586650}}', 134, 'App\Models\User', 1058002, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 329 - 2025-04-18 00:04:06 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 586650 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 330 - 2025-04-18 00:04:06 [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` = 586650 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 331 - 2025-04-18 00:04:06 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 586650 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 332 - 2025-04-18 00:04:06 [0.19ms] */
update `invoice` set `invoice_amount` = 94, `outstanding_balance` = 94, `discounts` = 0, `total_invoice_amount` = 94, `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586650;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 333 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586650 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 334 - 2025-04-18 00:04:06 [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":"94.00","outstanding_balance":"94.00","discounts":"0.00","total_invoice_amount":"94.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 134, 'App\Models\User', 586650, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 335 - 2025-04-18 00:04:06 [0.17ms] */
update `invoice` set `invoice_number` = 'INV-420-586650882', `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586650;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 336 - 2025-04-18 00:04:06 [0.18ms] */
select * from `invoice` where `id` = 586650 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 337 - 2025-04-18 00:04:06 [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":"94.00","outstanding_balance":"94.00","discounts":"0.00","total_invoice_amount":"94.00","invoice_number":"INV-420-586650882","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 134, 'App\Models\User', 586650, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 338 - 2025-04-18 00:04:06 [0.21ms] */
update `transaction` set `party_vehicle_id` = 28342, `vehicle_tax_id` = 486390, `invoice_id` = 586650, `transaction`.`updated_at` = '2025-04-18 00:04:06' where `id` = 612772;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 339 - 2025-04-18 00:04:06 [0.27ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 71271 and `term`.`year` = 2025 and `term`.`quarter` = 3 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 340 - 2025-04-18 00:04:06 [0.2ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 341 - 2025-04-18 00:04:06 [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://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 342 - 2025-04-18 00:04:06 [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 (47823, 2, 71271, null, 2, 6, 8, 28, 28, 'OPEN', null, null, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 343 - 2025-04-18 00:04:06 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612773, 'INITIATED', '2025-04-18 00:04:06', 5, 134, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 344 - 2025-04-18 00:04:06 [0.2ms] */
select * from `term` where `year` = 2025 and `quarter` = 3 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 345 - 2025-04-18 00:04:06 [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', 'PK1-28342-350', 71271, 105, 47823, 28342, 612773, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 346 - 2025-04-18 00:04:06 [0.19ms] */
select * from `vehicle_tax` where `id` = 486391 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 347 - 2025-04-18 00:04:06 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"OPEN","tax_number":"PK1-28342-350","tax_sticker_id":null,"vehicle_id":71271,"term_id":105,"party_id":47823,"transaction_id":612773,"party_vehicle_id":28342,"exempt":"N","migration_id":null}}', 134, 'App\Models\User', 486391, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 348 - 2025-04-18 00:04:06 [0.23ms] */
(select * from `service_fee` where `sub_category_id` = 13 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` = 13 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://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 349 - 2025-04-18 00:04:06 [0.19ms] */
(select * from `service_fee` where `sub_category_id` = 13 and `classification_id` is null and `service_id` = 2 and `frequency_type_id` = 3 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` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 13 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 350 - 2025-04-18 00:04:06 [0.17ms] */
select * from `term` where `term`.`id` = 105 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 351 - 2025-04-18 00:04:06 [0.19ms] */
select * from `party` where `party`.`id` = 47823 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 352 - 2025-04-18 00:04:06 [0.19ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612773, '2025-06-01 00:00:00', '2025-06-01 00:00:00', 'OPEN', 47823, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 353 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586651 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 354 - 2025-04-18 00:04:06 [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":612773,"party_id":47823,"invoice_amount":"0.00","invoice_date":"2025-06-01 00:00:00","due_date":"2025-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}}', 134, 'App\Models\User', 586651, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 355 - 2025-04-18 00:04:06 [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 7-12 TANS', '7-12 TANS Quarterly Tax', 1, 86.00, 86.00, 586651, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 356 - 2025-04-18 00:04:06 [0.17ms] */
select * from `invoice_item` where `id` = 1058003 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 357 - 2025-04-18 00:04:06 [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 7-12 TANS","description":"7-12 TANS Quarterly Tax","unit_price":"86.00","quantity":1,"total_price":"86.00","invoice_id":586651}}', 134, 'App\Models\User', 1058003, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 358 - 2025-04-18 00:04:06 [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, 586651, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 359 - 2025-04-18 00:04:06 [0.17ms] */
select * from `invoice_item` where `id` = 1058004 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 360 - 2025-04-18 00:04:06 [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":586651}}', 134, 'App\Models\User', 1058004, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 361 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 586651 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 362 - 2025-04-18 00:04:06 [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` = 586651 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 363 - 2025-04-18 00:04:06 [0.21ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 586651 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 364 - 2025-04-18 00:04:06 [0.18ms] */
update `invoice` set `invoice_amount` = 94, `outstanding_balance` = 94, `discounts` = 0, `total_invoice_amount` = 94, `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586651;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 365 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586651 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 366 - 2025-04-18 00:04:06 [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":"94.00","outstanding_balance":"94.00","discounts":"0.00","total_invoice_amount":"94.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 134, 'App\Models\User', 586651, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 367 - 2025-04-18 00:04:06 [0.17ms] */
update `invoice` set `invoice_number` = 'INV-949-586651826', `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586651;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 368 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586651 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 369 - 2025-04-18 00:04:06 [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":"94.00","outstanding_balance":"94.00","discounts":"0.00","total_invoice_amount":"94.00","invoice_number":"INV-949-586651826","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 134, 'App\Models\User', 586651, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 370 - 2025-04-18 00:04:06 [0.19ms] */
update `transaction` set `party_vehicle_id` = 28342, `vehicle_tax_id` = 486391, `invoice_id` = 586651, `transaction`.`updated_at` = '2025-04-18 00:04:06' where `id` = 612773;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 371 - 2025-04-18 00:04:06 [0.26ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` where `vehicle_id` = 71271 and `term`.`year` = 2025 and `term`.`quarter` = 4 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 372 - 2025-04-18 00:04:06 [0.2ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 373 - 2025-04-18 00:04:06 [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://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 374 - 2025-04-18 00:04:06 [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 (47823, 2, 71271, null, 2, 6, 8, 28, 28, 'OPEN', null, null, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 375 - 2025-04-18 00:04:06 [0.22ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612774, 'INITIATED', '2025-04-18 00:04:06', 5, 134, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 376 - 2025-04-18 00:04:06 [0.21ms] */
select * from `term` where `year` = 2025 and `quarter` = 4 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 377 - 2025-04-18 00:04:06 [0.2ms] */
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', 'DXV-28342-599', 71271, 106, 47823, 28342, 612774, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 378 - 2025-04-18 00:04:06 [0.17ms] */
select * from `vehicle_tax` where `id` = 486392 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 379 - 2025-04-18 00:04:06 [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":"DXV-28342-599","tax_sticker_id":null,"vehicle_id":71271,"term_id":106,"party_id":47823,"transaction_id":612774,"party_vehicle_id":28342,"exempt":"N","migration_id":null}}', 134, 'App\Models\User', 486392, 'Modules\Vehicle\Entities\VehicleTax', 'created', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 380 - 2025-04-18 00:04:06 [0.21ms] */
(select * from `service_fee` where `sub_category_id` = 13 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` = 13 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://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 381 - 2025-04-18 00:04:06 [0.19ms] */
(select * from `service_fee` where `sub_category_id` = 13 and `classification_id` is null and `service_id` = 2 and `frequency_type_id` = 3 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` = 3 and `service_fee`.`deleted_at` is null) union (select * from `service_fee` where `service_id` = 2 and `sub_category_id` = 13 and `classification_id` is null and `frequency_type_id` = 3 and `service_fee`.`deleted_at` is null);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 382 - 2025-04-18 00:04:06 [0.17ms] */
select * from `term` where `term`.`id` = 106 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 383 - 2025-04-18 00:04:06 [0.18ms] */
select * from `party` where `party`.`id` = 47823 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 384 - 2025-04-18 00:04:06 [0.19ms] */
insert into `invoice` (`transaction_id`, `invoice_date`, `due_date`, `status`, `party_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612774, '2025-09-01 00:00:00', '2025-09-01 00:00:00', 'OPEN', 47823, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 385 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586652 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 386 - 2025-04-18 00:04:06 [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":612774,"party_id":47823,"invoice_amount":"0.00","invoice_date":"2025-09-01 00:00:00","due_date":"2025-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}}', 134, 'App\Models\User', 586652, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 387 - 2025-04-18 00:04:06 [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 7-12 TANS', '7-12 TANS Quarterly Tax', 1, 86.00, 86.00, 586652, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 388 - 2025-04-18 00:04:06 [0.17ms] */
select * from `invoice_item` where `id` = 1058005 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 389 - 2025-04-18 00:04:06 [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 7-12 TANS","description":"7-12 TANS Quarterly Tax","unit_price":"86.00","quantity":1,"total_price":"86.00","invoice_id":586652}}', 134, 'App\Models\User', 1058005, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 390 - 2025-04-18 00:04:06 [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, 586652, 134, 134, '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 391 - 2025-04-18 00:04:06 [0.17ms] */
select * from `invoice_item` where `id` = 1058006 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 392 - 2025-04-18 00:04:06 [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":586652}}', 134, 'App\Models\User', 1058006, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 393 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 586652 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 394 - 2025-04-18 00:04:06 [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` = 586652 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 395 - 2025-04-18 00:04:06 [0.2ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 586652 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 396 - 2025-04-18 00:04:06 [0.2ms] */
update `invoice` set `invoice_amount` = 94, `outstanding_balance` = 94, `discounts` = 0, `total_invoice_amount` = 94, `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586652;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 397 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586652 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 398 - 2025-04-18 00:04:06 [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":"94.00","outstanding_balance":"94.00","discounts":"0.00","total_invoice_amount":"94.00"},"old":{"invoice_amount":"0.00","outstanding_balance":"0.00","discounts":null,"total_invoice_amount":"0.00"}}', 134, 'App\Models\User', 586652, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 399 - 2025-04-18 00:04:06 [0.17ms] */
update `invoice` set `invoice_number` = 'INV-239-586652378', `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586652;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 400 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586652 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 401 - 2025-04-18 00:04:06 [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":"94.00","outstanding_balance":"94.00","discounts":"0.00","total_invoice_amount":"94.00","invoice_number":"INV-239-586652378","grouped":"N"},"old":{"invoice_amount":null,"outstanding_balance":null,"discounts":null,"total_invoice_amount":null,"invoice_number":null,"grouped":null}}', 134, 'App\Models\User', 586652, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 402 - 2025-04-18 00:04:06 [0.19ms] */
update `transaction` set `party_vehicle_id` = 28342, `vehicle_tax_id` = 486392, `invoice_id` = 586652, `transaction`.`updated_at` = '2025-04-18 00:04:06' where `id` = 612774;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 403 - 2025-04-18 00:04:06 [0.21ms] */
select `id` from `term` where `year` < 2025 and `term`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 404 - 2025-04-18 00:04:06 [1.64ms] */
select * from `vehicle_tax` where `party_vehicle_id` = 28342 and `status` = 'OPEN' and `term_id` in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 405 - 2025-04-18 00:04:06 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 486382 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 406 - 2025-04-18 00:04:06 [0.16ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-18 00:04:06' where `id` = 486382;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 407 - 2025-04-18 00:04:06 [0.17ms] */
select * from `vehicle_tax` where `id` = 486382 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 408 - 2025-04-18 00:04:06 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"exempt":"Y"},"old":{"exempt":"N"}}', 134, 'App\Models\User', 486382, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 409 - 2025-04-18 00:04:06 [0.22ms] */
select * from `invoice` where `transaction_id` = 612764 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 410 - 2025-04-18 00:04:06 [0.17ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586642;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 411 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586642 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 412 - 2025-04-18 00:04:06 [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":[],"old":[]}', 134, 'App\Models\User', 586642, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 413 - 2025-04-18 00:04:06 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 486383 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 414 - 2025-04-18 00:04:06 [0.15ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-18 00:04:06' where `id` = 486383;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 415 - 2025-04-18 00:04:06 [0.17ms] */
select * from `vehicle_tax` where `id` = 486383 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 416 - 2025-04-18 00:04:06 [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":{"exempt":"Y"},"old":{"exempt":"N"}}', 134, 'App\Models\User', 486383, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 417 - 2025-04-18 00:04:06 [0.21ms] */
select * from `invoice` where `transaction_id` = 612765 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 418 - 2025-04-18 00:04:06 [0.16ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586643;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 419 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586643 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 420 - 2025-04-18 00:04:06 [0.44ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 134, 'App\Models\User', 586643, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 421 - 2025-04-18 00:04:06 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 486384 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 422 - 2025-04-18 00:04:06 [0.15ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-18 00:04:06' where `id` = 486384;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 423 - 2025-04-18 00:04:06 [0.17ms] */
select * from `vehicle_tax` where `id` = 486384 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 424 - 2025-04-18 00:04:06 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"exempt":"Y"},"old":{"exempt":"N"}}', 134, 'App\Models\User', 486384, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 425 - 2025-04-18 00:04:06 [0.22ms] */
select * from `invoice` where `transaction_id` = 612766 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 426 - 2025-04-18 00:04:06 [0.21ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586644;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 427 - 2025-04-18 00:04:06 [0.25ms] */
select * from `invoice` where `id` = 586644 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 428 - 2025-04-18 00:04:06 [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":[],"old":[]}', 134, 'App\Models\User', 586644, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 429 - 2025-04-18 00:04:06 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 486385 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 430 - 2025-04-18 00:04:06 [0.15ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-18 00:04:06' where `id` = 486385;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 431 - 2025-04-18 00:04:06 [0.17ms] */
select * from `vehicle_tax` where `id` = 486385 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 432 - 2025-04-18 00:04:06 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"exempt":"Y"},"old":{"exempt":"N"}}', 134, 'App\Models\User', 486385, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 433 - 2025-04-18 00:04:06 [0.21ms] */
select * from `invoice` where `transaction_id` = 612767 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 434 - 2025-04-18 00:04:06 [0.16ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586645;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 435 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586645 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 436 - 2025-04-18 00:04:06 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 134, 'App\Models\User', 586645, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 437 - 2025-04-18 00:04:06 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 486386 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 438 - 2025-04-18 00:04:06 [0.16ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-18 00:04:06' where `id` = 486386;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 439 - 2025-04-18 00:04:06 [0.17ms] */
select * from `vehicle_tax` where `id` = 486386 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 440 - 2025-04-18 00:04:06 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"exempt":"Y"},"old":{"exempt":"N"}}', 134, 'App\Models\User', 486386, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 441 - 2025-04-18 00:04:06 [0.21ms] */
select * from `invoice` where `transaction_id` = 612768 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 442 - 2025-04-18 00:04:06 [0.15ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586646;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 443 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586646 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 444 - 2025-04-18 00:04:06 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 134, 'App\Models\User', 586646, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 445 - 2025-04-18 00:04:06 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 486387 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 446 - 2025-04-18 00:04:06 [0.15ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-18 00:04:06' where `id` = 486387;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 447 - 2025-04-18 00:04:06 [0.17ms] */
select * from `vehicle_tax` where `id` = 486387 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 448 - 2025-04-18 00:04:06 [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":{"exempt":"Y"},"old":{"exempt":"N"}}', 134, 'App\Models\User', 486387, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 449 - 2025-04-18 00:04:06 [0.21ms] */
select * from `invoice` where `transaction_id` = 612769 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 450 - 2025-04-18 00:04:06 [0.16ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586647;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 451 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586647 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 452 - 2025-04-18 00:04:06 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 134, 'App\Models\User', 586647, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 453 - 2025-04-18 00:04:06 [0.18ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 486388 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 454 - 2025-04-18 00:04:06 [0.15ms] */
update `vehicle_tax` set `exempt` = 'Y', `vehicle_tax`.`updated_at` = '2025-04-18 00:04:06' where `id` = 486388;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 455 - 2025-04-18 00:04:06 [0.17ms] */
select * from `vehicle_tax` where `id` = 486388 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 456 - 2025-04-18 00:04:06 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"exempt":"Y"},"old":{"exempt":"N"}}', 134, 'App\Models\User', 486388, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 457 - 2025-04-18 00:04:06 [0.21ms] */
select * from `invoice` where `transaction_id` = 612770 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 458 - 2025-04-18 00:04:06 [0.16ms] */
update `invoice` set `exempt` = 'Y', `invoice`.`updated_at` = '2025-04-18 00:04:06' where `id` = 586648;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 459 - 2025-04-18 00:04:06 [0.19ms] */
select * from `invoice` where `id` = 586648 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 460 - 2025-04-18 00:04:06 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 134, 'App\Models\User', 586648, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:04:06', '2025-04-18 00:04:06');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 461 - 2025-04-18 00:04:07 [20.3ms] */
select * from `discount` where `vehicle_tax` = 486382 and `discount`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 462 - 2025-04-18 00:04:07 [0.24ms] */
insert into `discount` (`description`, `service_id`, `vehicle_tax`, `vehicle_id`, `party_id`, `expiry_date`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Exempt Before 2025 Taxes', 2, '[486382,486383,486384,486385,486386,486387,486388]', 71271, 47823, '2025-09-01 00:04:07', 134, 134, '2025-04-18 00:04:07', '2025-04-18 00:04:07');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 463 - 2025-04-18 00:04:07 [0.18ms] */
select * from `discount` where `id` = 23047 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 464 - 2025-04-18 00:04:07 [0.2ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('discount', '{"attributes":{"description":"Exempt Before 2025 Taxes","percentage":null,"vehicle_id":71271,"amount":null,"expiry_date":"2025-09-01 00:04:07","party_id":47823,"service_id":2,"vehicle_tax":[486382,486383,486384,486385,486386,486387,486388],"party_vehicle_id":null}}', 134, 'App\Models\User', 23047, 'Modules\Transaction\Entities\Discount', 'created', '2025-04-18 00:04:07', '2025-04-18 00:04:07');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 465 - 2025-04-18 00:04:07 [0.45ms] */
select * from `vehicle` where `vehicle`.`id` = 71271 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 466 - 2025-04-18 00:04:07 [0.47ms] */
select * from `transaction` where `transaction`.`id` = 612763 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 467 - 2025-04-18 00:04:07 [0.46ms] */
select * from `transaction_workflow` where `transaction_id` = 612763 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 468 - 2025-04-18 00:04:07 [0.41ms] */
select * from `invoice` where `transaction_id` = 612763 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 469 - 2025-04-18 00:04:07 [8.85ms] */
select * from `payment_documents` where `transaction_id` = 612763;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 470 - 2025-04-18 00:04:07 [0.3ms] */
select * from `party_vehicle_purchase` where `transaction_id` = 612763 and `party_vehicle_purchase`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 471 - 2025-04-18 00:04:07 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 7 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 472 - 2025-04-18 00:04:07 [0.12ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 473 - 2025-04-18 00:04:07 [0.51ms] */
select * from `transaction_workflow` where `transaction_id` = 612763 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 474 - 2025-04-18 00:04:07 [268.55ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 475 - 2025-04-18 00:04:07 [0.29ms] */
select * from `transaction_workflow` where `transaction_id` = 612763 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 476 - 2025-04-18 00:04:07 [0.15ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 477 - 2025-04-18 00:04:07 [0.18ms] */
select * from `transaction_workflow` where `transaction_id` = 612763 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.view-workflow-transaction-component
   Query 478 - 2025-04-18 00:04:07 [0.14ms] */
select count(*) as aggregate from `transaction_workflow` where `transaction_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 1 - 2025-04-18 00:04:08 [1.28ms] */
select * from `users` where `id` = 134 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 2 - 2025-04-18 00:04:08 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 3 - 2025-04-18 00:04:08 [0.31ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 4 - 2025-04-18 00:04:08 [0.35ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 5 - 2025-04-18 00:04:08 [0.24ms] */
select * from `transaction_workflow` where `transaction_id` = 612763 and `transaction_workflow`.`deleted_at` is null order by `action_date` desc;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 6 - 2025-04-18 00:04:08 [0.17ms] */
select * from `users` where `users`.`id` = 134 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 7 - 2025-04-18 00:04:08 [0.14ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 8 - 2025-04-18 00:04:08 [0.15ms] */
select * from `users` where `users`.`id` = 134 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 9 - 2025-04-18 00:04:08 [0.13ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 10 - 2025-04-18 00:04:08 [0.15ms] */
select * from `users` where `users`.`id` = 142 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/workflow.workflow-history-component
   Query 11 - 2025-04-18 00:04:08 [0.13ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 1 - 2025-04-18 00:04:08 [1.97ms] */
select * from `users` where `id` = 134 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 2 - 2025-04-18 00:04:08 [0.76ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 3 - 2025-04-18 00:04:08 [0.61ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 4 - 2025-04-18 00:04:08 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 5 - 2025-04-18 00:04:08 [0.4ms] */
select * from `transaction` where `transaction`.`id` = 612763 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 6 - 2025-04-18 00:04:08 [0.15ms] */
select * from `service_workflow` where `service_workflow`.`id` in (7) and `service_workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 7 - 2025-04-18 00:04:08 [0.14ms] */
select * from `service` where `service`.`id` in (7) and `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 8 - 2025-04-18 00:04:08 [0.14ms] */
select * from `workflow` where `workflow`.`id` in (7) and `workflow`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 9 - 2025-04-18 00:04:08 [0.23ms] */
select * from `users` where `users`.`id` in (null) and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 10 - 2025-04-18 00:04:08 [0.25ms] */
select * from `workflow_definition` where `workflow_definition`.`id` in (31) and `workflow_definition`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 11 - 2025-04-18 00:04:08 [0.19ms] */
select * from `roles` where `roles`.`id` in (9);
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 12 - 2025-04-18 00:04:08 [0.36ms] */
select * from `vehicle` where `vehicle`.`id` in (71271) and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 13 - 2025-04-18 00:04:08 [0.33ms] */
select * from `party` where `party`.`id` in (47823) and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 14 - 2025-04-18 00:04:08 [0.32ms] */
select * from `party_vehicle` where `party_vehicle`.`id` in (28342) and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 15 - 2025-04-18 00:04:08 [0.15ms] */
select * from `workflow_definition` where `workflow_id` = 7 and `workflow_definition`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 16 - 2025-04-18 00:04:08 [0.14ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 17 - 2025-04-18 00:04:08 [0.13ms] */
select * from `roles` where `roles`.`id` = 6 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/livewire/message/widgets.workflow-progress-widget
   Query 18 - 2025-04-18 00:04:08 [0.13ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-18 00:05:42 [1.95ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-18 00:05:42 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-18 00:05:42 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-18 00:05:42 [0.27ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-18 00:05:42 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-18 00:05:42 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-18 00:05:42 [1.55ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'JL569' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-18 00:05:42 [0.24ms] */
select * from `party` where `party`.`id` = 47823 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-18 00:05:42 [0.23ms] */
select * from `vehicle` where `id` = 71271 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-18 00:05:42 [0.34ms] */
select * from `party_vehicle` where `vehicle_id` = 71271 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 1 - 2025-04-18 00:05:43 [1.99ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-18 00:05:43 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-18 00:05:43 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 4 - 2025-04-18 00:05:43 [0.27ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 5 - 2025-04-18 00:05:43 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-18 00:05:43 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 7 - 2025-04-18 00:05:43 [0.45ms] */
select * from `vehicle` where `vehicle`.`id` = 71271 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-18 00:05:43 [0.36ms] */
select * from `vehicle` where `id` = 71271 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 9 - 2025-04-18 00:05:43 [0.43ms] */
select * from `party_vehicle` where `vehicle_id` = 71271 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 10 - 2025-04-18 00:05:43 [1.03ms] */
select `vehicle_tax`.`id`, `transaction`.`id` as `transaction_id`, `term`.`year`, `term`.`quarter`, `invoice`.`invoice_amount`, `invoice`.`outstanding_balance`, `vehicle_tax`.`exempt`, `invoice`.`status`, `tax_sticker`.`name` as `tax_sticker`, CASE
                WHEN term.quarter = 1 THEN DATE_FORMAT(CONCAT(term.year, "-03-31"), "%d-%m-%Y")
                WHEN term.quarter = 2 THEN DATE_FORMAT(CONCAT(term.year, "-06-30"), "%d-%m-%Y")
                WHEN term.quarter = 3 THEN DATE_FORMAT(CONCAT(term.year, "-09-30"), "%d-%m-%Y")
                WHEN term.quarter = 4 THEN DATE_FORMAT(CONCAT(term.year, "-12-31"), "%d-%m-%Y")
                ELSE NULL
                END as due_date from `vehicle_tax` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `transaction` on `vehicle_tax`.`transaction_id` = `transaction`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `tax_sticker` on `vehicle_tax`.`tax_sticker_id` = `tax_sticker`.`id` where `vehicle_tax`.`vehicle_id` = 71271 and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null and `transaction`.`deleted_at` is null and `invoice`.`deleted_at` is null order by `term`.`year` asc, `term`.`quarter` asc;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 1 - 2025-04-18 00:05:58 [2.06ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 2 - 2025-04-18 00:05:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 3 - 2025-04-18 00:05:58 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 4 - 2025-04-18 00:05:58 [0.16ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 5 - 2025-04-18 00:05:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 6 - 2025-04-18 00:05:58 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 7 - 2025-04-18 00:05:58 [0.14ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-18 00:05:58 [1.94ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-18 00:05:58 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-18 00:05:58 [0.32ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-18 00:05:58 [0.25ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-18 00:05:58 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-18 00:05:58 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-18 00:05:58 [0.27ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-18 00:06:07 [2.53ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-18 00:06:07 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-18 00:06:07 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-18 00:06:07 [0.17ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-18 00:06:07 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-18 00:06:07 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-18 00:06:07 [2.01ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 156 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-18 00:06:07 [2.72ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 156 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-18 00:06:07 [2.2ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-18 00:06:07 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-18 00:06:07 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 4 - 2025-04-18 00:06:07 [0.33ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-18 00:06:07 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-18 00:06:07 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-18 00:06:07 [0.44ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 8 - 2025-04-18 00:06:07 [0.22ms] */
select `transaction_id` from `vehicle_tax` where `id` in (486389, 486390) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-18 00:06:07 [0.2ms] */
select `parent_id` from `transaction` where `id` in (612771, 612772) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-18 00:06:07 [0.15ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-18 00:06:07 [0.21ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-18 00:06:07 [0.24ms] */
select * from `transaction` where `id` in (612771, 612772) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-18 00:06:07 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 586649 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-18 00:06:07 [3.18ms] */
update `invoice` set `updated_by` = 156, `invoice`.`updated_at` = '2025-04-18 00:06:07' where `id` = 586649;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-18 00:06:07 [0.21ms] */
select * from `invoice` where `id` = 586649 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-18 00:06:08 [3.57ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 156, 'App\Models\User', 586649, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-18 00:06:08 [0.26ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 18 - 2025-04-18 00:06:08 [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://rta2.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-18 00:06:08 [2.94ms] */
update `transaction` set `updated_by` = 156, `transaction`.`updated_at` = '2025-04-18 00:06:08' where `id` = 612771;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-18 00:06:08 [0.38ms] */
select * from `invoice` where `invoice`.`id` = 586650 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-18 00:06:08 [3.53ms] */
update `invoice` set `updated_by` = 156, `invoice`.`updated_at` = '2025-04-18 00:06:08' where `id` = 586650;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 22 - 2025-04-18 00:06:08 [0.32ms] */
select * from `invoice` where `id` = 586650 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 23 - 2025-04-18 00:06:08 [2.85ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 156, 'App\Models\User', 586650, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 24 - 2025-04-18 00:06:08 [0.21ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 25 - 2025-04-18 00:06:08 [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://rta2.puntlandgov.org/api/make_payment
   Query 26 - 2025-04-18 00:06:08 [6.38ms] */
update `transaction` set `updated_by` = 156, `transaction`.`updated_at` = '2025-04-18 00:06:08' where `id` = 612772;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 27 - 2025-04-18 00:06:08 [2.98ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-04-18 00:06:08' where `id` in (486389, 486390) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 28 - 2025-04-18 00:06:08 [0.31ms] */
select * from `vehicle` where `vehicle`.`id` = 71271 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 29 - 2025-04-18 00:06:08 [0.34ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 30 - 2025-04-18 00:06:08 [0.35ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 71271 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 31 - 2025-04-18 00:06:08 [0.37ms] */
select * from `party_vehicle` where `vehicle_id` = 71271 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 32 - 2025-04-18 00:06:08 [0.31ms] */
select * from `party` where `party`.`id` = 47823 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 33 - 2025-04-18 00:06:08 [0.46ms] */
select * from `vehicle` where `vehicle`.`id` = 71271 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 34 - 2025-04-18 00:06:08 [0.29ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 35 - 2025-04-18 00:06:08 [0.39ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 36 - 2025-04-18 00:06:08 [0.95ms] */
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 (47823, 2, 71271, null, 2, 6, null, 33, 33, 'OPEN', 13, null, 156, 156, '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 37 - 2025-04-18 00:06:08 [0.47ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612775, 'INITIATED', '2025-04-18 00:06:08', 5, 156, 156, 156, '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 38 - 2025-04-18 00:06:08 [0.32ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 28342, `transaction`.`updated_at` = '2025-04-18 00:06:08' where `id` = 612775;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 39 - 2025-04-18 00:06:08 [0.43ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (486389, 486390) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 40 - 2025-04-18 00:06:08 [0.38ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (486389, 486390) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 41 - 2025-04-18 00:06:08 [0.46ms] */
insert into `invoice` (`transaction_id`, `party_id`, `invoice_date`, `due_date`, `invoice_amount`, `discounts`, `total_invoice_amount`, `outstanding_balance`, `taxes`, `status`, `grouped`, `parent`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612775, 47823, '2025-04-18 00:06:08', '2025-04-18 00:06:08', 221.00, 0, 221.00, 221.00, 0, 'OPEN', 'N', 'Y', 156, 156, '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 42 - 2025-04-18 00:06:08 [0.33ms] */
select * from `invoice` where `id` = 586653 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 43 - 2025-04-18 00:06:08 [0.3ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":612775,"party_id":47823,"invoice_amount":"221.00","invoice_date":"2025-04-18 00:06:08","due_date":"2025-04-18 00:06:08","outstanding_balance":"221.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"221.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 156, 'App\Models\User', 586653, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 44 - 2025-04-18 00:06:08 [0.45ms] */
select `invoice`.* from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (486389, 486390) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 45 - 2025-04-18 00:06:08 [0.39ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Tax Service Fee', 'Combined Quarterly Tax Fees', 2, 127.00, 221, 586653, 156, 156, '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 46 - 2025-04-18 00:06:08 [0.28ms] */
select * from `invoice_item` where `id` = 1058007 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 47 - 2025-04-18 00:06:08 [0.3ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Quarterly Tax Fees","unit_price":"127.00","quantity":2,"total_price":"221.00","invoice_id":586653}}', 156, 'App\Models\User', 1058007, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 48 - 2025-04-18 00:06:08 [0.38ms] */
update `invoice` set `invoice_number` = 'INV-152-586653700', `invoice`.`updated_at` = '2025-04-18 00:06:08' where `id` = 586653;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 49 - 2025-04-18 00:06:08 [0.33ms] */
select * from `invoice` where `id` = 586653 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 50 - 2025-04-18 00:06:08 [0.27ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-152-586653700"},"old":{"invoice_number":null}}', 156, 'App\Models\User', 586653, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 51 - 2025-04-18 00:06:08 [0.39ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 486389 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 52 - 2025-04-18 00:06:08 [0.34ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 156, `vehicle_tax`.`updated_at` = '2025-04-18 00:06:08' where `id` = 486389;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 53 - 2025-04-18 00:06:08 [0.29ms] */
select * from `vehicle_tax` where `id` = 486389 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 54 - 2025-04-18 00:06:08 [0.41ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 156, 'App\Models\User', 486389, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 55 - 2025-04-18 00:06:08 [0.4ms] */
select * from `transaction` where `transaction`.`id` = 612771 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 56 - 2025-04-18 00:06:08 [0.36ms] */
update `transaction` set `tax_collection_point_id` = 13, `deliver_district_id` = 33, `parent_id` = 612775, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-18 00:06:08' where `id` = 612771;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 57 - 2025-04-18 00:06:08 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 586649 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 58 - 2025-04-18 00:06:08 [0.26ms] */
update `invoice` set `parent_id` = 586653, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-18 00:06:08' where `id` = 586649;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 59 - 2025-04-18 00:06:08 [0.29ms] */
select * from `invoice` where `id` = 586649 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 60 - 2025-04-18 00:06:08 [0.28ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":586653,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 156, 'App\Models\User', 586649, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 61 - 2025-04-18 00:06:08 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 612771 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 62 - 2025-04-18 00:06:08 [0.18ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 63 - 2025-04-18 00:06:08 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 64 - 2025-04-18 00:06:08 [0.19ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 65 - 2025-04-18 00:06:08 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 66 - 2025-04-18 00:06:08 [0.21ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 67 - 2025-04-18 00:06:08 [0.2ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612771, 'APPROVED', '2025-04-18 00:06:08', 5, 156, null, 156, 156, '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 68 - 2025-04-18 00:06:08 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 69 - 2025-04-18 00:06:08 [0.23ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-18 00:06:08' where `id` = 612771;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 70 - 2025-04-18 00:06:08 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 71 - 2025-04-18 00:06:08 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 586649 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 72 - 2025-04-18 00:06:08 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 486390 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 73 - 2025-04-18 00:06:08 [0.16ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 156, `vehicle_tax`.`updated_at` = '2025-04-18 00:06:08' where `id` = 486390;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 74 - 2025-04-18 00:06:08 [0.17ms] */
select * from `vehicle_tax` where `id` = 486390 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 75 - 2025-04-18 00:06:08 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 156, 'App\Models\User', 486390, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 76 - 2025-04-18 00:06:08 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 612772 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 77 - 2025-04-18 00:06:08 [0.21ms] */
update `transaction` set `tax_collection_point_id` = 13, `deliver_district_id` = 33, `parent_id` = 612775, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-18 00:06:08' where `id` = 612772;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 78 - 2025-04-18 00:06:08 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 586650 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 79 - 2025-04-18 00:06:08 [0.18ms] */
update `invoice` set `parent_id` = 586653, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-18 00:06:08' where `id` = 586650;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 80 - 2025-04-18 00:06:08 [0.18ms] */
select * from `invoice` where `id` = 586650 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 81 - 2025-04-18 00:06:08 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":586653,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 156, 'App\Models\User', 586650, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 82 - 2025-04-18 00:06:08 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 612772 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 83 - 2025-04-18 00:06:08 [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://rta2.puntlandgov.org/api/make_payment
   Query 84 - 2025-04-18 00:06:08 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 85 - 2025-04-18 00:06:08 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 86 - 2025-04-18 00:06:08 [0.16ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 87 - 2025-04-18 00:06:08 [0.21ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612772, 'APPROVED', '2025-04-18 00:06:08', 5, 156, null, 156, 156, '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 88 - 2025-04-18 00:06:08 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 89 - 2025-04-18 00:06:08 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-18 00:06:08' where `id` = 612772;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 90 - 2025-04-18 00:06:08 [0.19ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 91 - 2025-04-18 00:06:08 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 586650 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 92 - 2025-04-18 00:06:08 [0.21ms] */
update `transaction` set `invoice_id` = 586653, `transaction`.`updated_at` = '2025-04-18 00:06:08' where `id` = 612775;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 93 - 2025-04-18 00:06:08 [0.27ms] */
update `vehicle` set `updated_by` = 156, `vehicle`.`updated_at` = '2025-04-18 00:06:08' where `id` = 71271;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 94 - 2025-04-18 00:06:08 [0.18ms] */
select * from `vehicle` where `id` = 71271 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 95 - 2025-04-18 00:06:08 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 156, 'App\Models\User', 71271, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 96 - 2025-04-18 00:06:08 [0.29ms] */
insert into `audits` (`old_values`, `new_values`, `event`, `auditable_id`, `auditable_type`, `user_id`, `user_type`, `tags`, `ip_address`, `user_agent`, `url`, `updated_at`, `created_at`) values ('{"updated_by":134}', '{"updated_by":156}', 'updated', 71271, 'Modules\Vehicle\Entities\Vehicle', 156, 'App\Models\User', null, '102.220.40.169', 'Dart/3.4 (dart:io)', 'https://rta2.puntlandgov.org/api/make_payment', '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 97 - 2025-04-18 00:06:08 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 612775 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 98 - 2025-04-18 00:06:08 [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://rta2.puntlandgov.org/api/make_payment
   Query 99 - 2025-04-18 00:06:08 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 100 - 2025-04-18 00:06:08 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 101 - 2025-04-18 00:06:08 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612775, 'APPROVED', '2025-04-18 00:06:08', 5, 156, null, 156, 156, '2025-04-18 00:06:08', '2025-04-18 00:06:08');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 102 - 2025-04-18 00:06:08 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 103 - 2025-04-18 00:06:08 [0.2ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-18 00:06:08' where `id` = 612775;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 104 - 2025-04-18 00:06:08 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 105 - 2025-04-18 00:06:08 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 586653 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 106 - 2025-04-18 00:06:08 [0.29ms] */
select `transaction_id` from `vehicle_tax` where `id` in (486389, 486390) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 107 - 2025-04-18 00:06:08 [0.26ms] */
select * from `invoice` where `transaction_id` = 612771 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 108 - 2025-04-18 00:06:08 [0.31ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 586649 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 109 - 2025-04-18 00:06:08 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 612771 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 110 - 2025-04-18 00:06:08 [2.74ms] */
update `transaction` set `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-18 00:06:08' where `id` = 612771;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 111 - 2025-04-18 00:06:08 [0.33ms] */
select * from `invoice` where `transaction_id` = 612772 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 112 - 2025-04-18 00:06:08 [0.23ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 586650 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 113 - 2025-04-18 00:06:08 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 612772 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 114 - 2025-04-18 00:06:08 [2.79ms] */
update `transaction` set `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-18 00:06:08' where `id` = 612772;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 115 - 2025-04-18 00:06:08 [0.39ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 116 - 2025-04-18 00:06:08 [0.84ms] */
select * from `user_accounts` where `user_id` = 156 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 117 - 2025-04-18 00:06:08 [0.96ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 118 - 2025-04-18 00:06:08 [1.11ms] */
select * from `user_accounts` where `user_id` = 156 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-18 00:06:08 [2.04ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-18 00:06:08 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-18 00:06:08 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 4 - 2025-04-18 00:06:08 [0.3ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-18 00:06:08 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-18 00:06:08 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-18 00:06:08 [0.23ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 8 - 2025-04-18 00:06:08 [0.2ms] */
select `transaction_id` from `vehicle_tax` where `id` in (486389, 486390) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-18 00:06:08 [0.3ms] */
select `parent_id` from `transaction` where `id` in (612771, 612772) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-18 00:06:08 [164.38ms] */
select `id` from `transaction` where `parent_id` in (612775) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-18 00:06:08 [0.52ms] */
select * from `transaction` where `id` in (612775) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-18 00:06:08 [0.12ms] */
select `transaction_id` from `vehicle_tax` where `id` in (486389, 486390) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-18 00:06:08 [0.19ms] */
select * from `invoice` where `transaction_id` = 612771 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-18 00:06:08 [0.14ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 586649 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-18 00:06:08 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 612771 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-18 00:06:08 [0.19ms] */
select * from `invoice` where `transaction_id` = 612772 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-18 00:06:08 [0.13ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 586650 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 18 - 2025-04-18 00:06:08 [0.32ms] */
select * from `transaction` where `transaction`.`id` = 612772 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-18 00:06:08 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-18 00:06:08 [0.13ms] */
select * from `user_accounts` where `user_id` = 156 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-18 00:06:08 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 22 - 2025-04-18 00:06:08 [0.12ms] */
select * from `user_accounts` where `user_id` = 156 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 1 - 2025-04-18 00:06:23 [1.88ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 2 - 2025-04-18 00:06:23 [0.2ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 3 - 2025-04-18 00:06:23 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 4 - 2025-04-18 00:06:23 [0.27ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 5 - 2025-04-18 00:06:23 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 6 - 2025-04-18 00:06:23 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 7 - 2025-04-18 00:06:23 [0.4ms] */
select * from `transaction` where `id` = 612772 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 8 - 2025-04-18 00:06:23 [9.37ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 612772 and `payment_documents`.`transaction_id` is not null and `type` = 'SERVICE_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 9 - 2025-04-18 00:06:23 [6.32ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 612772 and `payment_documents`.`transaction_id` is not null and `type` = 'GOV_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 10 - 2025-04-18 00:06:23 [0.73ms] */
select * from `invoice` where `invoice`.`id` = 586650 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 11 - 2025-04-18 00:06:23 [0.81ms] */
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` = 586650 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-18 00:06:24 [1.71ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-18 00:06:24 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-18 00:06:24 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-18 00:06:24 [0.17ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-18 00:06:24 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-18 00:06:24 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-18 00:06:24 [0.18ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-18 00:06:30 [2.17ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-18 00:06:30 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-18 00:06:30 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-18 00:06:30 [0.17ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-18 00:06:30 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-18 00:06:30 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-18 00:06:30 [0.15ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 156 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-18 00:06:30 [0.13ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 156 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-18 00:08:20 [1.36ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-18 00:08:20 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-18 00:08:20 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-18 00:08:20 [0.17ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-18 00:08:20 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-18 00:08:20 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-18 00:08:20 [6.3ms] */
delete from `payment_documents` where `transaction_id` = 612772 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-18 00:08:20 [7.8ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2503198;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-18 00:08:20 [0.26ms] */
select * from `transaction` where `transaction`.`id` = 612772 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-18 00:08:20 [460.87ms] */
select * from `transaction` where `parent_id` = 612775 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-18 00:08:20 [16.06ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (612771, 'GOV_RECEIPT_IMAGE', 2503198, 1, '2025-04-18 00:08:20', '2025-04-18 00:08:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-18 00:08:20 [7.65ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (612772, 'GOV_RECEIPT_IMAGE', 2503198, 1, '2025-04-18 00:08:20', '2025-04-18 00:08:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-18 00:08:20 [3.22ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (612775, 'GOV_RECEIPT_IMAGE', 2503198, 1, '2025-04-18 00:08:20', '2025-04-18 00:08:20');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-18 00:08:20 [0.34ms] */
select * from `transaction` where `transaction`.`id` = 612772 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 15 - 2025-04-18 00:08:20 [3.89ms] */
update `transaction` set `paid_by` = 'cali maclin carxm', `paid_by_mobile` = 0907890770, `transaction`.`updated_at` = '2025-04-18 00:08:20' where `id` = 612772;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 16 - 2025-04-18 00:08:20 [11.92ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-18 00:08:20' where `receipt_number` = 2503198 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-18 00:08:41 [1.76ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-18 00:08:41 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-18 00:08:41 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-18 00:08:41 [0.16ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-18 00:08:41 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-18 00:08:41 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-18 00:08:41 [2.11ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 156 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-18 00:08:41 [2.09ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 156 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-18 00:08:56 [1.57ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-18 00:08:56 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-18 00:08:56 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-18 00:08:56 [0.27ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-18 00:08:56 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-18 00:08:56 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-18 00:08:56 [12.47ms] */
delete from `payment_documents` where `transaction_id` = 612772 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-18 00:08:56 [7.86ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 116454;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-18 00:08:56 [0.33ms] */
select * from `transaction` where `transaction`.`id` = 612772 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-18 00:08:57 [415.27ms] */
select * from `transaction` where `parent_id` = 612775 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-18 00:08:57 [12.68ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (612771, 'SERVICE_RECEIPT_IMAGE', 116454, 1, '2025-04-18 00:08:57', '2025-04-18 00:08:57');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-18 00:08:57 [3.17ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (612772, 'SERVICE_RECEIPT_IMAGE', 116454, 1, '2025-04-18 00:08:57', '2025-04-18 00:08:57');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-18 00:08:57 [3.09ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (612775, 'SERVICE_RECEIPT_IMAGE', 116454, 1, '2025-04-18 00:08:57', '2025-04-18 00:08:57');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-18 00:08:57 [10.08ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-18 00:08:57' where `receipt_number` = 116454 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-04-18 00:08:57 [1.28ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-04-18 00:08:57 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-04-18 00:08:57 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-04-18 00:08:57 [0.19ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-04-18 00:08:57 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-04-18 00:08:57 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-04-18 00:08:57 [0.18ms] */
select * from `transaction` where `transaction`.`id` = 612772 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-04-18 00:08:57 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 612775 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-04-18 00:08:57 [0.31ms] */
select * from `invoice_payment` where `invoice_id` = 586653 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-04-18 00:08:57 [129.34ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 612775 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-04-18 00:08:57 [126.13ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 612775 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-04-18 00:08:57 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 612775 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-04-18 00:08:57 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-04-18 00:08:57 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 15 - 2025-04-18 00:08:57 [0.21ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-04-18 00:08:58 [275.6ms] */
select sum(`invoice`.`invoice_amount`) as aggregate from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `transaction`.`parent_id` = 612775 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 17 - 2025-04-18 00:08:58 [0.38ms] */
select * from `party` where `party`.`id` = 47823 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 18 - 2025-04-18 00:08:58 [0.51ms] */
insert into `Payment` (`payment_date`, `external_payment_reference_no`, `payment_receipt_number`, `payment_method_id`, `payment_amount`, `paid_by`, `paid_by_mobile`, `siinpay_payref_number`, `district_id`, `payment_collected_by`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('2025-04-18 00:08:58', '2459389//2459', 2503198, 1, 221.00, 'cali maclin carxm', 0907890770, null, 33, 156, 156, 156, '2025-04-18 00:08:58', '2025-04-18 00:08:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-04-18 00:08:58 [0.2ms] */
select * from `Payment` where `id` = 191646 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-04-18 00:08:58 [0.37ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('Payment', '{"attributes":{"payment_method_id":1,"payment_amount":"221.00","payment_date":"2025-04-18 00:08:58","external_payment_reference_no":"2459389\/\/2459","payment_receipt_number":"2503198","siinpay_payref_number":null,"paid_by":"cali maclin carxm","paid_by_mobile":"0907890770","district_id":33,"migration_id":null,"payment_collected_by":156}}', 156, 'App\Models\User', 191646, 'Modules\Transaction\Entities\Payment', 'created', '2025-04-18 00:08:58', '2025-04-18 00:08:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-04-18 00:08:58 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 612775 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-04-18 00:08:58 [0.21ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-04-18 00:08:58 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-04-18 00:08:58 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 586649 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-04-18 00:08:58 [0.46ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-18 00:08:58', 586649, 191646, '2025-04-18 00:08:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-04-18 00:08:58 [0.36ms] */
select * from `invoice` where `invoice`.`id` = 586649 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-04-18 00:08:58 [0.5ms] */
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` = 586649 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-04-18 00:08:58 [0.65ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 586649 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 29 - 2025-04-18 00:08:58 [0.32ms] */
update `invoice` set `invoice_amount` = 127, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 127, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-18 00:08:58' where `id` = 586649;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-04-18 00:08:58 [0.3ms] */
select * from `invoice` where `id` = 586649 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-04-18 00:08:58 [0.3ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"127.00","status":"OPEN"}}', 156, 'App\Models\User', 586649, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:08:58', '2025-04-18 00:08:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-04-18 00:08:58 [0.64ms] */
select * from `transaction` where `transaction`.`id` = 612771 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-04-18 00:08:58 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 612771 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-04-18 00:08:58 [0.24ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 35 - 2025-04-18 00:08:58 [0.23ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 36 - 2025-04-18 00:08:58 [0.42ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 37 - 2025-04-18 00:08:58 [0.62ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612771, 'PAID', '2025-04-18 00:08:58', 7, 156, null, 156, 156, '2025-04-18 00:08:58', '2025-04-18 00:08:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-04-18 00:08:58 [0.43ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 39 - 2025-04-18 00:08:58 [0.41ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-18 00:08:58' where `id` = 612771;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-04-18 00:08:58 [0.27ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 41 - 2025-04-18 00:08:58 [0.35ms] */
select * from `invoice` where `invoice`.`id` = 586649 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 42 - 2025-04-18 00:08:58 [0.35ms] */
select * from `vehicle_tax` where `transaction_id` = 612771 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-04-18 00:08:58 [0.25ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-04-18 00:08:58' where `id` = 486389;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-04-18 00:08:58 [0.25ms] */
select * from `vehicle_tax` where `id` = 486389 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-04-18 00:08:58 [0.32ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 156, 'App\Models\User', 486389, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:08:58', '2025-04-18 00:08:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-04-18 00:08:58 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 586650 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 47 - 2025-04-18 00:08:58 [0.23ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-18 00:08:58', 586650, 191646, '2025-04-18 00:08:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-04-18 00:08:58 [0.28ms] */
select * from `invoice` where `invoice`.`id` = 586650 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-04-18 00:08:58 [0.36ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 586650 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-04-18 00:08:58 [0.31ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 586650 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-04-18 00:08:58 [0.26ms] */
update `invoice` set `invoice_amount` = 94, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 94, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-18 00:08:58' where `id` = 586650;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-04-18 00:08:58 [0.28ms] */
select * from `invoice` where `id` = 586650 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-04-18 00:08:58 [0.25ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"94.00","status":"OPEN"}}', 156, 'App\Models\User', 586650, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:08:58', '2025-04-18 00:08:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-04-18 00:08:58 [0.32ms] */
select * from `transaction` where `transaction`.`id` = 612772 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-04-18 00:08:58 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 612772 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-04-18 00:08: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://rta2.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-04-18 00:08:58 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 58 - 2025-04-18 00:08:58 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 59 - 2025-04-18 00:08:58 [0.17ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612772, 'PAID', '2025-04-18 00:08:58', 7, 156, null, 156, 156, '2025-04-18 00:08:58', '2025-04-18 00:08:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-04-18 00:08:58 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-04-18 00:08:58 [0.18ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-18 00:08:58' where `id` = 612772;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-04-18 00:08:58 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-04-18 00:08:58 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 586650 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-04-18 00:08:58 [0.18ms] */
select * from `vehicle_tax` where `transaction_id` = 612772 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-04-18 00:08:58 [0.16ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-04-18 00:08:58' where `id` = 486390;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 66 - 2025-04-18 00:08:58 [0.17ms] */
select * from `vehicle_tax` where `id` = 486390 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-04-18 00:08:58 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 156, 'App\Models\User', 486390, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:08:58', '2025-04-18 00:08:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 68 - 2025-04-18 00:08:58 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 586653 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 69 - 2025-04-18 00:08:58 [0.18ms] */
select * from `invoice` where `invoice`.`id` = 586653 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 70 - 2025-04-18 00:08:58 [0.15ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-18 00:08:58', 586653, 191646, '2025-04-18 00:08:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 71 - 2025-04-18 00:08:58 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 586653 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 72 - 2025-04-18 00:08:58 [0.23ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 586653 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 73 - 2025-04-18 00:08:58 [0.16ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-18 00:08:58' where `id` = 586653;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 74 - 2025-04-18 00:08:58 [0.19ms] */
select * from `invoice` where `id` = 586653 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 75 - 2025-04-18 00:08:58 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"221.00","status":"OPEN"}}', 156, 'App\Models\User', 586653, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 00:08:58', '2025-04-18 00:08:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 76 - 2025-04-18 00:08:58 [0.21ms] */
select * from `transaction` where `transaction`.`id` = 612775 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 77 - 2025-04-18 00:08:58 [0.2ms] */
select * from `transaction` where `transaction`.`id` = 612775 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 78 - 2025-04-18 00:08:58 [0.12ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 79 - 2025-04-18 00:08:58 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 80 - 2025-04-18 00:08:58 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 81 - 2025-04-18 00:08:58 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612775, 'PAID', '2025-04-18 00:08:58', 7, 156, null, 156, 156, '2025-04-18 00:08:58', '2025-04-18 00:08:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 82 - 2025-04-18 00:08:58 [0.19ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 83 - 2025-04-18 00:08:58 [0.19ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-18 00:08:58' where `id` = 612775;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 84 - 2025-04-18 00:08:58 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 85 - 2025-04-18 00:08:58 [0.19ms] */
select * from `invoice` where `invoice`.`id` = 586653 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-18 00:10:54 [1.31ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-18 00:10:54 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-18 00:10:54 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-18 00:10:54 [0.17ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-18 00:10:54 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-18 00:10:54 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-18 00:10:54 [1.17ms] */
select * from `vehicle_tax` where `id` = 486390 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-18 00:10:54 [1.72ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-18 00:11:08 [2.03ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-18 00:11:08 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-18 00:11:08 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-18 00:11:08 [0.27ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-18 00:11:08 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-18 00:11:08 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-18 00:11:08 [0.25ms] */
select * from `vehicle_tax` where `id` = 486390 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-18 00:11:08 [9.31ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-008%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-18 00:11:08 [2.23ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-18 00:11:08 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-18 00:11:08 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-18 00:11:08 [0.32ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-18 00:11:08 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-18 00:11:08 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-18 00:11:08 [0.16ms] */
select * from `vehicle_tax` where `id` = 486390 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-18 00:11:08 [7.33ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-0084%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-18 00:11:33 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-18 00:11:33 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-18 00:11:33 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-18 00:11:33 [0.25ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-18 00:11:33 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-18 00:11:33 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-18 00:11:33 [0.25ms] */
select * from `vehicle_tax` where `id` = 486390 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-18 00:11:33 [25.62ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-008454%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-04-18 00:11:37 [1.24ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-04-18 00:11:37 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-04-18 00:11:37 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-04-18 00:11:37 [0.17ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-04-18 00:11:37 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-04-18 00:11:37 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-04-18 00:11:37 [0.59ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 644857 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-04-18 00:11:37 [0.16ms] */
select * from `vehicle_tax` where `id` = 486390 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-04-18 00:11:37 [11.38ms] */
update `vehicle_tax` set `tax_sticker_id` = 644857, `vehicle_tax`.`updated_at` = '2025-04-18 00:11:37' where `id` = 486390;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-04-18 00:11:37 [0.36ms] */
select * from `vehicle_tax` where `id` = 486390 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-04-18 00:11:37 [4.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":{"tax_sticker_id":644857},"old":{"tax_sticker_id":null}}', 156, 'App\Models\User', 486390, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:11:37', '2025-04-18 00:11:37');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-04-18 00:11:37 [3.44ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 156, `tax_sticker`.`updated_at` = '2025-04-18 00:11:37' where `id` = 644857;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-04-18 00:11:39 [2.21ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-04-18 00:11:39 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-04-18 00:11:39 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-04-18 00:11:39 [0.32ms] */
select * from `users` where `id` = 156 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-04-18 00:11:39 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '9a59083d13c5f63033a482c5dc42b1973a94a4aa397689d9fa981bf7249f9ff3c01b553b2ad8eb22' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 6 - 2025-04-18 00:11:39 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 7 - 2025-04-18 00:11:39 [0.34ms] */
select * from `vehicle_tax` where `id` in (486389, 486390) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 8 - 2025-04-18 00:11:39 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 612771 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 9 - 2025-04-18 00:11:39 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 612771 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 10 - 2025-04-18 00:11:39 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 11 - 2025-04-18 00:11:39 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 12 - 2025-04-18 00:11:39 [0.23ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 13 - 2025-04-18 00:11:39 [0.27ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612771, 'APPROVED', '2025-04-18 00:11:39', 8, 156, null, 156, 156, '2025-04-18 00:11:39', '2025-04-18 00:11:39');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 14 - 2025-04-18 00:11:39 [0.23ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 15 - 2025-04-18 00:11:39 [0.27ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-18 00:11:39' where `id` = 612771;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-04-18 00:11:39 [0.14ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 17 - 2025-04-18 00:11:39 [0.24ms] */
select * from `vehicle_tax` where `transaction_id` = 612771 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-04-18 00:11:39 [0.18ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-04-18 00:11:39' where `id` = 486389;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-04-18 00:11:39 [0.19ms] */
select * from `vehicle_tax` where `id` = 486389 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-04-18 00:11:39 [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":"ISSUED"},"old":{"status":"PAID"}}', 156, 'App\Models\User', 486389, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:11:39', '2025-04-18 00:11:39');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-04-18 00:11:39 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 586649 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 22 - 2025-04-18 00:11:39 [0.38ms] */
select * from `transaction` where `id` = 612771 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 23 - 2025-04-18 00:11:39 [0.35ms] */
select * from `transaction` where `transaction`.`id` = 612775 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 24 - 2025-04-18 00:11:39 [0.21ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 25 - 2025-04-18 00:11:39 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 26 - 2025-04-18 00:11:39 [0.25ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 27 - 2025-04-18 00:11:39 [0.29ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612775, 'APPROVED', '2025-04-18 00:11:39', 8, 156, null, 156, 156, '2025-04-18 00:11:39', '2025-04-18 00:11:39');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 28 - 2025-04-18 00:11:39 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 29 - 2025-04-18 00:11:39 [0.36ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-18 00:11:39' where `id` = 612775;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 30 - 2025-04-18 00:11:39 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 31 - 2025-04-18 00:11:39 [0.33ms] */
select * from `vehicle_tax` where `transaction_id` = 612775 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 32 - 2025-04-18 00:11:39 [0.37ms] */
select * from `invoice` where `invoice`.`id` = 586653 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 33 - 2025-04-18 00:11:39 [0.3ms] */
select * from `term` where `term`.`id` = 103 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 34 - 2025-04-18 00:11:39 [0.42ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 28342 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 35 - 2025-04-18 00:11:39 [0.24ms] */
select * from `party` where `party`.`id` = 47823 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 36 - 2025-04-18 00:11:39 [0.25ms] */
select * from `person` where `person`.`id` = 47823 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 37 - 2025-04-18 00:11:39 [0.46ms] */
select * from `vehicle` where `vehicle`.`id` = 71271 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 38 - 2025-04-18 00:11:39 [0.34ms] */
select * from `invoice` where `invoice`.`id` = 586649 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 39 - 2025-04-18 00:11:39 [0.34ms] */
select * from `invoice_payment` where `invoice_payment`.`invoice_id` = 586649 and `invoice_payment`.`invoice_id` is not null and `invoice_payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 40 - 2025-04-18 00:11:39 [0.35ms] */
select * from `Payment` where `Payment`.`id` = 191646 and `Payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 41 - 2025-04-18 00:11:39 [0.33ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 13 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 42 - 2025-04-18 00:11:39 [0.38ms] */
select * from `transaction` where `transaction`.`id` = 612772 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 43 - 2025-04-18 00:11:39 [0.27ms] */
select * from `transaction` where `transaction`.`id` = 612772 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 44 - 2025-04-18 00:11:39 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 45 - 2025-04-18 00:11:39 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 46 - 2025-04-18 00:11:39 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 47 - 2025-04-18 00:11:39 [0.2ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612772, 'APPROVED', '2025-04-18 00:11:39', 8, 156, null, 156, 156, '2025-04-18 00:11:39', '2025-04-18 00:11:39');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 48 - 2025-04-18 00:11:39 [0.13ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 49 - 2025-04-18 00:11:39 [0.24ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-18 00:11:39' where `id` = 612772;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 50 - 2025-04-18 00:11:39 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 51 - 2025-04-18 00:11:39 [0.24ms] */
select * from `vehicle_tax` where `transaction_id` = 612772 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 52 - 2025-04-18 00:11:39 [0.17ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-04-18 00:11:39' where `id` = 486390;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 53 - 2025-04-18 00:11:39 [0.17ms] */
select * from `vehicle_tax` where `id` = 486390 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 54 - 2025-04-18 00:11:39 [0.18ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"ISSUED"},"old":{"status":"PAID"}}', 156, 'App\Models\User', 486390, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 00:11:39', '2025-04-18 00:11:39');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 55 - 2025-04-18 00:11:39 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 586650 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 56 - 2025-04-18 00:11:39 [0.24ms] */
select * from `transaction` where `id` = 612772 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 57 - 2025-04-18 00:11:39 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 612775 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 58 - 2025-04-18 00:11:39 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 59 - 2025-04-18 00:11:39 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 60 - 2025-04-18 00:11:39 [0.22ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 9 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 61 - 2025-04-18 00:11:39 [0.25ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612775, 'APPROVED', '2025-04-18 00:11:39', 9, 156, null, 156, 156, '2025-04-18 00:11:39', '2025-04-18 00:11:39');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 62 - 2025-04-18 00:11:39 [0.23ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 5 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 63 - 2025-04-18 00:11:39 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 64 - 2025-04-18 00:11:39 [0.24ms] */
select * from `vehicle_tax` where `transaction_id` = 612775 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 65 - 2025-04-18 00:11:39 [0.14ms] */
select * from `invoice` where `invoice`.`id` = 586653 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 66 - 2025-04-18 00:11:39 [0.19ms] */
select * from `term` where `term`.`id` = 104 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 67 - 2025-04-18 00:11:39 [0.15ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 28342 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 68 - 2025-04-18 00:11:39 [0.14ms] */
select * from `party` where `party`.`id` = 47823 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 69 - 2025-04-18 00:11:39 [0.15ms] */
select * from `person` where `person`.`id` = 47823 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 70 - 2025-04-18 00:11:39 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 71271 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 71 - 2025-04-18 00:11:39 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 586650 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 72 - 2025-04-18 00:11:39 [0.22ms] */
select * from `invoice_payment` where `invoice_payment`.`invoice_id` = 586650 and `invoice_payment`.`invoice_id` is not null and `invoice_payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 73 - 2025-04-18 00:11:39 [0.14ms] */
select * from `Payment` where `Payment`.`id` = 191646 and `Payment`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 74 - 2025-04-18 00:11:39 [0.12ms] */
select * from `tax_collection_points` where `tax_collection_points`.`id` = 13 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 75 - 2025-04-18 00:11:39 [0.24ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 644857 and `tax_sticker`.`id` is not null and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-18 00:35:19 [2.07ms] */
select * from `oauth_access_tokens` where `id` = 'a285991a694673cb4c3b51acc1eeb1b30e288fa971b879293611cc301637441e76fa4e6fe5dbf5bc' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-18 00:35:19 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'a285991a694673cb4c3b51acc1eeb1b30e288fa971b879293611cc301637441e76fa4e6fe5dbf5bc' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-18 00:35:19 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-18 00:35:19 [0.32ms] */
select * from `users` where `id` = 160 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-18 00:35:19 [0.26ms] */
select * from `oauth_access_tokens` where `id` = 'a285991a694673cb4c3b51acc1eeb1b30e288fa971b879293611cc301637441e76fa4e6fe5dbf5bc' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-18 00:35:19 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-18 00:35:19 [1.05ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'CF658' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-18 00:35:19 [0.25ms] */
select * from `party` where `party`.`id` = 45778 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-18 00:35:19 [0.28ms] */
select * from `vehicle` where `id` = 65655 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-18 00:35:19 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 65655 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-18 00:36:23 [2.03ms] */
select * from `oauth_access_tokens` where `id` = 'a285991a694673cb4c3b51acc1eeb1b30e288fa971b879293611cc301637441e76fa4e6fe5dbf5bc' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-18 00:36:23 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'a285991a694673cb4c3b51acc1eeb1b30e288fa971b879293611cc301637441e76fa4e6fe5dbf5bc' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-18 00:36:23 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-18 00:36:23 [0.3ms] */
select * from `users` where `id` = 160 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-18 00:36:23 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'a285991a694673cb4c3b51acc1eeb1b30e288fa971b879293611cc301637441e76fa4e6fe5dbf5bc' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-18 00:36:23 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-18 00:36:23 [0.33ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'CF658' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-18 00:36:23 [0.15ms] */
select * from `party` where `party`.`id` = 45778 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-18 00:36:23 [0.16ms] */
select * from `vehicle` where `id` = 65655 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-18 00:36:23 [0.15ms] */
select * from `party_vehicle` where `vehicle_id` = 65655 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 1 - 2025-04-18 06:42:10 [2.08ms] */
select * from `users` where `email` = 'abdilatif.ali@puntlandgov.org' and `status` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 2 - 2025-04-18 06:42:10 [0.17ms] */
select * from `users` where `id` = 61 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 3 - 2025-04-18 06:42:10 [0.43ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 61 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 4 - 2025-04-18 06:42:10 [13.26ms] */
update `userprofiles` set `last_ip` = '102.128.131.225', `login_count` = 277, `last_login` = '2025-04-18 06:42:10', `userprofiles`.`updated_at` = '2025-04-18 06:42:10' where `id` = 61;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 5 - 2025-04-18 06:42:10 [0.59ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 6 - 2025-04-18 06:42:10 [0.57ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/login
   Query 7 - 2025-04-18 06:42:10 [0.48ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 1 - 2025-04-18 06:42:10 [2.29ms] */
select * from `users` where `id` = 61 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 2 - 2025-04-18 06:42:10 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 3 - 2025-04-18 06:42:10 [0.31ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 4 - 2025-04-18 06:42:10 [0.41ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 5 - 2025-04-18 06:42:10 [13.59ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 6 - 2025-04-18 06:42:10 [17.87ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-04-18' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 7 - 2025-04-18 06:42:10 [37.25ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 8 - 2025-04-18 06:42:10 [29.37ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-04-18' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 9 - 2025-04-18 06:42:10 [102.54ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `transaction`.`status` = 'END' and `payment_date` > '2025-04-17' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 10 - 2025-04-18 06:42:10 [54.24ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `transaction`.`status` = 'END' and `payment_date` > '2025-04-17' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 11 - 2025-04-18 06:42:11 [349.48ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-04-18' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 12 - 2025-04-18 06:42:12 [1418.54ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-04-18' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 13 - 2025-04-18 06:42:12 [0.24ms] */
select * from `district` where `district`.`id` = 21 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 14 - 2025-04-18 06:42:12 [0.14ms] */
select * from `region` where `region`.`id` = 5 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 1 - 2025-04-18 06:42:13 [2.13ms] */
select * from `users` where `id` = 61 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 2 - 2025-04-18 06:42:13 [0.78ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 3 - 2025-04-18 06:42:13 [0.61ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 4 - 2025-04-18 06:42:13 [0.41ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 5 - 2025-04-18 06:42:13 [0.23ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 6 - 2025-04-18 06:42:13 [0.13ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-04-18' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 7 - 2025-04-18 06:42:13 [0.12ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 8 - 2025-04-18 06:42:13 [0.13ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-04-18' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 9 - 2025-04-18 06:42:13 [0.19ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `transaction`.`status` = 'END' and `payment_date` > '2025-04-17' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 10 - 2025-04-18 06:42:13 [0.15ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `transaction`.`status` = 'END' and `payment_date` > '2025-04-17' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 11 - 2025-04-18 06:42:13 [0.15ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-04-18' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 12 - 2025-04-18 06:42:13 [0.14ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-04-18' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 13 - 2025-04-18 06:42:13 [0.19ms] */
select * from `district` where `district`.`id` = 21 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org
   Query 14 - 2025-04-18 06:42:13 [0.14ms] */
select * from `region` where `region`.`id` = 5 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports
   Query 1 - 2025-04-18 06:42:17 [2.07ms] */
select * from `users` where `id` = 61 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports
   Query 2 - 2025-04-18 06:42:17 [0.7ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports
   Query 3 - 2025-04-18 06:42:17 [0.33ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports
   Query 4 - 2025-04-18 06:42:17 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports
   Query 5 - 2025-04-18 06:42:17 [0.27ms] */
select `region`.`name` from `district` inner join `region` on `region`.`id` = `district`.`region_id` where `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports
   Query 6 - 2025-04-18 06:42:17 [0.13ms] */
select `name` from `classification_type` where `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports
   Query 7 - 2025-04-18 06:42:17 [0.24ms] */
select * from `district` where `district`.`id` = 21 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports
   Query 8 - 2025-04-18 06:42:17 [0.14ms] */
select * from `region` where `region`.`id` = 5 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/FieldAppTaxCollectionReport
   Query 1 - 2025-04-18 06:42:29 [2.08ms] */
select * from `users` where `id` = 61 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/FieldAppTaxCollectionReport
   Query 2 - 2025-04-18 06:42:29 [0.73ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/FieldAppTaxCollectionReport
   Query 3 - 2025-04-18 06:42:29 [0.62ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/reports/FieldAppTaxCollectionReport
   Query 4 - 2025-04-18 06:42:29 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/reports/FieldAppTaxCollectionReport
   Query 1 - 2025-04-18 06:43:39 [2.26ms] */
select * from `users` where `id` = 61 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/reports/FieldAppTaxCollectionReport
   Query 2 - 2025-04-18 06:43:39 [0.61ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/reports/FieldAppTaxCollectionReport
   Query 3 - 2025-04-18 06:43:39 [0.48ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/reports/FieldAppTaxCollectionReport
   Query 4 - 2025-04-18 06:43:39 [0.53ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 1 - 2025-04-18 06:56:09 [2.29ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 2 - 2025-04-18 06:56:09 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 3 - 2025-04-18 06:56:09 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 4 - 2025-04-18 06:56:09 [0.6ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 5 - 2025-04-18 06:56:09 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 6 - 2025-04-18 06:56:09 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 7 - 2025-04-18 06:56:09 [0.86ms] */
select `vehicle`.`id` as `vehicle_id`, `company`.`contact_party_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'EC256' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 8 - 2025-04-18 06:56:09 [0.22ms] */
select * from `party` where `party`.`id` = 47213 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 9 - 2025-04-18 06:56:09 [0.25ms] */
select * from `vehicle` where `id` = 93769 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/vehicle
   Query 10 - 2025-04-18 06:56:09 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 93769 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 1 - 2025-04-18 06:56:10 [1.96ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 2 - 2025-04-18 06:56:10 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 3 - 2025-04-18 06:56:10 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 4 - 2025-04-18 06:56:10 [0.25ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 5 - 2025-04-18 06:56:10 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 6 - 2025-04-18 06:56:10 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 7 - 2025-04-18 06:56:10 [0.46ms] */
select * from `vehicle` where `vehicle`.`id` = 93769 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 8 - 2025-04-18 06:56:10 [0.3ms] */
select * from `vehicle` where `id` = 93769 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 9 - 2025-04-18 06:56:10 [0.28ms] */
select * from `party_vehicle` where `vehicle_id` = 93769 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/taxes
   Query 10 - 2025-04-18 06:56:10 [0.83ms] */
select `vehicle_tax`.`id`, `transaction`.`id` as `transaction_id`, `term`.`year`, `term`.`quarter`, `invoice`.`invoice_amount`, `invoice`.`outstanding_balance`, `vehicle_tax`.`exempt`, `invoice`.`status`, `tax_sticker`.`name` as `tax_sticker`, CASE
                WHEN term.quarter = 1 THEN DATE_FORMAT(CONCAT(term.year, "-03-31"), "%d-%m-%Y")
                WHEN term.quarter = 2 THEN DATE_FORMAT(CONCAT(term.year, "-06-30"), "%d-%m-%Y")
                WHEN term.quarter = 3 THEN DATE_FORMAT(CONCAT(term.year, "-09-30"), "%d-%m-%Y")
                WHEN term.quarter = 4 THEN DATE_FORMAT(CONCAT(term.year, "-12-31"), "%d-%m-%Y")
                ELSE NULL
                END as due_date from `vehicle_tax` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `transaction` on `vehicle_tax`.`transaction_id` = `transaction`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `tax_sticker` on `vehicle_tax`.`tax_sticker_id` = `tax_sticker`.`id` where `vehicle_tax`.`vehicle_id` = 93769 and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null and `transaction`.`deleted_at` is null and `invoice`.`deleted_at` is null order by `term`.`year` asc, `term`.`quarter` asc;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 1 - 2025-04-18 06:56:10 [2.02ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 2 - 2025-04-18 06:56:10 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 3 - 2025-04-18 06:56:10 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 4 - 2025-04-18 06:56:10 [0.25ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 5 - 2025-04-18 06:56:10 [0.21ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 6 - 2025-04-18 06:56:10 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/region-list
   Query 7 - 2025-04-18 06:56:10 [0.21ms] */
select `id`, `name` from `region` where `deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-18 06:56:11 [1.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-18 06:56:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-18 06:56:11 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-18 06:56:11 [0.18ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-18 06:56:11 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-18 06:56:11 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-18 06:56:11 [0.18ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-18 06:59:57 [2.1ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-18 06:59:57 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-18 06:59:57 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-18 06:59:57 [0.17ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-18 06:59:57 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-18 06:59:57 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-18 06:59:57 [3.55ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-18 06:59:57 [2.06ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-18 06:59:58 [1.35ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-18 06:59:58 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-18 06:59:58 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 4 - 2025-04-18 06:59:58 [0.17ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-18 06:59:58 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-18 06:59:58 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-18 06:59:58 [0.18ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 8 - 2025-04-18 06:59:58 [0.4ms] */
select `transaction_id` from `vehicle_tax` where `id` in (450464, 450465) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-18 06:59:58 [0.25ms] */
select `parent_id` from `transaction` where `id` in (560029, 560030) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-18 06:59:58 [213.2ms] */
select `id` from `transaction` where `parent_id` in (578149) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-18 06:59:58 [0.52ms] */
select * from `transaction` where `id` in (578149) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-18 06:59:58 [0.37ms] */
select * from `invoice` where `invoice`.`id` = 553699 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-18 06:59:58 [19.21ms] */
update `invoice` set `updated_by` = 97, `deleted_by` = 97, `invoice`.`updated_at` = '2025-04-18 06:59:58' where `id` = 553699;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-18 06:59:58 [0.74ms] */
select * from `invoice` where `id` = 553699 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-18 06:59:58 [3.51ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":[],"old":[]}', 97, 'App\Models\User', 553699, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 06:59:58', '2025-04-18 06:59:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-18 06:59:58 [3.22ms] */
update `invoice` set `deleted_at` = '2025-04-18 06:59:58', `invoice`.`updated_at` = '2025-04-18 06:59:58' where `id` = 553699;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-18 06:59:58 [0.43ms] */
select * from `invoice` where `id` = 553699 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 18 - 2025-04-18 06:59: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":{"transaction_id":578149,"party_id":47213,"invoice_amount":"64.00","invoice_date":"2025-02-13 10:21:00","due_date":"2025-02-13 10:21:00","outstanding_balance":"64.00","discounts":"31.00","taxes":"0.00","total_invoice_amount":"64.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":"INV-457-553699588","invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 97, 'App\Models\User', 553699, 'Modules\Transaction\Entities\Invoice', 'deleted', '2025-04-18 06:59:58', '2025-04-18 06:59:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-18 06:59:58 [3.86ms] */
update `transaction` set `updated_by` = 97, `deleted_by` = 97, `transaction`.`updated_at` = '2025-04-18 06:59:58' where `id` = 578149;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-18 06:59:58 [3.25ms] */
update `transaction` set `deleted_at` = '2025-04-18 06:59:58', `transaction`.`updated_at` = '2025-04-18 06:59:58' where `id` = 578149;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-18 06:59:58 [0.45ms] */
select * from `transaction` where `id` in (560029, 560030) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 22 - 2025-04-18 06:59:58 [0.39ms] */
select * from `invoice` where `invoice`.`id` = 535730 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 23 - 2025-04-18 06:59:58 [3.17ms] */
update `invoice` set `parent_id` = null, `grouped` = 'N', `updated_by` = 97, `invoice`.`updated_at` = '2025-04-18 06:59:58' where `id` = 535730;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 24 - 2025-04-18 06:59:58 [0.47ms] */
select * from `invoice` where `id` = 535730 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 25 - 2025-04-18 06:59:58 [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":{"parent_id":null,"grouped":"N"},"old":{"parent_id":553699,"grouped":"Y"}}', 97, 'App\Models\User', 535730, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 06:59:58', '2025-04-18 06:59:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 26 - 2025-04-18 06:59:58 [0.34ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 27 - 2025-04-18 06:59:58 [0.23ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 28 - 2025-04-18 06:59:58 [3.31ms] */
update `transaction` set `current_workflow_state_id` = 6, `status` = 'OPEN', `parent_id` = null, `child` = 'N', `grouped` = 'N', `updated_by` = 97, `transaction`.`updated_at` = '2025-04-18 06:59:58' where `id` = 560029;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 29 - 2025-04-18 06:59:58 [0.59ms] */
select * from `invoice` where `invoice`.`id` = 535731 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 30 - 2025-04-18 06:59:58 [3.36ms] */
update `invoice` set `updated_by` = 97, `invoice`.`updated_at` = '2025-04-18 06:59:58' where `id` = 535731;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 31 - 2025-04-18 06:59:58 [0.44ms] */
select * from `invoice` where `id` = 535731 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 32 - 2025-04-18 06:59:58 [3.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":[]}', 97, 'App\Models\User', 535731, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 06:59:58', '2025-04-18 06:59:58');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 33 - 2025-04-18 06:59:58 [0.31ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 34 - 2025-04-18 06:59:58 [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://rta2.puntlandgov.org/api/make_payment
   Query 35 - 2025-04-18 06:59:58 [2.85ms] */
update `transaction` set `updated_by` = 97, `transaction`.`updated_at` = '2025-04-18 06:59:58' where `id` = 560030;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 36 - 2025-04-18 06:59:58 [2.92ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-04-18 06:59:58' where `id` in (450464, 450465) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 37 - 2025-04-18 06:59:58 [0.49ms] */
select * from `transaction` where `id` in (578149) and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 38 - 2025-04-18 06:59:58 [0.29ms] */
select `transaction_id` from `vehicle_tax` where `id` in (450464, 450465) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 39 - 2025-04-18 06:59:58 [0.42ms] */
select * from `invoice` where `transaction_id` = 560029 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 40 - 2025-04-18 06:59:58 [0.51ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 535730 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 41 - 2025-04-18 06:59:58 [0.37ms] */
select * from `transaction` where `transaction`.`id` = 560029 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 42 - 2025-04-18 06:59:58 [3.17ms] */
update `transaction` set `tax_collection_point_id` = 27, `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-18 06:59:58' where `id` = 560029;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 43 - 2025-04-18 06:59:58 [0.37ms] */
select * from `invoice` where `transaction_id` = 560030 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 44 - 2025-04-18 06:59:58 [0.33ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 535731 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 45 - 2025-04-18 06:59:58 [0.4ms] */
select * from `transaction` where `transaction`.`id` = 560030 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 46 - 2025-04-18 06:59:58 [3.13ms] */
update `transaction` set `tax_collection_point_id` = 27, `payment_provider_id` = 1, `transaction`.`updated_at` = '2025-04-18 06:59:58' where `id` = 560030;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 47 - 2025-04-18 06:59:58 [0.27ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 48 - 2025-04-18 06:59:58 [0.43ms] */
select * from `user_accounts` where `user_id` = 97 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 49 - 2025-04-18 06:59:58 [0.24ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 50 - 2025-04-18 06:59:58 [0.36ms] */
select * from `user_accounts` where `user_id` = 97 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 1 - 2025-04-18 06:59:59 [1.3ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 2 - 2025-04-18 06:59:59 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 3 - 2025-04-18 06:59:59 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 4 - 2025-04-18 06:59:59 [0.19ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 5 - 2025-04-18 06:59:59 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 6 - 2025-04-18 06:59:59 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 7 - 2025-04-18 06:59:59 [0.15ms] */
select * from `payment_configurations` where `provider_id` = 1 and `status` = 1 and `payment_configurations`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 8 - 2025-04-18 06:59:59 [0.14ms] */
select `transaction_id` from `vehicle_tax` where `id` in (450464, 450465) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 9 - 2025-04-18 06:59:59 [0.25ms] */
select `parent_id` from `transaction` where `id` in (560029, 560030) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 10 - 2025-04-18 06:59:59 [0.16ms] */
select `id` from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 11 - 2025-04-18 06:59:59 [0.2ms] */
select * from `transaction` where 0 = 1 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 12 - 2025-04-18 06:59:59 [0.24ms] */
select * from `transaction` where `id` in (560029, 560030) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 13 - 2025-04-18 06:59:59 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 535730 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 14 - 2025-04-18 06:59:59 [0.14ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 15 - 2025-04-18 06:59:59 [0.15ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 16 - 2025-04-18 06:59:59 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 535731 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 17 - 2025-04-18 06:59:59 [0.13ms] */
select * from `service_workflow` where `service_id` = 2 and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 18 - 2025-04-18 06:59:59 [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://rta2.puntlandgov.org/api/make_payment
   Query 19 - 2025-04-18 06:59:59 [8.9ms] */
update `vehicle_tax` set `status` = 'OPEN', `vehicle_tax`.`updated_at` = '2025-04-18 06:59:59' where `id` in (450464, 450465) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 20 - 2025-04-18 06:59:59 [0.49ms] */
select * from `vehicle` where `vehicle`.`id` = 93769 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 21 - 2025-04-18 06:59:59 [0.25ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 22 - 2025-04-18 06:59:59 [0.39ms] */
select count(*) as aggregate from `party_vehicle` where `vehicle_id` = 93769 and `status` = 'TRANSFER_INPROGRESS' and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 23 - 2025-04-18 06:59:59 [0.37ms] */
select * from `party_vehicle` where `vehicle_id` = 93769 and `is_owner` = 'Y' and `status` = 'REGISTERED' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 24 - 2025-04-18 06:59:59 [0.33ms] */
select * from `party` where `party`.`id` = 47213 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 25 - 2025-04-18 06:59:59 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` = 93769 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 26 - 2025-04-18 06:59:59 [0.21ms] */
select * from `service_workflow` where ((`service_id` = 2)) and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 27 - 2025-04-18 06:59:59 [0.22ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 1 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 28 - 2025-04-18 06:59:59 [0.34ms] */
select * from `branches` where `branches`.`id` = 15 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 29 - 2025-04-18 06:59:59 [0.85ms] */
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 (47213, 2, 93769, null, 2, 6, 15, 37, 37, 'OPEN', 27, null, 97, 97, '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 30 - 2025-04-18 06:59:59 [0.32ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612776, 'INITIATED', '2025-04-18 06:59:59', 5, 97, 97, 97, '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 31 - 2025-04-18 06:59:59 [0.19ms] */
update `transaction` set `grouped` = 'N', `parent` = 'Y', `party_vehicle_id` = 93522, `transaction`.`updated_at` = '2025-04-18 06:59:59' where `id` = 612776;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 32 - 2025-04-18 06:59:59 [0.27ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (450464, 450465) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'N' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 33 - 2025-04-18 06:59:59 [0.22ms] */
select sum(`invoice`.`outstanding_balance`) as aggregate from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (450464, 450465) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 34 - 2025-04-18 06:59:59 [0.27ms] */
insert into `invoice` (`transaction_id`, `party_id`, `invoice_date`, `due_date`, `invoice_amount`, `discounts`, `total_invoice_amount`, `outstanding_balance`, `taxes`, `status`, `grouped`, `parent`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612776, 47213, '2025-04-18 06:59:59', '2025-04-18 06:59:59', 95.00, 0, 95.00, 95.00, 0, 'OPEN', 'N', 'Y', 97, 97, '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 35 - 2025-04-18 06:59:59 [0.2ms] */
select * from `invoice` where `id` = 586654 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 36 - 2025-04-18 06:59:59 [0.22ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"transaction_id":612776,"party_id":47213,"invoice_amount":"95.00","invoice_date":"2025-04-18 06:59:59","due_date":"2025-04-18 06:59:59","outstanding_balance":"95.00","discounts":"0.00","taxes":"0.00","total_invoice_amount":"95.00","status":"OPEN","siinpay_invoice_number":null,"invoice_number":null,"invoice_group_id":null,"parent_id":null,"grouped":"N","migration_id":null}}', 97, 'App\Models\User', 586654, 'Modules\Transaction\Entities\Invoice', 'created', '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 37 - 2025-04-18 06:59:59 [0.28ms] */
select `invoice`.* from `vehicle_tax` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `vehicle_tax`.`id` in (450464, 450465) and `vehicle_tax`.`status` = 'OPEN' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 38 - 2025-04-18 06:59:59 [0.22ms] */
insert into `invoice_item` (`item`, `description`, `quantity`, `unit_price`, `total_price`, `invoice_id`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('Tax Service Fee', 'Combined Quarterly Tax Fees', 2, 64.00, 95, 586654, 97, 97, '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 39 - 2025-04-18 06:59:59 [0.18ms] */
select * from `invoice_item` where `id` = 1058008 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 40 - 2025-04-18 06:59:59 [0.19ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice_item', '{"attributes":{"item":"Tax Service Fee","description":"Combined Quarterly Tax Fees","unit_price":"64.00","quantity":2,"total_price":"95.00","invoice_id":586654}}', 97, 'App\Models\User', 1058008, 'Modules\Transaction\Entities\InvoiceItem', 'created', '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 41 - 2025-04-18 06:59:59 [0.24ms] */
update `invoice` set `invoice_number` = 'INV-551-586654980', `invoice`.`updated_at` = '2025-04-18 06:59:59' where `id` = 586654;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 42 - 2025-04-18 06:59:59 [0.19ms] */
select * from `invoice` where `id` = 586654 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 43 - 2025-04-18 06:59:59 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"invoice_number":"INV-551-586654980"},"old":{"invoice_number":null}}', 97, 'App\Models\User', 586654, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 44 - 2025-04-18 06:59:59 [0.2ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 450464 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 45 - 2025-04-18 06:59:59 [0.17ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 97, `vehicle_tax`.`updated_at` = '2025-04-18 06:59:59' where `id` = 450464;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 46 - 2025-04-18 06:59:59 [0.19ms] */
select * from `vehicle_tax` where `id` = 450464 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 47 - 2025-04-18 06:59:59 [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":"INPROGRESS"},"old":{"status":"OPEN"}}', 97, 'App\Models\User', 450464, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 48 - 2025-04-18 06:59:59 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 560029 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 49 - 2025-04-18 06:59:59 [0.32ms] */
update `transaction` set `parent_id` = 612776, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-18 06:59:59' where `id` = 560029;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 50 - 2025-04-18 06:59:59 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 535730 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 51 - 2025-04-18 06:59:59 [0.19ms] */
update `invoice` set `parent_id` = 586654, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-18 06:59:59' where `id` = 535730;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 52 - 2025-04-18 06:59:59 [0.19ms] */
select * from `invoice` where `id` = 535730 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 53 - 2025-04-18 06:59:59 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":586654,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 97, 'App\Models\User', 535730, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 54 - 2025-04-18 06:59:59 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 560029 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 55 - 2025-04-18 06:59:59 [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://rta2.puntlandgov.org/api/make_payment
   Query 56 - 2025-04-18 06:59:59 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 57 - 2025-04-18 06:59:59 [0.19ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 58 - 2025-04-18 06:59:59 [0.39ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 59 - 2025-04-18 06:59:59 [0.18ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 60 - 2025-04-18 06:59:59 [0.2ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (560029, 'APPROVED', '2025-04-18 06:59:59', 5, 97, null, 97, 97, '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 61 - 2025-04-18 06:59:59 [0.24ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 62 - 2025-04-18 06:59:59 [0.22ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-18 06:59:59' where `id` = 560029;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 63 - 2025-04-18 06:59:59 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 64 - 2025-04-18 06:59:59 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 535730 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 65 - 2025-04-18 06:59:59 [0.19ms] */
select * from `vehicle_tax` where `vehicle_tax`.`id` = 450465 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 66 - 2025-04-18 06:59:59 [0.16ms] */
update `vehicle_tax` set `status` = 'INPROGRESS', `updated_by` = 97, `vehicle_tax`.`updated_at` = '2025-04-18 06:59:59' where `id` = 450465;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 67 - 2025-04-18 06:59:59 [0.18ms] */
select * from `vehicle_tax` where `id` = 450465 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 68 - 2025-04-18 06:59:59 [0.17ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"INPROGRESS"},"old":{"status":"OPEN"}}', 97, 'App\Models\User', 450465, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 69 - 2025-04-18 06:59:59 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 560030 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 70 - 2025-04-18 06:59:59 [0.23ms] */
update `transaction` set `parent_id` = 612776, `child` = 'Y', `grouped` = 'Y', `transaction`.`updated_at` = '2025-04-18 06:59:59' where `id` = 560030;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 71 - 2025-04-18 06:59:59 [0.2ms] */
select * from `invoice` where `invoice`.`id` = 535731 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 72 - 2025-04-18 06:59:59 [0.17ms] */
update `invoice` set `parent_id` = 586654, `grouped` = 'Y', `invoice`.`updated_at` = '2025-04-18 06:59:59' where `id` = 535731;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 73 - 2025-04-18 06:59:59 [0.19ms] */
select * from `invoice` where `id` = 535731 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 74 - 2025-04-18 06:59:59 [0.16ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"parent_id":586654,"grouped":"Y"},"old":{"parent_id":null,"grouped":"N"}}', 97, 'App\Models\User', 535731, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 75 - 2025-04-18 06:59:59 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 560030 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 76 - 2025-04-18 06:59:59 [0.18ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 77 - 2025-04-18 06:59:59 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 78 - 2025-04-18 06:59:59 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 79 - 2025-04-18 06:59:59 [0.16ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 80 - 2025-04-18 06:59:59 [0.19ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (560030, 'APPROVED', '2025-04-18 06:59:59', 5, 97, null, 97, 97, '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 81 - 2025-04-18 06:59:59 [0.21ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 82 - 2025-04-18 06:59:59 [0.25ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-18 06:59:59' where `id` = 560030;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 83 - 2025-04-18 06:59:59 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 84 - 2025-04-18 06:59:59 [0.21ms] */
select * from `invoice` where `invoice`.`id` = 535731 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 85 - 2025-04-18 06:59:59 [0.18ms] */
update `transaction` set `invoice_id` = 586654, `transaction`.`updated_at` = '2025-04-18 06:59:59' where `id` = 612776;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 86 - 2025-04-18 06:59:59 [0.28ms] */
update `vehicle` set `updated_by` = 97, `vehicle`.`updated_at` = '2025-04-18 06:59:59' where `id` = 93769;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 87 - 2025-04-18 06:59:59 [0.2ms] */
select * from `vehicle` where `id` = 93769 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 88 - 2025-04-18 06:59:59 [0.26ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle', '{"attributes":[],"old":[]}', 97, 'App\Models\User', 93769, 'Modules\Vehicle\Entities\Vehicle', 'updated', '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 89 - 2025-04-18 06:59:59 [0.29ms] */
insert into `audits` (`old_values`, `new_values`, `event`, `auditable_id`, `auditable_type`, `user_id`, `user_type`, `tags`, `ip_address`, `user_agent`, `url`, `updated_at`, `created_at`) values ('{"updated_by":18}', '{"updated_by":97}', 'updated', 93769, 'Modules\Vehicle\Entities\Vehicle', 97, 'App\Models\User', null, '102.223.188.18', 'Dart/3.4 (dart:io)', 'https://rta2.puntlandgov.org/api/make_payment', '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 90 - 2025-04-18 06:59:59 [0.23ms] */
select * from `transaction` where `transaction`.`id` = 612776 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 91 - 2025-04-18 06:59:59 [0.18ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 92 - 2025-04-18 06:59:59 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 93 - 2025-04-18 06:59:59 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 94 - 2025-04-18 06:59:59 [0.18ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612776, 'APPROVED', '2025-04-18 06:59:59', 5, 97, null, 97, 97, '2025-04-18 06:59:59', '2025-04-18 06:59:59');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 95 - 2025-04-18 06:59:59 [0.2ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 2 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 96 - 2025-04-18 06:59:59 [0.21ms] */
update `transaction` set `current_workflow_state_id` = 7, `status` = 'INPROGRESS', `transaction`.`updated_at` = '2025-04-18 06:59:59' where `id` = 612776;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 97 - 2025-04-18 06:59:59 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 98 - 2025-04-18 06:59:59 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 586654 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 99 - 2025-04-18 06:59:59 [0.41ms] */
select `transaction_id` from `vehicle_tax` where `id` in (450464, 450465) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 100 - 2025-04-18 06:59:59 [0.39ms] */
select * from `invoice` where `transaction_id` = 560029 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 101 - 2025-04-18 06:59:59 [0.4ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 535730 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 102 - 2025-04-18 06:59:59 [0.41ms] */
select * from `transaction` where `transaction`.`id` = 560029 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 103 - 2025-04-18 06:59:59 [0.37ms] */
select * from `invoice` where `transaction_id` = 560030 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 104 - 2025-04-18 06:59:59 [0.36ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 535731 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 105 - 2025-04-18 06:59:59 [0.38ms] */
select * from `transaction` where `transaction`.`id` = 560030 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 106 - 2025-04-18 06:59:59 [0.15ms] */
select * from `merchants` where `merchants`.`id` = 1 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 107 - 2025-04-18 06:59:59 [0.14ms] */
select * from `user_accounts` where `user_id` = 97 and `payment_provider_id` = 1 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 108 - 2025-04-18 06:59:59 [0.13ms] */
select * from `merchants` where `merchants`.`id` = 3 and `merchants`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/make_payment
   Query 109 - 2025-04-18 06:59:59 [0.13ms] */
select * from `user_accounts` where `user_id` = 97 and `payment_provider_id` = 3 and `user_accounts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 1 - 2025-04-18 06:59:59 [2.21ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 2 - 2025-04-18 06:59:59 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 3 - 2025-04-18 06:59:59 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 4 - 2025-04-18 06:59:59 [0.17ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 5 - 2025-04-18 06:59:59 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 6 - 2025-04-18 06:59:59 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 7 - 2025-04-18 06:59:59 [0.33ms] */
select * from `transaction` where `id` = 560030 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 8 - 2025-04-18 06:59:59 [5.14ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 560030 and `payment_documents`.`transaction_id` is not null and `type` = 'SERVICE_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 9 - 2025-04-18 07:00:00 [5ms] */
select * from `payment_documents` where `payment_documents`.`transaction_id` = 560030 and `payment_documents`.`transaction_id` is not null and `type` = 'GOV_RECEIPT_IMAGE' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 10 - 2025-04-18 07:00:00 [0.4ms] */
select * from `invoice` where `invoice`.`id` = 535731 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/workflow
   Query 11 - 2025-04-18 07:00:00 [0.36ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 535731 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 1 - 2025-04-18 07:00:00 [2.01ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 2 - 2025-04-18 07:00:00 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 3 - 2025-04-18 07:00:00 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 4 - 2025-04-18 07:00:00 [0.25ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 5 - 2025-04-18 07:00:00 [0.22ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 6 - 2025-04-18 07:00:00 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): GET https://rta2.puntlandgov.org/api/payment_providers
   Query 7 - 2025-04-18 07:00:00 [0.26ms] */
select * from `payment_method` where exists (select * from `payment_configurations` where `payment_method`.`id` = `payment_configurations`.`provider_id` and `fee_type` = 'Government' and `payment_configurations`.`deleted_at` is null) and `payment_method`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-18 07:00:01 [1.98ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-18 07:00:01 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-18 07:00:01 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-18 07:00:01 [0.38ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-18 07:00:01 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-18 07:00:01 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-18 07:00:01 [0.17ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-18 07:00:01 [0.14ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-18 07:00:29 [1.67ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-18 07:00:29 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-18 07:00:29 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-18 07:00:29 [0.33ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-18 07:00:29 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-18 07:00:29 [0.24ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-18 07:00:29 [12.4ms] */
delete from `payment_documents` where `transaction_id` = 560030 and `type` = 'GOV_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-18 07:00:29 [7.63ms] */
select * from `payment_documents` where `type` = 'GOV_RECEIPT_IMAGE' and `receipt_number` = 2502061;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-18 07:00:29 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 560030 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-18 07:00:29 [453.36ms] */
select * from `transaction` where `parent_id` = 612776 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-18 07:00:29 [6.44ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (560029, 'GOV_RECEIPT_IMAGE', 2502061, 1, '2025-04-18 07:00:29', '2025-04-18 07:00:29');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-18 07:00:29 [3.42ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (560030, 'GOV_RECEIPT_IMAGE', 2502061, 1, '2025-04-18 07:00:29', '2025-04-18 07:00:29');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-18 07:00:29 [3.69ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (612776, 'GOV_RECEIPT_IMAGE', 2502061, 1, '2025-04-18 07:00:29', '2025-04-18 07:00:29');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-18 07:00:29 [1.56ms] */
select * from `transaction` where `transaction`.`id` = 560030 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 15 - 2025-04-18 07:00:29 [3.92ms] */
update `transaction` set `paid_by` = 'xasan cawad', `paid_by_mobile` = 7741752, `transaction`.`updated_at` = '2025-04-18 07:00:29' where `id` = 560030;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 16 - 2025-04-18 07:00:29 [10.42ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-18 07:00:29' where `receipt_number` = 2502061 and `type` = 'GOV_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 1 - 2025-04-18 07:00:35 [1.89ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 2 - 2025-04-18 07:00:35 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 3 - 2025-04-18 07:00:35 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 4 - 2025-04-18 07:00:35 [0.16ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 5 - 2025-04-18 07:00:35 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 6 - 2025-04-18 07:00:35 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 7 - 2025-04-18 07:00:35 [3.98ms] */
select `id`, `receipt_number` from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null order by `id` asc limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_receipt_number
   Query 8 - 2025-04-18 07:00:35 [4.65ms] */
select count(*) as aggregate from `receipts` where `used` = 'No' and `user_id` = 97 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 1 - 2025-04-18 07:00:36 [1.52ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 2 - 2025-04-18 07:00:36 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 3 - 2025-04-18 07:00:36 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 4 - 2025-04-18 07:00:36 [0.17ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 5 - 2025-04-18 07:00:36 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 6 - 2025-04-18 07:00:36 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 7 - 2025-04-18 07:00:36 [6.33ms] */
delete from `payment_documents` where `transaction_id` = 560030 and `type` = 'SERVICE_RECEIPT_IMAGE';
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 8 - 2025-04-18 07:00:36 [8.12ms] */
select * from `payment_documents` where `type` = 'SERVICE_RECEIPT_IMAGE' and `receipt_number` = 126910;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 9 - 2025-04-18 07:00:36 [0.36ms] */
select * from `transaction` where `transaction`.`id` = 560030 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 10 - 2025-04-18 07:00:37 [461.77ms] */
select * from `transaction` where `parent_id` = 612776 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 11 - 2025-04-18 07:00:37 [3.91ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (560029, 'SERVICE_RECEIPT_IMAGE', 126910, 1, '2025-04-18 07:00:37', '2025-04-18 07:00:37');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 12 - 2025-04-18 07:00:37 [3.89ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (560030, 'SERVICE_RECEIPT_IMAGE', 126910, 1, '2025-04-18 07:00:37', '2025-04-18 07:00:37');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 13 - 2025-04-18 07:00:37 [1.69ms] */
insert into `payment_documents` (`transaction_id`, `type`, `receipt_number`, `payment_provider_id`, `updated_at`, `created_at`) values (612776, 'SERVICE_RECEIPT_IMAGE', 126910, 1, '2025-04-18 07:00:37', '2025-04-18 07:00:37');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/payment_confirm_image
   Query 14 - 2025-04-18 07:00:37 [8.75ms] */
update `receipts` set `used` = 'Yes', `receipts`.`updated_at` = '2025-04-18 07:00:37' where `receipt_number` = 126910 and `type` = 'SERVICE_RECEIPT_NUMBER' and `receipts`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 1 - 2025-04-18 07:00:37 [1.95ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 2 - 2025-04-18 07:00:37 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 3 - 2025-04-18 07:00:37 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 4 - 2025-04-18 07:00:37 [0.32ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 5 - 2025-04-18 07:00:37 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 6 - 2025-04-18 07:00:37 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 7 - 2025-04-18 07:00:37 [0.18ms] */
select * from `transaction` where `transaction`.`id` = 560030 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 8 - 2025-04-18 07:00:37 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 612776 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 9 - 2025-04-18 07:00:37 [0.21ms] */
select * from `invoice_payment` where `invoice_id` = 586654 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 10 - 2025-04-18 07:00:37 [151.62ms] */
select `invoice`.* from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 612776 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 11 - 2025-04-18 07:00:38 [156.34ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`id` = `transaction`.`invoice_id` where `invoice`.`invoice_amount` <> 0.00 and `transaction`.`parent_id` = 612776 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 12 - 2025-04-18 07:00:38 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 612776 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 13 - 2025-04-18 07:00:38 [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://rta2.puntlandgov.org/api/confirm_payment
   Query 14 - 2025-04-18 07:00:38 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 15 - 2025-04-18 07:00:38 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 16 - 2025-04-18 07:00:38 [300.52ms] */
select sum(`invoice`.`invoice_amount`) as aggregate from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `transaction`.`parent_id` = 612776 and `vehicle_tax`.`exempt` = 'Y' and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 17 - 2025-04-18 07:00:38 [0.34ms] */
select * from `party` where `party`.`id` = 47213 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 18 - 2025-04-18 07:00:38 [0.65ms] */
insert into `Payment` (`payment_date`, `external_payment_reference_no`, `payment_receipt_number`, `payment_method_id`, `payment_amount`, `paid_by`, `paid_by_mobile`, `siinpay_payref_number`, `district_id`, `payment_collected_by`, `updated_by`, `created_by`, `created_at`, `updated_at`) values ('2025-04-18 07:00:38', 2488654, 2502061, 1, 95.00, 'xasan cawad', 7741752, null, 37, 97, 97, 97, '2025-04-18 07:00:38', '2025-04-18 07:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 19 - 2025-04-18 07:00:38 [0.2ms] */
select * from `Payment` where `id` = 191647 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 20 - 2025-04-18 07:00:38 [0.95ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('Payment', '{"attributes":{"payment_method_id":1,"payment_amount":"95.00","payment_date":"2025-04-18 07:00:38","external_payment_reference_no":"2488654","payment_receipt_number":"2502061","siinpay_payref_number":null,"paid_by":"xasan cawad","paid_by_mobile":"7741752","district_id":37,"migration_id":null,"payment_collected_by":97}}', 97, 'App\Models\User', 191647, 'Modules\Transaction\Entities\Payment', 'created', '2025-04-18 07:00:38', '2025-04-18 07:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 21 - 2025-04-18 07:00:38 [0.54ms] */
select * from `transaction` where `transaction`.`id` = 612776 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 22 - 2025-04-18 07:00:38 [0.2ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 23 - 2025-04-18 07:00:38 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 24 - 2025-04-18 07:00:38 [0.32ms] */
select * from `invoice` where `invoice`.`id` = 535730 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 25 - 2025-04-18 07:00:38 [0.61ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-18 07:00:38', 535730, 191647, '2025-04-18 07:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 26 - 2025-04-18 07:00:38 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 535730 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 27 - 2025-04-18 07:00:38 [0.65ms] */
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` = 535730 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 28 - 2025-04-18 07:00:38 [1.29ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 535730 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 29 - 2025-04-18 07:00:38 [0.38ms] */
update `invoice` set `invoice_amount` = 64, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 64, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-18 07:00:38' where `id` = 535730;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 30 - 2025-04-18 07:00:38 [0.34ms] */
select * from `invoice` where `id` = 535730 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 31 - 2025-04-18 07:00:38 [0.61ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"64.00","status":"OPEN"}}', 97, 'App\Models\User', 535730, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 07:00:38', '2025-04-18 07:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 32 - 2025-04-18 07:00:38 [0.56ms] */
select * from `transaction` where `transaction`.`id` = 560029 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 33 - 2025-04-18 07:00:38 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 560029 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 34 - 2025-04-18 07:00:38 [0.2ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 35 - 2025-04-18 07:00:38 [0.19ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 36 - 2025-04-18 07:00:38 [0.2ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 37 - 2025-04-18 07:00:38 [1.55ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (560029, 'PAID', '2025-04-18 07:00:38', 7, 97, null, 97, 97, '2025-04-18 07:00:38', '2025-04-18 07:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 38 - 2025-04-18 07:00:38 [0.26ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 39 - 2025-04-18 07:00:38 [1.04ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-18 07:00:38' where `id` = 560029;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 40 - 2025-04-18 07:00:38 [0.21ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 41 - 2025-04-18 07:00:38 [0.3ms] */
select * from `invoice` where `invoice`.`id` = 535730 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 42 - 2025-04-18 07:00:38 [0.32ms] */
select * from `vehicle_tax` where `transaction_id` = 560029 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 43 - 2025-04-18 07:00:38 [0.25ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-04-18 07:00:38' where `id` = 450464;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 44 - 2025-04-18 07:00:38 [0.25ms] */
select * from `vehicle_tax` where `id` = 450464 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 45 - 2025-04-18 07:00:38 [0.47ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('vehicle_tax', '{"attributes":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 97, 'App\Models\User', 450464, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 07:00:38', '2025-04-18 07:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 46 - 2025-04-18 07:00:38 [0.29ms] */
select * from `invoice` where `invoice`.`id` = 535731 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 47 - 2025-04-18 07:00:38 [0.24ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-18 07:00:38', 535731, 191647, '2025-04-18 07:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 48 - 2025-04-18 07:00:38 [0.27ms] */
select * from `invoice` where `invoice`.`id` = 535731 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 49 - 2025-04-18 07:00:38 [0.34ms] */
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` = 535731 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 50 - 2025-04-18 07:00:38 [0.28ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 535731 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 51 - 2025-04-18 07:00:38 [0.26ms] */
update `invoice` set `invoice_amount` = 31, `outstanding_balance` = 0, `discounts` = 0, `total_invoice_amount` = 31, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-18 07:00:38' where `id` = 535731;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 52 - 2025-04-18 07:00:38 [0.26ms] */
select * from `invoice` where `id` = 535731 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 53 - 2025-04-18 07:00:38 [0.24ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"31.00","status":"OPEN"}}', 97, 'App\Models\User', 535731, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 07:00:38', '2025-04-18 07:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 54 - 2025-04-18 07:00:38 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 560030 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 55 - 2025-04-18 07:00:38 [0.3ms] */
select * from `transaction` where `transaction`.`id` = 560030 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 56 - 2025-04-18 07:00:38 [0.2ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 57 - 2025-04-18 07:00:38 [0.16ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 58 - 2025-04-18 07:00:38 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 59 - 2025-04-18 07:00:38 [0.22ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (560030, 'PAID', '2025-04-18 07:00:38', 7, 97, null, 97, 97, '2025-04-18 07:00:38', '2025-04-18 07:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 60 - 2025-04-18 07:00:38 [0.45ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 61 - 2025-04-18 07:00:38 [0.26ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-18 07:00:38' where `id` = 560030;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 62 - 2025-04-18 07:00:38 [0.17ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 63 - 2025-04-18 07:00:38 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 535731 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 64 - 2025-04-18 07:00:38 [0.24ms] */
select * from `vehicle_tax` where `transaction_id` = 560030 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 65 - 2025-04-18 07:00:38 [0.2ms] */
update `vehicle_tax` set `status` = 'PAID', `vehicle_tax`.`updated_at` = '2025-04-18 07:00:38' where `id` = 450465;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 66 - 2025-04-18 07:00:38 [0.22ms] */
select * from `vehicle_tax` where `id` = 450465 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 67 - 2025-04-18 07:00:38 [0.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":{"status":"PAID"},"old":{"status":"INPROGRESS"}}', 97, 'App\Models\User', 450465, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 07:00:38', '2025-04-18 07:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 68 - 2025-04-18 07:00:38 [0.25ms] */
select * from `invoice` where `invoice`.`id` = 586654 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 69 - 2025-04-18 07:00:38 [0.23ms] */
select * from `invoice` where `invoice`.`id` = 586654 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 70 - 2025-04-18 07:00:38 [0.2ms] */
insert into `invoice_payment` (`created_at`, `invoice_id`, `payment_id`, `updated_at`) values ('2025-04-18 07:00:38', 586654, 191647, '2025-04-18 07:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 71 - 2025-04-18 07:00:38 [0.24ms] */
select * from `invoice` where `invoice`.`id` = 586654 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 72 - 2025-04-18 07:00:38 [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` = 586654 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 73 - 2025-04-18 07:00:38 [0.22ms] */
update `invoice` set `outstanding_balance` = 0, `status` = 'PAID', `invoice`.`updated_at` = '2025-04-18 07:00:38' where `id` = 586654;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 74 - 2025-04-18 07:00:38 [0.25ms] */
select * from `invoice` where `id` = 586654 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 75 - 2025-04-18 07:00:38 [0.25ms] */
insert into `activity_log` (`log_name`, `properties`, `causer_id`, `causer_type`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('invoice', '{"attributes":{"outstanding_balance":"0.00","status":"PAID"},"old":{"outstanding_balance":"95.00","status":"OPEN"}}', 97, 'App\Models\User', 586654, 'Modules\Transaction\Entities\Invoice', 'updated', '2025-04-18 07:00:38', '2025-04-18 07:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 76 - 2025-04-18 07:00:38 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 612776 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 77 - 2025-04-18 07:00:38 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 612776 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 78 - 2025-04-18 07:00:38 [0.23ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 79 - 2025-04-18 07:00:38 [0.18ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 80 - 2025-04-18 07:00:38 [0.24ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 7 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 81 - 2025-04-18 07:00:38 [0.23ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (612776, 'PAID', '2025-04-18 07:00:38', 7, 97, null, 97, 97, '2025-04-18 07:00:38', '2025-04-18 07:00:38');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 82 - 2025-04-18 07:00:38 [0.27ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 3 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 83 - 2025-04-18 07:00:38 [0.26ms] */
update `transaction` set `current_workflow_state_id` = 8, `transaction`.`updated_at` = '2025-04-18 07:00:38' where `id` = 612776;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 84 - 2025-04-18 07:00:38 [0.19ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/confirm_payment
   Query 85 - 2025-04-18 07:00:38 [0.26ms] */
select * from `invoice` where `invoice`.`id` = 586654 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-18 07:00:40 [1.32ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-18 07:00:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-18 07:00:40 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-18 07:00:40 [0.17ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-18 07:00:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-18 07:00:40 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-18 07:00:40 [0.32ms] */
select * from `vehicle_tax` where `id` = 450465 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-18 07:00:40 [0.73ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 1 - 2025-04-18 07:00:43 [2ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 2 - 2025-04-18 07:00:43 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 3 - 2025-04-18 07:00:43 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 4 - 2025-04-18 07:00:43 [0.34ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 5 - 2025-04-18 07:00:43 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 6 - 2025-04-18 07:00:43 [0.32ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 7 - 2025-04-18 07:00:43 [0.15ms] */
select * from `vehicle_tax` where `id` = 450465 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/get_sticker_code
   Query 8 - 2025-04-18 07:00:43 [15.52ms] */
select `id`, `name` from `tax_sticker` where `term_id` = 104 and `name` like '%2025-Q2-0153%' and `assigned` = 'NO' and `tax_sticker`.`deleted_at` is null limit 10;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 1 - 2025-04-18 07:00:48 [2.1ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 2 - 2025-04-18 07:00:48 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 3 - 2025-04-18 07:00:48 [0.3ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 4 - 2025-04-18 07:00:48 [0.36ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 5 - 2025-04-18 07:00:48 [0.31ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 6 - 2025-04-18 07:00:48 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 7 - 2025-04-18 07:00:48 [0.36ms] */
select * from `tax_sticker` where `tax_sticker`.`id` = 651765 and `tax_sticker`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 8 - 2025-04-18 07:00:48 [0.16ms] */
select * from `vehicle_tax` where `id` = 450465 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 9 - 2025-04-18 07:00:48 [6.32ms] */
update `vehicle_tax` set `tax_sticker_id` = 651765, `vehicle_tax`.`updated_at` = '2025-04-18 07:00:48' where `id` = 450465;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 10 - 2025-04-18 07:00:48 [0.35ms] */
select * from `vehicle_tax` where `id` = 450465 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 11 - 2025-04-18 07:00:48 [3.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":{"tax_sticker_id":651765},"old":{"tax_sticker_id":null}}', 97, 'App\Models\User', 450465, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 07:00:48', '2025-04-18 07:00:48');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/assign_sticker_code
   Query 12 - 2025-04-18 07:00:48 [3.33ms] */
update `tax_sticker` set `assigned` = 'Y', `updated_by` = 97, `tax_sticker`.`updated_at` = '2025-04-18 07:00:48' where `id` = 651765;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 1 - 2025-04-18 07:00:50 [1.97ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 2 - 2025-04-18 07:00:50 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 3 - 2025-04-18 07:00:50 [0.36ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 4 - 2025-04-18 07:00:50 [0.35ms] */
select * from `users` where `id` = 97 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 5 - 2025-04-18 07:00:50 [0.33ms] */
select * from `oauth_access_tokens` where `id` = '4f582157895480c83449236210016a70371181fb72e1c2e046e9058c76ba8198ffd506bb8fe4c875' limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 6 - 2025-04-18 07:00:50 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 7 - 2025-04-18 07:00:50 [0.36ms] */
select * from `vehicle_tax` where `id` in (450464, 450465) and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 8 - 2025-04-18 07:00:50 [0.29ms] */
select * from `transaction` where `transaction`.`id` = 560029 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 9 - 2025-04-18 07:00:50 [0.24ms] */
select * from `transaction` where `transaction`.`id` = 560029 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 10 - 2025-04-18 07:00:50 [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://rta2.puntlandgov.org/api/complete_transaction
   Query 11 - 2025-04-18 07:00:50 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 12 - 2025-04-18 07:00:50 [0.15ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 13 - 2025-04-18 07:00:50 [0.26ms] */
insert into `transaction_workflow` (`transaction_id`, `action`, `action_date`, `role_id`, `user_id`, `comments`, `updated_by`, `created_by`, `created_at`, `updated_at`) values (560029, 'APPROVED', '2025-04-18 07:00:50', 8, 97, null, 97, 97, '2025-04-18 07:00:50', '2025-04-18 07:00:50');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 14 - 2025-04-18 07:00:50 [0.15ms] */
select * from `workflow_definition` where `workflow_id` = 2 and `step_number` = 4 and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 15 - 2025-04-18 07:00:50 [0.43ms] */
update `transaction` set `current_workflow_state_id` = 9, `status` = 'END', `transaction`.`updated_at` = '2025-04-18 07:00:50' where `id` = 560029;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 16 - 2025-04-18 07:00:50 [0.15ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 17 - 2025-04-18 07:00:50 [0.26ms] */
select * from `vehicle_tax` where `transaction_id` = 560029 and `vehicle_tax`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 18 - 2025-04-18 07:00:50 [0.17ms] */
update `vehicle_tax` set `status` = 'ISSUED', `vehicle_tax`.`updated_at` = '2025-04-18 07:00:50' where `id` = 450464;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 19 - 2025-04-18 07:00:50 [0.19ms] */
select * from `vehicle_tax` where `id` = 450464 limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 20 - 2025-04-18 07:00:50 [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":"ISSUED"},"old":{"status":"PAID"}}', 97, 'App\Models\User', 450464, 'Modules\Vehicle\Entities\VehicleTax', 'updated', '2025-04-18 07:00:50', '2025-04-18 07:00:50');
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 21 - 2025-04-18 07:00:50 [0.22ms] */
select * from `invoice` where `invoice`.`id` = 535730 and `invoice`.`id` is not null and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://rta2.puntlandgov.org/api/complete_transaction
   Query 22 - 2025-04-18 07:00:50 [0.28ms] */
