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...
Suggested answer

[AL] New Column : Sum Posting_Date + Payment Terms Code

(0) ShareShare
ReportReport
Posted on by 160

Hi mates! :)

I have a question, I just want to sum "Payment Terms Code" to "Posting_Date" on "Purch. Rcpt. Lines".

Payment and Posting are two fields on a new customized page.

Posting -> Lookup on "Purch. rcpt. lines" table [Text type]

Payment -> Lookup on "Vendor" table [Date type]

I mean, for example:

Posting_Date --> 01/01/21

Payment Terms Code --> 30D

NewDate (Posting_Date + Payment Terms Code) --> 01/02/21

Maybe I can do it with calcDate form, but I'm not sure how to work with it.

Thank you so much! :D

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,029 Moderator on at
    RE: [AL] New Column : Sum Posting_Date + Payment Terms Code

    What you will have to do is to use the calcdate functioon

    newDate := Calcdate(paymenterm.calcformula,Postingdate);

    So you must use the payment term code, to get the payment term record and use the dateformula from that record.

    docs.microsoft.com/.../calcdate-function--date-

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans