billing field mod
Posted: Mon Feb 26, 2007 7:30 am
hello,
i've got a new request to add a billing feature that has me going in circles. people doing the scheduling now want to be able to charge different rates for using more than one resource for an event. for instance we have an event running for 13 days and will be using rooms 168 and room 253.
room 168- 9 days @ $15
room 253- 4 days @ $25
thanks to help from john sindelar, i've been able to add a billing field to our cc calendar with the following-
first get the total number of days for an event:
if (AppointmentsDaily::PrimeApptIDX = AppointmentsDailyRepeating::PrimeApptIDX ; count ( AppointmentsDailyRepeating::PrimeApptIDX ) ; 0 )
then calc the billing total:
Let ( [
Hours = ApptHours ;
days = totaldays
];
(Int(days * ApptDailyRate + miscellaneous)))
i would suggest simply making seperate reservations but the people doing scheduling want to be able to this all in one reservation by command clicking to select several resources to be used for the event and to submit a single invoice. if you have any suggestions or could consult on this, please let me know.
richb
i've got a new request to add a billing feature that has me going in circles. people doing the scheduling now want to be able to charge different rates for using more than one resource for an event. for instance we have an event running for 13 days and will be using rooms 168 and room 253.
room 168- 9 days @ $15
room 253- 4 days @ $25
thanks to help from john sindelar, i've been able to add a billing field to our cc calendar with the following-
first get the total number of days for an event:
if (AppointmentsDaily::PrimeApptIDX = AppointmentsDailyRepeating::PrimeApptIDX ; count ( AppointmentsDailyRepeating::PrimeApptIDX ) ; 0 )
then calc the billing total:
Let ( [
Hours = ApptHours ;
days = totaldays
];
(Int(days * ApptDailyRate + miscellaneous)))
i would suggest simply making seperate reservations but the people doing scheduling want to be able to this all in one reservation by command clicking to select several resources to be used for the event and to submit a single invoice. if you have any suggestions or could consult on this, please let me know.
richb