Solved

Crystal  - Shared vairable capture wile printing

Posted on 2016-08-09
1
26 Views
Last Modified: 2016-08-09
Attached is a sample report where I am trying to capture the TOTAL netagive value for that ship date.  Curretnly the formuals are written to capture the First Negative date which is working but in the event there are multiple orders on the same day it does not work as desired.

Example:
Product: 323600-69
Total negative amount:  164   (this is the value I want to capture as that is the sum of the total negative amount for the 8/9/2016 ship date.  Currently the vairable is only capturing the -32 value since that is the first negative amount.
Sample1.rpt
0
Comment
Question by:kelsanit
1 Comment
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 41748866
Try changing your calculation formula zCalc_Qty_OnHand_AfterOrder to

EvaluateAfter({@zDisp_Qty_OnHand});
SHARED NumberVar Qty_OnHand;
SHARED DateVar First_Negative_Date;
SHARED NumberVar First_Negative_Qty;

Qty_OnHand := Qty_OnHand - {ORDER_TRL.Quantity-Open};
If Qty_OnHand < 0 AND First_Negative_Date = Date(1900,1,1) then
(
    First_Negative_Date := {ORDER_HDR.Ship-Date};
    First_Negative_Qty := Qty_OnHand*-1;
)
Else If Qty_OnHand < 0 AND First_Negative_Date = {ORDER_HDR.Ship-Date} then
    First_Negative_Qty := Qty_OnHand*-1;

Qty_OnHand

Open in new window


mlmcc
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now