Solved

Crystal  - Shared vairable capture wile printing

Posted on 2016-08-09
1
41 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Crystal Report Filter Question 6 64
Date Formula: Last business day - 2 of prior month 12 54
Mask on Parameter CR2008 28 53
Crystal reports filter out records 2 27
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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 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