How to create journal entries automatica for each invoice

I need the journal entries to be generated automatic for each invoices created, thanks

You will need to create a custom script for that yourself. I’m curious though, why do you want the journal entries? Perhaps there’s a better way