masuk balik ansuran sag lama
This commit is contained in:
@@ -77,7 +77,14 @@ class MasterServices
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function updateGadaiMarhunKaunter($kodcaw, $norujukan, HttpRequest $request){
|
public function updateGadaiMarhunKaunter($kodcaw, $norujukan, HttpRequest $request){
|
||||||
$response = $this->engine->updateGadaiMarhunKaunter($kodcaw,$norujukan,$request);
|
if($request->jeniskeuntungan == 'onepercent'){
|
||||||
|
$onepercent = new OnePercentEngine($this->cawangan);
|
||||||
|
$response = $onepercent->updateGadaiMarhunKaunter($kodcaw,$norujukan,$request);
|
||||||
|
|
||||||
|
}else{
|
||||||
|
$tawarruq = new TawarruqEngine($this->cawangan);
|
||||||
|
$response = $tawarruq->updateGadaiMarhunKaunter($kodcaw,$norujukan,$request);
|
||||||
|
}
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ namespace App\Support;
|
|||||||
|
|
||||||
use App\Cawangan;
|
use App\Cawangan;
|
||||||
use App\Services\MasterServices;
|
use App\Services\MasterServices;
|
||||||
use App\Services\Request;
|
|
||||||
use App\Support\v2\Calculation;
|
use App\Support\v2\Calculation;
|
||||||
use Illuminate\Http\Request as HttpRequest;
|
use Illuminate\Http\Request as HttpRequest;
|
||||||
use App\Support\v2\GadaiV2 as Version2Gadai;
|
use App\Support\v2\GadaiV2 as Version2Gadai;
|
||||||
@@ -166,7 +165,6 @@ class OnePercent extends MasterServices
|
|||||||
}
|
}
|
||||||
|
|
||||||
function rebetselepastawarruq($kodcaw,$norujukan){
|
function rebetselepastawarruq($kodcaw,$norujukan){
|
||||||
dd('tes');
|
|
||||||
$tebus = new Penebusan($this->kodcaw,$this->cawangan_info);
|
$tebus = new Penebusan($this->kodcaw,$this->cawangan_info);
|
||||||
$response = $tebus->rebetselepastawarruq($this->kodcaw,$norujukan);
|
$response = $tebus->rebetselepastawarruq($this->kodcaw,$norujukan);
|
||||||
|
|
||||||
@@ -206,4 +204,4 @@ class OnePercent extends MasterServices
|
|||||||
public function test(){
|
public function test(){
|
||||||
echo 'onepercent';
|
echo 'onepercent';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user