Main Cashbox only update for 'Cash' payment type

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

Moderator: marco

Post Reply
Geeboy
Posts: 1
Joined: Fri Apr 05, 2019 8:29 am

Main Cashbox only update for 'Cash' payment type

Post by Geeboy »

Could you let me know where I could change the code so that the main cashbox is only added to if a reservation is paid by 'Cash'.
I currently have two payment types 'Cash' and 'Card'
Thanks in advance,
Steve
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Re: Main Cashbox only update for 'Cash' payment type

Post by marco »

Hello Steve,
the payment is inserted in a cashbox (if a user different from administrator has a corresponding privilege) with function "esegui_modifiche_prenotazione" in includes/funzioni_mod_prenota.php file. It is done almost at the end of the function, with "insert into $tablecosti (idcosti,..." query.

Regards,
Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
Post Reply