No.printed always zero


Greetings to you.

In the purchase orders the No.printed is always 0 when I print the order.

It should be >0 when I print it but it is always zero.

Which version of NAV and exactly which report?

If you are using a customized purchase order report, then make sure that it actually calls the code which updates the no. printed field.

Version 9, Report 405 Order.

In this report in the CopyLoop - OnPostDataItem trigger there is a function


PurchCountPrinted.RUN(“Purchase Header”);

This should do the summation of the No.printed.

Yes. Then you could try running the report with the debugger turned on, to see if/why it is not updating the number.

And remember that it does not update when you select preview…