update portalAPI untuk arcc
This commit is contained in:
@@ -1542,6 +1542,10 @@ class LelongMobileController extends Controller
|
||||
$lelong = LelongBid::select('fasa', 't_lelong','hargajual','t_jual')
|
||||
->where([['norujukan', $request->norujukan]])
|
||||
->first();
|
||||
$givenDate = Carbon::createFromFormat('Y-m-d', $lelong->t_lelong);
|
||||
$lastbayar = $givenDate->subDays(3);
|
||||
|
||||
$lelong['lastbayar'] = $lastbayar->toDateString();
|
||||
return response()->json(['lelong' => $lelong]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user