Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Posting a sales transaction with a sales tax value into GP through econnect

(0) ShareShare
ReportReport
Posted on by 100

I can succesfully upload transactions  that have no sales tax into GP.  I can sucesfully do a manual sales transaction inside GP with a sales tax attached by virtue of choosing a particular customer and the Tax detail ID. However through econnect I am getting erros.

Could someone please suggest what are the steps involved .

I have the following code but the tax amount does not get posted correctly. Please suggest if I am missing some steps thanks

 

 

 

 

 

 

 

Dim

 

 

objtaSOPTax(1) As

taSopLineIvcTaxInsert_ItemsTaSopLineIvcTaxInsert

 

 

Dim objTax As New

taSopLineIvcTaxInsert_ItemsTaSopLineIvcTaxInsert

 

 

objTax.SOPTYPE = objtaSopHdrIvcInsert.SOPTYPE

objTax.SOPNUMBE = objtaSopHdrIvcInsert.SOPNUMBE

objTax.CUSTNMBR =

"TaxCustomer"

objTax.TAXDTLID = "TAXID"

objTax.TDTTXSLS = decTotal - decSalesTax

objTax.TDTTXSLSSpecified =

True

objTax.TAXTYPE = 0

objTax.STAXAMNT = decSalesTax

 

 

'objTax.STAXAMNT = decSalesTax

objTax.SALESAMT = decTotal - decSalesTax

objtaSOPTax(0) = objTax

 

 

 

*This post is locked for comments

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans