When trying to display the reference of an Inventory Write-off using {{reference}} it doesn’t display, however; this works for all other documents. To test this issue, I added the following at the very beginning of a copy of the Plain template:
**{{reference}}**
{% if business.logo != null %}{% endif %}
The result was as follows for all documents, except Inventory Write-offs: For inventory write-offs it looks like this: I wonder if there is a different variable used for the reference of inventory write-offs. I checked the .json file for write-offs and it shows that it is almost identical to other document types as far as reference is concerned (did I miss something?). |