Im trying to convert the numeric total/subtotal to words in the POS module so that it is printed out on the receipt. Im working on these files:
\addons\point_of_sale\static\
\addons\point_of_sale\static\
Model.js
I've added the function get_letras() so far like so in models.js and added it to the pos_ticket_view.xml:
but it doesnt show up on the ticket. So far Im passing order.get_letras(widget.format_currency(order.get_change())) but even if I pass it a fixed value like order.get_letras(510) I still get num as being UNDEFINED:
Any help would be appreciated: