merge goldali with abshode_khanegi branch
This commit is contained in:
@@ -156,6 +156,12 @@ class Product extends Model
|
||||
public function transaction(){
|
||||
return $this->hasMany(Transaction::class);
|
||||
}
|
||||
|
||||
public function limitedTransactions()
|
||||
{
|
||||
return $this->hasMany(Transaction::class)->select('id', 'gold', 'title', 'created_at', 'product_id');
|
||||
}
|
||||
|
||||
public function transactionAgentPanel(){
|
||||
return $this->hasMany(Transaction::class)->where('note','برداشت بابت فروش')->orwhere('note','واریز بابت خرید')->orwhere('note','سند ورود طلا');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user