+
+
Room Management
+ }
+ onClick={() => {
+ setEditingRoom(null);
+ form.resetFields();
+ setIsModalVisible(true);
+ }}
+ >
+ Add New Room
+
+
+
+
+
+ {/* Add/Edit Room Modal */}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Online Travel Agency Rates
+
+
+
+
+ `Rp ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')}
+ parser={value => value.replace(/Rp\s?|(,*)/g, '')}
+ />
+
+
+
+
+ `Rp ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')}
+ parser={value => value.replace(/Rp\s?|(,*)/g, '')}
+ />
+
+
+
+
+
+
+
+ `Rp ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')}
+ parser={value => value.replace(/Rp\s?|(,*)/g, '')}
+ />
+
+
+
+
+ `Rp ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')}
+ parser={value => value.replace(/Rp\s?|(,*)/g, '')}
+ />
+
+
+
+
+
+ `Rp ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')}
+ parser={value => value.replace(/Rp\s?|(,*)/g, '')}
+ />
+
+
+
+
+
+
+
+
+
+ {/* View Room Details Modal */}
+
+ Close
+
+ ]}
+ width={700}
+ >
+ {viewingRoom && (
+
+
+
+ Room Number:
+ {viewingRoom.no_kamar}
+
+
+ Room Type:
+ {viewingRoom.tp_kamar}
+
+
+
+
+ Status:
+
+ {getStatusText(viewingRoom.status)}
+
+
+
+ Level:
+ {viewingRoom.lvl}
+
+
+
+
+ Beds:
+ {viewingRoom.total_bed} ({viewingRoom.no_bed})
+
+
+ Card Type:
+ {viewingRoom.jns_kartu}
+
+
+
+
+ Is Detail:
+ {viewingRoom.isdetail === '1' ? 'Yes' : 'No'}
+
+
+ Is Occupied:
+ {viewingRoom.is_isi === '1' ? 'Yes' : 'No'}
+
+
+
+
+ Description:
+ {viewingRoom.diskripsi}
+
+
+
+
Rates Information
+
+
+
+ Base Tariff:
+ Rp {viewingRoom.base_tarif?.toLocaleString('id-ID')}
+
+
+ Final Tariff:
+ Rp {viewingRoom.tarif?.toLocaleString('id-ID')}
+
+
+
+
+ Tax:
+ Rp {viewingRoom.tax?.toLocaleString('id-ID')}
+
+
+ Service:
+ Rp {viewingRoom.service?.toLocaleString('id-ID')}
+
+
+
+
Online Travel Agency Rates
+
+
+
+ Traveloka:
+ Rp {viewingRoom.tarif_traveloka?.toLocaleString('id-ID')}
+
+
+ Tiket.com:
+ Rp {viewingRoom.tarif_tiket_com?.toLocaleString('id-ID')}
+
+
+
+
+ Pegipegi:
+ Rp {viewingRoom.tarif_pegi_pegi?.toLocaleString('id-ID')}
+
+
+ Booking.com:
+ Rp {viewingRoom.tarif_booking_com?.toLocaleString('id-ID')}
+
+
+
+
+ Phone Rate:
+ Rp {viewingRoom.tarif_phone?.toLocaleString('id-ID')}
+
+
+
+
Audit Information
+
+
+
+ Created:
+ {viewingRoom.dt_ins} by {viewingRoom.usr_ins}
+
+
+ Last Updated:
+ {viewingRoom.dt_upd} by {viewingRoom.usr_upd}
+
+
+
+ )}
+
+
+ );
+};
+
+export default RoomManagement;
\ No newline at end of file