Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: display row data Post Reply Post New Topic
Author Message
andicsc
Newbie
Newbie
Avatar

Joined: 03 Jul 2008
Location: Australia
Online Status: Offline
Posts: 12
Quote andicsc Replybullet Topic: display row data
    Posted: 20 Jul 2008 at 10:44pm

Hi all

I try to work out the report which link up Invoice and invoice detail files.  The orginal format like below :
 
Invoice No  Name   Item Code   Description  Qty Amount
12345        Smith    A01             ABC              1    10.00
12345        Smith    A02             Delivery        1      3.00
12345        Smith    A03             Admin Fee     1     2.00
 
I would like to diaply the data like this :
 
Invoice No Name  Item code  Description  Amt Delivery  Admin  Total
12345        Smith   A01           ABC       10.00    3.00   2.00    15.00
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 21 Jul 2008 at 1:48pm

Can there be more than one Item that's not Delivery or Admin?  Does each item have its own Delivery and Admin fee or is there one of each per invoice?

-Dell
IP IP Logged
andicsc
Newbie
Newbie
Avatar

Joined: 03 Jul 2008
Location: Australia
Online Status: Offline
Posts: 12
Quote andicsc Replybullet Posted: 21 Jul 2008 at 4:46pm

Admin fee is a must, however, delvier fee may not

IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 21 Jul 2008 at 6:32pm

If there can be more than one non-delivery, non-admin item on an an invoice, this is going to be more complicated.  Here's what I would do if there is only ever one item on an invoice:

1.  In the Database Expert, add two more copies of the invoice details table (I'll just call it Details.)  When you add a table that is already in your report, Crystal will tell you that the table is already on the report and ask if you want to rename it.  Click on Yes.  You' now have three copies of the Details table - Details, Details_1, and Deatails_2.
 
2.  Still in the Database Expert, link Details_1 and Details_2 to the Invoice Master table.  Link FROM the master TO the details and make the links Left Outer Joins.
 
3.  In the Select Expert, set the following conditions:
  {Details.Description} not in the list ('Admin Fee', 'Delivery')
  {Details_1.Description} is equal to 'Admin Fee'
  {Details_2.Description} is equal to 'Delivery'
 
On your report you can now set up your report like your example.  Use the data from the Details_1 table for the Admin Fee columns and from the Details_2 table for the Delivery columns.
 
-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.033 seconds.