Fase 2: Template engine, DAO, editor visual, plantillas y motor de exportacion PDF/XLSX/DOCX
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"name": "Presupuesto Proyecto",
|
||||
"description": "Plantilla de presupuesto para proyectos",
|
||||
"documentType": "budget",
|
||||
"widthMM": 210,
|
||||
"heightMM": 297,
|
||||
"margin": [20, 20, 20, 20],
|
||||
"elements": [
|
||||
{
|
||||
"type": "label",
|
||||
"x": 50,
|
||||
"y": 50,
|
||||
"w": 200,
|
||||
"h": 20,
|
||||
"text": "Presupuesto #{{code}}",
|
||||
"font": "Arial",
|
||||
"size": 14,
|
||||
"bold": true,
|
||||
"align": "left"
|
||||
},
|
||||
{
|
||||
"type": "label",
|
||||
"x": 300,
|
||||
"y": 50,
|
||||
"w": 100,
|
||||
"h": 20,
|
||||
"text": "{{date}}",
|
||||
"font": "Arial",
|
||||
"size": 10,
|
||||
"bold": false
|
||||
},
|
||||
{
|
||||
"type": "table",
|
||||
"x": 50,
|
||||
"y": 80,
|
||||
"w": 350,
|
||||
"h": 150,
|
||||
"columns": ["description", "quantity", "unitPrice", "total"],
|
||||
"dataSource": "lines",
|
||||
"cellAlignment": {
|
||||
"0": "left",
|
||||
"1": "right",
|
||||
"2": "right",
|
||||
"3": "right"
|
||||
},
|
||||
"headerAlignment": "center",
|
||||
"headerColor": "#CCCCCC",
|
||||
"alternateRowColor": true,
|
||||
"rowHeight": 20
|
||||
},
|
||||
{
|
||||
"type": "label",
|
||||
"x": 250,
|
||||
"y": 240,
|
||||
"w": 50,
|
||||
"h": 20,
|
||||
"text": "Total:",
|
||||
"font": "Arial",
|
||||
"size": 14,
|
||||
"bold": true
|
||||
},
|
||||
{
|
||||
"type": "label",
|
||||
"x": 300,
|
||||
"y": 240,
|
||||
"w": 100,
|
||||
"h": 20,
|
||||
"text": "{{total}}",
|
||||
"font": "Arial",
|
||||
"size": 14,
|
||||
"bold": true,
|
||||
"align": "right"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user