nexabase-report 0.4.21 → 0.5.1

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,1186 @@
1
+ {
2
+ "metadata": {
3
+ "version": "1.0",
4
+ "name": "Tiquete POS",
5
+ "description": "Tiquete POS electrónico para facturación DIAN (Colombia). Incluye: razón social, NIT, resolución DIAN, CUFE, QR, items, subtotales, IVA, total, forma de pago y leyendas obligatorias.",
6
+ "author": "NexaBase",
7
+ "createdAt": "2026-05-30T00:00:00.000Z"
8
+ },
9
+ "documentType": "Report",
10
+ "layout": {
11
+ "page": {
12
+ "format": "Ticket",
13
+ "orientation": "portrait",
14
+ "margins": {
15
+ "top": 0.1,
16
+ "right": 0.1,
17
+ "bottom": 0.1,
18
+ "left": 0.1
19
+ }
20
+ },
21
+ "bands": [
22
+ {
23
+ "id": "ph_encabezado",
24
+ "type": "PageHeader",
25
+ "height": 194,
26
+ "elements": [
27
+ {
28
+ "id": "txt_razon_social",
29
+ "type": "Text",
30
+ "x": 0,
31
+ "y": 11,
32
+ "width": 285,
33
+ "height": 16,
34
+ "content": "{{tienda_nombre}}",
35
+ "style": {
36
+ "fontSize": "13px",
37
+ "fontWeight": "bold",
38
+ "color": "#1e293b",
39
+ "textAlign": "center",
40
+ "fontFamily": "Courier New"
41
+ }
42
+ },
43
+ {
44
+ "id": "txt_nit",
45
+ "type": "Text",
46
+ "x": 0,
47
+ "y": 29,
48
+ "width": 285,
49
+ "height": 12,
50
+ "content": "NIT {{tienda_nit}}",
51
+ "style": {
52
+ "fontSize": "9px",
53
+ "color": "#334155",
54
+ "textAlign": "center",
55
+ "fontFamily": "Courier New"
56
+ }
57
+ },
58
+ {
59
+ "id": "txt_direccion",
60
+ "type": "Text",
61
+ "x": 0,
62
+ "y": 38,
63
+ "width": 285,
64
+ "height": 12,
65
+ "content": "{{tienda_direccion}}",
66
+ "style": {
67
+ "fontSize": "8px",
68
+ "color": "#475569",
69
+ "textAlign": "center",
70
+ "fontFamily": "Courier New"
71
+ }
72
+ },
73
+ {
74
+ "id": "txt_telefono",
75
+ "type": "Text",
76
+ "x": 0,
77
+ "y": 47,
78
+ "width": 285,
79
+ "height": 12,
80
+ "content": "Tel: {{tienda_telefono}}",
81
+ "style": {
82
+ "fontSize": "8px",
83
+ "color": "#475569",
84
+ "textAlign": "center",
85
+ "fontFamily": "Courier New"
86
+ }
87
+ },
88
+ {
89
+ "id": "txt_resolucion",
90
+ "type": "Text",
91
+ "x": 0,
92
+ "y": 71,
93
+ "width": 285,
94
+ "height": 12,
95
+ "content": "RES. DIAN Nº {{resolucion}}",
96
+ "style": {
97
+ "fontSize": "7px",
98
+ "color": "#64748b",
99
+ "textAlign": "center",
100
+ "fontFamily": "Courier New"
101
+ }
102
+ },
103
+ {
104
+ "id": "txt_periodo",
105
+ "type": "Text",
106
+ "x": 0,
107
+ "y": 83,
108
+ "width": 285,
109
+ "height": 12,
110
+ "content": "DEL {{numeracion}}",
111
+ "style": {
112
+ "fontSize": "7px",
113
+ "color": "#64748b",
114
+ "textAlign": "center",
115
+ "fontFamily": "Courier New"
116
+ }
117
+ },
118
+ {
119
+ "id": "txt_titulo_doc",
120
+ "type": "Text",
121
+ "x": 0,
122
+ "y": 101,
123
+ "width": 285,
124
+ "height": 14,
125
+ "content": "FACTURA ELECTRÓNICA DE VENTA",
126
+ "style": {
127
+ "fontSize": "10px",
128
+ "fontWeight": "bold",
129
+ "color": "#1e293b",
130
+ "textAlign": "center",
131
+ "fontFamily": "Courier New"
132
+ }
133
+ },
134
+ {
135
+ "id": "txt_num_factura",
136
+ "type": "Text",
137
+ "x": 0,
138
+ "y": 117,
139
+ "width": 285,
140
+ "height": 14,
141
+ "content": "Nº {{factura_numero}}",
142
+ "style": {
143
+ "fontSize": "10px",
144
+ "color": "#334155",
145
+ "textAlign": "center",
146
+ "fontFamily": "Courier New"
147
+ }
148
+ },
149
+ {
150
+ "id": "txt_fecha",
151
+ "type": "Text",
152
+ "x": 0,
153
+ "y": 133,
154
+ "width": 285,
155
+ "height": 12,
156
+ "content": "{[formatdate(factura_fecha, \"dd/MM/yyyy HH:mm\")]}",
157
+ "style": {
158
+ "fontSize": "8px",
159
+ "color": "#475569",
160
+ "textAlign": "center",
161
+ "fontFamily": "Courier New"
162
+ }
163
+ },
164
+ {
165
+ "id": "txt_cliente",
166
+ "type": "Text",
167
+ "x": 0,
168
+ "y": 152,
169
+ "width": 285,
170
+ "height": 12,
171
+ "content": "Cliente: {{cliente_nombre}}",
172
+ "style": {
173
+ "fontSize": "9px",
174
+ "color": "#1e293b",
175
+ "textAlign": "left",
176
+ "fontFamily": "Courier New"
177
+ }
178
+ },
179
+ {
180
+ "id": "txt_cliente_nit",
181
+ "type": "Text",
182
+ "x": 0,
183
+ "y": 166,
184
+ "width": 285,
185
+ "height": 12,
186
+ "content": "NIT/CC: {{cliente_nit}}",
187
+ "style": {
188
+ "fontSize": "9px",
189
+ "color": "#1e293b",
190
+ "textAlign": "left",
191
+ "fontFamily": "Courier New"
192
+ }
193
+ },
194
+ {
195
+ "id": "txt_headers",
196
+ "type": "Text",
197
+ "x": 0,
198
+ "y": 180,
199
+ "width": 285,
200
+ "height": 10,
201
+ "content": "CANT DESCRIPCIÓN V/UNIT TOTAL",
202
+ "style": {
203
+ "fontSize": "7px",
204
+ "fontWeight": "bold",
205
+ "color": "#475569",
206
+ "textAlign": "left",
207
+ "fontFamily": "Courier New"
208
+ }
209
+ },
210
+ {
211
+ "id": "line_sep4",
212
+ "type": "Line",
213
+ "x": 0,
214
+ "y": 192,
215
+ "width": 285,
216
+ "height": 1,
217
+ "shapeType": "Line",
218
+ "options": {
219
+ "lineColor": "#94a3b8",
220
+ "strokeWidth": 1
221
+ }
222
+ }
223
+ ],
224
+ "dataSource": "encabezado"
225
+ },
226
+ {
227
+ "id": "db_items",
228
+ "type": "DataBand",
229
+ "height": 20,
230
+ "dataSource": "main",
231
+ "elements": [
232
+ {
233
+ "id": "txt_item_cant",
234
+ "type": "Text",
235
+ "x": 0,
236
+ "y": 0,
237
+ "width": 18,
238
+ "height": 16,
239
+ "content": "{{cantidad}}",
240
+ "style": {
241
+ "fontSize": "8px",
242
+ "fontWeight": "bold",
243
+ "color": "#1e293b",
244
+ "textAlign": "right",
245
+ "fontFamily": "Courier New",
246
+ "verticalAlign": "middle"
247
+ }
248
+ },
249
+ {
250
+ "id": "txt_item_desc",
251
+ "type": "Text",
252
+ "x": 20,
253
+ "y": 0,
254
+ "width": 130,
255
+ "height": 16,
256
+ "content": "{{descripcion}}",
257
+ "style": {
258
+ "fontSize": "8px",
259
+ "color": "#1e293b",
260
+ "textAlign": "left",
261
+ "fontFamily": "Courier New",
262
+ "verticalAlign": "middle"
263
+ }
264
+ },
265
+ {
266
+ "id": "txt_item_precio",
267
+ "type": "Text",
268
+ "x": 152,
269
+ "y": 0,
270
+ "width": 56,
271
+ "height": 16,
272
+ "content": "{[FormatNumber(valor_unitario, 2)]}",
273
+ "style": {
274
+ "fontSize": "8px",
275
+ "color": "#475569",
276
+ "textAlign": "right",
277
+ "fontFamily": "Courier New",
278
+ "verticalAlign": "middle"
279
+ }
280
+ },
281
+ {
282
+ "id": "txt_item_total",
283
+ "type": "Text",
284
+ "x": 212,
285
+ "y": 0,
286
+ "width": 60,
287
+ "height": 16,
288
+ "content": "{[formatnumber(total_item, 2)]}",
289
+ "style": {
290
+ "fontSize": "8px",
291
+ "fontWeight": "bold",
292
+ "color": "#1e293b",
293
+ "textAlign": "right",
294
+ "fontFamily": "Courier New",
295
+ "verticalAlign": "middle"
296
+ }
297
+ }
298
+ ]
299
+ },
300
+ {
301
+ "id": "rf_totales",
302
+ "type": "ReportFooter",
303
+ "height": 390,
304
+ "elements": [
305
+ {
306
+ "id": "txt_items_count",
307
+ "type": "Text",
308
+ "x": 0,
309
+ "y": 6,
310
+ "width": 200,
311
+ "height": 15,
312
+ "content": "Items: {{cantidad_registros}} productos",
313
+ "style": {
314
+ "fontSize": "8px",
315
+ "color": "#64748b",
316
+ "textAlign": "left",
317
+ "fontFamily": "Courier New"
318
+ }
319
+ },
320
+ {
321
+ "id": "txt_subtotal_label",
322
+ "type": "Text",
323
+ "x": 0,
324
+ "y": 22,
325
+ "width": 140,
326
+ "height": 14,
327
+ "content": "Subtotal:",
328
+ "style": {
329
+ "fontSize": "9px",
330
+ "color": "#475569",
331
+ "textAlign": "left",
332
+ "fontFamily": "Courier New"
333
+ }
334
+ },
335
+ {
336
+ "id": "txt_subtotal_valor",
337
+ "type": "Text",
338
+ "x": 145,
339
+ "y": 22,
340
+ "width": 140,
341
+ "height": 14,
342
+ "content": "{[formatnumber(total_item, 2)]}",
343
+ "style": {
344
+ "fontSize": "9px",
345
+ "color": "#475569",
346
+ "textAlign": "right",
347
+ "fontFamily": "Courier New"
348
+ }
349
+ },
350
+ {
351
+ "id": "txt_descuento_label",
352
+ "type": "Text",
353
+ "x": 0,
354
+ "y": 38,
355
+ "width": 140,
356
+ "height": 14,
357
+ "content": "Descuento:",
358
+ "style": {
359
+ "fontSize": "9px",
360
+ "color": "#475569",
361
+ "textAlign": "left",
362
+ "fontFamily": "Courier New"
363
+ }
364
+ },
365
+ {
366
+ "id": "txt_descuento_valor",
367
+ "type": "Text",
368
+ "x": 145,
369
+ "y": 38,
370
+ "width": 140,
371
+ "height": 14,
372
+ "content": "{[FormatNumber(valor_descuento,2)]}",
373
+ "style": {
374
+ "fontSize": "9px",
375
+ "color": "#dc2626",
376
+ "textAlign": "right",
377
+ "fontFamily": "Courier New"
378
+ }
379
+ },
380
+ {
381
+ "id": "txt_base_gravada_label",
382
+ "type": "Text",
383
+ "x": 0,
384
+ "y": 54,
385
+ "width": 140,
386
+ "height": 12,
387
+ "content": "Base Gravada 19%:",
388
+ "style": {
389
+ "fontSize": "8px",
390
+ "color": "#64748b",
391
+ "textAlign": "left",
392
+ "fontFamily": "Courier New"
393
+ }
394
+ },
395
+ {
396
+ "id": "txt_base_gravada_valor",
397
+ "type": "Text",
398
+ "x": 145,
399
+ "y": 54,
400
+ "width": 140,
401
+ "height": 12,
402
+ "content": "{[formatnumber(base_gravada, 2)]}",
403
+ "style": {
404
+ "fontSize": "8px",
405
+ "color": "#64748b",
406
+ "textAlign": "right",
407
+ "fontFamily": "Courier New"
408
+ }
409
+ },
410
+ {
411
+ "id": "txt_iva_label",
412
+ "type": "Text",
413
+ "x": 0,
414
+ "y": 68,
415
+ "width": 140,
416
+ "height": 14,
417
+ "content": "IVA 19%:",
418
+ "style": {
419
+ "fontSize": "9px",
420
+ "color": "#475569",
421
+ "textAlign": "left",
422
+ "fontFamily": "Courier New"
423
+ }
424
+ },
425
+ {
426
+ "id": "txt_iva_valor",
427
+ "type": "Text",
428
+ "x": 145,
429
+ "y": 68,
430
+ "width": 140,
431
+ "height": 14,
432
+ "content": "{[formatnumber(total_con_iva, 2)]}",
433
+ "style": {
434
+ "fontSize": "9px",
435
+ "color": "#475569",
436
+ "textAlign": "right",
437
+ "fontFamily": "Courier New"
438
+ }
439
+ },
440
+ {
441
+ "id": "txt_base_exenta_label",
442
+ "type": "Text",
443
+ "x": 0,
444
+ "y": 84,
445
+ "width": 140,
446
+ "height": 12,
447
+ "content": "Base Exenta 0%:",
448
+ "style": {
449
+ "fontSize": "8px",
450
+ "color": "#64748b",
451
+ "textAlign": "left",
452
+ "fontFamily": "Courier New"
453
+ }
454
+ },
455
+ {
456
+ "id": "txt_base_exenta_valor",
457
+ "type": "Text",
458
+ "x": 145,
459
+ "y": 83,
460
+ "width": 140,
461
+ "height": 12,
462
+ "content": "{[formatnumber(base_exenta, 2)]}",
463
+ "style": {
464
+ "fontSize": "8px",
465
+ "color": "#64748b",
466
+ "textAlign": "right",
467
+ "fontFamily": "Arial"
468
+ }
469
+ },
470
+ {
471
+ "id": "txt_total_label",
472
+ "type": "Text",
473
+ "x": 0,
474
+ "y": 99,
475
+ "width": 155,
476
+ "height": 18,
477
+ "content": "TOTAL A PAGAR:",
478
+ "style": {
479
+ "fontSize": "12px",
480
+ "fontWeight": "bold",
481
+ "color": "#1e293b",
482
+ "textAlign": "left",
483
+ "fontFamily": "Courier New"
484
+ }
485
+ },
486
+ {
487
+ "id": "txt_total_valor",
488
+ "type": "Text",
489
+ "x": 145,
490
+ "y": 104,
491
+ "width": 140,
492
+ "height": 18,
493
+ "content": "{[FormatNumber(total_con_iva, 2)]}",
494
+ "style": {
495
+ "fontSize": "12px",
496
+ "fontWeight": "bold",
497
+ "color": "#1e293b",
498
+ "textAlign": "right",
499
+ "fontFamily": "Courier New"
500
+ }
501
+ },
502
+ {
503
+ "id": "txt_forma_pago",
504
+ "type": "Text",
505
+ "x": 0,
506
+ "y": 131,
507
+ "width": 285,
508
+ "height": 14,
509
+ "content": "Forma de pago: Efectivo",
510
+ "style": {
511
+ "fontSize": "9px",
512
+ "color": "#1e293b",
513
+ "textAlign": "left",
514
+ "fontFamily": "Courier New"
515
+ }
516
+ },
517
+ {
518
+ "id": "txt_efectivo_label",
519
+ "type": "Text",
520
+ "x": 0,
521
+ "y": 147,
522
+ "width": 140,
523
+ "height": 14,
524
+ "content": "Valor recibido:",
525
+ "style": {
526
+ "fontSize": "9px",
527
+ "color": "#475569",
528
+ "textAlign": "left",
529
+ "fontFamily": "Courier New"
530
+ }
531
+ },
532
+ {
533
+ "id": "txt_efectivo_valor",
534
+ "type": "Text",
535
+ "x": 145,
536
+ "y": 147,
537
+ "width": 140,
538
+ "height": 14,
539
+ "content": "{[FormatNumber(valor_recibido,2)]}",
540
+ "style": {
541
+ "fontSize": "9px",
542
+ "color": "#1e293b",
543
+ "textAlign": "right",
544
+ "fontFamily": "Courier New"
545
+ }
546
+ },
547
+ {
548
+ "id": "txt_cambio_label",
549
+ "type": "Text",
550
+ "x": 0,
551
+ "y": 163,
552
+ "width": 140,
553
+ "height": 14,
554
+ "content": "Cambio:",
555
+ "style": {
556
+ "fontSize": "9px",
557
+ "fontWeight": "bold",
558
+ "color": "#1e293b",
559
+ "textAlign": "left",
560
+ "fontFamily": "Courier New"
561
+ }
562
+ },
563
+ {
564
+ "id": "txt_cambio_valor",
565
+ "type": "Text",
566
+ "x": 145,
567
+ "y": 163,
568
+ "width": 140,
569
+ "height": 14,
570
+ "content": "{[FormatNumber(cambio,2)]}",
571
+ "style": {
572
+ "fontSize": "9px",
573
+ "fontWeight": "bold",
574
+ "color": "#16a34a",
575
+ "textAlign": "right",
576
+ "fontFamily": "Courier New"
577
+ }
578
+ },
579
+ {
580
+ "id": "txt_cufe_label",
581
+ "type": "Text",
582
+ "x": 0,
583
+ "y": 186,
584
+ "width": 285,
585
+ "height": 12,
586
+ "content": "CUFE:",
587
+ "style": {
588
+ "fontSize": "8px",
589
+ "fontWeight": "bold",
590
+ "color": "#1e293b",
591
+ "textAlign": "left",
592
+ "fontFamily": "Courier New"
593
+ }
594
+ },
595
+ {
596
+ "id": "txt_cufe_valor",
597
+ "type": "Text",
598
+ "x": 0,
599
+ "y": 198,
600
+ "width": 285,
601
+ "height": 20,
602
+ "content": "{{cufe}}",
603
+ "style": {
604
+ "fontSize": "7px",
605
+ "color": "#64748b",
606
+ "textAlign": "left",
607
+ "fontFamily": "Courier New"
608
+ }
609
+ },
610
+ {
611
+ "id": "qrcode_cufe",
612
+ "type": "QRCode",
613
+ "x": 97,
614
+ "y": 222,
615
+ "width": 90,
616
+ "height": 90,
617
+ "binding": "cufe",
618
+ "content": "{{cufe}}",
619
+ "style": {
620
+ "objectFit": "contain"
621
+ }
622
+ },
623
+ {
624
+ "id": "txt_fecha_cufe",
625
+ "type": "Text",
626
+ "x": 0,
627
+ "y": 316,
628
+ "width": 285,
629
+ "height": 10,
630
+ "content": "CUFE generado: {[formatdate(factura_fecha, \"dd/MM/yyyy HH:mm\")]}",
631
+ "style": {
632
+ "fontSize": "7px",
633
+ "color": "#94a3b8",
634
+ "textAlign": "center",
635
+ "fontFamily": "Courier New"
636
+ }
637
+ },
638
+ {
639
+ "id": "txt_leyenda_1",
640
+ "type": "Text",
641
+ "x": 0,
642
+ "y": 334,
643
+ "width": 285,
644
+ "height": 10,
645
+ "content": "El presente documento se asimila en todos",
646
+ "style": {
647
+ "fontSize": "7px",
648
+ "color": "#94a3b8",
649
+ "textAlign": "center",
650
+ "fontFamily": "Courier New"
651
+ }
652
+ },
653
+ {
654
+ "id": "txt_leyenda_2",
655
+ "type": "Text",
656
+ "x": 0,
657
+ "y": 344,
658
+ "width": 285,
659
+ "height": 10,
660
+ "content": "sus efectos legales a una factura de venta.",
661
+ "style": {
662
+ "fontSize": "7px",
663
+ "color": "#94a3b8",
664
+ "textAlign": "center",
665
+ "fontFamily": "Courier New"
666
+ }
667
+ },
668
+ {
669
+ "id": "txt_gracias",
670
+ "type": "Text",
671
+ "x": 0,
672
+ "y": 358,
673
+ "width": 285,
674
+ "height": 14,
675
+ "content": "Gracias por su compra!",
676
+ "style": {
677
+ "fontSize": "9px",
678
+ "fontWeight": "bold",
679
+ "color": "#1e293b",
680
+ "textAlign": "center",
681
+ "fontFamily": "Courier New"
682
+ }
683
+ },
684
+ {
685
+ "id": "txt_nit_footer",
686
+ "type": "Text",
687
+ "x": 0,
688
+ "y": 372,
689
+ "width": 285,
690
+ "height": 10,
691
+ "content": "NIT {{tienda_nit}}",
692
+ "style": {
693
+ "fontSize": "7px",
694
+ "color": "#94a3b8",
695
+ "textAlign": "center",
696
+ "fontFamily": "Courier New"
697
+ }
698
+ }
699
+ ],
700
+ "dataSource": "encabezado"
701
+ }
702
+ ],
703
+ "watermark": {
704
+ "text": "",
705
+ "opacity": 0.15,
706
+ "rotation": -45,
707
+ "color": "#cccccc",
708
+ "position": "center",
709
+ "pages": "all",
710
+ "behindContent": true
711
+ },
712
+ "generateTOC": false
713
+ },
714
+ "dataSources": [
715
+ {
716
+ "id": "ds_main",
717
+ "alias": "main",
718
+ "collection": "items",
719
+ "enabled": true,
720
+ "isManual": true,
721
+ "manualData": [
722
+ {
723
+ "factura_numero": "FT-001234",
724
+ "cantidad": 3,
725
+ "codigo": "001",
726
+ "descripcion": "Leche Entera Alpina x1L",
727
+ "valor_unitario": 4500,
728
+ "total_item": 13500,
729
+ "base_gravada": 13500,
730
+ "iva_item": 2565,
731
+ "base_exenta": 0,
732
+ "total_con_iva": 16065
733
+ },
734
+ {
735
+ "factura_numero": "FT-001234",
736
+ "cantidad": 2,
737
+ "codigo": "002",
738
+ "descripcion": "Pan Bimbo 500g",
739
+ "valor_unitario": 5800,
740
+ "total_item": 11600,
741
+ "base_gravada": 11600,
742
+ "iva_item": 2204,
743
+ "base_exenta": 0,
744
+ "total_con_iva": 13804
745
+ },
746
+ {
747
+ "factura_numero": "FT-001234",
748
+ "cantidad": 1,
749
+ "codigo": "003",
750
+ "descripcion": "Huevos AA x30",
751
+ "valor_unitario": 14200,
752
+ "total_item": 14200,
753
+ "base_gravada": 14200,
754
+ "iva_item": 2698,
755
+ "base_exenta": 0,
756
+ "total_con_iva": 16898
757
+ },
758
+ {
759
+ "factura_numero": "FT-001234",
760
+ "cantidad": 1,
761
+ "codigo": "004",
762
+ "descripcion": "Cafe Sello Rojo 500g",
763
+ "valor_unitario": 16800,
764
+ "total_item": 16800,
765
+ "base_gravada": 16800,
766
+ "iva_item": 3192,
767
+ "base_exenta": 0,
768
+ "total_con_iva": 19992
769
+ },
770
+ {
771
+ "factura_numero": "FT-001234",
772
+ "cantidad": 3,
773
+ "codigo": "005",
774
+ "descripcion": "Arroz Diana 1kg",
775
+ "valor_unitario": 4200,
776
+ "total_item": 12600,
777
+ "base_gravada": 12600,
778
+ "iva_item": 2394,
779
+ "base_exenta": 0,
780
+ "total_con_iva": 14994
781
+ },
782
+ {
783
+ "factura_numero": "FT-001234",
784
+ "cantidad": 2,
785
+ "codigo": "006",
786
+ "descripcion": "Aceite Premier 900ml",
787
+ "valor_unitario": 9300,
788
+ "total_item": 18600,
789
+ "base_gravada": 18600,
790
+ "iva_item": 3534,
791
+ "base_exenta": 0,
792
+ "total_con_iva": 22134
793
+ },
794
+ {
795
+ "factura_numero": "FT-001234",
796
+ "cantidad": 1,
797
+ "codigo": "007",
798
+ "descripcion": "Queso Campesino 500g",
799
+ "valor_unitario": 7200,
800
+ "total_item": 7200,
801
+ "base_gravada": 7200,
802
+ "iva_item": 1368,
803
+ "base_exenta": 0,
804
+ "total_con_iva": 8568
805
+ },
806
+ {
807
+ "factura_numero": "FT-001234",
808
+ "cantidad": 2,
809
+ "codigo": "008",
810
+ "descripcion": "Jamon de Cerdo Zenu x250g",
811
+ "valor_unitario": 6500,
812
+ "total_item": 13000,
813
+ "base_gravada": 13000,
814
+ "iva_item": 2470,
815
+ "base_exenta": 0,
816
+ "total_con_iva": 15470
817
+ },
818
+ {
819
+ "factura_numero": "FT-001234",
820
+ "cantidad": 2,
821
+ "codigo": "009",
822
+ "descripcion": "Gaseosa Colombiana 2L",
823
+ "valor_unitario": 5200,
824
+ "total_item": 10400,
825
+ "base_gravada": 0,
826
+ "iva_item": 0,
827
+ "base_exenta": 10400,
828
+ "total_con_iva": 10400
829
+ },
830
+ {
831
+ "factura_numero": "FT-001234",
832
+ "cantidad": 1,
833
+ "codigo": "010",
834
+ "descripcion": "Panela x5und",
835
+ "valor_unitario": 4800,
836
+ "total_item": 4800,
837
+ "base_gravada": 0,
838
+ "iva_item": 0,
839
+ "base_exenta": 4800,
840
+ "total_con_iva": 4800
841
+ }
842
+ ],
843
+ "manualSchema": [
844
+ {
845
+ "name": "factura_numero",
846
+ "type": "string",
847
+ "label": "Nº Factura"
848
+ },
849
+ {
850
+ "name": "cantidad",
851
+ "type": "number",
852
+ "label": "Cantidad"
853
+ },
854
+ {
855
+ "name": "codigo",
856
+ "type": "string",
857
+ "label": "Código"
858
+ },
859
+ {
860
+ "name": "descripcion",
861
+ "type": "string",
862
+ "label": "Descripción"
863
+ },
864
+ {
865
+ "name": "valor_unitario",
866
+ "type": "number",
867
+ "label": "Vr. Unitario"
868
+ },
869
+ {
870
+ "name": "total_item",
871
+ "type": "number",
872
+ "label": "Total"
873
+ },
874
+ {
875
+ "name": "base_gravada",
876
+ "type": "number",
877
+ "label": "Base Gravada"
878
+ },
879
+ {
880
+ "name": "iva_item",
881
+ "type": "number",
882
+ "label": "IVA Item"
883
+ },
884
+ {
885
+ "name": "base_exenta",
886
+ "type": "number",
887
+ "label": "Base Exenta"
888
+ }
889
+ ],
890
+ "isDetail": false
891
+ },
892
+ {
893
+ "id": "ds_manual_1780187718681",
894
+ "alias": "encabezado",
895
+ "collection": "",
896
+ "enabled": true,
897
+ "isManual": true,
898
+ "manualData": [
899
+ {
900
+ "factura_numero": "FT-001234",
901
+ "factura_fecha": "2026-05-30 11:00:23",
902
+ "cliente_nombre": "Consumidor final",
903
+ "cliente_nit": "222222222222",
904
+ "cufe": "uh67hdhhdfhdfhdfjdjhjdfu7474udjhdhsjfddkskdskdskdskdksdksd888sjsjsjs888",
905
+ "total_item": 129000,
906
+ "base_gravada": 129000,
907
+ "base_exenta": 0,
908
+ "total_con_iva": 140000,
909
+ "valor_descuento": 0,
910
+ "valor_recibido": 150000,
911
+ "cambio": 10000,
912
+ "tienda_nombre": "Tienda 1AAA SAS",
913
+ "tienda_nit": "990200200",
914
+ "tienda_direccion": "Direccion 1 No. 2 -2",
915
+ "tienda_telefono": "320200200",
916
+ "resolucion": "2020-100022",
917
+ "numeracion": "1 AL 200000",
918
+ "cantidad_registros": 10
919
+ }
920
+ ],
921
+ "manualSchema": [
922
+ {
923
+ "name": "factura_numero",
924
+ "type": "string",
925
+ "label": "Nº Factura"
926
+ },
927
+ {
928
+ "name": "factura_fecha",
929
+ "type": "date",
930
+ "label": "Fecha"
931
+ },
932
+ {
933
+ "name": "cliente_nombre",
934
+ "type": "string",
935
+ "label": "Cliente"
936
+ },
937
+ {
938
+ "name": "cliente_nit",
939
+ "type": "string",
940
+ "label": "NIT/CC"
941
+ },
942
+ {
943
+ "name": "cufe",
944
+ "type": "string",
945
+ "label": "CUFE"
946
+ },
947
+ {
948
+ "name": "total_item",
949
+ "type": "number",
950
+ "label": "Total"
951
+ },
952
+ {
953
+ "name": "base_gravada",
954
+ "type": "number",
955
+ "label": "Base Gravada"
956
+ },
957
+ {
958
+ "name": "base_exenta",
959
+ "type": "number",
960
+ "label": "Base Exenta"
961
+ },
962
+ {
963
+ "name": "total_con_iva",
964
+ "type": "number",
965
+ "label": "Total c/IVA"
966
+ },
967
+ {
968
+ "name": "valor_descuento",
969
+ "type": "number",
970
+ "label": "Descuento"
971
+ },
972
+ {
973
+ "name": "valor_recibido",
974
+ "type": "number",
975
+ "label": "Valor Recibido"
976
+ },
977
+ {
978
+ "name": "cambio",
979
+ "type": "number",
980
+ "label": "Cambio"
981
+ },
982
+ {
983
+ "name": "tienda_nombre",
984
+ "type": "string"
985
+ },
986
+ {
987
+ "name": "tienda_nit",
988
+ "type": "string"
989
+ },
990
+ {
991
+ "name": "tienda_direccion",
992
+ "type": "string"
993
+ },
994
+ {
995
+ "name": "tienda_telefono",
996
+ "type": "string"
997
+ },
998
+ {
999
+ "name": "resolucion",
1000
+ "type": "string"
1001
+ },
1002
+ {
1003
+ "name": "numeracion",
1004
+ "type": "string"
1005
+ },
1006
+ {
1007
+ "name": "cantidad_registros",
1008
+ "type": "number"
1009
+ }
1010
+ ],
1011
+ "isDetail": false
1012
+ }
1013
+ ],
1014
+ "dictionary": {
1015
+ "dataSources": [
1016
+ {
1017
+ "alias": "main",
1018
+ "label": "Items Factura",
1019
+ "fields": [
1020
+ {
1021
+ "name": "factura_numero",
1022
+ "type": "string",
1023
+ "label": "Nº Factura"
1024
+ },
1025
+ {
1026
+ "name": "factura_fecha",
1027
+ "type": "date",
1028
+ "label": "Fecha"
1029
+ },
1030
+ {
1031
+ "name": "cliente_nombre",
1032
+ "type": "string",
1033
+ "label": "Cliente"
1034
+ },
1035
+ {
1036
+ "name": "cliente_nit",
1037
+ "type": "string",
1038
+ "label": "NIT/CC"
1039
+ },
1040
+ {
1041
+ "name": "cufe",
1042
+ "type": "string",
1043
+ "label": "CUFE"
1044
+ },
1045
+ {
1046
+ "name": "cantidad",
1047
+ "type": "number",
1048
+ "label": "Cantidad"
1049
+ },
1050
+ {
1051
+ "name": "codigo",
1052
+ "type": "string",
1053
+ "label": "Código"
1054
+ },
1055
+ {
1056
+ "name": "descripcion",
1057
+ "type": "string",
1058
+ "label": "Descripción"
1059
+ },
1060
+ {
1061
+ "name": "valor_unitario",
1062
+ "type": "number",
1063
+ "label": "Vr. Unitario"
1064
+ },
1065
+ {
1066
+ "name": "total_item",
1067
+ "type": "number",
1068
+ "label": "Total"
1069
+ },
1070
+ {
1071
+ "name": "base_gravada",
1072
+ "type": "number",
1073
+ "label": "Base Gravada"
1074
+ },
1075
+ {
1076
+ "name": "iva_item",
1077
+ "type": "number",
1078
+ "label": "IVA Item"
1079
+ },
1080
+ {
1081
+ "name": "base_exenta",
1082
+ "type": "number",
1083
+ "label": "Base Exenta"
1084
+ },
1085
+ {
1086
+ "name": "total_con_iva",
1087
+ "type": "number",
1088
+ "label": "Total c/IVA"
1089
+ },
1090
+ {
1091
+ "name": "valor_descuento",
1092
+ "type": "number",
1093
+ "label": "Descuento"
1094
+ },
1095
+ {
1096
+ "name": "valor_recibido",
1097
+ "type": "number",
1098
+ "label": "Valor Recibido"
1099
+ },
1100
+ {
1101
+ "name": "cambio",
1102
+ "type": "number",
1103
+ "label": "Cambio"
1104
+ }
1105
+ ]
1106
+ }
1107
+ ],
1108
+ "manualFields": []
1109
+ },
1110
+ "parameters": [
1111
+ {
1112
+ "id": "p_numero",
1113
+ "name": "NumeroFactura",
1114
+ "label": "Nº Factura",
1115
+ "type": "string",
1116
+ "defaultValue": "FT-001234",
1117
+ "required": true
1118
+ },
1119
+ {
1120
+ "id": "p_fecha",
1121
+ "name": "FechaEmision",
1122
+ "label": "Fecha de Emisión",
1123
+ "type": "date",
1124
+ "defaultValue": "2026-05-30T15:30:00.000Z",
1125
+ "required": true
1126
+ },
1127
+ {
1128
+ "id": "p_cufe",
1129
+ "name": "CUFE",
1130
+ "label": "CUFE",
1131
+ "type": "string",
1132
+ "defaultValue": "f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f",
1133
+ "required": true
1134
+ },
1135
+ {
1136
+ "id": "p_subtotal",
1137
+ "name": "ValorSubtotal",
1138
+ "label": "Subtotal",
1139
+ "type": "number",
1140
+ "defaultValue": 122700,
1141
+ "required": true
1142
+ },
1143
+ {
1144
+ "id": "p_iva",
1145
+ "name": "ValorIVA",
1146
+ "label": "IVA 19%",
1147
+ "type": "number",
1148
+ "defaultValue": 20425,
1149
+ "required": true
1150
+ },
1151
+ {
1152
+ "id": "p_total",
1153
+ "name": "ValorTotal",
1154
+ "label": "Total a Pagar",
1155
+ "type": "number",
1156
+ "defaultValue": 143125,
1157
+ "required": true
1158
+ },
1159
+ {
1160
+ "id": "p_forma_pago",
1161
+ "name": "FormaPago",
1162
+ "label": "Forma de Pago",
1163
+ "type": "select",
1164
+ "defaultValue": "Efectivo",
1165
+ "required": true,
1166
+ "options": [
1167
+ {
1168
+ "label": "Efectivo",
1169
+ "value": "Efectivo"
1170
+ },
1171
+ {
1172
+ "label": "Tarjeta Débito",
1173
+ "value": "Tarjeta Débito"
1174
+ },
1175
+ {
1176
+ "label": "Tarjeta Crédito",
1177
+ "value": "Tarjeta Crédito"
1178
+ },
1179
+ {
1180
+ "label": "Transferencia",
1181
+ "value": "Transferencia"
1182
+ }
1183
+ ]
1184
+ }
1185
+ ]
1186
+ }