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 AX (Archived)

How to link customer settlements to customer payment schedule

(0) ShareShare
ReportReport
Posted on by

I am trying to make a sql query that shows open invoices at a point in time with ageing by due date, I have done this by returning records from CustTrans where CreatedDateTime <= @ReportDate and joining to CustSettlement where CreatedDateTime <= @ReportDate. Simple, right??? NO! Problem I am having is with invoices that have a payment schedule attached... I've joined to CustPaymSchedLine to get the breakdown of amounts due according to the schedule assigned, e.g. equal amounts on 30 days, 60 days and 90 days.

In the example I am looking at the customer has not paid the full amount of the first two lines so it's been allocated kind of like this...

1: customer paid $500, leaving $500 due on first line, and $1,000 each on lines 2 and 3

2: customer paid $1,000, $500 allocated to clear line 1 and $500 to line 2, leaving $500 due on line 2 $1k on line 3

My question is... how do I link from CustSettlement to CustPaymSchedLine to make sure the settled amounts are assigned to the correct line?

*This post is locked for comments

I have the same question (0)

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 AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
imran ul haq Profile Picture

imran ul haq 8

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 4 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans