ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

POS Customisation : Data send from POS to Sales Invoice

pos_point_of_sale

#1

Hello Everyone,

I am working on POS Customisation and added 1 custom field on point_of_sale.js. which looks like this.

i want to send the Remarks Data in Sales Invoice custom field Named as “POS Remarks”. How should i ?

can anyonw help with this ?


#2

From JavaScript, call this.frm.set_value('remark', 'This is my remark');


For my custom POS I use a different architecture and create the invoice server-side in Python:

Here you’d have to add an argument “remark” to the function and pass that command from JavaScript.


#3

Thanks for the reply @rmeyer

I can push the String to the custom field like you said here this.frm.set_value(‘remark’, ‘This is my remark’);. But how can i push dynamic data that i enter in remarks field in popup ?


#4

If by popup you mean the payment modal, check this:

Inside the onchange function you can set the value.


#5

Thanks For Your Response @rmeyer

I have completed this task