Planyo Help :: Configuration page: Corrective invoice template

The following settings are accessible through the backend configuration page "Corrective invoice template" located at https://api.planyo.com/corrective-invoice-template.php

Option grouping "Outer template (Corrective invoice)"

On this page you can define the layout of a corrective invoice. Corrective invoice lists items that were added or removed from a reservation since creating a parent invoice or the previous corrective invoice.
Corrective invoice
Verify code
The global template must contain the $(products_added) and $(products_removed) tags, which is where specific added and removed reservation items will be listed. Other tags you can use:$(sequential_number) -- your site's sequential number of the corrective invoice, $(invoice_id) -- ID of the invoice in our system, $(year_sequential_number) -- your site's sequential number of the corrective invoice in a given year, $(month_sequential_number) -- your site's sequential number of the corrective invoice in a given month, $(financial_year_sequential_number) - your site's sequential number of the invoice in the financial year (as set in Invoice settings)$(invoice_creation_date), $(invoice_creation_date_formatted) - the invoice creation date , as a number without separators and formatted as per site settings, e.g. 20160105 and 2016-01-05,$(invoice_creation_time), $(invoice_creation_time_formatted) - the invoice creation time, as a number without separators and formatted as per site settings, e.g. 1245 and 12:45,$(parent_sequential_number) -- sequential number of the parent invoice for which the corrective invoice is created, $(year_parent_sequential_number) -- sequential number of the parent invoice in a given year for which the corrective invoice is created, $(month_parent_sequential_number) -- sequential number of the parent invoice in a given month for which the corrective invoice is created, $(financial_year_parent_sequential_number) -- sequential number of the parent invoice in the financial year for which the corrective invoice is created, $(products_added_count) -- number of products that were added to the reservation since last parent or corrective invoice, $(products_removed_count) -- number of products that were removed from the reservation since last parent or corrective invoice,$(previous_invoice_products_count) -- number of products in the last parent or corrective invoice,$(previous_invoice_products) -- lists items of the last parent or corrective invoice,$(currency) -- currency of the corrective invoice, $(total_price_net) -- total price (without tax), $(total_price_gross) -- total price with tax,$(total_tax) -- amount of tax, $(amount_paid) -- amount paid until invoice generation, $(amount_paid_until_now) -- amount paid until this moment (invoice presentation), $(amount_owed) -- amount to be paid (on invoice generation), $(amount_owed_now) -- amount to be paid for this moment (invoice presentation), $(discount) -- amount of discount, $(price_no_discount) -- total amount without discount, $(total_price_to_be_paid) -- original price minus the discount applied,$(total_quantity) -- sum of all quantities in for the reservations, $(page_break) -- continue on a new page, $(tax_rate_count), $(tax_rate:x), $(tax_rate_value:x) -- these tags allow you to list all tax rates with amount. You usually use them with the $(foreach:xxx) tag, for example: $(foreach:$(tax_rate_count))Tax $(tax_rate:$(it))%:$(tax_rate_value:$(it))$(endfor)$(corrective_total_price_gross), $(corrective_total_price_net), $(corrective_total_tax) -- total price with tax, total price without tax and amount of tax, calculated only for the added and removed items listed on the corrective invoice.$(prod_total_xxx) -- Total price with tax for specified additional or custom product. When product was not at all chosen, 0 will be returned. xxx is the product name with spaces replaced by the underscore character OR it can be also product's ID, $(online_payment_surcharge_tax_rate) - Tax rate for online payment surcharge (in %)The template can also use general tags (how to use tags?). Please see the following FAQ questions for a detailed tag list:Tag playgroundConditional printing of textsUniversal tagsSite dataResource dataReservation data

Option grouping "Inner template (Item)"

Here you can choose how each individual item will be inserted into the corrective invoice (outer template). Select whether you want to show items in a table or as blocks of HTML code.
Edit as
[Possible drop-down choices: Table, Block]
 
Verify code
The item code can contain the following tags:$(item_number) -- item number on the corrective invoice (1,2,3,...), $(is_reservation_item) -- set to 1 if given item is the main reservation,$(product_name) -- name of the product / item, $(product_quantity) -- quantity, $(unit_price) -- unit price without tax,$(unit_price_gross) -- unit price with tax, $(currency) -- currency, $(product_price) -- subtotal for given item without tax,$(product_tax) -- tax paid for given product, $(tax_rate) -- tax rate, $(product_price_gross) -- subtotal for given item with tax,$(is_added_item) -- this will have the value of true for the added products and will be empty for the removed products.$(item_start_date), $(item_start_time), $(item_end_date), $(item_end_time) -- for a reservation item these will be replaced with the start and end date / time,$(rental_days), $(rental_hours), $(rental_minutes) -- for a reservation item these will be replaced with the rental duration expressed in days, hours and minutes,The template can also use general tags (how to use tags?). Please see the following FAQ questions for a detailed tag list:Tag playgroundConditional printing of textsUniversal tagsSite dataResource dataReservation data
Add header to the table
Number of columns
Edit columns
Customize style
Using the options above you can set up the look of the table that will list the items. You can add or hide the header row and choose how many columns will be shown in the table. Click the Edit columns button to enter the contents of the columns and Customize style to modify the table's CSS styles.The item code can contain the following tags:$(item_number) -- item number on the corrective invoice (1,2,3,...), $(is_reservation_item) -- set to 1 if given item is the main reservation,$(product_name) -- name of the product / item, $(product_quantity) -- quantity, $(unit_price) -- unit price without tax,$(unit_price_gross) -- unit price with tax, $(currency) -- currency, $(product_price) -- subtotal for given item without tax,$(product_tax) -- tax paid for given product, $(tax_rate) -- tax rate, $(product_price_gross) -- subtotal for given item with tax,$(is_added_item) -- this will have the value of true for the added products and will be empty for the removed products.$(item_start_date), $(item_start_time), $(item_end_date), $(item_end_time) -- for a reservation item these will be replaced with the start and end date / time,$(rental_days), $(rental_hours), $(rental_minutes) -- for a reservation item these will be replaced with the rental duration expressed in days, hours and minutes,