POPEnterMatchInvoiceType with FRTAMNT, FRTTXAMT, and manual distributions

This is a WORKING XML document that shows how to code the POPEnterMatchInvoice type with a Freight Amount, Freight Tax, and Manual Distributions
<?xml version="1.0" encoding="utf-16"?>
  <POPEnterMatchInvoiceType>
    <taPopRcptLineTaxInsert_Items>
      <taPopRcptLineTaxInsert>
        <VENDORID>ACETRAVE0001   </VENDORID>
        <POPRCTNM>RCT1170          </POPRCTNM>
        <TAXDTLID>CANGST+PS7T0</TAXDTLID>
        <TAXTYPE>1</TAXTYPE>
        <ACTNUMST>000-1105-00</ACTNUMST>
        <FRTTXAMT>10.00</FRTTXAMT>
        <TAXPURCH>100.00</TAXPURCH>
        <TOTPURCH>100.00</TOTPURCH>
        <RCPTLNNM>16384</RCPTLNNM>
      </taPopRcptLineTaxInsert>
    </taPopRcptLineTaxInsert_Items>
 
    <taPopDistribution_Items>
      <taPopDistribution>
        <POPTYPE>2</POPTYPE>
        <POPRCTNM>RCT1170          </POPRCTNM>
        <ACTNUMST>000-1100-00</ACTNUMST>
        <CRDTAMNT>0</CRDTAMNT>
        <DEBITAMT>100</DEBITAMT>
        <DISTREF>Freight Dist</DISTREF>
        <DISTTYPE>3</DISTTYPE>
        <VENDORID>ACETRAVE0001   </VENDORID>
      </taPopDistribution>
      <taPopDistribution>
        <POPTYPE>2</POPTYPE>
        <POPRCTNM>RCT1170          </POPRCTNM>
        <ACTNUMST>000-1101-00</ACTNUMST>
        <CRDTAMNT>0</CRDTAMNT>
        <DEBITAMT>10</DEBITAMT>
        <DISTREF>Freight Tax</DISTREF>
        <DISTTYPE>5</DISTTYPE>
        <VENDORID>ACETRAVE0001   </VENDORID>
      </taPopDistribution>
      <taPopDistribution>
        <POPTYPE>2</POPTYPE>
        <POPRCTNM>RCT1170          </POPRCTNM>
        <ACTNUMST>000-1102-00</ACTNUMST>
        <CRDTAMNT>320</CRDTAMNT>
        <DEBITAMT>0</DEBITAMT>
        <DISTREF>Avail</DISTREF>
        <DISTTYPE>6</DISTTYPE>
        <VENDORID>ACETRAVE0001   </VENDORID>
      </taPopDistribution>
      <taPopDistribution>
        <POPTYPE>2</POPTYPE>
        <POPRCTNM>RCT1170          </POPRCTNM>
        <ACTNUMST>000-1103-00</ACTNUMST>
        <CRDTAMNT>0</CRDTAMNT>
        <DEBITAMT>15790</DEBITAMT>
        <DISTREF>PAY</DISTREF>
        <DISTTYPE>7</DISTTYPE>
        <VENDORID>ACETRAVE0001   </VENDORID>
      </taPopDistribution>
      <taPopDistribution>
        <POPTYPE>2</POPTYPE>
        <POPRCTNM>RCT1170          </POPRCTNM>
        <ACTNUMST>000-1104-00</ACTNUMST>
        <CRDTAMNT>0</CRDTAMNT>
        <DEBITAMT>16000</DEBITAMT>
        <DISTREF>Accrued</DISTREF>
        <DISTTYPE>9</DISTTYPE>
        <VENDORID>ACETRAVE0001   </VENDORID>
      </taPopDistribution>
    </taPopDistribution_Items>
 
    <taPopEnterMatchInvLine_Items>
      <taPopEnterMatchInvLine>
        <POPRCTNM>RCT1170          </POPRCTNM>
        <POPMtchShpRcpt>RCT1169</POPMtchShpRcpt>
        <ShipRCPTLNNM>16384</ShipRCPTLNNM>
        <PONUMBER>PO2083</PONUMBER>
        <QTYINVCD>1.00000</QTYINVCD>
        <ITEMNMBR>1-A3261A                       </ITEMNMBR>
        <VNDITNUM>1-A3261A                       </VNDITNUM>
        <VENDORID>ACETRAVE0001   </VENDORID>
        <RCPTLNNM>16384</RCPTLNNM>
        <UNITCOST>16000.00</UNITCOST>
        <EXTDCOST>16000.00</EXTDCOST>
        <Purchase_IV_Item_Taxable>2</Purchase_IV_Item_Taxable>
        <TAXAMNT>0.00</TAXAMNT>
        <POLNENUM>16384</POLNENUM>
        <CreateDist>0</CreateDist>
      </taPopEnterMatchInvLine>
    </taPopEnterMatchInvLine_Items>
 
    <taPopEnterMatchInvHdr>
      <POPRCTNM>RCT1170          </POPRCTNM>
      <VNDDOCNM>1170</VNDDOCNM>
      <receiptdate>1/1/2018</receiptdate>
      <BACHNUMB>TESTBATCH</BACHNUMB>
      <VENDORID>ACETRAVE0001   </VENDORID>
      <VENDNAME>Advanced Office Systems</VENDNAME>
      <SUBTOTAL>16000.00</SUBTOTAL>
       
      <FRTAMNT>100.00</FRTAMNT>
      <FRTSCHID>CANALLGST+7</FRTSCHID>
      <FRTTXAMT>10.00000</FRTTXAMT>
      <Purchase_Freight_Taxable>1</Purchase_Freight_Taxable>
       
      <TAXAMNT>0.00</TAXAMNT>
      <TAXSCHID></TAXSCHID>
      <CreateDist>0</CreateDist>
       
      <VADCDTRO>PRIMARY </VADCDTRO>
    </taPopEnterMatchInvHdr>
  </POPEnterMatchInvoiceType>
</eConnect>

RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences