fix ujrah
This commit is contained in:
@@ -37,7 +37,7 @@ class OnePercent extends MasterServices
|
||||
|
||||
public function getUpahSebenar($norujukan){
|
||||
$gadai = new Version2Gadai($this->kodcaw,$this->cawangan_info);
|
||||
$response = $gadai->kiraupahOnePercent($this->kodcaw,$norujukan);
|
||||
$response = $gadai->kiraupahOnePercent($norujukan);
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
@@ -149,10 +149,16 @@ class Penebusan
|
||||
$keuntungan_semasa = $onepercentservices->getRoundedMethod($bilang_bln * $upah['onepercent']);
|
||||
$ujrah_semasa = $onepercentservices->getRoundedMethod($bilang_bln * $upah['ujrah']);
|
||||
$upahsemasa_raw = $onepercentservices->getRoundedMethod($upahsemasa_raw);
|
||||
$keuntungan_1bln = $onepercentservices->getRoundedMethod((1 * $upah['keuntungan'])+(1 * $upah['ujrah']));
|
||||
|
||||
$array_upah = ['pendapatan' => $upahsemasa_raw,
|
||||
'keuntungan' => $keuntungan_semasa,
|
||||
'ujrah' => $ujrah_semasa];
|
||||
|
||||
$array_upah =
|
||||
[
|
||||
'keuntungan_1bln' => $keuntungan_1bln,
|
||||
'pendapatan' => $upahsemasa_raw,
|
||||
'keuntungan' => $keuntungan_semasa,
|
||||
'ujrah' => $ujrah_semasa
|
||||
];
|
||||
|
||||
return $array_upah;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user