FIX_PAYOUT_LIST_BROKER_ID
This commit is contained in:
parent
d9e60807a9
commit
284714fc7e
@ -297,7 +297,8 @@ class PayoutController extends BaseController
|
||||
'agent_id' => $json['agent_id'],
|
||||
'invoice_date' => $json['invoice_date'],
|
||||
'invoice_amount' => $json['invoice_amount'],
|
||||
'payout_status' => 1
|
||||
'payout_status' => 1,
|
||||
'broker_id' => 1
|
||||
];
|
||||
|
||||
$invoiceId = $this->invoiceModel->insert($invoiceData);
|
||||
|
||||
@ -107,7 +107,8 @@ class InvoiceModel extends Model
|
||||
partner_agent.name as agent_name
|
||||
")
|
||||
->join('partner_agent', 'partner_invoice.agent_id = partner_agent.id')
|
||||
->where('partner_invoice.is_active', 1);
|
||||
->where('partner_invoice.is_active', 1)
|
||||
->where('partner_invoice.broker_id', 1);
|
||||
|
||||
if(!empty($agent_id)){
|
||||
$data->where('partner_invoice.agent_id', $agent_id);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user