• Welcome, Guest. Please login.
 
September 16, 2019, 10:17:56 am

News:

Welcome to the SQLitening support forums!


Recent posts

Pages1 2 3 ... 10
1
Hello Cj,

The management of the hotel don't allow guests to owe the hotel except guests that are registered debtors. They have a mechanism is place to get their money from the debtors.

They are trying to prevent guests that are in the habit of delaying their exit when their stay has expired. The feature still doesn't make sense to me.

In the meantime I decided to only display guests that their DepartureDate < Date$, without deleting any records.
2
You've got Questions? We've got Answers! / Re: Is Auto Checkout Guests Ca...
Last post by cj - September 09, 2019, 06:52:15 pm
Sounds like they owe another day or need to be evicted.
I think they would automatically be charged another day.
or
I suppose they could have left without checking out.
But if they come back would be a real problem if they still have a key.
3
>>What is auto checkout?

Good question. A client requested for it.

>>Doesn't someone have to pay the bill and hand in a room key?

>>I have tried talking the client out of it, but he wouldn't bulge. He says making the room automatically available after date and time has expired would make the workers at the front office forcefully make the room available physical. His reason doesn't really sit well with me.

4
You've got Questions? We've got Answers! / Re: Is Auto Checkout Guests Ca...
Last post by cj - September 09, 2019, 04:42:28 pm
What is auto checkout?
Doesn't someone have to pay the bill and hand in a room key?
5
Getting the sBillNo or sRoomNo is the issue now.

If I was executing the code under MLG Notification or Timer I can get both the sBillNo and sRoomNo values

I need to look at using it under MLG or Listview.
6
You've got Questions? We've got Answers! / Re: Is Auto Checkout Guests Ca...
Last post by cj - September 09, 2019, 12:53:19 pm
If you have the room number you probably can get the bill number.
If you have the bill number you might not need the room number.

I
LOCAL sRoomNo AS STRING
LOCAL sBillNo AS STRING
LOCAL ecode   AS LONG
ecode = AutoCheckOutGuests(sRoomNo, sBillNo)
7
>>If you use all strings then passing strings is fine.

The were all defined as string

Function AutoCheckOutGuests(sRoomNo As String, sBillNo As String) As String ?
8
You've got Questions? We've got Answers! / Re: Is Auto Checkout Guests Ca...
Last post by cj - September 09, 2019, 11:56:32 am
Yes
Function AutoCheckOutGuests(ByVal roomno As Long, ByVal billno As Long) As Long

BYVAL not required unless the value might be changed and caller needs original number.
If you use all strings then passing strings is fine.
9
>>I think the unique billno should be used instead of recordno.

Yeah the BillNo is more reliable

>>Everything should be in a transaction.

Yes

>>I would think knowing the roomno or billno would have to be passed to the function.

Like this? Function AutoCheckOutGuests(ByVal roomno As Long, ByVal billno As Long) As Long

>>I don't see any need for the CASE statement.

Serves a good purpose here. Responsible for triggering the statements.
10
You've got Questions? We've got Answers! / Re: Is Auto Checkout Guests Ca...
Last post by cj - September 09, 2019, 11:22:24 am
I think the unique billno should be used instead of recordno.
Everything should be in a transaction.
I would think knowing the roomno or billno would have to be passed to the function.
I don't see any need for the CASE statement.
Pages1 2 3 ... 10