fixed عدهف

This commit is contained in:
2026-06-22 21:29:25 +03:30
parent 6ebd02beb8
commit e8d17c1c04
4 changed files with 136 additions and 20 deletions
@@ -43,7 +43,16 @@ class Transaction extends Model
}
public function product()
{
return $this->belongsTo('App\Models\Product','product_id')->select(['id','title','group_type']);
return $this->belongsTo('App\Models\Product', 'product_id')->select([
'id',
'title',
'group_type',
'unit',
'direct_price',
'amount',
'trade_by_quantity',
'metal_id',
]);
}
public function order()
{
@@ -22,7 +22,13 @@ class Wallet extends Model
}
public function Product()
{
return $this->belongsTo('App\Models\Product','product_id');
return $this->belongsTo('App\Models\Product', 'product_id');
}
/** @alias Product */
public function product()
{
return $this->Product();
}
/** کیف اصلی مشتری — بدون fund و بدون product */