=================================================
Editor's note 7/17/2019 There are three eConnect nodes involved: taPopEnterMatchInvHdr, taPopEnterMatchInvLine, and TaPopRcptLineTaxInsert. This error indicates that the 'tax detail' (that's TaPopRcptLineTaxInsert) does not match the header (that's taPopEnterMatchInvHdr)
Carefully look at those nodes, they have to sum to the same amount. The lines have to sum also, but you'll get a different error if they don't sum.
The case below involves lines that don't sum, but usually it is because you have not included TaPopRcptLineTaxInsert at all.
=================================================
I'm trying to pass both header and item-level tax details for a purchasing invoice into GP, but I'm getting the error "tax detail amount does not match the header tax amount".
I have successfully used the header option "Use header level tax details", but I'd like to have more control and pass in both header and item-level tax details (I want to populate POP10360 with both).
Here's my econnect.xml - thanks for any help you can provide:
<?xml version="1.0" encoding="utf-16"?>
<eConnect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SMTransactionBatchType>
<eConnectProcessInfo xsi:nil="true"/>
<taRequesterTrxDisabler_Items xsi:nil="true"/>
<taCreateUpdateBatchHeaderRcd>
<BACHNUMB>A-2010-04-21</BACHNUMB>
<BCHCOMNT>Created by eConnect POP Purchasing Invoice 4/21/2010 11:35:31 PM</BCHCOMNT>
<SERIES>4</SERIES>
<GLPOSTDT>4/21/2010</GLPOSTDT>
<BCHSOURC>Rcvg Trx Ivc</BCHSOURC>
<DOCAMT>0</DOCAMT>
<ORIGIN>2</ORIGIN>
<NUMOFTRX>0</NUMOFTRX>
</taCreateUpdateBatchHeaderRcd>
</SMTransactionBatchType>
<POPEnterMatchInvoiceType>
<eConnectProcessInfo xsi:nil="true"/>
<taRequesterTrxDisabler_Items xsi:nil="true"/>
<taUpdateCreateItemRcd xsi:nil="true"/>
<taUpdateCreateVendorRcd xsi:nil="true"/>
<taCreateVendorAddress_Items xsi:nil="true"/>
<taPopRcptLineTaxInsert_Items>
<taPopRcptLineTaxInsert>
<VENDORID>ADVANCED0001</VENDORID>
<POPRCTNM>RCT1552</POPRCTNM>
<TAXDTLID>CANGST+PS7N0</TAXDTLID>
<TAXTYPE>0</TAXTYPE>
<ACTINDX>83</ACTINDX>
<TAXAMNT>0.70</TAXAMNT>
<TAXPURCH>10.00</TAXPURCH>
<TOTPURCH>10.00</TOTPURCH>
</taPopRcptLineTaxInsert>
<taPopRcptLineTaxInsert>
<VENDORID>ADVANCED0001</VENDORID>
<POPRCTNM>RCT1552</POPRCTNM>
<TAXDTLID>CANGST+PS7N0</TAXDTLID>
<TAXTYPE>0</TAXTYPE>
<ACTINDX>83</ACTINDX>
<TAXAMNT>0.70</TAXAMNT>
<TAXPURCH>10.00</TAXPURCH>
<TOTPURCH>10.00</TOTPURCH>
<RCPTLNNM>16384</RCPTLNNM>
</taPopRcptLineTaxInsert>
<taPopRcptLineTaxInsert>
<VENDORID>ADVANCED0001</VENDORID>
<POPRCTNM>RCT1552</POPRCTNM>
<TAXDTLID>CANONPST+PS8N0</TAXDTLID>
<TAXTYPE>0</TAXTYPE>
<ACTINDX>171</ACTINDX>
<TAXAMNT>0.80</TAXAMNT>
<TAXPURCH>10.00</TAXPURCH>
<TOTPURCH>10.00</TOTPURCH>
</taPopRcptLineTaxInsert>
<taPopRcptLineTaxInsert>
<VENDORID>ADVANCED0001</VENDORID>
<POPRCTNM>RCT1552</POPRCTNM>
<TAXDTLID>CANONPST+PS8N0</TAXDTLID>
<TAXTYPE>0</TAXTYPE>
<ACTINDX>171</ACTINDX>
<TAXAMNT>0.80</TAXAMNT>
<TAXPURCH>10.00</TAXPURCH>
<TOTPURCH>10.00</TOTPURCH>
<RCPTLNNM>16384</RCPTLNNM>
</taPopRcptLineTaxInsert>
<taPopRcptLineTaxInsert>
<VENDORID>ADVANCED0001</VENDORID>
<POPRCTNM>RCT1552</POPRCTNM>
<TAXDTLID>USCITY+PS1N0</TAXDTLID>
<TAXTYPE>0</TAXTYPE>
<ACTINDX>169</ACTINDX>
<TAXAMNT>0.10</TAXAMNT>
<TAXPURCH>10.00</TAXPURCH>
<TOTPURCH>10.00</TOTPURCH>
</taPopRcptLineTaxInsert>
</taPopRcptLineTaxInsert_Items>
<taPopDistribution_Items xsi:nil="true"/>
<taAnalyticsDistribution_Items xsi:nil="true"/>
<taPopEnterMatchInvLine_Items>
<taPopEnterMatchInvLine>
<POPRCTNM>RCT1552</POPRCTNM>
<POPMtchShpRcpt>RCT1551</POPMtchShpRcpt>
<ShipRCPTLNNM>16384</ShipRCPTLNNM>
<PONUMBER>PO2253</PONUMBER>
<QTYINVCD>2.00000</QTYINVCD>
<ITEMNMBR>LISA TEST 2</ITEMNMBR>
<VENDORID>ADVANCED0001</VENDORID>
<RCPTLNNM>16384</RCPTLNNM>
<UNITCOST>5.00</UNITCOST>
<EXTDCOST>10.00</EXTDCOST>
<Purchase_IV_Item_Taxable>3</Purchase_IV_Item_Taxable>
<Purchase_Site_Tax_Schedu>CANONGSTPST+7*</Purchase_Site_Tax_Schedu>
<TAXAMNT>1.50</TAXAMNT>
<POLNENUM>16384</POLNENUM>
</taPopEnterMatchInvLine>
</taPopEnterMatchInvLine_Items>
<taPopEnterMatchInvToShpMultiLine_Items xsi:nil="true"/>
<taPopEnterMatchInvHdr>
<POPRCTNM>RCT1552</POPRCTNM>
<VNDDOCNM>PO2253_3way</VNDDOCNM>
<receiptdate>4/21/2010</receiptdate>
<BACHNUMB>A-2010-04-21</BACHNUMB>
<VENDORID>ADVANCED0001</VENDORID>
<VENDNAME>Advanced Office Systems</VENDNAME>
<SUBTOTAL>10.00</SUBTOTAL>
<TAXAMNT>1.60</TAXAMNT>
<PYMTRMID>Net 30</PYMTRMID>
<TAXSCHID>COMPANYPUR</TAXSCHID>
<Purchase_Freight_Taxable>3</Purchase_Freight_Taxable>
<Purchase_Misc_Taxable>1</Purchase_Misc_Taxable>
<VADCDTRO>PRIMARY </VADCDTRO>
</taPopEnterMatchInvHdr>
<taMdaUpdate_Items xsi:nil="true"/>
</POPEnterMatchInvoiceType>
</eConnect>