<?php
namespace ModulesAbstract\ElectronicInvoice\UBL21Structure;

/**
 * TaxSubtotal
 *
 * @see http://www.datypic.com/sc/ubl21/e-cac_TaxSubtotal.html
 */
class TypeTaxSubtotal extends AbstractPeppolElement
{

	/**
	 * cbc:TaxableAmount, 0..1, optional tag
	 *
	 * The net amount to which the tax percent (rate) is applied to calculate the tax amount.
	 * @var mixed
	 */
	public $TaxableAmount = null;

	/**
	 * cbc:TaxAmount, 1..1, MANDATORY tag
	 *
	 * The amount of this tax subtotal.
	 * @var mixed
	 */
	public $TaxAmount = null;

	/**
	 * cbc:CalculationSequenceNumeric, 0..1, optional tag
	 *
	 * The number of this tax subtotal in the sequence of subtotals corresponding to the order in which multiple taxes are
	 *   applied. If all taxes are applied to the same taxable amount (i.e., their order of application is inconsequential), then
	 *   CalculationSequenceNumeric is 1 for all tax subtotals applied to a given amount.
	 * @var mixed
	 */
	public $CalculationSequenceNumeric = null;

	/**
	 * cbc:TransactionCurrencyTaxAmount, 0..1, optional tag
	 *
	 * The amount of this tax subtotal, expressed in the currency used for invoicing.
	 * @var mixed
	 */
	public $TransactionCurrencyTaxAmount = null;

	/**
	 * cbc:Percent, 0..1, optional tag
	 *
	 * The tax rate of the tax category applied to this tax subtotal, expressed as a percentage.
	 * @var mixed
	 */
	public $Percent = null;

	/**
	 * cbc:BaseUnitMeasure, 0..1, optional tag
	 *
	 * The unit of measure on which the tax calculation is based
	 * @var mixed
	 */
	public $BaseUnitMeasure = null;

	/**
	 * cbc:PerUnitAmount, 0..1, optional tag
	 *
	 * Where a tax is applied at a certain rate per unit, the rate per unit applied.
	 * @var mixed
	 */
	public $PerUnitAmount = null;

	/**
	 * cbc:TierRange, 0..1, optional tag
	 *
	 * Where a tax is tiered, the range of taxable amounts that determines the rate of tax applicable to this tax subtotal.
	 * @var mixed
	 */
	public $TierRange = null;

	/**
	 * cbc:TierRatePercent, 0..1, optional tag
	 *
	 * Where a tax is tiered, the tax rate that applies within a specified range of taxable amounts for this tax subtotal.
	 * @var mixed
	 */
	public $TierRatePercent = null;

	/**
	 * cac:TaxCategory, 1..1, MANDATORY tag
	 *
	 * The tax category applicable to this subtotal.
	 * @var mixed
	 */
	public $TaxCategory = null;

}
