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