Is possible to update from Submitted to Draft?

We have a workflow for payment entry and the main function here is to update the posting date but when I used set_df_property allow on submit = 1. Still I can’t update the posting date so my option is to go back to draft using workflow. Thanks

Hi @Pejay

If you’re using a client script, I recommend checks the field “Allow On Submit” in the DocType.

However, if you need custom logic, set the field to read-only = 1 in the DocType, then create client script. Make the set_df_property(read_only ,0) in the client script to make it editable based on your rules.

That said, I don’t recommend this approach, as the Posting Date is crucial for the Payment Entry to track payments effectively.

Thanks @antzforwork . I tried this but in the Payment Entry if the document is submitted and you’ve changed the posting date and if you look on the ledger it doesn’t link in the reason of GL Entry link also base on the posting date. I already solve it but this is just a note incase someone wants to allow on submit the posting date on payment entry.