fix some bugs 5
This commit is contained in:
@@ -476,8 +476,12 @@ class WalletController extends Controller
|
||||
|
||||
$records = Transaction::with([
|
||||
'customer',
|
||||
'wallet.product:id,title,metal_id',
|
||||
'product:id,title,metal_id,group_type,unit,amount,trade_by_quantity,direct_price',
|
||||
'wallet.product' => static function ($q) {
|
||||
$q->withTrashed()->select(['id', 'title', 'metal_id', 'group_type', 'unit', 'amount', 'trade_by_quantity', 'direct_price']);
|
||||
},
|
||||
'product' => static function ($q) {
|
||||
$q->withTrashed()->select(['id', 'title', 'metal_id', 'group_type', 'unit', 'amount', 'trade_by_quantity', 'direct_price']);
|
||||
},
|
||||
])->whereNull('fund_id');
|
||||
TableEngine::create($records, $request->all())
|
||||
->initSearch(['order_id', 'customer.name'])
|
||||
|
||||
Reference in New Issue
Block a user