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 :
Small and medium business | Business Central, N...
Answered

Is there any way to apply payment automatically in business central

(0) ShareShare
ReportReport
Posted on by 55

Hi I am working on business central on prem 18. I wanted to know is there any way to apply payments automatically in business central. We integrated web shop with business central, whenever the order comes from webshop into business central then we create a payment entry through code. we want to apply this payment automatically whenever the sales order gets converted into posted sales invoice. I just wanted to know that is there any standard way in business central to automatically close the payment? 

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    Yes, there is.

    You can define a payment method in Business Central that post the payment when the sales invoice is posted.

    So as long as you set up that payment method and make sure your webshop orders are assigned with that payment method when you create them in Business Central. You should be good to go.

    docs.microsoft.com/.../finance-payment-methods

  • Suggested answer
    Dallefeld Profile Picture
    211 User Group Leader on at

    You can do this using a Payment Method Code that is setup with a Balance Account Type of Bank, Balance Account No. equal to the bank where the funds were deposited.

  • Business central com Profile Picture
    55 on at

    Right now the problem is the payment is being applied automatically and I wanted to turned off. Do you know where can I turn it off ? I don't want to remove the payment method but I just wanted that payment should not be applied automatically.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    Then remove the balance type and  account no. from the payment type.

  • Business central com Profile Picture
    55 on at

    The balance type and account no are already empty in payment method page.

    pastedimage1648734663509v1.png

    Are you talking about this?

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    Then you must check the customer that is used for your weborders.

    If the Application Method field on the customer card contains Apply to Oldest, payments are applied to the oldest open credit entry, unless you manually specify an entry. If the application method is Manual, you always apply entries manually.

    So check if the application method is set to Manually.

    If that is not the case then there might be some custom code that do the posting of the payment at the same time the order is posted?

  • Suggested answer
    Dallefeld Profile Picture
    211 User Group Leader on at

    You stated "We integrated web shop with business central, whenever the order comes from webshop into business central then we create a payment entry through code. "

    So aren't you saying that you have code that is creating the payment entry? Is this what you want to stop?

  • Verified answer
    YUN ZHU Profile Picture
    95,718 Super User 2025 Season 2 on at
  • Business central com Profile Picture
    55 on at

    Yes, we are just creating the payment entry but we are not applying payment on invoices and doesn't do the posting of payment.

  • Business central com Profile Picture
    55 on at

    Thanks for really good explanation. I looked into the customer card as well and it is set to manual as well. but, I don't think so it is some custom code doing because when I deploy this code to fresh company then it doesn't apply payments automatically and that is strange.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans