Skip to main content

Notifications

Announcements

No record found.

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

what is the default value TaxTrans field TransDate when sales invoicing ?

(0) ShareShare
ReportReport
Posted on by 592

Hello guys,

May I know when F&O insert TaxTrans table, basically when processing Sales order invoice, what will be it's default value ? is it based on the invoice date or the current system date? and where (which class) it is define ?

I got a case whereby my sales invoice created with the past date, but in TaxTrans is using system date when processing.

The invoice process I'm using is using X code like this : 

SalesFormLetter         formLetterObj;
        SalesTable      salesTableInv = SalesTable::find(MyTable.SalesId);
                        
        formLetterObj   = SalesFormLetter::construct(DocumentStatus::Invoice);
        formLetterObj.update(salesTableInv);

So in X , my code will take a look at a custom table with information of SalesId, then I'm using that command to execute posting invoice. So I know confuse why the TaxTrans table is not following what sales invoice - invoice date ?

Thanks

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,187 Super User 2025 Season 1 on at
    RE: what is the default value TaxTrans field TransDate when sales invoicing ?

    Hi Lars,

    When I look at your coding, you only provide a sales order, but I don't see any other logic to take parameters for posting the invoice from your custom table. Have you used the debugger to find out when and where the date is set or lost?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,187 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,966 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans