added gholak

This commit is contained in:
2026-08-01 17:30:14 +03:30
parent 9642e603e7
commit eaff9dead2
12 changed files with 538 additions and 75 deletions
@@ -145,7 +145,16 @@ class WalletController extends Controller
},
'wallet.product',
'product',
])->whereIn('wallet', $walletIds)->whereNull('fund_id');
])->whereIn('wallet', $walletIds);
// جدول عمومی تراکنش‌ها: جابه‌جایی قلک را قاطی نکند؛ برای کیف قلک همهٔ ردیف‌ها بیاید
$includesFundWallet = Wallet::query()
->whereIn('id', $walletIds)
->whereNotNull('fund_id')
->exists();
if (! $includesFundWallet) {
$records->whereNull('fund_id');
}
TableEngine::create($records, $request->all())
->initSearch(['customer.name'])