extract bills information for a custom report

Hello,

I have to develop a custom report in Peachtree Premium Accounting 2009. As per the requirements, I have to show one detail record for the fields that are filled using the following option:

Tasks -> Bills -> Enter Bills

The fields that I have to show in the details section of crystal report include the following:

Vendor ID, Date, Invoice No., A/P Account, GL Account, Amount, Job, Amount Paid at Purchase, Net Due, Reference, and Cash Account.

Is it possible to know the field names and table names for this information so that I could insert those fields in my custom crystal report .rpt file? I studied the help file and there is a help topic with the title List of Data (.DAT) Files Available in Peachtree DDFs for Crystal Reports. It shows the name of three tables that I believe would be needed in this report. These include JRNLHDR.DAT, JRNLROW.DAT, and LINEITEM.DAT. Other table file that is listed is BOMITEMS.DAT. If I could get some advice to select the relevant report fields, it would be very helpful to me.

Regards,

Shehzad

  • 0
    I finally found the names of the fields through help file and trial and error. The field names are as follows as per my understanding:

    Vendor ID {JrnlRow.VendorRecordNumber},
    Date {JrnlHdr.TransactionDate},
    Cash Account {JrnlHdr.GLAcntNumber},
    Invoice No. {JrnlRow.InvNumForThisTrx},
    A/P Account {JrnlRow.GLAcntNumber},
    GL Account {JnrlRow.GLAcntNumber},
    Amount {JrnlRow.Amount},
    Job {JrnlRow.JobRecordNumber},
    Reference {JrnlHdr.Reference}.

    However, I have not been able to find the link fields between JrnlHdr and JrnlRow tables. If I could know the following, it will be very helpful:

    1. What is the primary key of JrnlHdr table?
    2. Which key(s) link JrnlHdr and JrnlRow tables?

    Regards,
    Shehzad