merge goldali with abshode_khanegi branch

This commit is contained in:
2026-06-04 12:18:53 +03:30
parent aea3cbbc6e
commit a9815fa717
28 changed files with 1359 additions and 379 deletions
+6
View File
@@ -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','سند ورود طلا');
}