In Fynode, document handling is automated through templates, where you can use "special words" (macros). These are automatically replaced with specific data from the order, customer, or product when issuing an invoice, exporting, or sending an email.
You can enter special words into any input field of the template. Here are the most commonly used, with descriptions and examples:
Order and Invoice:
{order.id} — Order ID{order.number} — Order number{order.currency} — Order currency{order.date} — Order creation date{order.amount} — Total order amount{order.discount} — Order discount{order.payment_name} — Payment method of the order{order.delivery_name} — Delivery method of the orderCustomer:
{order.client.id} — Customer ID{order.client.name} — Customer name{order.client.company_id} — Customer Company ID{order.client.vat_id} — Customer VAT ID{order.client.email} — Customer email{order.client.phone} — Customer phone{order.client.address} — Customer billing address{order.client.city} — Customer billing city{order.client.zip} — Customer billing ZIP{order.client.country} — Customer billing country (ISO2 code){order.client.delivery_address} — Customer delivery address{order.client.delivery_city} — Delivery city{order.client.delivery_zip} — Delivery ZIP{order.client.delivery_country} — Delivery country (ISO2 code){order.client.delivery_phone} — Delivery phone{order.client.delivery_note} — Delivery noteProduct Item:
{order.product.name} — Product name{order.product.quantity} — Quantity of product{order.product.unit} — Product unit{order.product.unit_price} — Unit price without VAT{order.product.total_price} — Total price with VAT{order.product.tax} — VAT rate{order.product.number} — Product number (SKU){order.product.ean} — EAN code of the product{order.product.variant} — Variant name of the item"{order.number}""Delivery address: {order.client.delivery_address}, {order.client.delivery_city}""Payment received on {order.date}, method: {order.payment_name}"{order.number} or custom macros.Recommendation:
Before going live, it is advisable to test templates with "test" orders – you will immediately see how specific data is filled into the invoice, email, or export.