fix lelong conflicts
This commit is contained in:
@@ -238,18 +238,19 @@ class LelongController extends Controller
|
||||
$tarikhbaru = $request->mula;
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
$bakilelong = Lelong::on($cawangan['mysql'])
|
||||
->where('trkhtuntut','>=',$request->mula)
|
||||
->where('trkhtuntut','<=',$request->hingga)
|
||||
->where('baki','>=',0)
|
||||
->sum('baki');
|
||||
|
||||
$bakilelong = Lelong::on($cawangan['mysql'])
|
||||
->where('trkhtuntut','>=',$request->mula)
|
||||
->where('trkhtuntut','<=',$request->hingga)
|
||||
->where('baki','>=',0)
|
||||
->sum('baki');
|
||||
|
||||
$rugilelong = Lelong::on($cawangan['mysql'])
|
||||
->where('trkhtuntut','>=',$request->mula)
|
||||
->where('trkhtuntut','<=',$request->hingga)
|
||||
->where('baki','<',0)
|
||||
->sum('baki');
|
||||
|
||||
|
||||
$rugitotal = $rugilelong;
|
||||
|
||||
$arraylelong = ['bakilelong' => $bakilelong, 'rugilelong' => $rugitotal];
|
||||
|
||||
@@ -164,6 +164,8 @@ class TebusController extends Controller
|
||||
|
||||
public function getMoratorium(){
|
||||
$bln_mora = Moratorium::first();
|
||||
|
||||
return response()->json($bln_mora);
|
||||
}
|
||||
|
||||
public function updateMoratorium(Request $request){
|
||||
|
||||
Reference in New Issue
Block a user