Print a bill

Discuss here how to configure hoteldruid and better use its features.

Moderator: marco

Post Reply
teeramail
Posts: 1
Joined: Mon Aug 08, 2005 12:08 am

Print a bill

Post by teeramail »

How can I print the bill for guest
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post by marco »

Hi,
I don't know if you have already read it, anyway I past hare the part of the README regarding contracts:

----------------------------------------------
INSERTION OF CONTRACTS
In the folder contr there are 18 files for various types of
contracts or other kinds of prints to be edited in order to
insert your own texts. The texts must be inserted in HTML
format in the space left between the two
quotation marks paying attention to put the symbol \ in front
of every quotation mark of type ". An example in english can
be found in the second contract. You can use predefined
variables that if left empty will be replaced by spaces to be
filled up by hand. The available variables that can be
inserted are:

Client's data:
$surname surname
$name name
$birthday birthday
$Mr '' (if male) or 's' (if female)
$nation origin nation
$city residence city
$street street
$street2 the same as $street but if it's not
defined it inserts the word street
before the spaces
$street_number street number
$postal_code postal code
$telephone telephone number
$telephone2 second telephone
$telephone3 third telephone
$fax fax number

Data of the second reference person:
$surname2, $name2, as for the first reference person
$birthday2, $Mr2

Reservation's data:
$people_num number of people
$extra_beds_num number of extra beds from the costs
$people_num_tot number of people + extra beds
$price_tot complete price
$deposit deposit
$deposit_rest complete price - deposit
$starting_date starting date
$ending_date departure date
$rate_name rate name
$rate_price price without extra costs and discount
$discount discount
$comment comment
$apartment apartment number
$apartment_list list of apartments that can be assigned
separated by commas
$paid what has been paid until now
$all_extra_costs list with all the extra costs and their
respective values
$sel_extra_cost_name name of the extra cost selected before
viewing the contract
$sel_extra_cost_value value of the extra cost selected before
viewing the contract
$today today date
$rate_tot_p, as the previous ones without final _p
$deposit_p,$paid_p, but formatted with points or commas
$deposit_rest_p, between thousands and decimals
$rate_price_p,
$discount_p,
$all_extra_costs_p,
$sel_extra_cost_value_p
--------------------------------------------------------

From version 0.5.3 you can also edit the contracts from the browser (click on contract numbers in "configure and customize" page). If you edit them from the browser you won't need to add \ before quotation marks.
For version 0.6 I plan to add many features to contracts and also a variable with tha amount of client's last payment.

Regards, Marco
gromeo
Posts: 21
Joined: Tue Jul 12, 2005 3:28 pm
Contact:

nnooooo

Post by gromeo »

just one problem, marco - the average printers use width for printing between 700 and 740 pixels - so if you modify the contracts, to reflect this - let's say, the page width will be exactly 720 pixels - that way you are shure it will be printed well, both by Internet Explorer, Mozilla and so on. Actually, Mozilla resizes everything so it fits the page, but IE have a problem when printing large html pages....
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post by marco »

I think if you don't put any table the text automatically resizes to paper width, like when you resize the browser window. I don't use internet explorer, so it may be different there. Anyway you can put a table with width 720 around the contract when you edit it.

Marco
Post Reply