Files
kulakpos_web/app/Models/TransferProduct.php
eko54r 2fabdf8fc9
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 4m17s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
Build, Push and Deploy / deploy-staging (push) Successful in 41s
Build, Push and Deploy / deploy-production (push) Has been skipped
update perbaikan pos, return, dan report profit nlost
2026-05-14 22:19:01 +07:00

43 lines
746 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class TransferProduct extends Model
{
use HasFactory;
protected $fillable = [
'transfer_id',
'product_id',
'stock_id',
'quantity',
'unit_price',
'discount',
'tax',
'serial_numbers',
];
protected $casts = [
'serial_numbers' => 'json',
];
public function transfer()
{
return $this->belongsTo(Transfer::class);
}
public function product()
{
return $this->belongsTo(Product::class);
}
public function stock()
{
return $this->belongsTo(Stock::class, 'stock_id');
}
}