Can we cancel the another document from different document through Client Custom Script

HI,

I’ve created a workflow for payment approval in Payment Entry, In that workflow there is an option to reject the payment , I want to cancel the linked payment request when user rejected the payment by custom client script?

@DME_Apaulsoftware a server script would be more efficient

Thanks for reply,

Can you give an rough idea, how I can achieve above functionality through server script, I don’t have access to python code.

@DME_Apaulsoftware server scripts is a doctype , same as client script . open server script list . create new . chose your doctype (payment entry) , event after cancel . and write your code .
couple lines you need , get the payment request linked to the doc and cancel it .

1 Like

I have created a workflow for payment approval in Payment Entry, In that workflow there is an option to reject the payment , I want to cancel the linked payment request when user rejected the payment by custom client script.

Steinco Industrial Solutions, Inc.