Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Accounting distribution issue x++

(0) ShareShare
ReportReport
Posted on by 163
We add new customization in purchase orders , new control called (allow customer invoice) , this class loop on all lines of PO and change line property from chargeable to non chargeable . if po not credit note it works well loop on all lines and change line property and all 2 lines on accounting distribution negative line like original line (Ledger account 12...) and positive line (ledger account 50....) but if po is credit note it adds 2 lines like original line with account (12..) doesn't add positive line with (50...) 
I can't find why it happens with credit note PO only 
if any one can explain or give me a solution how to fix it ?
also I tried to change line property manual in form still add 2 lines like original line 
////
  • Menna Allah Ahmed Profile Picture
    Menna Allah Ahmed 163 on at
    Accounting distribution issue x++
    I need to understand if its a standard from system or not , credit note should work like not credit note PO (while changing line property create 2 line one negative line original line and line positive with new ledger account ) or credit note have different logic (creating 3 lines like original line in accounting distribution )
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    Accounting distribution issue x++
    Hi,
    It sounds like you are having a custom specific issue when processing the Credit Note Purchase Order. You can try to check the following points:
    1.Check credit note specific logic.
    2.Use debugging tools or log statements to trace the execution of your customization. This can help you pinpoint where the problem is occurring and identify any conditional statements that may be causing the problem.
    3.Verify whether data differences between regular purchase orders and credit note purchase orders may cause problems.
    Best Regards,
    Hana
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,885 Super User 2024 Season 2 on at
    Accounting distribution issue x++
    Hi Menna, 
     
    Have you used the debugger to check where in the customization it may go wrong? If you used the debugger and can't find anything, then please share more information about the customization. What exact coding did you use and where is it triggered?

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,885 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans