V1rus Private
User / IP
:
216.73.217.108
Host / Server
:
190.92.174.125 / aerosofthealthcare.com
System
:
Linux s3739.bom1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
home
/
aerosoft
/
www
/
pos
/
app
/
Models
/
Viewing: Purchase.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Purchase extends Model { protected $dates = ['deleted_at']; protected $fillable = [ 'date', 'Ref', 'provider_id', 'warehouse_id', 'GrandTotal', 'discount', 'shipping', 'statut', 'notes', 'TaxNet', 'tax_rate', 'paid_amount', 'payment_statut', 'created_at', 'updated_at', 'deleted_at', ]; protected $casts = [ 'provider_id' => 'integer', 'warehouse_id' => 'integer', 'GrandTotal' => 'double', 'discount' => 'double', 'shipping' => 'double', 'TaxNet' => 'double', 'tax_rate' => 'double', 'paid_amount' => 'double', ]; public function details() { return $this->hasMany('App\Models\PurchaseDetail'); } public function provider() { return $this->belongsTo('App\Models\Provider'); } public function facture() { return $this->hasMany('App\Models\PaymentPurchase'); } public function warehouse() { return $this->belongsTo('App\Models\Warehouse'); } public function user() { return $this->belongsTo('App\Models\User'); } }
Coded With 💗 by
HanzOFC