iID Integer (PK) cName Char(35)The Invoice Header table
iID Integer (PK) iNo Integer (Invoice no.) dDt Date (Invoice date) iPartyId Integer (FK to Customer Master table)The Invoice Items table
iID Integer (PK) iPID Integer (FK to Invoice Header table) cItem Char(35) (simply to avoid another mater for the eg.) bQty Double bRate DoubleThe Payments table
iID Integer (PK) iNo Integer (Payment no.) dDt Date (Payment date) iPartyId Integer (FK to Customer Master table) bAmt Double mRemarks Memo (This is appended to the generated mNarration below)The Accounts Ledger Table
iID Integer (PK) iPID Integer (FK to either Invoice Header or Payments table) iPartyId Integer (FK to Customer Master table) bDebitAmt Double bCreditAmt Double mNarration MemoThe mNarration will contain the text I mentioned previously. A record each is generate for Debits and Credits. This Accounts Ledger table is currently the one I am using to print the ledger pages utilizing the stored mNarrations.