phpvms icon indicating copy to clipboard operation
phpvms copied to clipboard

Custom expense is not being triggered by the core

Open avs-code opened this issue 2 years ago • 0 comments

Describe the bug Custom expense is not being triggered by the core.

Version 7.0.0-dev+220211.78fd83

To Reproduce Steps to reproduce the behavior: We are testing phpvms7, so all test are done via manual pirep. Send a manual pirep. Aprove manual pirep in admin. Finances are manage in same way that schedule flight in DB.

Expected behavior With this listener, log must show the string debug, and charge to pilot for fuel expenses. /app/Listeners/FreeFlight.php

<?php

namespace App\Listeners;

use App\Contracts\Listener;
use App\Events\Expenses;
use App\Events\PirepAccepted;
use App\Models\Enums\ExpenseType;
use App\Models\Expense;
use Illuminate\Support\Facades\Log;

class FreeFlight extends Listener
{
    public function handle(Expenses $event)
    {
        $expenses = [];

        if (filled($event->pirep->flight_id)) {
          // There is a flight id present, so this is a scheduled flight.
          // return empty expense array, do nothing more.
          Log::debug('ARV | Expense working, problem is at the conditional check');
          return $expenses; 
        }

        $pirep = $event->pirep;

        $amount = round($pirep->fuel_used * setting('airports.default_jet_a_fuel_cost'), 2);
        Log::debug('ARV | Expense working, reached final array creation');
        $expenses[] = new Expense([
            'type'              => ExpenseType::FLIGHT,
            'amount'            => $amount,
            'transaction_group' => 'Free Flight',
            'name'              => 'Free flight Fee For Pirep='.$pirep->id,
            'multiplier'        => false,
            'charge_to_user'    => true
        ]);
        Log::debug('ARV | Expense Array Contents: '.json_encode($expenses));
        return $expenses;
    }
}

Screenshots If applicable, add screenshots to help explain your problem.

Additional context laravel-2022-02-18.log

[2022-02-18 15:19:16] production.INFO: PIREP Custom Fields  
[2022-02-18 15:19:16] production.INFO: Saving fare pirep=zA3YvLpkVAKQaPgM, fare=160  
[2022-02-18 15:19:16] production.INFO: New PIREP filed [{"App\\Models\\Pirep":{"id":"zA3YvLpkVAKQaPgM","user_id":1,"airline_id":1,"aircraft_id":1,"flight_id":null,"flight_number":"8541","route_code":null,"route_leg":null,"flight_type":"J","dpt_airport_id":"LEMD","arr_airport_id":"LIRF","alt_airport_id":null,"level":30000,"distance":720.0,"planned_distance":null,"flight_time":130,"planned_flight_time":null,"zfw":null,"block_fuel":50000.0,"fuel_used":41465.0,"landing_rate":null,"score":null,"route":"","notes":null,"source":0,"source_name":null,"state":1,"status":"ONB","submitted_at":"2022-02-18T15:19:16.000000Z","block_off_time":"2022-02-18T13:09:16.000000Z","block_on_time":"2022-02-18T15:19:16.000000Z","created_at":"2022-02-18T15:19:16.000000Z","updated_at":"2022-02-18T15:19:16.000000Z","flight":null,"aircraft":{"id":1,"subfleet_id":1,"icao":"B738","iata":"738","airport_id":"LEMD","hub_id":"LEMD","landing_time":"2022-02-17T20:52:45.000000Z","name":"Gran Capitán","registration":"EC-ZAA","hex_code":"306b4189","mtow":174200.0,"zfw":138300.0,"fuel_onboard":"2000.00","flight_time":0.0,"status":"A","state":0,"created_at":"2021-09-26T14:39:37.000000Z","updated_at":"2022-02-18T15:15:58.000000Z","subfleet":{"id":1,"airline_id":1,"hub_id":"LEMD","type":"B738","simbrief_type":"B738","name":"B738 CFM56-7B26 ECO","cost_block_hour":170.0,"cost_delay_minute":75.2699999999999960209606797434389591217041015625,"fuel_type":1,"ground_handling_multiplier":120.0,"cargo_capacity":null,"fuel_capacity":null,"gross_weight":null,"created_at":"2021-09-26T14:22:05.000000Z","updated_at":"2022-02-17T22:05:45.000000Z","fares":[{"id":1,"code":"Y","name":"Economy","price":100.0,"cost":25.0,"capacity":null,"type":0,"notes":"Fijar precio en flights (vuelo), capacidad en fleet (subflota) y coste Fijo por categoria","active":true,"created_at":"2020-06-07T18:56:59.000000Z","updated_at":"2022-02-17T17:54:05.000000Z","pivot":{"subfleet_id":1,"fare_id":1,"price":null,"cost":null,"capacity":"162"}}]}},"simbrief":null}}] 
[2022-02-18 15:19:16] production.INFO: NotificationEvents::onUserStateChange: New user state=1  
[2022-02-18 15:19:16] production.INFO: NotificationEvents::onPirepFile: zA3YvLpkVAKQaPgM filed  
[2022-02-18 15:19:20] production.DEBUG: Message-ID: <[email protected]>
Date: Fri, 18 Feb 2022 15:19:19 +0000
Subject: New PIREP Submitted
From: phpVMS Admin <[email protected]>
To: [email protected]
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="_=_swift_1645197559_a1eed3f676c096510b7c214f2a82ea15_=_"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="color-scheme" content="light">
<meta name="supported-color-schemes" content="light">
<style>
@media  only screen and (max-width: 600px) {
.inner-body {
width: 100% !important;
}

.footer {
width: 100% !important;
}
}

@media  only screen and (max-width: 500px) {
.button {
width: 100% !important;
}
}
</style>
</head>
<body style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -webkit-text-size-adjust: none; background-color: #ffffff; color: #718096; height: 100%; line-height: 1.4; margin: 0; padding: 0; width: 100% !important;">

<table class="wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; background-color: #edf2f7; margin: 0; padding: 0; width: 100%;">
<tr>
<td align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table class="content" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; margin: 0; padding: 0; width: 100%;">
<tr>
<td class="header" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; padding: 25px 0; text-align: center;">
<a href="https://phpvms7.argavirtual.com" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; color: #3d4852; font-size: 19px; font-weight: bold; text-decoration: none; display: inline-block;">
phpvms7
</a>
</td>
</tr>

<!-- Email Body -->
<tr>
<td class="body" width="100%" cellpadding="0" cellspacing="0" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; background-color: #edf2f7; border-bottom: 1px solid #edf2f7; border-top: 1px solid #edf2f7; margin: 0; padding: 0; width: 100%;">
<table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 570px; background-color: #ffffff; border-color: #e8e5ef; border-radius: 2px; border-width: 1px; box-shadow: 0 2px 0 rgba(0, 0, 150, 0.025), 2px 4px 0 rgba(0, 0, 150, 0.015); margin: 0 auto; padding: 0; width: 570px;">
<!-- Body content -->
<tr>
<td class="content-cell" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; max-width: 100vw; padding: 32px;">
<h1 style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; color: #3d4852; font-size: 18px; font-weight: bold; margin-top: 0; text-align: left;">New PIREP Submitted</h1>
<p style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; font-size: 16px; line-height: 1.5em; margin-top: 0; text-align: left;">A new PIREP has been submitted by ARV0187 Toni</p>
  <table class="action" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; margin: 30px auto; padding: 0; text-align: center; width: 100%;">
<tr>
<td align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<tr>
<td align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<tr>
<td style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<a href="https://phpvms7.argavirtual.com/admin/pireps/zA3YvLpkVAKQaPgM/edit" class="button button-primary" target="_blank" rel="noopener" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -webkit-text-size-adjust: none; border-radius: 4px; color: #fff; display: inline-block; overflow: hidden; text-decoration: none; background-color: #2d3748; border-bottom: 8px solid #2d3748; border-left: 18px solid #2d3748; border-right: 18px solid #2d3748; border-top: 8px solid #2d3748;">View PIREP</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; font-size: 16px; line-height: 1.5em; margin-top: 0; text-align: left;">Thanks,<br>
phpvms7</p>



</td>
</tr>
</table>
</td>
</tr>

<tr>
<td style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 570px; margin: 0 auto; padding: 0; text-align: center; width: 570px;">
<tr>
<td class="content-cell" align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; max-width: 100vw; padding: 32px;">
<p style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; line-height: 1.5em; margin-top: 0; color: #b0adc5; font-size: 12px; text-align: center;">© 2022 phpvms7. All rights reserved.</p>

</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

[phpvms7](https://phpvms7.argavirtual.com)

# New PIREP Submitted

  A new PIREP has been submitted by ARV0187 Toni

  View PIREP: https://phpvms7.argavirtual.com/admin/pireps/zA3YvLpkVAKQaPgM/edit

  Thanks,
  phpvms7

© 2022 phpvms7. All rights reserved.
  
[2022-02-18 15:19:20] production.DEBUG: Message-ID: <[email protected]>
Date: Fri, 18 Feb 2022 15:19:20 +0000
Subject: New PIREP Submitted
From: phpVMS Admin <[email protected]>
To: [email protected]
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="_=_swift_1645197560_a64cbeeddced05aa7fde05c20b49def4_=_"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="color-scheme" content="light">
<meta name="supported-color-schemes" content="light">
<style>
@media  only screen and (max-width: 600px) {
.inner-body {
width: 100% !important;
}

.footer {
width: 100% !important;
}
}

@media  only screen and (max-width: 500px) {
.button {
width: 100% !important;
}
}
</style>
</head>
<body style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -webkit-text-size-adjust: none; background-color: #ffffff; color: #718096; height: 100%; line-height: 1.4; margin: 0; padding: 0; width: 100% !important;">

<table class="wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; background-color: #edf2f7; margin: 0; padding: 0; width: 100%;">
<tr>
<td align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table class="content" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; margin: 0; padding: 0; width: 100%;">
<tr>
<td class="header" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; padding: 25px 0; text-align: center;">
<a href="https://phpvms7.argavirtual.com" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; color: #3d4852; font-size: 19px; font-weight: bold; text-decoration: none; display: inline-block;">
phpvms7
</a>
</td>
</tr>

<!-- Email Body -->
<tr>
<td class="body" width="100%" cellpadding="0" cellspacing="0" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; background-color: #edf2f7; border-bottom: 1px solid #edf2f7; border-top: 1px solid #edf2f7; margin: 0; padding: 0; width: 100%;">
<table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 570px; background-color: #ffffff; border-color: #e8e5ef; border-radius: 2px; border-width: 1px; box-shadow: 0 2px 0 rgba(0, 0, 150, 0.025), 2px 4px 0 rgba(0, 0, 150, 0.015); margin: 0 auto; padding: 0; width: 570px;">
<!-- Body content -->
<tr>
<td class="content-cell" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; max-width: 100vw; padding: 32px;">
<h1 style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; color: #3d4852; font-size: 18px; font-weight: bold; margin-top: 0; text-align: left;">New PIREP Submitted</h1>
<p style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; font-size: 16px; line-height: 1.5em; margin-top: 0; text-align: left;">A new PIREP has been submitted by ARV0187 Toni</p>
  <table class="action" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; margin: 30px auto; padding: 0; text-align: center; width: 100%;">
<tr>
<td align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<tr>
<td align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<tr>
<td style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<a href="https://phpvms7.argavirtual.com/admin/pireps/zA3YvLpkVAKQaPgM/edit" class="button button-primary" target="_blank" rel="noopener" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -webkit-text-size-adjust: none; border-radius: 4px; color: #fff; display: inline-block; overflow: hidden; text-decoration: none; background-color: #2d3748; border-bottom: 8px solid #2d3748; border-left: 18px solid #2d3748; border-right: 18px solid #2d3748; border-top: 8px solid #2d3748;">View PIREP</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; font-size: 16px; line-height: 1.5em; margin-top: 0; text-align: left;">Thanks,<br>
phpvms7</p>



</td>
</tr>
</table>
</td>
</tr>

<tr>
<td style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 570px; margin: 0 auto; padding: 0; text-align: center; width: 570px;">
<tr>
<td class="content-cell" align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; max-width: 100vw; padding: 32px;">
<p style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; line-height: 1.5em; margin-top: 0; color: #b0adc5; font-size: 12px; text-align: center;">© 2022 phpvms7. All rights reserved.</p>

</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

[phpvms7](https://phpvms7.argavirtual.com)

# New PIREP Submitted

  A new PIREP has been submitted by ARV0187 Toni

  View PIREP: https://phpvms7.argavirtual.com/admin/pireps/zA3YvLpkVAKQaPgM/edit

  Thanks,
  phpvms7

© 2022 phpvms7. All rights reserved.
  
[2022-02-18 15:19:20] production.DEBUG: Message-ID: <[email protected]>
Date: Fri, 18 Feb 2022 15:19:20 +0000
Subject: New PIREP Submitted
From: phpVMS Admin <[email protected]>
To: [email protected]
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="_=_swift_1645197560_cb4805ea026aa84b777cbc772a082baf_=_"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="color-scheme" content="light">
<meta name="supported-color-schemes" content="light">
<style>
@media  only screen and (max-width: 600px) {
.inner-body {
width: 100% !important;
}

.footer {
width: 100% !important;
}
}

@media  only screen and (max-width: 500px) {
.button {
width: 100% !important;
}
}
</style>
</head>
<body style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -webkit-text-size-adjust: none; background-color: #ffffff; color: #718096; height: 100%; line-height: 1.4; margin: 0; padding: 0; width: 100% !important;">

<table class="wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; background-color: #edf2f7; margin: 0; padding: 0; width: 100%;">
<tr>
<td align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table class="content" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; margin: 0; padding: 0; width: 100%;">
<tr>
<td class="header" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; padding: 25px 0; text-align: center;">
<a href="https://phpvms7.argavirtual.com" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; color: #3d4852; font-size: 19px; font-weight: bold; text-decoration: none; display: inline-block;">
phpvms7
</a>
</td>
</tr>

<!-- Email Body -->
<tr>
<td class="body" width="100%" cellpadding="0" cellspacing="0" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; background-color: #edf2f7; border-bottom: 1px solid #edf2f7; border-top: 1px solid #edf2f7; margin: 0; padding: 0; width: 100%;">
<table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 570px; background-color: #ffffff; border-color: #e8e5ef; border-radius: 2px; border-width: 1px; box-shadow: 0 2px 0 rgba(0, 0, 150, 0.025), 2px 4px 0 rgba(0, 0, 150, 0.015); margin: 0 auto; padding: 0; width: 570px;">
<!-- Body content -->
<tr>
<td class="content-cell" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; max-width: 100vw; padding: 32px;">
<h1 style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; color: #3d4852; font-size: 18px; font-weight: bold; margin-top: 0; text-align: left;">New PIREP Submitted</h1>
<p style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; font-size: 16px; line-height: 1.5em; margin-top: 0; text-align: left;">A new PIREP has been submitted by ARV0187 Toni</p>
  <table class="action" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; margin: 30px auto; padding: 0; text-align: center; width: 100%;">
<tr>
<td align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<tr>
<td align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<tr>
<td style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<a href="https://phpvms7.argavirtual.com/admin/pireps/zA3YvLpkVAKQaPgM/edit" class="button button-primary" target="_blank" rel="noopener" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -webkit-text-size-adjust: none; border-radius: 4px; color: #fff; display: inline-block; overflow: hidden; text-decoration: none; background-color: #2d3748; border-bottom: 8px solid #2d3748; border-left: 18px solid #2d3748; border-right: 18px solid #2d3748; border-top: 8px solid #2d3748;">View PIREP</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; font-size: 16px; line-height: 1.5em; margin-top: 0; text-align: left;">Thanks,<br>
phpvms7</p>



</td>
</tr>
</table>
</td>
</tr>

<tr>
<td style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 570px; margin: 0 auto; padding: 0; text-align: center; width: 570px;">
<tr>
<td class="content-cell" align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; max-width: 100vw; padding: 32px;">
<p style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; line-height: 1.5em; margin-top: 0; color: #b0adc5; font-size: 12px; text-align: center;">© 2022 phpvms7. All rights reserved.</p>

</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

[phpvms7](https://phpvms7.argavirtual.com)

# New PIREP Submitted

  A new PIREP has been submitted by ARV0187 Toni

  View PIREP: https://phpvms7.argavirtual.com/admin/pireps/zA3YvLpkVAKQaPgM/edit

  Thanks,
  phpvms7

© 2022 phpvms7. All rights reserved.
  
[2022-02-18 15:19:20] production.DEBUG: Disposable Basic, Pirep:zA3YvLpkVAKQaPgM FILED, Change STATE of EC-ZAA to PARKED  
[2022-02-18 15:19:34] production.INFO: PIREP state update call [{"pirep_id":"zA3YvLpkVAKQaPgM","new_status":"2"}] 
[2022-02-18 15:19:34] production.INFO: PIREP zA3YvLpkVAKQaPgM state change from 1 to 2  
[2022-02-18 15:19:34] production.INFO: PIREP zA3YvLpkVAKQaPgM state change to ACCEPTED  
[2022-02-18 15:19:34] production.INFO: Finance: Starting PIREP pay for zA3YvLpkVAKQaPgM  
[2022-02-18 15:19:34] production.INFO: Finance: Fuel cost, (fuel=50000, cost=0.64) D=3200000  
[2022-02-18 15:19:34] production.INFO: Finance: PIREP: zA3YvLpkVAKQaPgM, flight fares:  [{"id":49,"pirep_id":"zA3YvLpkVAKQaPgM","fare_id":1,"count":160}] 
[2022-02-18 15:19:34] production.INFO: Finance: PIREP: zA3YvLpkVAKQaPgM, fare count: {"id":49,"pirep_id":"zA3YvLpkVAKQaPgM","fare_id":1,"count":160}  
[2022-02-18 15:19:34] production.INFO: Finance: PIREP: zA3YvLpkVAKQaPgM, Fare: {"id":1,"code":"Y","name":"Economy","price":100.0,"cost":25.0,"capacity":162,"type":0,"notes":"Fijar precio en flights (vuelo), capacidad en fleet (subflota) y coste Fijo por categoria","active":true,"created_at":"2020-06-07T18:56:59.000000Z","updated_at":"2022-02-17T17:54:05.000000Z","count":160,"pivot":{"subfleet_id":1,"fare_id":1,"price":null,"cost":null,"capacity":"162"}} 
[2022-02-18 15:19:34] production.INFO: Finance: Calculate: C=1600000, D=400000  
[2022-02-18 15:19:34] production.INFO: Finance: No block time, using PIREP flight time  
[2022-02-18 15:19:34] production.INFO: Finance: Subfleet Block Hourly, D=36700  
[2022-02-18 15:19:34] production.INFO: Finance: PIREP: zA3YvLpkVAKQaPgM, expense: {"id":5,"airline_id":null,"name":"Tasa aterrizaje","amount":653,"type":"F","flight_type":[],"charge_to_user":0,"multiplier":0,"active":1,"ref_model":"App\\Models\\Subfleet","ref_model_id":"1","created_at":"2022-02-15T22:05:26.000000Z","updated_at":"2022-02-15T22:05:26.000000Z"} 
[2022-02-18 15:19:34] production.INFO: Finance: PIREP: zA3YvLpkVAKQaPgM, expense: {"id":6,"airline_id":null,"name":"Tasa Servicios aeródromo","amount":253,"type":"F","flight_type":[],"charge_to_user":0,"multiplier":0,"active":1,"ref_model":"App\\Models\\Subfleet","ref_model_id":"1","created_at":"2022-02-15T22:22:44.000000Z","updated_at":"2022-02-15T22:22:44.000000Z"} 
[2022-02-18 15:19:34] production.INFO: Finance: PIREP: zA3YvLpkVAKQaPgM, expense: {"id":7,"airline_id":null,"name":"Tasa parking","amount":11,"type":"F","flight_type":[],"charge_to_user":0,"multiplier":0,"active":1,"ref_model":"App\\Models\\Subfleet","ref_model_id":"1","created_at":"2022-02-15T22:23:35.000000Z","updated_at":"2022-02-15T22:23:35.000000Z"} 
[2022-02-18 15:19:34] production.INFO: Finance: PIREP: zA3YvLpkVAKQaPgM, expense: {"id":8,"airline_id":null,"name":"Tasa 400 Hz Energy System","amount":7,"type":"F","flight_type":[],"charge_to_user":0,"multiplier":0,"active":1,"ref_model":"App\\Models\\Subfleet","ref_model_id":"1","created_at":"2022-02-15T22:34:40.000000Z","updated_at":"2022-02-15T22:34:40.000000Z"} 
[2022-02-18 15:19:34] production.INFO: Finance: PIREP: zA3YvLpkVAKQaPgM, expense: {"id":10,"airline_id":null,"name":"Tasa Servicios meteorológicos","amount":14,"type":"F","flight_type":[],"charge_to_user":0,"multiplier":0,"active":1,"ref_model":"App\\Models\\Subfleet","ref_model_id":"1","created_at":"2022-02-15T22:51:04.000000Z","updated_at":"2022-02-15T22:51:04.000000Z"} 
[2022-02-18 15:19:34] production.INFO: Finance: PIREP: zA3YvLpkVAKQaPgM, expense: {"id":16,"airline_id":null,"name":"Coste mantenimiento por ciclo","amount":1870,"type":"F","flight_type":[],"charge_to_user":0,"multiplier":0,"active":1,"ref_model":"App\\Models\\Subfleet","ref_model_id":"1","created_at":"2022-02-16T17:40:59.000000Z","updated_at":"2022-02-16T17:40:59.000000Z"} 
[2022-02-18 15:19:34] production.INFO: Finance: PIREP: zA3YvLpkVAKQaPgM; dpt ground handling: 169.152  
[2022-02-18 15:19:34] production.INFO: Finance: PIREP: zA3YvLpkVAKQaPgM; arr ground handling: 240  
[2022-02-18 15:19:34] production.DEBUG: Source is Manual  
[2022-02-18 15:19:34] production.DEBUG: pilot pay: base rate=0.00, override=  
[2022-02-18 15:19:34] production.INFO: Pilot Payment: rate=0  
[2022-02-18 15:19:34] production.DEBUG: Source is Manual  
[2022-02-18 15:19:34] production.DEBUG: pilot pay: base rate=0.00, override=  
[2022-02-18 15:19:34] production.INFO: Finance: PIREP: zA3YvLpkVAKQaPgM; pilot pay: 0, total: €0,00  
[2022-02-18 15:19:34] production.INFO: NotificationEvents::onPirepAccepted: zA3YvLpkVAKQaPgM accepted  
[2022-02-18 15:19:34] production.DEBUG: Message-ID: <[email protected]>
Date: Fri, 18 Feb 2022 15:19:34 +0000
Subject: PIREP Accepted!
From: phpVMS Admin <[email protected]>
To: [email protected]
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="_=_swift_1645197574_1937bcc66310d0e1014cd69d4b901b9d_=_"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="color-scheme" content="light">
<meta name="supported-color-schemes" content="light">
<style>
@media  only screen and (max-width: 600px) {
.inner-body {
width: 100% !important;
}

.footer {
width: 100% !important;
}
}

@media  only screen and (max-width: 500px) {
.button {
width: 100% !important;
}
}
</style>
</head>
<body style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -webkit-text-size-adjust: none; background-color: #ffffff; color: #718096; height: 100%; line-height: 1.4; margin: 0; padding: 0; width: 100% !important;">

<table class="wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; background-color: #edf2f7; margin: 0; padding: 0; width: 100%;">
<tr>
<td align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table class="content" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; margin: 0; padding: 0; width: 100%;">
<tr>
<td class="header" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; padding: 25px 0; text-align: center;">
<a href="https://phpvms7.argavirtual.com" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; color: #3d4852; font-size: 19px; font-weight: bold; text-decoration: none; display: inline-block;">
phpvms7
</a>
</td>
</tr>

<!-- Email Body -->
<tr>
<td class="body" width="100%" cellpadding="0" cellspacing="0" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; background-color: #edf2f7; border-bottom: 1px solid #edf2f7; border-top: 1px solid #edf2f7; margin: 0; padding: 0; width: 100%;">
<table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 570px; background-color: #ffffff; border-color: #e8e5ef; border-radius: 2px; border-width: 1px; box-shadow: 0 2px 0 rgba(0, 0, 150, 0.025), 2px 4px 0 rgba(0, 0, 150, 0.015); margin: 0 auto; padding: 0; width: 570px;">
<!-- Body content -->
<tr>
<td class="content-cell" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; max-width: 100vw; padding: 32px;">
<h1 style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; color: #3d4852; font-size: 18px; font-weight: bold; margin-top: 0; text-align: left;">PIREP Accepted!</h1>
<p style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; font-size: 16px; line-height: 1.5em; margin-top: 0; text-align: left;">Your PIREP has been accepted</p>
  <table class="action" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; margin: 30px auto; padding: 0; text-align: center; width: 100%;">
<tr>
<td align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<tr>
<td align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<tr>
<td style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<a href="https://phpvms7.argavirtual.com/pireps/zA3YvLpkVAKQaPgM" class="button button-primary" target="_blank" rel="noopener" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -webkit-text-size-adjust: none; border-radius: 4px; color: #fff; display: inline-block; overflow: hidden; text-decoration: none; background-color: #2d3748; border-bottom: 8px solid #2d3748; border-left: 18px solid #2d3748; border-right: 18px solid #2d3748; border-top: 8px solid #2d3748;">View PIREP</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; font-size: 16px; line-height: 1.5em; margin-top: 0; text-align: left;">Thanks,<br>
phpvms7</p>



</td>
</tr>
</table>
</td>
</tr>

<tr>
<td style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 570px; margin: 0 auto; padding: 0; text-align: center; width: 570px;">
<tr>
<td class="content-cell" align="center" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; max-width: 100vw; padding: 32px;">
<p style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; line-height: 1.5em; margin-top: 0; color: #b0adc5; font-size: 12px; text-align: center;">© 2022 phpvms7. All rights reserved.</p>

</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

[phpvms7](https://phpvms7.argavirtual.com)

# PIREP Accepted!

  Your PIREP has been accepted

  View PIREP: https://phpvms7.argavirtual.com/pireps/zA3YvLpkVAKQaPgM

  Thanks,
  phpvms7

© 2022 phpvms7. All rights reserved.
  
[2022-02-18 15:19:34] production.INFO: Received PIREP accepted event [{"App\\Events\\PirepAccepted":{"pirep":{"id":"zA3YvLpkVAKQaPgM","user_id":1,"airline_id":1,"aircraft_id":1,"flight_id":null,"flight_number":"8541","route_code":null,"route_leg":null,"flight_type":"J","dpt_airport_id":"LEMD","arr_airport_id":"LIRF","alt_airport_id":null,"level":30000,"distance":720.0,"planned_distance":null,"flight_time":130,"planned_flight_time":null,"zfw":null,"block_fuel":50000.0,"fuel_used":41465.0,"landing_rate":null,"score":null,"route":"","notes":null,"source":0,"source_name":null,"state":2,"status":"ONB","submitted_at":"2022-02-18T15:19:16.000000Z","block_off_time":"2022-02-18T13:09:16.000000Z","block_on_time":"2022-02-18T15:19:16.000000Z","created_at":"2022-02-18T15:19:16.000000Z","updated_at":"2022-02-18T15:19:34.000000Z","user":{"id":1,"pilot_id":187,"airline_id":1,"rank_id":2,"country":"es","home_airport_id":"LEMD","curr_airport_id":"LIRF","last_pirep_id":"zA3YvLpkVAKQaPgM","flights":3,"flight_time":275,"transfer_time":240,"avatar":null,"timezone":"Europe/Madrid","status":0,"state":1,"toc_accepted":null,"opt_in":true,"active":null,"created_at":"2021-09-26T13:29:34.000000Z","updated_at":"2022-02-18T15:19:34.000000Z","deleted_at":null,"journal":{"id":3,"ledger_id":null,"type":1,"balance":{"money":{"amount":1700,"value":17.0,"currency":{"EUR":{"name":"Euro","code":978,"rate":1,"precision":2,"subunit":100,"symbol":"€","symbol_first":true,"decimal_mark":",","thousands_separator":".","prefix":"€","suffix":""}}},"subunit_amount":null},"currency":"EUR","morphed_type":"App\\Models\\User","morphed_id":1,"created_at":"2021-09-26T13:29:34.000000Z","updated_at":"2022-02-18T15:13:38.000000Z"},"rank":{"id":2,"name":"Piloto Privado","image_url":"https://argavirtual.com/lib/images/ranks/capitan.jpg","hours":5,"acars_base_pay_rate":"0.00","manual_base_pay_rate":"0.00","auto_approve_acars":null,"auto_approve_manual":null,"auto_promote":true,"auto_approve_above_score":0,"auto_approve_score":null,"created_at":"2021-09-26T13:45:49.000000Z","updated_at":"2022-02-17T18:31:22.000000Z"}},"aircraft":{"id":1,"subfleet_id":1,"icao":"B738","iata":"738","airport_id":"LIRF","hub_id":"LEMD","landing_time":"2022-02-18T15:19:34.000000Z","name":"Gran Capitán","registration":"EC-ZAA","hex_code":"306b4189","mtow":174200.0,"zfw":138300.0,"fuel_onboard":"8535.00","flight_time":130.0,"status":"A","state":0,"created_at":"2021-09-26T14:39:37.000000Z","updated_at":"2022-02-18T15:19:34.000000Z","subfleet":{"id":1,"airline_id":1,"hub_id":"LEMD","type":"B738","simbrief_type":"B738","name":"B738 CFM56-7B26 ECO","cost_block_hour":170.0,"cost_delay_minute":75.2699999999999960209606797434389591217041015625,"fuel_type":1,"ground_handling_multiplier":120.0,"cargo_capacity":null,"fuel_capacity":null,"gross_weight":null,"created_at":"2021-09-26T14:22:05.000000Z","updated_at":"2022-02-17T22:05:45.000000Z","fares":[{"id":1,"code":"Y","name":"Economy","price":100.0,"cost":25.0,"capacity":162,"type":0,"notes":"Fijar precio en flights (vuelo), capacidad en fleet (subflota) y coste Fijo por categoria","active":true,"created_at":"2020-06-07T18:56:59.000000Z","updated_at":"2022-02-17T17:54:05.000000Z","count":160,"pivot":{"subfleet_id":1,"fare_id":1,"price":null,"cost":null,"capacity":"162"}}]}},"airline":{"id":1,"icao":"ARV","iata":"RG","name":"Argavirtual","country":"es","logo":"https://argavirtual.com/images/LOGO_grande.png","active":true,"total_flights":0,"total_time":0,"created_at":"2021-09-26T13:29:34.000000Z","updated_at":"2021-09-26T13:46:58.000000Z","journal":{"id":1,"ledger_id":null,"type":0,"balance":{"money":{"amount":-526105200,"value":-5261052.0,"currency":{"EUR":{"name":"Euro","code":978,"rate":1,"precision":2,"subunit":100,"symbol":"€","symbol_first":true,"decimal_mark":",","thousands_separator":".","prefix":"€","suffix":""}}},"subunit_amount":null},"currency":"EUR","morphed_type":"App\\Models\\Airline","morphed_id":1,"created_at":"2021-09-26T13:29:34.000000Z","updated_at":"2022-02-18T15:19:34.000000Z"}},"dpt_airport":{"id":"LEMD","iata":"MAD","icao":"LEMD","name":"Adolfo Suárez Madrid–Barajas Airport","location":"Madrid","country":"ES","timezone":"Europe/Madrid","hub":true,"lat":40.4719300000000004047251422889530658721923828125,"lon":-3.5626400000000000289901436190120875835418701171875,"ground_handling_cost":140.960000000000007958078640513122081756591796875,"fuel_100ll_cost":1.2600000000000000088817841970012523233890533447265625,"fuel_jeta_cost":0.64000000000000001332267629550187848508358001708984375,"fuel_mogas_cost":1.3000000000000000444089209850062616169452667236328125},"flight":null,"arr_airport":{"id":"LIRF","iata":"FCO","icao":"LIRF","name":"Leonardo da Vinci–Fiumicino Airport","location":"Rome","country":"IT","timezone":"Europe/Rome","hub":false,"lat":41.8002800000000007685230229981243610382080078125,"lon":12.2388899999999996026645021629519760608673095703125,"ground_handling_cost":200.0,"fuel_100ll_cost":null,"fuel_jeta_cost":0.68000000000000004884981308350688777863979339599609375,"fuel_mogas_cost":null}}}}] 

avs-code avatar Feb 18 '22 15:02 avs-code