Merge branch 'Feature#AnsuranResit' into 'master'
fix laporan controller See merge request online-sistem1/api_arrahn!184
This commit is contained in:
@@ -92,6 +92,13 @@ class LaporanController extends Controller
|
||||
$gadaiDataKaunter = Gadai::on($cawangan['mysql'])->whereIn('norujukan',$total_keuntunganansuran_data_kaunter)->whereNotNull('hargajualan')->pluck('norujukan');
|
||||
|
||||
$keuntunganansuran_kaunter_query = TransaksiKeuntungan::on('mysql7')
|
||||
->leftJoin('transaction as trans', function($join)
|
||||
{
|
||||
$join->on('transaksi_keuntungan.norujukan', '=', 'trans.norujukan');
|
||||
$join->on('transaksi_keuntungan.tarikh_bayaran', '=', 'trans.created_at');
|
||||
})
|
||||
->where('trans.teller','<>','Online')
|
||||
->where('trans.trans_type','=','A')
|
||||
->whereIn('norujukan',$gadaiDataKaunter)
|
||||
->whereDate('tarikh_bayaran','=',$request->tarikh);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user