When you create a purchase invoice that contains one line that uses reverse charge value-added tax (VAT) and the second line that uses unrealized VAT in the Spanish version of Microsoft Dynamics NAV 2009, the "Generated Autodocument" field in the VAT entries is set to TRUE for both lines. For second line that uses unrealized VAT must be "Generated Autodocument"=FALSE, because this field should apply only for reverse charge VAT. After that when you pay or apply the invoice and the VAT will be realized (second line of the invoice that uses unrealized VAT), the VAT entry generated also set the "Generated Autodocument"=TRUE. Follow the steps in the code changes section to solve this issue. This problem occurs in the following product:
- The Spanish version of Microsoft Dynamics NAV 2009 R2
- The Spanish version of Microsoft Dynamics NAV 2009 SP1