In the stock Navision code, there is a bug in the Test Report for Invoices. The Test Report should check to see if there is a duplicate external document number. Instead, the code checks the new vendor invoice number with the internal Navision invoice number. The code is found in the OnAfterGetRecord trigger of the top or outermost data item for the PurchaseHeader. Discouragingly, the Post code does the same processing but does it correctly. A user can enter an invoice, run the Test Report successfully, yet the Post will still fail. There are five instances of this code in the system. The business problem for us was that clients were printing out the test report and routing the vendor’s original documents with the Navision test report to an approval authority. Once approved the invoices would then not post. We have a “fix” we will share, but we believe this code should be ripped out and redone as a set of modular functions that can be called from both the Test Report as well as the Post code. If anyone wants the “fix” email me at weston@trustedbis.com Weston M. Binford, Jr weston@trustedbis.com
It’s really so!!! He-He-He!!! Funny, very funny Business Applications Programmer Sertified Navision Developer SIA “Sintegra” Latvia