StocksNew/Modules/SalesEntry/app/Models/SalesEntryDetail.php
Sampanna Rimal afb2c202d6 changes
2024-09-11 12:32:15 +05:45

26 lines
559 B
PHP

<?php
namespace Modules\SalesEntry\Models;
use App\Traits\StatusTrait;
use Illuminate\Database\Eloquent\Model;
use Modules\SalesEntry\Models\SalesEntry;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Modules\Supplier\Models\Supplier;
class SalesEntryDetail extends Model
{
USE StatusTrait;
protected $table = 'tbl_salesentrydetails';
protected $guarded = [];
protected $appends = ['status_name'];
public function order(): BelongsTo
{
return $this->belongsTo(SalesEntry::class);
}
}