Example_Calculation_Models

in:Invoice/cac:TaxTotal - An association to tax total for specific tax types/rates.

  1. /in:Invoice/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount

    • "The amount of tax stated explicitly."
    • Pre-req: exists( ../cbc:TaxableAmount | ../cbc:Percent )

      • XPath: ( ../cbc:TaxableAmount * ../cbc:Percent )

      • Level: mandatory
  2. /in:Invoice/cac:TaxTotal/cbc:TaxAmount

    • "The total tax amount for particular tax scheme e.g. VAT; the sum of each of the tax subtotals for each tax category within the tax scheme."
      • the tax subtotals have precedence over the taxes in individual lines
    • Pre-req: exists( ../cac:TaxSubtotal/cbc:TaxAmount )

      • XPath: sum( ../cac:TaxSubtotal/cbc:TaxAmount )

      • Level: mandatory
    • Pre-req: empty( ../cac:TaxSubtotal/cbc:TaxAmount ) and exists( /in:Invoice/cac:InvoiceLine/cac:TaxTotal/cac:TaxAmount )

      • XPath: sum( /in:Invoice/cac:InvoiceLine/cac:TaxTotal/cac:TaxAmount )

      • Level: mandatory

Example_Calculation_Models/Invoice_Tax_Total (last edited 2009-08-12 18:06:10 by localhost)