Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 26, 2023 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/4d34fd5cec61daa5b6747ae24ae585a1 to your computer and use it in GitHub Desktop.
Save parzibyte/4d34fd5cec61daa5b6747ae24ae585a1 to your computer and use it in GitHub Desktop.
// Empezar a usar el plugin
const conector = new ConectorPluginV3();
conector
.EscribirTexto("Ticket de venta\n")
.EscribirTexto("Fecha: " + detallesTicket.fecha)
.Feed(1);
for (const producto of detallesTicket.productos) {
conector.EscribirTexto(producto.nombre + " precio: " + producto.precio);
conector.Feed(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment