Posting GL Entries using Server Script

Hi,
I am posting the gl entries using server script after submitting Sales Invoice as well as Purchase Invoice. But after a while those GL entries gets deleted on it’s own. I think there is a background script running which detects any custom GL entry and deletes from the db.

Does anyone know about this?

Why? What are your JEs doing that can’t be solved in the invoice?

There are a few different things that could do this, depending on how you’ve got your GL Entries defined. In any case, this is generally a bad idea. GL Entries weren’t meant to be created directly.