My company is trying the Italian version of NAV 5.0 SP1.
We found that a new field has been added in several places: Activity Code (Codice Attività), which is mandatory when posting invoices. Its occurrences are quite frequent, so I was wondering what it’s meant for. This question arises because of a “small” issue: we upgraded from NAV 4.0, so there are a lot of previous data without any associated activity code. This in turn prevents the VAT from being calculated properly (lines without the code seem to be simply ignored).
Is there a quick way to provide a default value when posting data? Is there a way to get the right VAT results even for the previous data?
Alas! Microsft Italy misunderstood a change in the Italian VAT law (now abrogated! [6] ) and did a mess. The code is happily useless. We usually kill it as soon as we get a new 5.1 installation started. [:P]
Thanks for the quick reply, I guessed something similar, but I wondered how you actually “kill” the field: I’ve seen there are a lot of occurrences in code and tables: do you simply comment all of them, or is there a single point where one can, for example, provide a default value?
If you like the default solution better, you may add a function to tables 36 and 38 which reads the first (and only) record in table 12124 and returns the code value, then in the InitRecord function add a line like this: