Rapihin setup/member/lot-parking + fitur intercom, exclude WIP controller & file sampah dari git
Kumpulan perubahan yang udah numpuk di working tree: refactor Setup (Gate/Vehicle/Member), rapihin memberin & stiker, service parking baru (ParkingUtilsServices, NetworkService), model/migration lot-parking & DHCP reservation, dan fitur baru Intercom (controller/model/migration/ view). ReportTransaksiController versi lokal ini WIP (~90%, masih didebug) - versi yang bener ada di server, jadi dikeluarin dari git (ditambahin ke .gitignore) biar gak numpuk nindihin punya server pas git pull di sana. Sekalian keluarin dump mentah tabel softseting (1.8MB, nyasar ke-commit), file .bak, dan arsip ad-hoc (api.tgz, c.zip) yang emang bukan source code. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EAJc2mrpj2cSTe4oowLPzQ
This commit is contained in:
@@ -19,16 +19,20 @@ public function parkingTimeCalc($vehicle, $times)
|
||||
Log::info("Mulai perhitungan tarif dengan durasi : " . $duration . " (Rp. " . $parkingPrice . ")");
|
||||
|
||||
// Grace Periode
|
||||
// if ($duration < $tarifVehicle->waktu_gratis) {
|
||||
// waktu_gratis kesimpen dalam MENIT (sama kayak interval/waktu2/waktu_tarif
|
||||
// di bawah), tapi $duration dalam DETIK -- makanya WAJIB dikali 60 dulu biar
|
||||
// satuannya sama, sama kayak pola interval*60/waktu2*60/waktu_tarif*60 yang
|
||||
// dipake di bagian lain fungsi ini.
|
||||
// if ($duration < $tarifVehicle->waktu_gratis * 60) {
|
||||
// Log::info("GP Rules : ");
|
||||
// return $parkingPrice;
|
||||
// } elseif (
|
||||
// $tarifVehicle->waktu_gratis !== 0 &&
|
||||
// $tarifVehicle->tarif_periode !== 0
|
||||
// $tarifVehicle->tarif_period !== 0
|
||||
// ) {
|
||||
// Log::info("GP Rules : ");
|
||||
// $parkingPrice = $parkingPrice + $tarifVehicle->tarif_period;
|
||||
// $duration = $duration - $tarifVehicle->waktu_gratis;
|
||||
// $duration = $duration - ($tarifVehicle->waktu_gratis * 60);
|
||||
// Log::info(
|
||||
// "Setelah GP : " .
|
||||
// $parkingPrice .
|
||||
|
||||
Reference in New Issue
Block a user