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