Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Adjustment Decrease Formula Post Reply Post New Topic
Author Message
jejo1102
Newbie
Newbie


Joined: 28 Apr 2011
Location: Philippines
Online Status: Offline
Posts: 3
Quote jejo1102 Replybullet Topic: Adjustment Decrease Formula
    Posted: 28 Apr 2011 at 6:30pm
I have a customzied Inventory Movement Report. My problem is in my Adjustment Decrease column.  As you can see below their are 2 cost item indicate in adjustment decrease but the item cost 32.12 should be place in Adjustment increase because its a postive cost . what formula will i do?

Beg Bal / Receipt / Adjustment Inc / Adjustment Dec / Issuance / Ending
                                                                417.07
                                                                  32.12

It should be:

Beg Bal / Receipt / Adjustment Inc / Adjustment Dec / Issuance / Ending
                                 32.12                      417.07

Can you please check my existing formula:

IF {ICHIST.TRANSDATE} >= ToNumber({?FROMDATE}) THEN
(

if {ICHIST.QUANTITY} <= 0 Then

   IF NOT({ICHIST.TRANSTYPE} = 12 AND {ICHIST.APP} = 'IC' OR
         {ICHIST.TRANSTYPE} = 3 AND {ICHIST.APP} = 'PO' )  THEN
           ABS ({ICHIST.HOMEEXTCST})

)
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 29 Apr 2011 at 2:11am
since the values are meaningless to me, and it 'displays' a value, the syntax is fine.  Since you mentioned that the value is in the wrong column due to its sign, why not use the value to determine which column it goes in?  It would appear that {ichist.homeextcst} would be the variable that would determine which column to display value in.  You can still use the ABS () function, which always displays positive, if you like, though it won't be needed in one of the formulas as the values will be by definition positive.
 
You would need 2 formulas, one for the increase and one for the decrease, they would look pretty much the same, just checking on that field.
 
HTH
IP IP Logged
jejo1102
Newbie
Newbie


Joined: 28 Apr 2011
Location: Philippines
Online Status: Offline
Posts: 3
Quote jejo1102 Replybullet Posted: 03 May 2011 at 9:29pm
thanks for the reply, I've already try your suggestion and analyze the 2 formulas and its work.thanks a lot
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.000 seconds.