fix some bugs 6

This commit is contained in:
2026-07-21 22:28:04 +03:30
parent 3f8c47b1fc
commit 00c51ecf01
2 changed files with 12 additions and 3 deletions
@@ -578,7 +578,9 @@ class WalletController extends Controller
$walletTableWith = [
'customer:id,name,mobile',
'fund:id,title',
'product:id,metal_id,unit,amount,group_type,trade_by_quantity,direct_price,title',
'product' => static function ($q) {
$q->withTrashed()->select(['id', 'metal_id', 'unit', 'amount', 'group_type', 'trade_by_quantity', 'direct_price', 'title']);
},
];
$sumRows = (clone $sumQuery)->with($walletTableWith)->get();