{
"DocumentType": "invoice",
"Name": "Detailed Invoice",
"Sections": [
{
"Name": "Header",
"Type": "Static",
"Order": 1,
"Align": "Center",
"Elements": [
{
"Type": "Text",
"StaticValue": "TAX INVOICE",
"Format": "Bold Size3"
},
{ "Type": "Line" },
{
"Type": "Text",
"Source": "Store.Name",
"Format": "Bold Large"
},
{ "Type": "Text", "Source": "Store.Address" },
{ "Type": "Text", "Source": "Store.Phone" },
{ "Type": "Text", "Source": "Store.TaxId", "Label": "Tax ID: " },
{ "Type": "Line" }
]
},
{
"Name": "Invoice Info",
"Type": "Static",
"Order": 2,
"Elements": [
{
"Type": "Text",
"Source": "Invoice.Number",
"Label": "Invoice #: ",
"Format": "Bold"
},
{
"Type": "Text",
"Source": "Invoice.Date",
"Label": "Date: "
},
{
"Type": "Text",
"Source": "Customer.Name",
"Label": "Customer: ",
"Format": "Bold"
},
{ "Type": "Line" }
]
},
{
"Name": "Items",
"Type": "Table",
"Order": 3,
"DataSource": "Invoice.Items",
"Elements": [
{
"Source": "Quantity",
"HeaderLabel": "QTY",
"HeaderFormat": "Bold",
"WidthPercentage": 12,
"Align": "Center"
},
{
"Source": "Description",
"HeaderLabel": "ITEM",
"HeaderFormat": "Bold",
"WidthPercentage": 43
},
{
"Source": "Price",
"HeaderLabel": "PRICE",
"HeaderFormat": "Bold",
"WidthPercentage": 20,
"Align": "Right"
},
{
"Source": "Total",
"HeaderLabel": "TOTAL",
"HeaderFormat": "Bold",
"WidthPercentage": 25,
"Align": "Right",
"Format": "Bold"
}
]
},
{
"Name": "Totals",
"Type": "Static",
"Order": 4,
"Elements": [
{ "Type": "Line" },
{
"Type": "Text",
"Source": "Invoice.Subtotal",
"Label": "Subtotal: ",
"Align": "Right"
},
{
"Type": "Text",
"Source": "Invoice.Tax",
"Label": "Tax: ",
"Align": "Right"
},
{
"Type": "Text",
"Source": "Invoice.Total",
"Label": "TOTAL: ",
"Align": "Right",
"Format": "Bold Large"
},
{ "Type": "Line" }
]
},
{
"Name": "Footer",
"Type": "Static",
"Order": 5,
"Align": "Center",
"Elements": [
{
"Type": "Barcode",
"Source": "Invoice.Number",
"Properties": {
"Height": "80",
"Hri": "true"
}
},
{
"Type": "Text",
"StaticValue": "Thank you for your business!",
"Format": "Bold"
},
{
"Type": "QR",
"Source": "Invoice.Url",
"Properties": { "Size": "3" }
}
]
}
]
}