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 :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Credit & Collection

(1) ShareShare
ReportReport
Posted on by 2,430
Hi Community Members,
 
I have a task to update Terms of payment  like "Terms of payment" and "New Terms of payment" of customer same as "Credit Limit" and "New Credit Limit" as Credit Limit Adjustment.
 
 
 
I want to know from where I should start and which classes, tables, forms etc. should consider.
 
Thanks,
Faiz
Capture.PNG
Capture1.PNG
  • Bill Ngo Profile Picture
    374 on at
    Hi,
     
    I did not know exactly what is your purpose. Pls describle more. Thanks
     
    Bill
    Rgds,
  • faiz7049 Profile Picture
    2,430 on at
    Hi Bill,
     
    In Credit & Collection there is menu item called Credit Limit Adjustment. The requirement is in credit limit adjustment form customer need two fields for Terms of payment field like Terms of payment and New Terms of payment same as the Form containing Credit Limit and New Credit Limit.
     
    So once credit limit journal posted the new credit limit assigned to customer. Now requirement is same for Terms of payment. They need 2 new fields called Terms of payment and New Terms of payment once journal posted New Credit Limit as well as New Terms of payment both must be updated for a customer.
    Thanks,
    Faiz
  • André Arnaud de Calavon Profile Picture
    308,284 Super User 2026 Season 2 on at
    Hi Faiz,
     
    Do you need a full new feature for only the Terms of Payment or is the requirement to add the option to change the Terms of Payment together with the current credit limit adjustments?

    It seems like you already found some objects. I haven't done a similar customization so don't know exactly what objects are related here. You can use cross reference tooling to find all related objects. Then you can check where and how to create your solution or extend the current one.
  • faiz7049 Profile Picture
    2,430 on at
    Hi Andre,
     
    Thank you for reply.Yes, requirement is to add Terms of payment option together with credit limit 
  • Suggested answer
    Bill Ngo Profile Picture
    374 on at
    Hi Faiz,
     
    Thanks for your more detailed description. I've got your points.
     
    You can practice as following steps, if there are any missing pls let me know.
     
    Create a new project and add your Model:
     
    1. Check your Model and update parameter with Credit Management in Model Management.
    2. Extend your CredManCreditLimitAdjTrans table and add two fields for
    -  Terms of payment (copy from CustTable)
    -  New terms of payment (duplicate from Terms of payment and add new name in label)
    3. Extend your CredManCreditLimitAdjTrans form. Add two new fields into grid. 
     
    4. Create a new class <anyname> to Extend CredManCreditLimitAdjCheckPost class to modify following methods in new class. in order to update back to Custtable you should add addtional fields in red area color below:
     
    5. Build and run for checking:
    Hope you can do it succesfully by yourselve. 
     
    Rgds,
    Bill
     
     
     
     
  • faiz7049 Profile Picture
    2,430 on at
    Thank you Bill,
     
    I will do same as you suggested and will update you.
  • faiz7049 Profile Picture
    2,430 on at
    Hi Bill,

    After putting JournalId =="IN-6000004" but how to get journalId since it is private and also previous Terms Of Payment not displaying 

       [ExtensionOf(classStr(CredManCreditLimitAdjCheckPost))]
        final class SFA_CredManCreditLimitAdjCheckPost_Class_Extension
        {
    
      
            protected void updateCreditLimitCustTable()
            {
                
                next updateCreditLimitCustTable();
    
            CustTable                       custTable;
            CredManCreditLimitAdjTrans      creditLimitAdjTrans;
            CredManCreditLimitAdjTable      creditLimitAdjTable;
                        update_recordset custTable
                        setting
                       
                            PaymTermId = creditLimitAdjTrans.NewPaymTermId // SFA Add this line
                        join creditLimitAdjTrans
                            where creditLimitAdjTrans.CustAccount == custTable.AccountNum
                && creditLimitAdjTrans.JournalId == 'IN-60000004';
                    
                }   
    
    
    
         }

  • faiz7049 Profile Picture
    2,430 on at
    Hi Bill,
     
    I have updated the method but it's saying journalId is private.
     
  • faiz7049 Profile Picture
    2,430 on at
    Hi Bill,
     
    It's working with below code now only remaining how to get existing Terms of payment to form. Please guide me on this.
     
     
       [ExtensionOf(classStr(CredManCreditLimitAdjCheckPost))]
       final class SFA_CredManCreditLimitAdjCheckPost_Class_Extension
    {
        
    
      
        protected void updateCreditLimitCustTable()
        {
               
            next updateCreditLimitCustTable();
            {
            
                CustTable                                    custTable;
                CredManCreditLimitAdjTrans                       creditLimitAdjTrans;
                CredManCreditLimitAdjTable                      creditLimitAdjTable;
                container packedData                            = this.pack();
                CredManCreditLimitAdjustmentJournalId journalId = conPeek(packedData, 2);
              
                
                custTable.skipDataMethods(true);
    
                
                      update_recordset custTable
                        setting
                       
                            PaymTermId = creditLimitAdjTrans.NewPaymTermId // SFA Add this line
                            
                        join creditLimitAdjTrans
                            where creditLimitAdjTrans.CustAccount == custTable.AccountNum
                    && creditLimitAdjTrans.JournalId == journalId; 
             
            }     
        
        }
    
    }
     
  • Suggested answer
    faiz7049 Profile Picture
    2,430 on at
    Hi Bill,
     
    Thank you. By display method I got the previous Terms of payment from customer.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 62 Super User 2026 Season 2

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 57 Super User 2026 Season 2

#3
Patrick Mouwen Profile Picture

Patrick Mouwen 48

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans