updated untuk push 28-9-2022

This commit is contained in:
hafifierahman
2022-09-28 02:43:40 +08:00
parent 9f81fcdac6
commit 6045853f52
6 changed files with 162 additions and 15 deletions
+15
View File
@@ -3,6 +3,8 @@
namespace App\Http\Controllers;
use App\WTDDraft;
use App\TuntutBaki;
use App\Cawangan;
use Illuminate\Http\Request;
use Carbon\Carbon;
@@ -19,4 +21,17 @@ class WTDController extends Controller
return 'no';
}
}
public function getCustomerWTD(Request $request){
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$request->kodcaw)->first();
$tuntutbaki = TuntutBaki::on($cawangan['mysql'])
->select('teller')
->where('norujukan',$request->norujukan)
->get();
return response()->json($tuntutbaki);
}
}