Adding "Due Back By" on custom receipts |
Top Previous Next |
The original sample Form templates for receipts did not include the logic to show the end-of-period text for Scheduled (hourly) reservations. For instance, this might be set for "Due back by 1PM" for a 12PM hourly period in the Schedules setup. Here is how you can correct that.
Note that this is only an issue if you use Schedules, and only if you have set the end-of-period text for each period in your schedules.
1. In the Form definition, look for the Reservations & Site Info region (Edit the main "margin" region and you should see it).
2. Locate the expression that displays the last night (or period):
DateToText(Resv:Resv_Last_Date) +
iif(ThisSchedule() = NullRecord(), "", " : " +
FieldText(Resv(),"Resv_Last_Period"))
3. Change it to:
DateToText(Resv:Resv_Last_Date) +
iif(ThisSchedule() = NullRecord(), "", " : " +
FieldText(Resv(),"Resv_Last_Period") +
iif(FieldText(LinkedRecord(Resv(), "Resv_Last_Period"),
"Perd_End") != "", " (" + FieldText(LinkedRecord(Resv(),
"Resv_Last_Period"), "Perd_End") + ")", ""))
The expression is broken into multiple lines for formatting here, but it must be continuous (no line breaks) when you enter it.
That should do it!