×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Custom report - can't find table/field with the Invoice Amount

Custom report - can't find table/field with the Invoice Amount

Custom report - can't find table/field with the Invoice Amount

(OP)
Hi,

I am working on a Custom Crystal report for AR using the AR_InvoiceHistoryHeader table.
(MAS 200)
It has almost all the data I need except for an Invoice Amount.
Does anyone know if that a stored value or will I need to calculate it from detail tables?

Thanks

Bruce O

RE: Custom report - can't find table/field with the Invoice Amount

In the AR_InvoiceHistoryHeader table, the sum of the lines is:
TaxableSalesAmt + NonTaxableSalesAmt

The invoice total would be: TaxableSalesAmt + NonTaxableSalesAmt + FreightAmt + SalesTaxAmt

I can't remember if you need to subtract DiscountAmt (you can test this).

RE: Custom report - can't find table/field with the Invoice Amount

(OP)
Hi andymc

>The invoice total would be: TaxableSalesAmt + NonTaxableSalesAmt + FreightAmt + SalesTaxAmt
>if you need to subtract DiscountAmt
Thanks.

While I'm at it there is one other thing I've been struggling with - joining tables.

Experimenting is taking a lot of time.
Since this is a remote legacy system the VPN/ODBC is dead slow.
A 5 minute wait is common for retrieving small data samples from a single table.

AR_InvoiceHistoryHeader and AR_CashReceiptsHistory appear to have all the raw data I need.
But they don't seem to share common primary keys.
I'm trying a new join on ARDivisionNo + CustomerNo + InvoiceNo now.

Any tips you can share?

Thanks







Bruce O

RE: Custom report - can't find table/field with the Invoice Amount

The report is slow because the tables are so large. I would suggest either importing the tables into an Access database or writing SQL Specific Pass Through Queries in Access for each table used in the report and base the report off that.

Visit Sage's Online Community
http://community.sagemas.com/sagemas/?category.id=...

RE: Custom report - can't find table/field with the Invoice Amount

(OP)
> I would suggest
> importing the tables into an Access database
> or writing SQL Specific Pass Through Queries in Access
>for each table used in the report and base the report off that.

Thanks, I finally did end up bringing everything into Access a few days ago.
Originally I just wanted to speed up the verification of the data.
Now I'll follow your advice and finish up the whole report in Access too.

However, I wonder if something could be set up wrong?
I've built ODBC reports that connect to other types of databases, using more, larger tables with more records.
I've never seen speed issues like this before.

Bruce O

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close