added gholak
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user