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)

Customer Opening Balance, Debit and Credit

(0) ShareShare
ReportReport
Posted on by 931

Hi All,

Would someone please explain me how is the Customer Opening Balance is calculated?

In which Table Opening Balance , debit and credit amounts are stored?

I have a issue in customer balance report. The Closing Balance is calculated as Opening Balance + Debit - Credit.

If i understood how the Opening Balance , Debit and Credit are calculated for a customer, it will be really helpfull.

Does the closing balance should match the sum of the AmountMST in the CUSTTRANS Table.?

Please give me some idea about this.

Thanks,

Rusty

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Rusty,

    The data that is shown in the customer balance list report comes from the CustProvisionalBalanceTmp table.

    That's a temporary table that is calculated at runtime.

    Additional details on how the balance is calculated can be found in the CustBalanceList class, which is doing the calculation once the report is run.

    Best regards,

    Ludwig

  • Brandon Wiese Profile Picture
    17,788 on at

    The current balance for a customer account is always the sum of AmountMST in table CustTrans for that customer.  The balance at the end of any transaction date is the sum of all transactions on/before that date.

  • ThivaKar Profile Picture
    931 on at

    Hi,

    Thanks for the heads up! Now, it makes sense after i checked the CustProvisionalBalanceDP class.

    I have a small doubt here. We run the report by selecting BillingClassfication (F-CRN,F-INV).

    There is sum of AmountMST which is 73929.12 in the CustTrans Table for

    CustTrans.CustBillingClassification = 0 and sum of AmountMST which is 189929.12 CustTrans.CustBillingClassification = recid(F-CRN) and sum of AmountMST which is -23928.12 CustTrans.CustBillingClassification = recid(F-INV).

    My doubt is,

    1. there shouldn't be any AmountMST for CustTrans.CustBillingClassification = 0 ?

    2. from where the CustBillingClassification records are inserted in CustTrans?

    Please Help.

  • ThivaKar Profile Picture
    931 on at

    We have Transactions for few of the customers without  Billing Classiffication.(CustTrans.CustBillingClassification = 0)

    Should these transaction be included for the Customer Closing Balance?

  • ThivaKar Profile Picture
    931 on at

    Hi Crispin,

    If i understood correctly ,then I have to customize the Contract class to include these transactions? right?

  • ThivaKar Profile Picture
    931 on at

    Hi,

    In the DP Class, Only for the two different postings, Free text invoice(F-INV) and credit notes(F-CRN) are calculated as i see.

    The buffer brings CustTrans.CustBillingClassification = 0 records, but it is not calculated. Only these two are calculated and it generates in report

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
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans