Files
BudgetPro/templates/invoice_standard.json
T

52 lines
1.0 KiB
JSON
Raw Normal View History

{
"name": "Factura PDF",
"description": "Plantilla de factura para clientes",
"documentType": "invoice",
"widthMM": 210,
"heightMM": 297,
"margin": [20, 20, 20, 20],
"elements": [
{
"type": "label",
"x": 50,
"y": 50,
"w": 150,
"h": 20,
"text": "Factura #{{code}}",
"font": "Arial",
"size": 14,
"bold": true,
"align": "left"
},
{
"type": "label",
"x": 200,
"y": 50,
"w": 100,
"h": 20,
"text": "{{clientName}}",
"font": "Arial",
"size": 12,
"bold": false
},
{
"type": "table",
"x": 50,
"y": 80,
"w": 200,
"h": 100,
"columns": ["description", "quantity", "price", "total"],
"dataSource": "lines",
"cellAlignment": {
"0": "left",
"1": "right",
"2": "right",
"3": "right"
},
"headerAlignment": "center",
"headerColor": "#CCCCCC",
"alternateRowColor": true,
"rowHeight": 20
}
]
}