Mode of payment for sales invoice return

Hello Everyone.

Anyone can hint me where can i change default mode of payment for sales invoice return?

Thank you

seems not able !

What exact problem that you have.
I just test mine and I can change mode of payment in my sale invoice return.

1 Like

I need mode of payment of sales return to be default to prevent forgetting.

it is always go to cash mode of payment.

Does this mean that when customer payment in sale invoices is example Bank, then when return need to change from bank to cash?

try this script in Sales Invoice client script

 frappe.ui.form.on('Sales Invoice', {
	refresh(frm) {
	    if(frm.is_new() && frm.doc.is_return==1){
    	    $.each(frm.doc.payments,  function(i,  d) {
                 d.mode_of_payment = "Cash";

1 Like