Issue in SDK Validation for an invoice with Document Level allowance

I Created an Invoice with the following scenario:

  • 3 items
  •  Standard rate, 15%, 
    
  •         vat breakdown taxable amount : 720.0
    
  •  Zero  Rate, 0%
    
  •         vat breakdown taxable amount : 135.0
    
  •  Standard Rate, 5%
    
  •          vat breakdown taxable amount : 270.0
    
  •  Line extension amount = 1250
    
  •  Invoice Discount amount = 125 
    
  •        When adding a document level allowance of 10% 
    

**

why does the validation goes on taxable amount not sum of taxable amounts?

**

invoice is accepted with the following warnings:

  • category : BR_WARNING

  • **code :**BR-Z-08

  • message : In a VAT breakdown (BG-23) where the VAT category code (BT-118) is ‘Zero rated’ the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are ‘Zero Rated’.

  • category : BR_WARNING

  • **code :**BR-S-08

  • message : For each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is “Standard Rated”, the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are “Standard Rate“. and the VAT rates (BT-152,BT-96,BT-103) equal the VAT category rate (BT-119)

Hi,
Please share your XML file here as text document uploaded. thanks

You can download it from this link:

Hello, @Malik

I am facing the same issue can you please advice

Dear Omar,
Better if you can share your requirement and also xml the way you are trying with error if any you are getting. thanks

Dear Mostafa,
If you open the xml file it is not properly formatted many blank lines so please format it properly and also share what exactly you are trying to achieve as you are using multiple tax categories like 5, 15, 0 etc and allowances. So if you will share requirement then will be easy for anyone to guide you possible issue or solution. thanks