Dear support forum
We experience from time to time empty GL entries, and we cannot figure out why this occurs.
We have an automation in place that automatically sets Party Type and Party on a Bank Transaction (based on bank account, name, …) and then create a Payment Entry based on that Bank Transaction. Once the PE is created, the system checks for outstanding invoices that match the amount, and then reconciles the invoices.
We process about 2000 Bank Transactions per year, and we get about 20-30 empty GL entries.
We have put in place a monitoring system to detect these empty GL entries, but we would like to prevent it all together. We cannot recreate it manually and we do not understand the circumstances why ERPNext would create an empty GL.
To complicate the matter more, the PE that gets created is valid, and does gets reconciled with outstanding invoices.
The result is a faulty General Ledger for the accounts involved.
My thanks to anyone interested in the topic and to anybody that can point us in the right direction.