HEX
Server: nginx/1.24.0
System: Linux rtfmfm 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User: neo (1001)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/wsklad/app/ExpeditionRequest.php
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * @property int $id
 * @property string $docno
 * @property string $date_doc
 * @property string $m_ordernumber
 * @property string $expedition_number
 * @property string $expedition_date
 * @property string $wish_day_of_delivery
 * @property string $order_number
 * @property string $date_order
 * @property string $f_client
 * @property string $f_receiver
 * @property string $gln
 * @property string $m_dost_number
 * @property string $place_of_discharge
 * @property float $total_leva
 * @property float $total_gross_weight
 * @property float $total_neto_weight
 * @property string $f_status
 * @property string $date_request
 * @property int $state
 * @property \Illuminate\Database\Eloquent\Collection $requestLines
 * @property \Illuminate\Database\Eloquent\Collection $expeditionRequestLineArticles
 */
class ExpeditionRequest extends Model
{
    protected $table = 'expedition_requests';

    protected $fillable = [
        'total_leva',
        'total_gross_weight',
        'total_neto_weight',
        'f_vid_merka',
        'is_dds',
        'vid_request',
        'cen_grupa',
        'cl_grupa',
        'cl_region',
        'f_client',
        'f_distributor',
        'f_finans_status',
        'f_receiver',
        'f_statia',
        'f_status',
        'f_supplier',
        'f_zveno',
        'import_from',
        'is_approve',
        'is_execute',
        'is_process',
        'is_with_price',
        'kilometers',
        'r_region',
        'sklad',
        's_region',
        'with_kol_merki',
        'with_pack',
        'date_doc',
        'docno',
        'dreg',
        'f_bulstat',
        'f_currency',
        'f_dds_id',
        'wish_day_of_delivery',
        'add_text',
        'cl_adres',
        'cl_country',
        'cl_person',
        'cl_postcode',
        'cl_tel',
        'date_dogovor',
        'date_order',
        'date_request',
        'distributor_name',
        'dogovor_name',
        'dogovor_number',
        'ecod_promotion',
        'f_adress',
        'f_client_name',
        'finance',
        'finance_name',
        'f_mol',
        'f_receiver_name',
        'f_supplier_name',
        'f_zveno_name',
        'gln',
        'm_dost_number',
        'mode_of_delivery',
        'mode_of_transport',
        'm_ordernumber',
        'n_user',
        'order_name',
        'order_number',
        'pay_condition',
        'place_of_discharge',
        'r_adres',
        'r_country',
        'request_number',
        'r_postcode',
        's_adres',
        's_country',
        's_postcode',
        'wish_day_of_charge',
        'state',
        'expedition_number',
        'expedition_number'
    ];

    protected $casts = [
        'total_leva' => 'decimal:2',
        'total_gross_weight' => 'decimal:3',
        'total_neto_weight' => 'decimal:3',
        'expedition_number' => 'string',
        'expedition_number' => 'string',
    ];



    /**
     * Връща редовете на заявката за експедиция.
     */
    public function requestLines()
    {
        return $this->hasMany(ExpeditionRequestLine::class);
    }

    /**
     * Връща всички артикули по редове за експедиционната заявка.
     */
    public function expeditionRequestLineArticles()
    {
        return $this->hasMany(ExpeditionRequestLineArticle::class);
    }
}