Good afternoon…
Let me preface this question by pointing out: I am a software engineer, NOT an accountant.
Boss comes to me and says: I want a HTML view into the GL. Backstory here: I have built out a very comprehensive web interface for various BI aspects of our Epicor system. The idea behind his request is so he can quickly view where certain things “tie together” in the GL.
Fast forward to now…
I noticed 2 main tables: GLJrnHed and GLJrnDtl.
I assumed this was something similar to how invoices, PO’s and sales orders were structured: each HED record has many DTL records.
But I am not sure I understand the relationship of HED <-> DTL entries as they relate to the GL.
Why you ask? It is 2023… and yet - the newest record in our GLJrnHed table is from END OF LAST YEAR. This is the first strange thing to me. The next strange thing is this: the entries in the DTL table seem to have no relation to the entries in the HED table. Yes, the JournalNum joins fine - but here is an example:
I have 10 entries in the GL DTL table that reference a FEW AP invoices. All 10 were entered just a couple days ago (2023-02-11). Of coarse, there are the matching debit and credit entries, but… the GLJrnHed has 3 entries (not just one) with this same JournalNum.
What is even more puzzling is: Of the 3 entries, they are dated from 2012, 2013 and 2014. Why would these 10 recently-created DTL entries be related to 3 entries in the HED table that seem to have absolutely no relation to each-other??
It seems like - for what my boss wants - I need only look at the DTL table (the HED table really does not seem to provide anything useful for what I am doing)… no?
Sorry… my understanding of double-entry bookkeeping is limited to what I recal from grade school.
-Dean