tonyvee1973
IS-IT--Management
Hi
I have a report which uses a "Whileprintingrecords" formula - I only need to show results that are greater than zero but am going around in circles. I've placed the formulas below, any help really would be appreciated.
(The formula for the field which i only to show results which are greater than zero - this is called {@printrunphysical})
// Prints the recalculated 'As At' value for Physical quantity
whileprintingrecords;
numbervar RunPhysical;
(The runphysical formula)
// Calculate the Physical 'AS AT' value starting with the most recent movement back to the oldest (After 'As At' Date)
Whileprintingrecords;
Numbervar RunPhysical;
If {STK_MOVEMENTS.SM_DATE} > {?Report Date} And {STK_MOVEMENTS.SM_STATUS} = 'I'
Then
RunPhysical := RunPhysical - ({STK_MOVEMENTS.SM_QUANTITY}*{STK_MOVEMENTS.SM_QTYUNIT})
Else
If {STK_MOVEMENTS.SM_DATE} > {?Report Date} And {STK_MOVEMENTS.SM_STATUS} = 'O'
Then
RunPhysical := RunPhysical + ({STK_MOVEMENTS.SM_QUANTITY}*{STK_MOVEMENTS.SM_QTYUNIT})
Else
RunPhysical := RunPhysical
I have a report which uses a "Whileprintingrecords" formula - I only need to show results that are greater than zero but am going around in circles. I've placed the formulas below, any help really would be appreciated.
(The formula for the field which i only to show results which are greater than zero - this is called {@printrunphysical})
// Prints the recalculated 'As At' value for Physical quantity
whileprintingrecords;
numbervar RunPhysical;
(The runphysical formula)
// Calculate the Physical 'AS AT' value starting with the most recent movement back to the oldest (After 'As At' Date)
Whileprintingrecords;
Numbervar RunPhysical;
If {STK_MOVEMENTS.SM_DATE} > {?Report Date} And {STK_MOVEMENTS.SM_STATUS} = 'I'
Then
RunPhysical := RunPhysical - ({STK_MOVEMENTS.SM_QUANTITY}*{STK_MOVEMENTS.SM_QTYUNIT})
Else
If {STK_MOVEMENTS.SM_DATE} > {?Report Date} And {STK_MOVEMENTS.SM_STATUS} = 'O'
Then
RunPhysical := RunPhysical + ({STK_MOVEMENTS.SM_QUANTITY}*{STK_MOVEMENTS.SM_QTYUNIT})
Else
RunPhysical := RunPhysical