Equisys technical notes

Technical guidance, explanations and fixes for our products

HOWTO: Disable NAV write-back feature



ID: ZTN4222

This Zetadocs technical note applies to:

  • Version 1.0 of Zetadocs for Microsoft Dynamics NAV - Payables Approval


This technote explains how to disable the NAV write-back functionality which is part of the ‘Integration with NAV’ feature of Zetadocs Payables Approval.

This feature automatically updates the status of the invoices in Dynamics NAV during the process of approval.
For instance, once a purchase invoice is approved in Zetadocs Approvals, the status of the invoice in Dynamics NAV will be changed from ‘Open’ to ‘Released’.

More information

To disable this functionality, simply do the following:

  1. Open the Dynamics NAV Development Environment/Classic Client and connect to the company setup for Zetadocs Approvals.
  2. Open the Object Designer (Shift + F12).
  3. In the Codeunit section, locate the codeunit named “Zetadocs-Approvals + Capture” and click Design.
  4. Locate the following functions:
    • PurchaseInvoiceApproved
    • PostedPurchaseInvoiceApproved


  5. Comment out the content of these functions by putting comment characters at the beginning and end of each function. Respectively ‘{‘ and ‘}’.
  6. At the beginning of each function enter the following code:

  7.             EXIT(0);

  8. Close, save and compile the codeunit.

The Zetadocs Approvals process will no longer write back to update the status of invoice items in the Dynamics NAV database.

A Dynamics NAV Developer license is required to perform these steps.

Last updated: 27th December 2012 (SD/MW)

Equisys Logo, Document Management and Expense Management for Business Central

Replaced by script
Recent news

Understanding the profitability of projects is often a difficult and cumbersome process, especially if there is a lack of visibility around all the project costs. Getting that visibility of all ...

This article describes the new features and other improvements in the September 2021 update of the Zetadocs Expenses service. Zetadocs Expenses Release ...

North America
Equisys Inc
30000 Mill Creek Avenue
Suite 335
Alpharetta, GA 30022
(770) 772 7201
Equisys Ltd
91 Southwark Bridge Road
United Kingdom
+44 (0)20 7203 4000

© Equisys Ltd
All rights reserved

© Equisys Ltd    All rights reserved    Contact    Privacy policy    Cookies