nexabase-report 0.5.13 → 0.5.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,512 @@
1
+ {
2
+ "metadata": {
3
+ "version": "1.0",
4
+ "name": "Factura con Tabla",
5
+ "description": "Factura comercial con tabla de items, subtotal, IVA y total",
6
+ "author": "Demo",
7
+ "createdAt": "2024-01-15T10:00:00.000Z"
8
+ },
9
+ "layout": {
10
+ "page": {
11
+ "format": "A4",
12
+ "orientation": "portrait",
13
+ "margins": {
14
+ "top": 25,
15
+ "right": 25,
16
+ "bottom": 25,
17
+ "left": 25
18
+ }
19
+ },
20
+ "bands": [
21
+ {
22
+ "id": "band_header",
23
+ "type": "GroupHeader",
24
+ "height": 200,
25
+ "elements": [
26
+ {
27
+ "id": "el_logo_rect",
28
+ "type": "Rectangle",
29
+ "x": 30,
30
+ "y": 10,
31
+ "width": 180,
32
+ "height": 60,
33
+ "shapeType": "Rectangle",
34
+ "options": {
35
+ "lineColor": "#3b82f6",
36
+ "strokeWidth": 2
37
+ }
38
+ },
39
+ {
40
+ "id": "el_company",
41
+ "type": "Text",
42
+ "x": 40,
43
+ "y": 20,
44
+ "width": 160,
45
+ "height": 20,
46
+ "content": "MI EMPRESA S.A.",
47
+ "style": {
48
+ "fontSize": "14px",
49
+ "fontWeight": "bold",
50
+ "color": "#3b82f6"
51
+ }
52
+ },
53
+ {
54
+ "id": "el_company_sub",
55
+ "type": "Text",
56
+ "x": 40,
57
+ "y": 42,
58
+ "width": 160,
59
+ "height": 16,
60
+ "content": "RUT: 76.123.456-7",
61
+ "style": {
62
+ "fontSize": "10px",
63
+ "color": "#64748b"
64
+ }
65
+ },
66
+ {
67
+ "id": "el_invoice_title",
68
+ "type": "Text",
69
+ "x": 400,
70
+ "y": 15,
71
+ "width": 300,
72
+ "height": 30,
73
+ "content": "FACTURA ELECTRÓNICA",
74
+ "style": {
75
+ "fontSize": "18px",
76
+ "fontWeight": "bold",
77
+ "color": "#1e293b",
78
+ "textAlign": "right"
79
+ }
80
+ },
81
+ {
82
+ "id": "el_invoice_num",
83
+ "type": "Text",
84
+ "x": 400,
85
+ "y": 50,
86
+ "width": 300,
87
+ "height": 16,
88
+ "content": "Nº {{folio}}",
89
+ "style": {
90
+ "fontSize": "12px",
91
+ "color": "#64748b",
92
+ "textAlign": "right"
93
+ }
94
+ },
95
+ {
96
+ "id": "el_invoice_date",
97
+ "type": "Text",
98
+ "x": 400,
99
+ "y": 68,
100
+ "width": 300,
101
+ "height": 16,
102
+ "content": "Fecha: {{fecha_emision}}",
103
+ "style": {
104
+ "fontSize": "11px",
105
+ "color": "#64748b",
106
+ "textAlign": "right"
107
+ }
108
+ },
109
+ {
110
+ "id": "el_client_label",
111
+ "type": "Text",
112
+ "x": 30,
113
+ "y": 90,
114
+ "width": 100,
115
+ "height": 16,
116
+ "content": "Cliente:",
117
+ "style": {
118
+ "fontSize": "10px",
119
+ "fontWeight": "bold",
120
+ "color": "#64748b"
121
+ }
122
+ },
123
+ {
124
+ "id": "el_client_name",
125
+ "type": "Text",
126
+ "x": 130,
127
+ "y": 90,
128
+ "width": 350,
129
+ "height": 16,
130
+ "binding": "cliente_nombre",
131
+ "content": "{{cliente_nombre}}",
132
+ "style": {
133
+ "fontSize": "12px",
134
+ "color": "#1e293b"
135
+ }
136
+ },
137
+ {
138
+ "id": "el_client_rut",
139
+ "type": "Text",
140
+ "x": 130,
141
+ "y": 108,
142
+ "width": 200,
143
+ "height": 14,
144
+ "binding": "cliente_rut",
145
+ "content": "RUT: {{cliente_rut}}",
146
+ "style": {
147
+ "fontSize": "10px",
148
+ "color": "#64748b"
149
+ }
150
+ },
151
+ {
152
+ "id": "el_client_addr",
153
+ "type": "Text",
154
+ "x": 130,
155
+ "y": 124,
156
+ "width": 350,
157
+ "height": 14,
158
+ "binding": "cliente_direccion",
159
+ "content": "{{cliente_direccion}}",
160
+ "style": {
161
+ "fontSize": "10px",
162
+ "color": "#64748b"
163
+ }
164
+ },
165
+ {
166
+ "id": "el_barcode",
167
+ "type": "Barcode",
168
+ "x": 550,
169
+ "y": 95,
170
+ "width": 180,
171
+ "height": 50,
172
+ "binding": "folio",
173
+ "options": {
174
+ "barcodeFormat": "CODE128",
175
+ "displayValue": true
176
+ }
177
+ },
178
+ {
179
+ "id": "el_header_line",
180
+ "type": "Line",
181
+ "x": 30,
182
+ "y": 165,
183
+ "width": 700,
184
+ "height": 2,
185
+ "shapeType": "Line",
186
+ "options": {
187
+ "lineColor": "#3b82f6",
188
+ "strokeWidth": 2
189
+ }
190
+ },
191
+ {
192
+ "id": "lbl_Cod",
193
+ "type": "Text",
194
+ "x": 30,
195
+ "y": 175,
196
+ "width": 50,
197
+ "height": 16,
198
+ "content": "Cod",
199
+ "style": {
200
+ "fontSize": "11px",
201
+ "fontWeight": "bold",
202
+ "color": "#1e293b"
203
+ }
204
+ },
205
+ {
206
+ "id": "lbl_Des",
207
+ "type": "Text",
208
+ "x": 80,
209
+ "y": 175,
210
+ "width": 250,
211
+ "height": 16,
212
+ "content": "Descripcion",
213
+ "style": {
214
+ "fontSize": "11px",
215
+ "fontWeight": "bold",
216
+ "color": "#1e293b"
217
+ }
218
+ },
219
+ {
220
+ "id": "lbl_Can",
221
+ "type": "Text",
222
+ "x": 340,
223
+ "y": 175,
224
+ "width": 80,
225
+ "height": 16,
226
+ "content": "Cant",
227
+ "style": {
228
+ "fontSize": "11px",
229
+ "fontWeight": "bold",
230
+ "color": "#1e293b"
231
+ }
232
+ },
233
+ {
234
+ "id": "lbl_Pre",
235
+ "type": "Text",
236
+ "x": 430,
237
+ "y": 175,
238
+ "width": 100,
239
+ "height": 16,
240
+ "content": "Precio",
241
+ "style": {
242
+ "fontSize": "11px",
243
+ "fontWeight": "bold",
244
+ "color": "#1e293b"
245
+ }
246
+ },
247
+ {
248
+ "id": "lbl_Tot",
249
+ "type": "Text",
250
+ "x": 540,
251
+ "y": 175,
252
+ "width": 120,
253
+ "height": 16,
254
+ "content": "Total",
255
+ "style": {
256
+ "fontSize": "11px",
257
+ "fontWeight": "bold",
258
+ "color": "#1e293b"
259
+ }
260
+ },
261
+ {
262
+ "id": "el_header_line_2",
263
+ "type": "Line",
264
+ "x": 30,
265
+ "y": 195,
266
+ "width": 700,
267
+ "height": 2,
268
+ "shapeType": "Line",
269
+ "options": {
270
+ "lineColor": "#e2e8f0",
271
+ "strokeWidth": 1
272
+ }
273
+ }
274
+ ],
275
+ "dataSource": "main",
276
+ "groupExpression": "folio"
277
+ },
278
+ {
279
+ "id": "band_items_table",
280
+ "type": "DataBand",
281
+ "height": 30,
282
+ "dataSource": "main",
283
+ "elements": [
284
+ {
285
+ "id": "txt_codigo",
286
+ "type": "Text",
287
+ "x": 30,
288
+ "y": 5,
289
+ "width": 50,
290
+ "height": 16,
291
+ "binding": "codigo",
292
+ "content": "{{codigo}}",
293
+ "style": {
294
+ "fontSize": "11px",
295
+ "color": "#475569"
296
+ }
297
+ },
298
+ {
299
+ "id": "txt_descripcion",
300
+ "type": "Text",
301
+ "x": 80,
302
+ "y": 5,
303
+ "width": 250,
304
+ "height": 16,
305
+ "binding": "descripcion",
306
+ "content": "{{descripcion}}",
307
+ "style": {
308
+ "fontSize": "11px",
309
+ "color": "#475569"
310
+ }
311
+ },
312
+ {
313
+ "id": "txt_cantidad",
314
+ "type": "Text",
315
+ "x": 340,
316
+ "y": 5,
317
+ "width": 80,
318
+ "height": 16,
319
+ "binding": "cantidad",
320
+ "content": "{{cantidad}}",
321
+ "style": {
322
+ "fontSize": "11px",
323
+ "color": "#475569"
324
+ }
325
+ },
326
+ {
327
+ "id": "txt_precio_unitario",
328
+ "type": "Text",
329
+ "x": 430,
330
+ "y": 5,
331
+ "width": 100,
332
+ "height": 16,
333
+ "binding": "precio_unitario",
334
+ "content": "{{precio_unitario}}",
335
+ "style": {
336
+ "fontSize": "11px",
337
+ "color": "#475569"
338
+ }
339
+ },
340
+ {
341
+ "id": "txt_total_linea",
342
+ "type": "Text",
343
+ "x": 540,
344
+ "y": 5,
345
+ "width": 120,
346
+ "height": 16,
347
+ "binding": "total_linea",
348
+ "content": "{{total_linea}}",
349
+ "style": {
350
+ "fontSize": "11px",
351
+ "color": "#475569"
352
+ }
353
+ },
354
+ {
355
+ "id": "line_row",
356
+ "type": "Line",
357
+ "x": 30,
358
+ "y": 25,
359
+ "width": 700,
360
+ "height": 1,
361
+ "shapeType": "Line",
362
+ "options": {
363
+ "lineColor": "#f1f5f9",
364
+ "strokeWidth": 1
365
+ }
366
+ }
367
+ ]
368
+ },
369
+ {
370
+ "id": "band_totals",
371
+ "type": "GroupFooter",
372
+ "height": 140,
373
+ "elements": [
374
+ {
375
+ "id": "el_sep_totals",
376
+ "type": "Line",
377
+ "x": 400,
378
+ "y": 10,
379
+ "width": 330,
380
+ "height": 1,
381
+ "shapeType": "Line",
382
+ "options": {
383
+ "lineColor": "#94a3b8",
384
+ "strokeWidth": 1
385
+ }
386
+ },
387
+ {
388
+ "id": "el_subtotal_label",
389
+ "type": "Text",
390
+ "x": 410,
391
+ "y": 20,
392
+ "width": 150,
393
+ "height": 18,
394
+ "content": "Subtotal:",
395
+ "style": {
396
+ "fontSize": "11px",
397
+ "color": "#64748b",
398
+ "textAlign": "right"
399
+ }
400
+ },
401
+ {
402
+ "id": "el_subtotal_val",
403
+ "type": "Text",
404
+ "x": 570,
405
+ "y": 20,
406
+ "width": 150,
407
+ "height": 18,
408
+ "content": "${[sum(total_linea)]}",
409
+ "style": {
410
+ "fontSize": "12px",
411
+ "color": "#1e293b",
412
+ "textAlign": "right"
413
+ }
414
+ },
415
+ {
416
+ "id": "el_iva_label",
417
+ "type": "Text",
418
+ "x": 410,
419
+ "y": 42,
420
+ "width": 150,
421
+ "height": 18,
422
+ "content": "IVA (19%):",
423
+ "style": {
424
+ "fontSize": "11px",
425
+ "color": "#64748b",
426
+ "textAlign": "right"
427
+ }
428
+ },
429
+ {
430
+ "id": "el_iva_val",
431
+ "type": "Text",
432
+ "x": 570,
433
+ "y": 42,
434
+ "width": 150,
435
+ "height": 18,
436
+ "content": "${[sum(total_linea) * 0.19]}",
437
+ "style": {
438
+ "fontSize": "12px",
439
+ "color": "#1e293b",
440
+ "textAlign": "right"
441
+ }
442
+ },
443
+ {
444
+ "id": "el_total_line",
445
+ "type": "Line",
446
+ "x": 410,
447
+ "y": 65,
448
+ "width": 310,
449
+ "height": 2,
450
+ "shapeType": "Line",
451
+ "options": {
452
+ "lineColor": "#3b82f6",
453
+ "strokeWidth": 2
454
+ }
455
+ },
456
+ {
457
+ "id": "el_total_label",
458
+ "type": "Text",
459
+ "x": 410,
460
+ "y": 72,
461
+ "width": 150,
462
+ "height": 22,
463
+ "content": "TOTAL:",
464
+ "style": {
465
+ "fontSize": "14px",
466
+ "fontWeight": "bold",
467
+ "color": "#1e293b",
468
+ "textAlign": "right"
469
+ }
470
+ },
471
+ {
472
+ "id": "el_total_val",
473
+ "type": "Text",
474
+ "x": 570,
475
+ "y": 72,
476
+ "width": 150,
477
+ "height": 22,
478
+ "content": "${[sum(total_linea) * 1.19]}",
479
+ "style": {
480
+ "fontSize": "16px",
481
+ "fontWeight": "bold",
482
+ "color": "#3b82f6",
483
+ "textAlign": "right"
484
+ }
485
+ },
486
+ {
487
+ "id": "el_page_footer",
488
+ "type": "Text",
489
+ "x": 30,
490
+ "y": 110,
491
+ "width": 200,
492
+ "height": 14,
493
+ "content": "Página {{Page}} de {{TotalPages}} — Generado: {{Now}}",
494
+ "style": {
495
+ "fontSize": "9px",
496
+ "color": "#94a3b8"
497
+ }
498
+ }
499
+ ],
500
+ "dataSource": "main"
501
+ }
502
+ ]
503
+ },
504
+ "dataSources": [
505
+ {
506
+ "id": "ds_main",
507
+ "collection": "facturas_items",
508
+ "alias": "main",
509
+ "enabled": true
510
+ }
511
+ ]
512
+ }