serious problems on TPlann

serious problems on TPlann

Postby Silvio.Falconi » Fri Mar 27, 2020 11:34 am

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

Image


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?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: serious problems on TPlann

Postby Silvio.Falconi » Fri Mar 27, 2020 8:17 pm

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.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 65 guests