ⓘ This article is for small businesses who use Xero
-
Edit your advanced invoice template to change the format of any quantity, amount and date fields.
-
You can add or remove decimal places and commas, and update the combination of d, M and y codes to set the date display format.
Change the number format
The default number format for amounts and quantities in an advanced invoice template is two decimal places. To add or remove decimal places in the template, you can update the relevant field code.
You might find removing decimals useful if you deal with currencies that don’t use decimal places, such as Japanese Yen. To avoid PDF transactions showing incorrect rounding, enter transactions in Xero as Tax Inclusive.
You can't replace the decimal point with a comma.
ⓘTip
To update the number format of a field:
-
Click the organisation name, select Settings, then click Invoice settings.
-
Find the template you want to change and click Download.
-
Use Microsoft Word to open the template you want to change from the ZIP file.
-
Right-click any of the quantity or amount fields (such as «Quantity», «UnitAmount» or «InvoiceTotal») and select Toggle Field Codes.
-
In the field code view:
-
To show a whole number, remove the decimal point and the following zeros. For example, change "#,##0.00;(#,##0.00)” to “#,##0;(#,##0)”.
-
Add #’s after 0.00 to increase decimal places. For example, to show four decimal places (maximum), change “#,##0.00;(#,##0.00)” to “#,##0.00##;(#,##0.00##)”.
-
To remove the comma, replace the comma with a space.
-
Enter $ or % sign in the number field to appear when there is a value in the transaction in Xero, eg \# “$#,##0;($#,##0)”.
-
-
Right-click the field and select Update Field.
-
Save the template file to your computer.
-
In Xero, go back to Invoice Settings, find the template you want to update then click Upload.
-
Follow the process to upload your template, then click Upload to confirm.
Field code views explained
You can edit FieldName and format to suit the needs of your organisation.
Required format | Field code format | View |
---|---|---|
Use whole number: | { MERGEFIELD FieldNameHere \# "#,##0;(#,##0)" \* MERGEFORMAT } | 1 |
Use 1 decimal place: | { MERGEFIELD FieldNameHere \# "#,##0.0;(#,##0.0)" \* MERGEFORMAT } | 1.0 |
Use 2 decimal places: | { MERGEFIELD FieldNameHere \# "#,##0.00;(#,##0.00)" \* MERGEFORMAT } | 1.00 |
Use 3 decimal places: | { MERGEFIELD FieldNameHere \# "#,##0.000;(#,##0.000)" \* MERGEFORMAT } | 1.000 |
Use 4 decimal places: | {MERGEFIELD FieldNameHere \# "#,##0.0000;(#,##0.0000)" \* MERGEFORMAT} | 1.0000 |
Change the date format
Date format options
Display dates on transactions by choosing from d, dd, ddd, dddd, M, MM, MMM, MMMM, yy or yyyy to get the format you need.
You can enter d or y in either uppercase or lowercase, but M must be in uppercase. A lowercase m will display minutes instead. See the Display the field results section in Insert, edit, and view fields in Word (Microsoft website) for more information.
The default format on an advanced invoice template, dd MMM yyyy, displays as 31 Dec 2018. If you want the format to display as Monday 31 December 2018, enter dddd d MMMM yyyy.
Update the date format
-
Click the organisation name, select Settings, then click Invoice settings.
-
Find the template you want to change and click Download.
-
Use Microsoft Word to open the template you want to change from the ZIP file.
-
Right-click a date field (such as «InvoiceDate»), then select Toggle Field Codes.
-
In the field code view, update dd MMM yyyy to the format you want.
-
Right-click the field and select Update Field.
-
Save the template file to your computer.
-
In Xero, go back to Invoice Settings, find the template you want to update then click Upload.
-
Follow the process to upload your template, then click Upload to confirm.