I'm looking for a willing friend to edit Daniel Garcia's Tplann class.
I tried to communicate with Daniel Garcia but I couldn't
I also asked Linares to help me communicate with Daniel but he never even answered me via googletalk
I have two serious problems
1) In my program I have to manage the daily newspapers, that is, a customer can rent the service for a single day:
when the reservation is for a day only on the grid, the reservation shows me badly,
if I move the mouse over and try to open the dialog of modification the procedure changes the booking period for example if the reservation is from 01/03/2020 to 01/03/2020
the procedure changes it from 29/02/2020 to 01/03/2020 or from 01/03/2020 to 02/03/2020 by swiping the entire reservations archive.
I also tried not to view the dailies but I couldn't
2) as shown in the figure although there is already a reservation from 01/03/2020 to 02/03/2020 (blue box)
with the mouse the user can select a reservation from 29/02/2020 to 04/03 / 2020 (gray box and dialog).
How is this possible? the procedure could not accept the reservation in that period because the service is already busy from 01/03/2020 to 02/03/2020.
So how do you fix this mess?
serious problems on TPlann
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
serious problems on TPlann
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: serious problems on TPlann
For the first I have not solved anything,
someone suggested that the tPlann class was born for a hotel situation (I also ask Otto for help)
that is, a room is occupied on a day x until the night of the next day, but if in the fields
RE> CHECK_IN
RE> CHECK_OUT
I enter 01-03-2020 and 02/03/2020
I always have a room occupied on day 02/03, but in reality the customer leaves the room on the morning of March 2 because the customer stays only one night.
but when I go to count the days
nDays: = (RE-> CHECK_OUT - RE-> CHECK_IN)
the days are 2 and not 1
I can try to set
nDays: = (RE-> CHECK_OUT - RE-> CHECK_IN) -1
but then I have a bad reserach if I must check if the rooms is free on an Interval of dates
the second problem I solved with a little function to see if the service is busy at that time, not allowing the new 'insertion.
someone suggested that the tPlann class was born for a hotel situation (I also ask Otto for help)
that is, a room is occupied on a day x until the night of the next day, but if in the fields
RE> CHECK_IN
RE> CHECK_OUT
I enter 01-03-2020 and 02/03/2020
I always have a room occupied on day 02/03, but in reality the customer leaves the room on the morning of March 2 because the customer stays only one night.
but when I go to count the days
nDays: = (RE-> CHECK_OUT - RE-> CHECK_IN)
the days are 2 and not 1
I can try to set
nDays: = (RE-> CHECK_OUT - RE-> CHECK_IN) -1
but then I have a bad reserach if I must check if the rooms is free on an Interval of dates
the second problem I solved with a little function to see if the service is busy at that time, not allowing the new 'insertion.
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC