
April 14, 2025
Using the Delivery/Service Date in Custom Templates
Starting from Cakedesk version 1.18.0
, you can display a delivery or service date in your invoices.
The delivery date is optional and should only be displayed in your template if it is enabled in the invoice settings and set for the respective invoice.
You can display the delivery date in your template using the following code snippet:
<% if (invoice.hasDeliveryDate && invoice.deliveryDate) { %>
<%= t(invoice.deliveryDateType) %>: <%= formatDate(invoice.deliveryDate) %><br />
<% } %>
As shown in the example above, the following fields are now available on invoice objects:
hasDeliveryDate: boolean
deliveryDateType: 'deliveryDate' | 'serviceDate'
deliveryDate: string