fix transaction bug
This commit is contained in:
@@ -32,7 +32,7 @@ class CustomerController extends SuperController
|
||||
// (referral_to_id در DB هست؛ بدون with فقط کد خام دیده نمیشود و UI از userInfo.referral میخواند)
|
||||
$this->with = ['referral'];
|
||||
$this->select = ['*'];
|
||||
$search=['name','mobile'];
|
||||
$search = ['name', 'mobile', 'moshtari_code', 'pargar_account_id', 'referral_id', 'n_code', 'id'];
|
||||
$this->query = Customer::with($this->with,'wallet')->where('is_archive',false)->where('type',1);
|
||||
// $this->query = Customer::where('is_archive',false)->get();
|
||||
parent::__construct(Customer::class, $this->with, $this->select, 'customer', $this->query, $search);
|
||||
|
||||
Reference in New Issue
Block a user