Invoice BUG - Creating and Grouping

Post here if you think you have found a bug in hoteldruid or error in its documentation.

Moderator: marco

Post Reply
Posts: 2
Joined: Sat Dec 12, 2015 10:09 am

Invoice BUG - Creating and Grouping

Post by sli720 » Thu Apr 07, 2016 8:47 am

I have a strange problem. It suddenly occured in the production system maybe after the update to 2.1.4. So I've tried to reconstruct the problem in a fresh installation of hoteldruid 2.1.4 on my laptop and it's the same there:

I have two bookings inserted as the same guest. If I create a bill for only one booking everything is working. But if I create it with both bookings I suddenly get I bill only with extras and total prices. There is no entry with "stay from..." anymore.

And another strange thing is that I can't create a correct bill via bookings overview also with only one booking. I always get the bill without "stay from..." item. I have to go into the booking and create the bill there.

Preview: ... xgLbe1b0cc

Please help!

Posts: 1257
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Re: Invoice BUG - Creating and Grouping

Post by marco » Mon Feb 13, 2017 3:02 pm

this only happens when you don't set taxes for your rates. Anyway you can fix it modifying the file "visualizza_contratto.php", search for the line:

Code: Select all

if (strcmp(risul_query($dati_prenota,0,'tasseperc'),"")) ${"percentuale_tasse_tariffa_".$num1} = risul_query($dati_prenota,0,'tasseperc');
and just after it add this line:

Code: Select all

else ${"percentuale_tasse_tariffa_".$num1} = 0;
This fix will be included in next version (should be 2.2.1).

Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:

Post Reply