Ticket Text Total Change Currency

When printing the total in text in the ticket says dollar, How can I change the currency

try but return blank


Because you are not returning anything from your function.

And you have methods in your function that will raise errors, like “document” does not exist; that is for a webpage, and you don’t have one.

function CambioMoneda(num) {
     return num.replace("Dolar","Pesos");
1 Like

tank you,

       function CambioMoneda(numero) {
    var n = numero.toString();
    return n.replace("Dólar", "Pesos");

perfect work