Skip to main content
Business Central forum
Answered

Need to split cust. ledger entries

editSubscribe (1) ShareShare
ReportReport
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
Categories:
Attachments
  • Verified answer
    Valentin Castravet Profile Picture
    Valentin Castravet 4,151 Super User 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 60,087 Super User 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 4,151 Super User 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 4,151 Super User 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 60,087 Super User 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 2,788 Super User on at
    Need to split cust. ledger entries

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,130 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,689 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans