Page 1 of 1

occupancy rate

Posted: Fri Dec 09, 2005 2:45 pm
by stef
Hello Marco,

Do you think it could be easy to display the occupancy rate monthly?
I would love to add this feature, it could be very helpful.

thank you again for that script

stef

Posted: Sat Dec 10, 2005 12:33 am
by marco
Hi Stef,
what do you mean exactly? You can already display rates with grouped days clicking on the name of the rate at the top of the rates table.

Marco

Posted: Mon Dec 12, 2005 2:23 pm
by stef
hey marco,

thank you for replying.

I would just need to know the occupancy rate. I mean if, for instance, I have 10 rooms based on a month, I have 300 nights to sell, right?
and if I only sold 30 for this current month that means my occupancy rate is 10% !

I hope it is more clear now. :)

thank you again for your kind assistance.

Stef

Posted: Tue Dec 13, 2005 3:22 pm
by marco
Ok, now I understand... it shouldn't be very difficult to do. For example in the month table tabella.php, inside the 2 for loops (1 for apartments and 1 for periods, called settimane), count how many periods are occupied and calculate the occupancy rate at the end. Consider that when a reservation longer than 1 period is found the periods loop jumps that number of periods.

Marco