Rule change
EDI 810 tax detail requirement
fixtures/notices/edi-810-notice.pdfOpened Sep 26Status: Approved
Clause 1
“The TXI segment in every EDI 810 invoice must include TXI03 (Percent) populated with the tax rate actually applied to the invoice, expressed as a percentage with up to four decimal places (e.g. 7.5 for 7.50%). Previously only TXI01 (tax type) and TXI02 (monetary amount) were required.”
16 *17D InvNo S 8P 018D InvDate D19D CustNo S 7P 020D InvAmt S 11P 221D TaxAmt S 11P 222D EDILine S 256A23D DateStr S 8A24D SeqNo S 9P 025 *26 * Format invoice date as YYYYMMDD for EDI 810 BIG segment27C EVAL DateStr = %CHAR(InvDate:*ISO0)28 *29 * ISA segment - interchange control header30C EVAL EDILine =31C 'ISA*00* *00* ' +32C '*ZZ*SENDER *ZZ*RECEIVER ' +33C '*' + %SUBST(DateStr:3:6) +34C '*' + %SUBST(DateStr:9:4) +35C '*^*00501*' +36C %EDITC(SeqNo:'Z') +37C '*0*P*>'38C WRITE EDIREC39 *40 * GS segment - functional group header41C EVAL EDILine =42C 'GS*IN*SENDER*RECEIVER*' +43C DateStr + '*' +44C %SUBST(DateStr:9:4) +45C '*1*X*005010'46C WRITE EDIREC47 *48 * BIG segment - beginning segment for invoice49 * Date in YYYYMMDD format per current EDI 810 spec50C EVAL EDILine =51C 'BIG*' + DateStr +52C '*' + %EDITC(InvNo:'Z') +53C '**'54C WRITE EDIREC55 *56 * ITD - terms of sale / deferred terms57C EVAL EDILine =58C 'ITD*01*3***' +59C '***30*'60C WRITE EDIREC61 *62 * TDS - total monetary value summary63C EVAL EDILine =64C 'TDS*' +65C %EDITC(InvAmt * 100:'Z')66C WRITE EDIREC67 *68 * TXI - tax information69C EVAL EDILine =70C 'TXI*ST*' +71C %EDITC(TaxAmt:'1') +72C '****ST'73C WRITE EDIREC74 *
- Line 17AnsweredBob's confidence 0.50
- Line 21AnsweredBob's confidence 0.70
- Lines 68 to 73Traced by BobBob's confidence 1.00
Clause 2
“TXI03 must hold the rate used to calculate TXI02. If a customer is taxed at a rate other than the standard state rate, TXI03 must show that other rate. Invoices where TXI03 does not match TXI02 divided by the taxable amount will be rejected with a 997 error code.”
18 *19D TaxRate S 7P 420D CalcBase S 11P 221 *22C *ENTRY PLIST23C PARM CustNo24C PARM CustType25C PARM OrderAmt26C PARM TaxAmt27C PARM ErrFlag28 *29 * Set rate30C EVAL TaxRate = 0.072531 *32 * Check override33C CustType CHAIN TAXTBL34C IF %FOUND35C EVAL TaxRate = TBTAXRT36C ENDIF37 *38 *39C IF CustType = 'C2'40C SETON 4241C ENDIF42 *43C IF *IN42 = *ON44C EVAL TaxRate = 0.052545C ENDIF46 *47 * Calc tax48C EVAL CalcBase = OrderAmt49C EVAL TaxAmt = CalcBase * TaxRate50 *
- Line 19AnsweredBob's confidence 1.00
- Line 26AnsweredBob's confidence 0.80
- Lines 30, 33 to 34, 36, 39, 41, 43, 45, 49Traced by BobBob's confidence 1.00
- Lines 35, 40, 44Already knownBob's confidence 1.00
20D InvAmt S 11P 221D TaxAmt S 11P 222D EDILine S 256A
- Line 21AnsweredBob's confidence 0.60
46 * Pass to invoice calculation47C CALL 'INVCALC'48C PARM CustNo49C PARM CustType50C PARM OrderAmt51C PARM TaxAmt52C PARM ErrFlag
- Lines 47, 51Traced by BobBob's confidence 0.80