Invoice Templates - Advanced Tags
Advanced tags are used to show items in certain situations. Here is a description of each advanced tag: <!--item--> and <!--/item--> The item tags are used to repeat the code between the tags for each Debt/Credit in the Invoice. For example:
<!--item--><!--itemname--> : <!--itemamount--> <br><!--/item-->
could return
Consulting : $45.00 Hotel : $69.95 Web Programming : $219.54
<!--taxes--> and <!--/taxes--> These tags are used to repeat the total for each tax. Anything between these tags will be repeated for each tax that appears on the Invoice. You would use taxamount and taxname inside of these tags. <!--received--> and <!--/received--> Anything between these tags will only appear if the Invoice has payments attached. If a Client makes a partial payment to an Invoice, and you'd like to display that, you could use the received tags along with <!--invoiceamountreceived-->. <!--ifpaid--> and <!--/ifpaid--> Anything between these tags will only appear on a generated invoice if the Invoice is marked as paid. This could be used to display a common message on paid Invoices, without the need to manually change Invoice Templates when the Invoice has been paid. <!--ifnotpaid--> and <!--/ifnotpaid--> These tags are the opposite of the ifpaid tags. <!--hourly--> and <!--/hourly--> These tags can be placed inside of the <!--item--> and <!--/item--> tags to enter data to the Invoice only for hourly items. Anything between these tags will not appear unless the “item” tag they are within is an hourly item. They can be used with the item hours variable, for example. <!--mylogo--> If you have a logo specified in the Preferences Window > My Info Panel, it will insert that Image into your invoice at this location (HTML invoices only).