Q277: I want to change the way the $(reservation_details) tag works

Vous êtes ici: checkin24-7 » Aide » Questions Fréquemment Posées (FAQ) » Q277: I want to change the way the $(reservation_details) tag works
You can't change the output of the $(reservation_details) tag, it's a tag which displays complex info about a reservation. You can however output the same information by using other tags from Q204. Below is an estimate which will print very similar information to the $(reservation_details) tag. You can use it as a basis for your custom output.


<table>
<tr><td>$(S_RENTALID)</td><td><a href="$(details_url)">$(reservation_id)</a></td></tr>
<tr><td>$(S_RESNAME)</td><td><a href="$(url)">$(resource)</a></td></tr>
$(if) $(total_resource_quantity) greater than 1 $(then)
<tr><td>$(S_QUANTITY)</td><td>$(quantity)</td></tr>
$(endif)
<tr><td>$(S_DURATION)</td><td>$(rental_duration)</td></tr>
<tr><td>$(S_CREDATE)</td><td>$(creation_date)</td></tr>
<tr><td>$(S_STATUS)</td><td>$(status)</td></tr>
$(if) $(price_quoted) greater than 0 $(then)
<tr><td>$(S_PRICE)</td><td>$(price_quoted)
$(if) $(discount) greater than 0 $(then)
($(S_DISCOUNT): $(discount))
$(endif)
</td></tr>
$(if) $(online_payment_surcharge) greater than 0 $(then)
<tr><td>$(S_ONLINE_SURCHARGE)</td><td>$(online_payment_surcharge)</td></tr>
$(endif)
$(if) $(amount_paid) greater than 0 $(then)
<tr><td>$(S_TOTPAID)</td><td>$(amount_paid)</td></tr>
$(endif)
$(endif)
$(if) $(coupon_used) $(then)
<tr><td>$(S_COUPON_USED)</td><td><a href="$(coupon_info_url)">$(S_COUPON)</a></td></tr>
$(endif)
$(foreach:$(custom_property_count))
<tr><td>$(custom_property_name:$(it))</td><td>$(custom_property_value:$(it))</td></tr>
$(endfor)
$(additional_products_include_hidden)
$(foreach:$(additional_product_count))
<tr><td>$(additional_product_name:$(it))</td><td>$(additional_product_price:$(it)) * $(additional_product_quantity:$(it))</td></tr>
$(endfor)
$(if) $(user_notes) $(then)
<tr><td>$(S_NOTES)</td><td>$(user_notes)</td></tr>
$(endif)
</table>