Document Level Allowance for multiple tax categories

Dear @zahid

I asume, your Document level AllowanceCharge is Discount,

Xml should be like this

<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2">
	<cbc:ProfileID>reporting:1.0</cbc:ProfileID>
	<cbc:ID>SME00010</cbc:ID>
	<cbc:UUID>8e6000cf-1a98-4174-b3e7-b5d5954bc10d</cbc:UUID>
	<cbc:IssueDate>2022-08-17</cbc:IssueDate>
	<cbc:IssueTime>17:41:08</cbc:IssueTime>
	<cbc:InvoiceTypeCode name="0100000">388</cbc:InvoiceTypeCode>
	<cbc:Note languageID="ar">ABC</cbc:Note>
	<cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
	<cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
	<cac:AdditionalDocumentReference>
		<cbc:ID>ICV</cbc:ID>
		<cbc:UUID>10</cbc:UUID>
	</cac:AdditionalDocumentReference>
	<cac:AdditionalDocumentReference>
		<cbc:ID>PIH</cbc:ID>
		<cac:Attachment>
			<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</cbc:EmbeddedDocumentBinaryObject>
		</cac:Attachment>
	</cac:AdditionalDocumentReference>
	<cac:AccountingSupplierParty>
		<cac:Party>
			<cac:PartyIdentification>
				<cbc:ID schemeID="CRN">1010010000</cbc:ID>
			</cac:PartyIdentification>
			<cac:PostalAddress>
				<cbc:StreetName>الامير سلطان | Prince Sultan</cbc:StreetName>
				<cbc:BuildingNumber>2322</cbc:BuildingNumber>
				<cbc:CitySubdivisionName>المربع | Al-Murabba</cbc:CitySubdivisionName>
				<cbc:CityName>الرياض | Riyadh</cbc:CityName>
				<cbc:PostalZone>23333</cbc:PostalZone>
				<cac:Country>
					<cbc:IdentificationCode>SA</cbc:IdentificationCode>
				</cac:Country>
			</cac:PostalAddress>
			<cac:PartyTaxScheme>
				<cbc:CompanyID>399999999900003</cbc:CompanyID>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>شركة توريد التكنولوجيا بأقصى سرعة المحدودة | Maximum Speed Tech Supply LTD</cbc:RegistrationName>
			</cac:PartyLegalEntity>
		</cac:Party>
	</cac:AccountingSupplierParty>
	<cac:AccountingCustomerParty>
		<cac:Party>
			<cac:PostalAddress>
				<cbc:StreetName>صلاح الدين | Salah Al-Din</cbc:StreetName>
				<cbc:BuildingNumber>1111</cbc:BuildingNumber>
				<cbc:CitySubdivisionName>المروج | Al-Murooj</cbc:CitySubdivisionName>
				<cbc:CityName>الرياض | Riyadh</cbc:CityName>
				<cbc:PostalZone>12222</cbc:PostalZone>
				<cac:Country>
					<cbc:IdentificationCode>SA</cbc:IdentificationCode>
				</cac:Country>
			</cac:PostalAddress>
			<cac:PartyTaxScheme>
				<cbc:CompanyID>399999999800003</cbc:CompanyID>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>شركة نماذج فاتورة المحدودة | Fatoora Samples LTD</cbc:RegistrationName>
			</cac:PartyLegalEntity>
		</cac:Party>
	</cac:AccountingCustomerParty>
	<cac:Delivery>
        <cbc:ActualDeliveryDate>2022-08-17</cbc:ActualDeliveryDate>
    </cac:Delivery>
	<cac:PaymentMeans>
		<cbc:PaymentMeansCode>10</cbc:PaymentMeansCode>
	</cac:PaymentMeans>
	<cac:AllowanceCharge>
		<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
		<cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
		<cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
		<cbc:Amount currencyID="SAR">100</cbc:Amount>
		<cac:TaxCategory>
			<cbc:ID>S</cbc:ID>
			<cbc:Percent>15</cbc:Percent>
			<cac:TaxScheme>
				<cbc:ID>VAT</cbc:ID>
			</cac:TaxScheme>
		</cac:TaxCategory>
	</cac:AllowanceCharge>
	<cac:TaxTotal>
		<cbc:TaxAmount currencyID="SAR">44020.84</cbc:TaxAmount>
	</cac:TaxTotal>
	<cac:TaxTotal>
		<cbc:TaxAmount currencyID="SAR">44020.84</cbc:TaxAmount>
		<cac:TaxSubtotal>
			<cbc:TaxableAmount currencyID="SAR">293472.29</cbc:TaxableAmount>
			<cbc:TaxAmount currencyID="SAR">44020.84</cbc:TaxAmount>
			<cac:TaxCategory>
				<cbc:ID>S</cbc:ID>
				<cbc:Percent>15.00</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:TaxCategory>
		</cac:TaxSubtotal>
		<cac:TaxSubtotal>
			<cbc:TaxableAmount currencyID="SAR">97857.43</cbc:TaxableAmount>
			<cbc:TaxAmount currencyID="SAR">0.00</cbc:TaxAmount>
			<cac:TaxCategory>
				<cbc:ID>E</cbc:ID>
				<cbc:Percent>0</cbc:Percent>
				<cbc:TaxExemptionReasonCode>VATEX-SA-29-7</cbc:TaxExemptionReasonCode>
				<cbc:TaxExemptionReason>Life insurance</cbc:TaxExemptionReason>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:TaxCategory>
		</cac:TaxSubtotal>
	</cac:TaxTotal>
	<cac:LegalMonetaryTotal>
		<cbc:LineExtensionAmount currencyID="SAR">391429.72</cbc:LineExtensionAmount>
		<cbc:TaxExclusiveAmount currencyID="SAR">391329.72</cbc:TaxExclusiveAmount>
		<cbc:TaxInclusiveAmount currencyID="SAR">435350.56</cbc:TaxInclusiveAmount>
		<cbc:AllowanceTotalAmount currencyID="SAR">100</cbc:AllowanceTotalAmount>
		<cbc:PrepaidAmount currencyID="SAR">0</cbc:PrepaidAmount>
		<cbc:PayableAmount currencyID="SAR">435350.56</cbc:PayableAmount>
	</cac:LegalMonetaryTotal>
	<cac:InvoiceLine>
		<cbc:ID>1251</cbc:ID>
		<cbc:InvoicedQuantity unitCode="PCE">3.00</cbc:InvoicedQuantity>
		<cbc:LineExtensionAmount currencyID="SAR">293572.29</cbc:LineExtensionAmount>
		<cac:TaxTotal>
			<cbc:TaxAmount currencyID="SAR">44035.84</cbc:TaxAmount>
			<cbc:RoundingAmount currencyID="SAR">337608.13</cbc:RoundingAmount>
		</cac:TaxTotal>
		<cac:Item>
			<cbc:Name>Multi-Disciplinary Services</cbc:Name>
			<cac:ClassifiedTaxCategory>
				<cbc:ID>S</cbc:ID>
				<cbc:Percent>15.00</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:ClassifiedTaxCategory>
		</cac:Item>
		<cac:Price>
			<cbc:PriceAmount currencyID="SAR">97857.43</cbc:PriceAmount>
		</cac:Price>
	</cac:InvoiceLine>
	<cac:InvoiceLine>
		<cbc:ID>1174</cbc:ID>
		<cbc:InvoicedQuantity unitCode="PCE">1.00</cbc:InvoicedQuantity>
		<cbc:LineExtensionAmount currencyID="SAR">97857.43</cbc:LineExtensionAmount>
		<cac:TaxTotal>
			<cbc:TaxAmount currencyID="SAR">0.00</cbc:TaxAmount>
			<cbc:RoundingAmount currencyID="SAR">97857.43</cbc:RoundingAmount>
		</cac:TaxTotal>
		<cac:Item>
			<cbc:Name>Design Consultancy Services</cbc:Name>
			<cac:ClassifiedTaxCategory>
				<cbc:ID>E</cbc:ID>
				<cbc:Percent>0</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:ClassifiedTaxCategory>
		</cac:Item>
		<cac:Price>
			<cbc:PriceAmount currencyID="SAR">97857.43</cbc:PriceAmount>
		</cac:Price>
	</cac:InvoiceLine>
</Invoice>

Validation Result

Hope this help.

1 Like