This warning appears when I make the quantity more than 1

 (
                        [type] => WARNING
                        [code] => BR-KSA-EN16931-11
                        [category] => KSA
                        [message] => Invoice line net amount (BT-131) must equal (Invoiced quantity (BT-129) * (Item net price (BT-146) / item price base quantity (BT-149))) + Sum of invoice line charge amount (BT-141) - Sum of invoice line allowance amount (BT-136)
                        [status] => WARNING
                    )

ext:UBLExtensions

ext:UBLExtension

ext:ExtensionURIurn:oasis:names:specification:ubl:dsig:enveloped:xades</ext:ExtensionURI>

ext:ExtensionContent

<sig:UBLDocumentSignatures xmlns:sac=“urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2” xmlns:sbc=“urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2” xmlns:sig=“urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2”>

sac:SignatureInformation

cbc:IDurn:oasis:names:specification:ubl:signature:1</cbc:ID>

sbc:ReferencedSignatureIDurn:oasis:names:specification:ubl:signature:Invoice</sbc:ReferencedSignatureID>

<ds:Signature xmlns:ds=“XML-Signature Syntax and Processing” Id=“signature”>

ds:SignedInfo

<ds:CanonicalizationMethod Algorithm=“Canonical XML 1.1”/>

<ds:SignatureMethod Algorithm=“xmldsig-more namespace”/>

<ds:Reference Id=“invoiceSignedData” URI=“”>

ds:Transforms

<ds:Transform Algorithm=“XML Path Language (XPath)”>

ds:XPathnot(//ancestor-or-self::ext:UBLExtensions)</ds:XPath>

</ds:Transform>

<ds:Transform Algorithm=“XML Path Language (XPath)”>

ds:XPathnot(//ancestor-or-self::cac:Signature)</ds:XPath>

</ds:Transform>

<ds:Transform Algorithm=“XML Path Language (XPath)”>

ds:XPathnot(//ancestor-or-self::cac:AdditionalDocumentReference[cbc:ID=‘QR’])</ds:XPath>

</ds:Transform>

<ds:Transform Algorithm=“Canonical XML 1.1”/>

</ds:Transforms>

<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing”/>

ds:DigestValuegRp21NRIXrvO6OXXNKFg4NvcV0DfVJ7HEFNY9xtctfQ=</ds:DigestValue>

</ds:Reference>

<ds:Reference Type=“XML-Signature Syntax and Processing” URI=“#xadesSignedProperties”>

<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing”/>

ds:DigestValueYmUzZTFjZGUwNGRkMTU5NzRiOTRiMjAwM2EwYTYzNGQzMWViMWU5YjYwM2M2ZTI2MjM3MWFhN2VjYjRlN2ZjYg==</ds:DigestValue>

</ds:Reference>

</ds:SignedInfo>

ds:SignatureValueMEYCIQDvI4daHTkh/DAvBTmfaUBhGQosloKymn+3FH33UrvXXAIhANtyiZF9X3Bnq6G/68JKJoLaNalxa/2vQVcyZgBMAF9p</ds:SignatureValue>

ds:KeyInfo

ds:X509Data

ds:X509CertificateMIIDQDCCAuagAwIBAgIGAZL6+OFkMAoGCCqGSM49BAMCMBUxEzARBgNVBAMMCmVJbnZvaWNpbmcwHhcNMjQxMTA1MDYxNzQyWhcNMjkxMTA0MjEwMDAwWjCB/jETMBEGA1UEAwwKMTAxMDU0NjE3MzFsMGoGA1UECwxjw5nChcOYwqTDmMKzw5jCs8OYwqkgw5jCrMOZwojDmMKvIMOZwoTDmcKEw5jCp8OZwobDmMK4w5nChcOYwqkgw5jCp8OZwoTDmcKFw5jCrcOYwqfDmMKzw5jCqMOZworDmMKpMWwwagYDVQQKDGPDmcKFw5jCpMOYwrPDmMKzw5jCqSDDmMKsw5nCiMOYwq8gw5nChMOZwoTDmMKnw5nChsOYwrjDmcKFw5jCqSDDmMKnw5nChMOZwoXDmMKtw5jCp8OYwrPDmMKow5nCisOYwqkxCzAJBgNVBAYTAlNBMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEwzvB6ityv61MggDj3dATK9ZqvG3YY5VaTSh1lHyCKgIryR1f136rDFfHF9PfhQaN8tBM0xoxOsO76jbKIQdDMKOCATkwggE1MAwGA1UdEwEB/wQCMAAwggEjBgNVHREEggEaMIIBFqSCARIwggEOMTwwOgYDVQQEDDMxLW9tbml8Mi1JT1N8My02ZjRkMjBlMC02YmZlLTRhODAtOTM4OS03ZGFiZTY2MjBmMTIxHzAdBgoJkiaJk/IsZAEBDA8zOTk5OTk5OTk4MDAwMDMxDTALBgNVBAwMBDAxMDAxYjBgBgNVBBoMWTEyMzQgw5jCtMOYwqfDmMKxw5jCuSDDmMKnw5nChMOZwoXDmcKEw5nCgyDDmcKBw5nCisOYwrXDmcKELCDDmMKnw5nChMOZwoLDmcKGw5nCgcOYwrDDmMKpMTowOAYDVQQPDDHDmMKnw5nChsOYwrjDmcKFw5jCqSDDmcKFw5jCrcOYwqfDmMKzw5jCqMOZworDmMKpMAoGCCqGSM49BAMCA0gAMEUCIDtugWEZx+hbb6+u23HtR/jehTqNCZtw5P5ePpiPN8I6AiEA4L194WUBS4OnYl8QttmBNdXSwJVSTNiIKFXOwHrpxTE=</ds:X509Certificate>

</ds:X509Data>

</ds:KeyInfo>

ds:Object

<xades:QualifyingProperties xmlns:xades=“Assigned ETSI XML URIs” Target=“signature”>

<xades:SignedProperties xmlns:xades=“Assigned ETSI XML URIs” Id=“xadesSignedProperties”>

xades:SignedSignatureProperties

xades:SigningTime2024-11-05T06:17:47Z</xades:SigningTime>

xades:SigningCertificate

xades:Cert

xades:CertDigest

<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing”/>

ds:DigestValueOWIxMmM5ZGE4OGQzNzZjMWUxYjdlZWIyZDg3YWI5NjY3ZDVjZWZkNDNhNWUyODQzOWNmZWUwYTZiYTQ2M2JiMg==</ds:DigestValue>

</xades:CertDigest>

xades:IssuerSerial

ds:X509IssuerNameCN=eInvoicing</ds:X509IssuerName>

ds:X509SerialNumber1730787467620</ds:X509SerialNumber>

</xades:IssuerSerial>

</xades:Cert>

</xades:SigningCertificate>

</xades:SignedSignatureProperties>

</xades:SignedProperties>

</xades:QualifyingProperties>

</ds:Object>

</ds:Signature>

</sac:SignatureInformation>

</sig:UBLDocumentSignatures>

</ext:ExtensionContent>

</ext:UBLExtension>

</ext:UBLExtensions>

cbc:ProfileIDreporting:1.0</cbc:ProfileID>

cbc:ID1-001-1</cbc:ID>

cbc:UUID6f4d20e0-6bfe-4a80-9389-7dabe6620f12</cbc:UUID>

cbc:IssueDate2024-11-04</cbc:IssueDate>

cbc:IssueTime06:53:36</cbc:IssueTime>

<cbc:InvoiceTypeCode name=“0211010”>388</cbc:InvoiceTypeCode>

cbc:DocumentCurrencyCodeSAR</cbc:DocumentCurrencyCode>

cbc:TaxCurrencyCodeSAR</cbc:TaxCurrencyCode>

cac:AdditionalDocumentReference

cbc:IDICV</cbc:ID>

cbc:UUID1</cbc:UUID>

</cac:AdditionalDocumentReference>

cac:AdditionalDocumentReference

cbc:IDPIH</cbc:ID>

cac:Attachment

<cbc:EmbeddedDocumentBinaryObject mimeCode=“text/plain”>NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</cbc:EmbeddedDocumentBinaryObject>

</cac:Attachment>

</cac:AdditionalDocumentReference>

cac:AdditionalDocumentReference

cbc:IDQR</cbc:ID>

cac:Attachment

<cbc:EmbeddedDocumentBinaryObject mimeCode=“text/plain”>ATPZhdik2LPYs9ipINis2YjYryDZhNmE2KfZhti42YXYqSDYp9mE2YXYrdin2LPYqNmK2KkCDzM5OTk5OTk5OTgwMDAwMwMTMjAyNC0xMS0wNFQwNjo1MzozNgQGNjAwLjAwBQU3OC4yNgYsZ1JwMjFOUklYcnZPNk9YWE5LRmc0TnZjVjBEZlZKN0hFRk5ZOXh0Y3RmUT0HYE1FWUNJUUR2STRkYUhUa2gvREF2QlRtZmFVQmhHUW9zbG9LeW1uKzNGSDMzVXJ2WFhBSWhBTnR5aVpGOVgzQm5xNkcvNjhKS0pvTGFOYWx4YS8ydlFWY3laZ0JNQUY5cAhYMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEwzvB6ityv61MggDj3dATK9ZqvG3YY5VaTSh1lHyCKgIryR1f136rDFfHF9PfhQaN8tBM0xoxOsO76jbKIQdDMAlHMEUCIDtugWEZx+hbb6+u23HtR/jehTqNCZtw5P5ePpiPN8I6AiEA4L194WUBS4OnYl8QttmBNdXSwJVSTNiIKFXOwHrpxTE=</cbc:EmbeddedDocumentBinaryObject>

</cac:Attachment>

</cac:AdditionalDocumentReference>

cac:Signature

cbc:IDurn:oasis:names:specification:ubl:signature:Invoice</cbc:ID>

cbc:SignatureMethodurn:oasis:names:specification:ubl:dsig:enveloped:xades</cbc:SignatureMethod>

</cac:Signature>

cac:AccountingSupplierParty

cac:Party

cac:PartyIdentification

<cbc:ID schemeID=“CRN”>1010546173</cbc:ID>

</cac:PartyIdentification>

cac:PostalAddress

cbc:StreetNameشارع الملك فيصل</cbc:StreetName>

cbc:BuildingNumber1234</cbc:BuildingNumber>

cbc:PlotIdentification0000</cbc:PlotIdentification>

cbc:CitySubdivisionNameمكة المكرمة</cbc:CitySubdivisionName>

cbc:CityNameالقنفذة</cbc:CityName>

cbc:PostalZone12345</cbc:PostalZone>

cac:Country

cbc:IdentificationCodeSA</cbc:IdentificationCode>

</cac:Country>

</cac:PostalAddress>

cac:PartyTaxScheme

cbc:CompanyID399999999800003</cbc:CompanyID>

cac:TaxScheme

cbc:IDVAT</cbc:ID>

</cac:TaxScheme>

</cac:PartyTaxScheme>

cac:PartyLegalEntity

cbc:RegistrationNameمؤسسة جود للانظمة المحاسبية</cbc:RegistrationName>

</cac:PartyLegalEntity>

</cac:Party>

</cac:AccountingSupplierParty>

cac:AccountingCustomerParty

cac:Party

cac:PartyLegalEntity

cbc:RegistrationNameعميل عام</cbc:RegistrationName>

</cac:PartyLegalEntity>

</cac:Party>

</cac:AccountingCustomerParty>

cac:PaymentMeans

cbc:PaymentMeansCode10</cbc:PaymentMeansCode>

cbc:InstructionNotejjjj</cbc:InstructionNote>

</cac:PaymentMeans>

cac:TaxTotal

<cbc:TaxAmount currencyID=“SAR”>78.26</cbc:TaxAmount>

cac:TaxSubtotal

<cbc:TaxableAmount currencyID=“SAR”>521.74</cbc:TaxableAmount>

<cbc:TaxAmount currencyID=“SAR”>78.26</cbc:TaxAmount>

cac:TaxCategory

<cbc:ID schemeAgencyID=“6” schemeID=“UN/ECE 5305”>S</cbc:ID>

cbc:Percent15.00</cbc:Percent>

cac:TaxScheme

<cbc:ID schemeAgencyID=“6” schemeID=“UN/ECE 5153”>VAT</cbc:ID>

</cac:TaxScheme>

</cac:TaxCategory>

</cac:TaxSubtotal>

</cac:TaxTotal>

cac:TaxTotal

<cbc:TaxAmount currencyID=“SAR”>78.26</cbc:TaxAmount>

</cac:TaxTotal>

cac:LegalMonetaryTotal

<cbc:LineExtensionAmount currencyID=“SAR”>521.74</cbc:LineExtensionAmount>

<cbc:TaxExclusiveAmount currencyID=“SAR”>521.74</cbc:TaxExclusiveAmount>

<cbc:TaxInclusiveAmount currencyID=“SAR”>600.00</cbc:TaxInclusiveAmount>

<cbc:AllowanceTotalAmount currencyID=“SAR”>0.00</cbc:AllowanceTotalAmount>

<cbc:PrepaidAmount currencyID=“SAR”>0</cbc:PrepaidAmount>

<cbc:PayableAmount currencyID=“SAR”>600.00</cbc:PayableAmount>

</cac:LegalMonetaryTotal>

cac:InvoiceLine

cbc:ID1</cbc:ID>

<cbc:InvoicedQuantity unitCode=“PCE”>6</cbc:InvoicedQuantity>

<cbc:LineExtensionAmount currencyID=“SAR”>521.74</cbc:LineExtensionAmount>

cac:TaxTotal

<cbc:TaxAmount currencyID=“SAR”>78.26</cbc:TaxAmount>

<cbc:RoundingAmount currencyID=“SAR”>600.00</cbc:RoundingAmount>

</cac:TaxTotal>

cac:Item

cbc:Nameتجربة1</cbc:Name>

cac:ClassifiedTaxCategory

cbc:IDS</cbc:ID>

cbc:Percent15.00</cbc:Percent>

cac:TaxScheme

cbc:IDVAT</cbc:ID>

</cac:TaxScheme>

</cac:ClassifiedTaxCategory>

</cac:Item>

cac:Price

<cbc:PriceAmount currencyID=“SAR”>86.96</cbc:PriceAmount>

cac:AllowanceCharge

cbc:ChargeIndicatorfalse</cbc:ChargeIndicator>

cbc:AllowanceChargeReasonخصم خاص للعميل</cbc:AllowanceChargeReason>

<cbc:Amount currencyID=“SAR”>0.00</cbc:Amount>

</cac:AllowanceCharge>

</cac:Price>

</cac:InvoiceLine>