Workflow status

Hay all
I have workflow i want document status changed based on some parameter
Like , if payment term =100 in advance status changed to confirmed cash
if payment term not equal 100 in advance status changed to confirmed credit

(if any one have a good solution plz help )

You just have put some field conditions and on save you can change the state of your documents.

find 3.2

https://erpnext.com/docs/user/manual/en/setting-up/workflows

Done by custom code.