Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Need to split cust. ledger entries

Posted on by 124
After sales order posted,we need to split the cust. ledger entry, into multiple entries by due date and amount. I was trying to use following EventSubscriber to implement this. But it was not working.
Codeunit::/Sales-Post (Yes/No)/, OnAfterPost
Codeunit::/Sales-Post/, OnAfterUpdateSalesHeader
I might be missed something or its not right procedure. Please advise.
Thanks
  • Verified answer
    Valentin Castravet Profile Picture
    Valentin Castravet 23,733 Super User 2024 Season 2 on at
    Need to split cust. ledger entries
    Deferrals might give you some hints or tips as they will do what you're trying to achieve with the income statement accounts in the G/L, but they will not touch the customer ledger entry which will remain as 1 entry. 
     
    You can setup a new BC sandbox and select the Country/Region as Italy. You can then connect to it in vs code and read the objects from there to see how it does installments. 
     
     
    Valentin Castravet
    Zander ERP Services
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 71,565 Super User 2024 Season 2 on at
    Need to split cust. ledger entries
    Hi, this is a bit like deferreds posting, but it is split based on posting date, but you can investigate this standard function, which may give you some tips.
    Business Central 2022 wave 1 (BC20) new features: More control over deferrals posting (Beginning of Next Calendar Year as the Start Date)
     
    Hope this helps.
    Thanks.
    ZHU
  • D365 Warrior Profile Picture
    D365 Warrior 124 on at
    Need to split cust. ledger entries
    Hi Valentin Castravet,
    Thanks for your response. I am unable to get the git repo for Italian version.
    Could you please share the Italian version git repo? Or any reference link,
    I want to understand, what is the actual flow behind the scene.
    Thanks in advance
  • Suggested answer
    Valentin Castravet Profile Picture
    Valentin Castravet 23,733 Super User 2024 Season 2 on at
    Need to split cust. ledger entries
    So you're looking for installment payments - in that case the Italian version of Business Central has this functionality. You could copy it from there: Set Up Payment Terms (IT) - Business Central | Microsoft Learn
     
    Valentin Castravet
    Zander ERP Services
  • D365 Warrior Profile Picture
    D365 Warrior 124 on at
    Need to split cust. ledger entries
    Hi,
    Thanks all for your response.
    Sorry to misguide you. Actually, the scenario is,
    1. Customer wants to use customer payment method
    2. 1 invoice split into multiple cust.ledger entries based on due date
    3. Amount also splitted as well
    4. Splitted cust. ledger entries use same payment method.
    Ex. Sales invoice S300 based on selected payment method (CX10D)
    Cust. ledger entries, splitted by 3 entries,
    amount   due date
    $100     1/2/2024
    $100     11/2/2024
    $100     21/2/2024
    Thanks
  • Suggested answer
    Valentin Castravet Profile Picture
    Valentin Castravet 23,733 Super User 2024 Season 2 on at
    Need to split cust. ledger entries
    Agreed with YUN ZHU - this does not sound like a good idea. What's your business process that requires splitting a sales invoice into multiple entries, why is the customer paying 1 invoice with different payment methods? There are probably better solutions if we knew more details.  
     
     
    Valentin Castravet
    Zander ERP Services
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 71,565 Super User 2024 Season 2 on at
    Need to split cust. ledger entries
    Personally, I don’t recommend doing this customization. There are risks. It is recommended to use Dimensions. 
    It is more reasonable to add different Dimensions according to different custom payment methods.
     
    Hope this can give you some hints.
    Thanks.
    ZHU
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 10,951 Most Valuable Professional on at
    Need to split cust. ledger entries

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans