I am using Peachtree Quantum 2011 and Crystal Reports v2008. Peachtree uses Pervasive SQL as its database engine.
I designed a report to show the items sold. The report is grouped by vendors that supply the item(s). The report also displays the current quantity on hand for the item. If the item is sold more than once in a given period the report lists the current quantity on hand again. The current quantity on hand is the result of a special function and will only result in the current quantity on hand for the last day of the current accounting period. Therefore, I put the current quantity on hand function in the Group Footer #2 {LineItem.ItemID} and suppressed the detail section.
Vendor Item ID QOH Units Sold On Hand $
A 123 10 25 $100
A 456 20 10 $200
A 789 50 5 $250
Total for A 80 40 $550
(The Total for A is showing 50 for the total QOH instead of 80.)
I need to add the current quantity on hand in each Group Footer #2 and place the sum in the Group Footer #1 {LineItem.VendorRecordNumber}.
The report is displaying the wrong amount in Group Footer #1 no matter what I do. Right now, it is displaying the last value in the Group Footer #2.
My formula for the current quantity on hand is:
{@QOH} = GetPeachQtyOnHandv2 (Filename, {LineItem.ItemRecordNumber} )
The formula is placed in the Group Footer #2.
The formula for the current quantity on hand for all the items under a vendor is:
{@QOH per Vendor} =
WhilePrintingRecords;
NumberVar QOHperVendor := ({@QOH});
It is placed in the Group Footer #1.
I am happy to attach the report file to an email if anyone needs it.
How can I get the correct quantity on hand for each vendor?
Thank you for your assistance.
I designed a report to show the items sold. The report is grouped by vendors that supply the item(s). The report also displays the current quantity on hand for the item. If the item is sold more than once in a given period the report lists the current quantity on hand again. The current quantity on hand is the result of a special function and will only result in the current quantity on hand for the last day of the current accounting period. Therefore, I put the current quantity on hand function in the Group Footer #2 {LineItem.ItemID} and suppressed the detail section.
Vendor Item ID QOH Units Sold On Hand $
A 123 10 25 $100
A 456 20 10 $200
A 789 50 5 $250
Total for A 80 40 $550
(The Total for A is showing 50 for the total QOH instead of 80.)
I need to add the current quantity on hand in each Group Footer #2 and place the sum in the Group Footer #1 {LineItem.VendorRecordNumber}.
The report is displaying the wrong amount in Group Footer #1 no matter what I do. Right now, it is displaying the last value in the Group Footer #2.
My formula for the current quantity on hand is:
{@QOH} = GetPeachQtyOnHandv2 (Filename, {LineItem.ItemRecordNumber} )
The formula is placed in the Group Footer #2.
The formula for the current quantity on hand for all the items under a vendor is:
{@QOH per Vendor} =
WhilePrintingRecords;
NumberVar QOHperVendor := ({@QOH});
It is placed in the Group Footer #1.
I am happy to attach the report file to an email if anyone needs it.
How can I get the correct quantity on hand for each vendor?
Thank you for your assistance.