Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

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

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,963 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans