Skip to main content

How to eliminate the Reversals (DR & CR Net to Zero) in Journal entries

 
 
 

Hope you are well I'm constantly following your posts in the site and your idea-scripts  and im searching for idea-script or procedure to do with this issue ( Removes reversals of Dr & Cr in GL) if you can help me im thankfull to your appreciate Thanks,Hady
 

 
 
 

Brian Element Sat, 10/12/2019 - 19:44

I have tried to create a script but this is highly complex, it is not as easy as just removing all debits and credit that equal.  The user would have to define the fields that would be the same in the reversal and the script would also have to figure out what to do it there were mutiple reversals for the same amount.  So this is not a simple script to create.  Unfortunately I don't have the time right now to try and create it in Python, this is a project that I have pegged for the future.

scotchy33 Tue, 10/15/2019 - 14:15

Hi Brian,
Attached is what I came up awhile ago.  If you ever improve upon it, let me know. 
Scott

Brian Element Wed, 10/16/2019 - 07:56

In reply to by scotchy33

Hi Scott, thanks for sharing, I enjoyed looking at your script.  You are coming at it from a different way then I was and I like it.

hady mohamed Thu, 10/17/2019 - 02:32

Hi scott , Thanks for sharing the script , please can you show it to me how it works and i have attached for you GL for example includes Acc No. & Acc description & debit & credit & amount coloumn (Dr + Cr) and each account seperatly have reversals in it so please can you gudie me to eliminate these by your script because i have try it and i didnt get it 

scotchy33 Thu, 10/17/2019 - 09:37

Hi Hady,
I have attached 5 screenshots.
1) Shows a potential reversal 
2) Run script - first parameter select AMOUNT
3) Index by ACCOUNT_NUMBER and ACCOUNT_DESCRIPTION (these are the fields that have to be the same for script to consider it a true reversal -- usually you would have a date/month field)
4) A few new files are created - the file with the Reversal Indicator ends with Reversal Flag.  One observation is that the file names get pretty large.  I believe IDEA/Windows has a 256 character path limit, so may cause script to fail if file names get really long.  File naming might need to change in next version of script.
5) The "Reversal Flag" file has a field called IND_REVERSAL_FLAG.  This field is the indicator of a potential reversal. If you don't want the reversals in the file-- do a direct extraction IND_REVERSAL_FLAG <> "X" or    IND_REVERSAL_FLAG  = ""  
Hopefully this is clear to you, best of luck.
Scott

The website encountered an unexpected error. Try again later.