We are getting this warning even though the XML data is not wrong, we have recalculated it manually there is no problem with the number.
<?xml version="1.0" encoding="UTF-8"?> urn:oasis:names:specification:ubl:dsig:enveloped:xades urn:oasis:names:specification:ubl:signature:1 urn:oasis:names:specification:ubl:signature:Invoice not(//ancestor-or-self::ext:UBLExtensions) not(//ancestor-or-self::cac:Signature) not(//ancestor-or-self::cac:AdditionalDocumentReference[cbc:ID='QR']) pC4FeU9r4Dr+iE8DursMJp9iWGNt32FEa+QhcTO4Ffg= YWI0YWM3MTExYTY0ZjgwMzVkYmMwMTI0ZTBmMTUwNDBjZWU5MjIzOTcwYTNhNTFjYWVhZDkxNDNkYzc0N2Q0NA== MEUCIQDIH+Qirahcu+chznDGtHwyNprDAua8EBbcCHZPKG23LQIgEF4F8einTr7MBlCEVnUNXdoacwZM9qRHfeJ0NW8kL80= MIICGTCCAb+gAwIBAgIGAZEX1VdAMAoGCCqGSM49BAMCMBUxEzARBgNVBAMMCmVJbnZvaWNpbmcwHhcNMjQwODAzMTA0MjE4WhcNMjkwODAyMjEwMDAwWjBSMQ4wDAYDVQQDDAVJTlYyNjEUMBIGA1UECwwLTWFpbiBCcmFuY2gxHTAbBgNVBAoMFE9jdG9iZXIgT3JnYW5pemF0aW9uMQswCQYDVQQGEwJTQTBWMBAGByqGSM49AgEGBSuBBAAKA0IABEA5o6o9SBFhjdXeEQHeTjwJLdIPVRWC4KSiwNjwoYbMUWv7GkwaV47FNNGQM8KySR5axxPJJ4JaThpj1zDuSzWjgcAwgb0wDAYDVR0TAQH/BAIwADCBrAYDVR0RBIGkMIGhpIGeMIGbMTMwMQYDVQQEDCoxLU9jdG9iZXIgT3JnYW5pemF0aW9ufDItV0VCfDMtMjE2ODkwNzg4MjQxHzAdBgoJkiaJk/IsZAEBDA8zMDExMjE5NzE1MDAwMDMxDTALBgNVBAwMBDAxMDAxJDAiBgNVBBoMGzAwMDAgS2luZyBGYWhhaGQgc3QsIEtob2JhcjEOMAwGA1UEDwwFT3RoZXIwCgYIKoZIzj0EAwIDSAAwRQIhALVLCsYSgKFtRom1YpZH4nRgtNIwzdCpiO9bNh/GDlfrAiAdlQNAplpFs534thsDiwQUI55OGcDbq7+Egw8c2/E5Bg== 2024-08-03T10:42:23Z Njk2ZjJlYzQ0NjJhODllMDE4YTQzNTkwNzJmYzJjNDk3ODM2MjJhNWE1ZGEyYTFjOTRhMzkzMzI1NjAwOGJkMg== CN=eInvoicing 1722681743168 reporting:1.0 INV26 21689078824 2024-08-03 10:41:28Z 388 SAR SAR ICV 26 PIH +yMOxoiu64riGbUvG1v5Kf4feBUU9WeiZWrmg+uR+Sc= QR ARRPY3RvYmVyIE9yZ2FuaXphdGlvbgIPMzAxMTIxOTcxNTAwMDAzAxQyMDI0LTA4LTAzVDEwOjQxOjI4WgQIMTU1MjUuMDAFBzIwMjUuMDAGLHBDNEZlVTlyNERyK2lFOER1cnNNSnA5aVdHTnQzMkZFYStRaGNUTzRGZmc9B2BNRVVDSVFESUgrUWlyYWhjdStjaHpuREd0SHd5TnByREF1YThFQmJjQ0haUEtHMjNMUUlnRUY0RjhlaW5UcjdNQmxDRVZuVU5YZG9hY3daTTlxUkhmZUowTlc4a0w4MD0IWDBWMBAGByqGSM49AgEGBSuBBAAKA0IABEA5o6o9SBFhjdXeEQHeTjwJLdIPVRWC4KSiwNjwoYbMUWv7GkwaV47FNNGQM8KySR5axxPJJ4JaThpj1zDuSzUJRzBFAiEAtUsKxhKAoW1GibVilkfidGC00jDN0KmI71s2H8YOV+sCIB2VA0CmWkWznfi2GwOLBBQjnk4ZwNurv4SDDxzb8TkG urn:oasis:names:specification:ubl:signature:Invoice urn:oasis:names:specification:ubl:dsig:enveloped:xades 454634645645654 King Fahahd st00000000WestKhobar31952 SA 301121971500003 VAT October Organization Akbar 2025.00 13500.00 2025.00 S 15.00 VAT 2025.00 13500.00 13500.00 15525.00 0 0 15525.00 73894 10 13500.00 2025.00 15525.00 MacBook Pro 13inch S 15.00 VAT 1500 1 false 95 Discount 1500.00This is the warning:
BR-KSA- EN16931-11
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)
Please share complete XML file with all tags. thanks
Here is a link to the file: