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 :
Microsoft Dynamics AX (Archived)

Get TmpTaxWorkTrans From Ledger Journal

(0) ShareShare
ReportReport
Posted on by 1,216

Hi. I'd like to get fields from TaxTmpWorkTrans through LedgerJournalTrans Table in LedgerJournalTransVendInvoice (AP -> Invoice Journal -> Lines) and LedgerJournalTransDaily (GL->General Journal -> Lines) Forms. 

1033.salestax.png

But, how does TaxTmpWorkTrans table relates with LedgerJournalTrans table? 

I checked the codes on TaxTmpWorkTrans form but couldn't understand how it works.

Would appreciate it if someone can explain and give me a better idea on how this TaxTmpWorkTrans really works.

Thank You. 

*This post is locked for comments

  • Verified answer
    André Arnaud de Calavon Profile Picture
    308,274 Super User 2026 Season 2 on at

    Hi Hairul,

    The table you mentioned is a temporary table used and created on this form. If there are changes applied, it will be stored in the table TaxWorkRegulation.

    Upon opening this form, the changes in TaxWorkRegulation are being read and presented in the temporary table. If there are no changes applied, it will retrieve information from the journal line and present the calculated amounts.

  • HAIRUL HAZRI Profile Picture
    1,216 on at

    Hi Andre,

    thanks for the clarification.

    But it's still confusing.

    To be exact, how can I get the TmpTaxWorkTrans.TaxCode, TmpTaxWorkTrans.SourceBaseAmountCur and TmpTaxWorkTrans.TaxAmount from LedgerJournalTrans?

    I found ways to get it from PurchTable and SalesTable. They have calc() method in PurchTotals and SalesTotals class and then able to get the TmpTaxWorkTrans from tax() method in those classes.

    What is the equivalent class that has the calc() and tax() method for LedgerJournalTrans?

    Thank You.

  • Verified answer
    HAIRUL HAZRI Profile Picture
    1,216 on at

    This issue is being continued and has been resolved here.

    Regards.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
nmaenpaa Profile Picture

nmaenpaa 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans