web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

delete/change a payment application

(0) ShareShare
ReportReport
Posted on by

Hello,

I made a really bad mistake when I did a payment application in SL. I wrote the wrong period for my batch and hit the release now button. My batch is still unreleased to the GL but I can't seem to be able to correct it.

The problem is when it is release it will affect my AR and it's our fiscal year end, so the payment will be applied in the previous fiscal year and change all my numbers. Is there a way to correct this?

Thank you all for your help!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    There are several things that you could do depending on your SL rights and availability of a SQL tool.

    I have to start by asking for some more detail.

    a) Did this batch introduce new cash or were you just applying former payments and/or credit memos to invoices?  In other words, did this batch have a non-zero control total?  It sounds like it did since you said it exists on the GL side.

    b) Do you use Cash Manager or Bank Reconciliation?

    If the answer to question a is yes the batch introduced new cash and the answer to question b was no you do not use one of these modules then the following applies.

    1) Since the batch is not yet posted to the GL, you, or a user with initialize mode rights to the GL journal entry screen, can enable initialize mode, open that screen, change the module to AR and edit the posting period of the batch.  While this action will fix the GL side, it will not fix the AR side so the transactions of this batch will still show under the original posting period on any AR reports but the GL side will be correct.  If you are OK with this limitation then this is your easiest choice.

    2) If you, or someone, have access to the SQL Server Management tool such that a set of update queries can be run against the various tables affected by the batch.  Here are the update queries that need to be run where xxxxxx is the batch number and yyymm is the correct posting period and YYYYMM is the incorrect posting period.

    update ardoc set perpost = yyyymm where batnbr = 'xxxxxx'

    update artran set perpost = yyyymm where batnbr = 'xxxxxx'

    update aradjust set  adjgperpost = yyyymm where adjbatnbr = 'xxxxxx'

    update ardoc set perclosed = yyyymm where perclosed = YYYYMM and custid+doctype+refnbr in (select custid+adjddoctype+adjdrefnbr from aradjust where adjbatnbr = xxxxxx)

    update gltran set perpost = yyyymm where batnbr = 'xxxxxx' and module = 'AR'

    update batch set perpost = 'yyyymm where batnbr = 'xxxxxx' and module = 'AR'

    The above update queries need to be done with caution and accuracy as they can make a mess if you do not enter them correctly.  It is suggested that each one of them start with

    begin transaction and end with commit transaction where you execute the begin transaction line and the update query but not the end transaction line and see how many records are affected and then execute the commit transaction line if the record count seems reasonable.  The ardoc update should have a record count equal to the number of payment documents.  The artran update will likely be double that document count.  The batch update should only affect 1 document.  The gltran update can vary depending on the number of unique GL account/sub-accounts involved in the payment batch.  The aradjust count should equal the number of invoices having the payments applied to.

    If you are not comfortable with SQL update commands then I suggest you go with option 1 realizing the AR reports will still reflect the wrong posting period.  If you use Cash Manager or Bank Reconciliation then let me know and do not attempt option 2 without additional information as those modules are also affected by a payment application batch.

  • Community Member Profile Picture
    on at

    Actually I just found out I could reverse a payment application using the application Inquiry/reversal option. And it worked. I reversed my payment application and did it again with the good period.

    It was the perfect solution for me as I do not have all the rights on SL and don't know how to proceed queries and such.

    Thank you for your help.

  • Community Member Profile Picture
    on at

    That method works as well but has a side effect that some users do not like.  In particular, if the payment batch introduced new cash then you have to use the NSF action to back the effect out of the GL and the AR reports and that leaves NSF documents on the customer statements which can bother the customer since it was not really an NSF situation.

     

    Still, if you are happy with that approach then that is wonderful as my suggestions are more complicated.

     

    Glad it worked for you.

  • Community Member Profile Picture
    on at

    We used the reverse application function on a large deposit that was mis-applied across many customer.  We did not use the NSF function and now we can't reconcile cash manager because it made a strange deposit balance post in cash manager.  The GL is correct and when we look at the batch, it posted $1,585 which is correct.  When we go to reconcile deposits, the amount open to reconcile is $22,002 which is the sum of the $1,585 and another payment for $20,416.  How can we get rid of this?

    thanks for your help!

  • Community Member Profile Picture
    on at

    There is a significant difference between performing a reverse application and performing an NSF action on the application inquiry screen.  Reverse application just un-applies the payment to the invoices you applied it to (all the invoices to which that payment was applied) thereby leaving a balance on those invoices and an unapplied amount on the payment.  The NSF action does the same with the invoices but creates a reversing transaction for the payment such that the payment no longer has a balance.  The reverse application should have no effect on Cash Manager as it does not affect cash whereas the NSF action reduces cash in bank because it basically says the payment did not exist.  So, I am confused about what you are saying.  If you only did the reverse application process then it would not have affected cash manager as you are saying.

    Now, you also indicated that you have crossed fiscal years between the original payment entry and the action you took.  The application inquiry screen does not have a field for specifying the posting period for the taking away the cash deposit when doing an NSF action.  It sets the posting period for the new NSF transactions (basically crediting cash and debiting receivables) to the same posting period as the original payment which means it would have hit your prior fiscal year.  And, because cash manager is not posting period drive but, rather, transaction date driven (except when reconciling to the GL), an NSF action crossing fiscal periods and/or years presents additional challenges to cash manager.

    However, you stated you did not do an NSF action so my explanation as to what an NSF can do to cash manager does not seem to fit.

  • Community Member Profile Picture
    on at

    Ok, sorry I was not very clear.  I just switched from working with Dynamics AX (I was a super user) to SL and it seems totally archaic so I am more than a little frustrated.  One of our clerks did this.  She says that a payment was applied incorrectly and since she did not want NSF showing up on the customers statements, she used the reverse application function.  In the batch of what she reversed was one NSF item.  On that item she used the NSF function and the rest she used the reverse application function.  Sorry, I’m not real clear on this but I can get more detail if needed.

     

    Now what we see when I look at the GL detail report for the batch that was unapplied is the $1,585 for the NSF item.

     

    When I look at the same batch in Cash Manager, via unreconciled deposits, the transaction/batch is for $22,202.  When I select the detail button to see the underlying data in the transaction, it only has the $1,585 and nothing for the remaining $20,614. 

     

    Based on your post to another user, it looks like not using the NSF function has created a discrepancy in the database.  In AX I would be able to fix a batch without having to go to the database but it doesn’t look like I can get to it in SL.  Does this make sense?

     

    Thanks!

  • Community Member Profile Picture
    on at

    Sorry to come back with more questions but, there are several parts of your statement that do not reflect how SL works.  I suspect, since you said you were new to SL, that you have been making some assumptions or the clerk is not telling you what they did accurately.  You said this person reversed a batch and that batch contained an NSF item.  Well, first of all, the application inquiry/reversal screen does not work on an existing batch.  Rather, it works on individual payment/credits that have been applied to invoices or debit memos.  Second, a batch of payments would never include an NSF item unless what you meant was the payment in the batch of payments turned out to require an NSF action and this person used the application inquiry/reversal screen to do an NSF on that one payment.  Third, the application inquiry/reversal screen does not create a batch when you do an application reversal as that does not have any affect on the GL or in Cash Manager.  The only time the application inquiry/reversal screen creates a batch is when you do either an NSF action or you use this screen to move the payment from one customer to another.  Finally, your clerk said she applied the payment incorrectly.  Does that mean she recorded the payment against the right customer but to the wrong invoice or that she recorded the payment against the wrong customer?  If the former, then this clerk should have used the application reversal option on the screen and that would not have resulted in an NSF showing on a statement.  If, however, she recorded the payment against the wrong customer then the clerk should have used the reclassify option on the screen and that would not have shown as an NSF on the original customer but would she a payment and the reversal of that payment.  So, I am not sure the clerk took the correct steps without better understand the complete reason for taking steps as your explanation does not completely fit.

    Your second paragraph seems to indicate that some sort of NSF action was taken because that would result in something that would show as a batch on the GL side unless the clerk actually used the reclassify option.

    I have to inform you that I have very limited knowledge of Cash Manager as only one of my clients used that module and ended up stopping using it (primarily because of prior data entry errors they made that were making it difficult to use Cash Manager and not because Cash Manager was flawed).  So, someone else might have to chime in on your Cash Manager side of your issue.  However, when you say you are looking at "the batch" in Cash Manager are you referring to the original payment batch or a batch created by performing an NSF action on a payment using the application inquiry/reversal screen?  I am assuming the original payment batch was for $22,202 and that there was an NSF action taken on one of the payments in that batch that was for $1,585.  It also sounds like, perhaps, the only problem you are seeing is in Cash Manager and that the AR accounts and the GL seem to reflect things correctly.  Is that correct?

    If I were going to dig into this deeper I would be running some SQL queries against the various tables that were affected to see if the database, itself, has something wrong or it the issue is limited to a Cash Manager screen or report and the actual transaction are fine.  Since I am not your SL partner, this is something they will likely need to do for you.  This total issue is too complex to just answer on this forum (or so it seems).  I have just tried to clarify how SL works in these situations so that you can possibly better narrow down where the issue exists and so you can educate your clerk as to how to properly use the application inquiry/reversal screen for various situations.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans