Imprimir
Esta función permite imprimir imágenes, textos y códigos de barras (QR o EAN) con la impresora térmica de recibos Smartpos.
Configuración del parámetro
Esta función requiere que complete el registro 390 con las configuraciones de impresión en formato JSON. Consulte la sección Registros de entrada para obtener más información.
ID de la función
Registro | Valor |
---|---|
110 | 1 |
Registros de entrada
Registro | Descripción | Obligatorio | Value |
---|---|---|---|
390 | JSON con configuraciones de impresión | Sí | El JSON debe estructurarse como en el siguiente ejemplo: { "printLines": [{ "type": "IMAGE", "content": "#S{1001}", "graphicStyle": { "offset": 0 } }, { "type": "TEXT", "content": "COMERCIO:#S{2000}", "textStyle": { "align": "CENTER", "fontsize": "LARGE", "bold": true } }, { "type": "IMAGE", "content": "#S{1001}", "textStyle": { "width": 100, "height": 50, "offset": 0, "align": "CENTER" } }, { "type": "TEXT", "content": "COMERCIO:#S{2000}", "textStyle": { "align": "CENTER", "fontsize": "LARGE", "bold": true } }, { "type": "TEXT", "content": "FECHA:#K{NOW:D} HORA:#K{NOW:T}", "textStyle": { "align": "CENTER", "fontsize": "MEDIUM", "bold": false } }, { "type": "TEXT", "content": "DIRECCION:#S{2001}\n", "textStyle": { "align": "CENTER", "fontsize": "MEDIUM", "bold": false } }, { "type": "TEXT", "content": "AUTORIZACION|TARJ\n#S{6001}|****#S{6002}\nVALOR RETIRO #S{6003:G}\n\n\n\n", "textStyle": { "align": "CENTER", "fontsize": "SMALL", "bold": false } }, { "type": "QR", "content": "#S{1002}", "graphicStyle": { "height": 200, "offset": 0 } }, { "type": "BARCODE", "content": "#S{1005}", "graphicStyle": { "width": 400, "height": 80, "offset": 0, "align": "CENTER" } } ] } |
Registros de salida
Registro | Descripción | Valor | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
112 | Resultado de la Call |
|