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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

NSF payment button disabled

(0) ShareShare
ReportReport
Posted on by 1,261

Hi,

i have seen this before and in some other post, but no answe.

What set up am i missing to make the NSF payment button to appear on the collection form?

7345.e.png

My bank parameters bank trans type is set up, my NSF journal on the bank is set up too...

*This post is locked for comments

I have the same question (0)
  • Brandon Wiese Profile Picture
    17,788 on at

    The logic for whether that button is enabled or not is located in the canNsfCustTrans() method on the form CustCollections.

    public boolean canNsfCustTrans()
    {
        if (custTrans_ds.getFirst(1) && custTrans_ds.getNext())
        {
            return false;
        }
        else
        {
            return custTrans.RecId && !custTrans.Invoice && custTrans.AmountMST < 0 && custTrans.TransType == LedgerTransType::Payment && custTrans.CompanyBankAccountId && !custTrans.CancelledPayment;
        }
    }

    So basically, for the button to be enabled, the following must ALL be true.

    1.  There must be an actual customer transaction record (in your screen shot, there is).

    2.  There must NOT be an Invoice number on the transaction (in your screen shot, there is an Invoice number).

    3.  The customer transaction amount must be less than zero (in your screen shot, it is positive).

    4.  The customer transaction type must be payment (not visible in your screen shot).

    5.  The customer transaction must not have already been cancelled (also not visible in your screen shot).

    6.  The customer transaction must have a "CompanyBankAccountId" field populated (also not visible in your screen shot).  I'm not familiar with that field on the CustTrans record personally.

  • Veronika Filonenko Profile Picture
    1,261 on at

    Thank you Brandon for you response. It is clear on the code. But i am still not getting the logic of the code/process on point 2 and 3.

    If my line is NOT an invoice and less then 0 $... then what am i supposed to write-off?

    I did not received a payment, because the customer has no money.

    Or if i did close my invoice by a payment, but the cheque bounced, well i can't see my transactions in this windon any more as it is Settled/closed.

    I would need i bit more guidance from a finance logic please... :|

  • Verified answer
    Veronika Filonenko Profile Picture
    1,261 on at

    your help Brandon pointed me out to the right direction.

    I was able to finally understand the logic behind the code.

    a) to choose a Payment line (not an invoice) we must click on the Show button, for the system to show us the closed transactions as well. This part is not clear in any documentation.

    2045.2.png

    b) when a payment line is shown, when selected the NSF button is shown and is enabled.

    2045.2.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans