Skip to main content

Notifications

Announcements

No record found.

Finance forum
Suggested answer

CredManCreditMax

Posted on by 268
Hi,
 
In the customer form there is a field called "total credit limit" which comes from a display method called credManCreditMax
 
If I have a class where i need to return that value for a certain customer, how can I do that? Do i need to replicate the logic inside this display method in my new class? Or is there another way?
Categories:
  • CredManCreditMax
    Exactly, if the credit management feature is disabled it will not show the "CredMan" fields in the form, only the old credit max fields.
     
    So for the most correct value, it's best to call the creditMax method on CustTable.
  • DELDYN Profile Picture
    DELDYN 268 on at
    CredManCreditMax
    Hi,
     
    So this total credit limit field won't appear in the customer form if this feature is not enabled?
     
    I just want to make sure that it will always return the correct value
  • CredManCreditMax
    Yes, exactly.
    The CoC extension to the method will handle scenarios where Credit Management is enabled and then call the credManCreditMax for you.
  • DELDYN Profile Picture
    DELDYN 268 on at
    CredManCreditMax
    Hi Jonas,

    yes that's the field, and the method is called credManCreditMax and not creditMax

    you mean i should call creditMax method directly without anything else like this?? as it's calling credManCreditMax in the extension? 

    like this:
    CustTable::creditMax(_custAccout);
     
  • Suggested answer
    CredManCreditMax
    Hey
    I think it's this field, right?
     
    Nope, I'll just call the creditMax method on CustTable directly, it will do the same. Much of Credit Management is internal so it's not easy to deal with.
     
     
     
     

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,572 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,706 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans