migrate to gtea from bistbucket

This commit is contained in:
2026-03-15 17:08:23 +07:00
commit 129ca2260c
3716 changed files with 566316 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PurchaseReturnDetail extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'business_id',
'purchase_return_id',
'purchase_detail_id',
'return_amount',
'return_qty',
];
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = false;
public function purchaseReturn()
{
return $this->belongsTo(PurchaseReturn::class, 'purchase_return_id');
}
public function purchaseDetail()
{
return $this->belongsTo(PurchaseDetails::class, 'purchase_detail_id');
}
protected $casts = [
'business_id' => 'integer',
'purchase_return_id' => 'integer',
'purchase_detail_id' => 'integer',
'return_amount' => 'double',
'return_qty' => 'double',
];
}