Problems with changing Item tracking CheckBox

remarkremark Member Posts: 122
Please, help me!
On an Item card form there is a 'CD Specific Tracking' CheckBox (I don't know may be it is a feature of russian located version, this boolean variable is responsible for tracking of Customs declaration numbers for the Item).
The problem is when I try to check this CheckBox I get a system alarm message - 'You can't change CD tracking since there are opened posted transactions for this item' (Or something like this in translation in English)

Is it possible to solve it?

P.S. I don't have developer's license.

Comments

  • tinoruijstinoruijs Member Posts: 1,226
    It's not standard NAV.

    Why do you want to check that checkbox?
    Maybe you should contact your NAV-partner for assistance.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • remarkremark Member Posts: 122
    Thank you, Tino, for answer!

    In fact, it is standard NAV, but it's localized russian version (because of this, one can say it's not so standard).
    I'll contact our local specialists concerning this problem.

    But it's interesting, are there many possible cases, when you have to create the same Item under different "No." because the only reason that you posted some transactions with it?
    Or, everything is due to my ignorance?
  • kinekine Member Posts: 12,562
    1) Yes, it is a Local customization - it means not included in W1 version... :-)
    2) For me it seems like the checkbox must be checked before you start using the item. If you want to change the checkbox after that, you need to have no opened entries for that item (it means 0 on inventory) - you can do negative adjustment, change the checkbox - do positive adj. It is like when you want to chenge the Tracking code on item with opened entries...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • remarkremark Member Posts: 122
    kine wrote:
    2) For me it seems like the checkbox must be checked before you start using the item. If you want to change the checkbox after that, you need to have no opened entries for that item (it means 0 on inventory) - you can do negative adjustment, change the checkbox - do positive adj. It is like when you want to chenge the Tracking code on item with opened entries...
    Thank you, kine! For me it seems so as well. But I'd like to understand for sure (for general knowledge) what does it mean - opened entries for item. If is it only because of not zero quantity in stock? In my case the problem was not solved after I had made all the necessary corrections to have 0 in stock.
  • kinekine Member Posts: 12,562
    1) You can enable debugger, try to check the box, and look at the condition which is right before calling the ERROR function in the code. From this condition you can see what is tested...
    2) The condition can be: any entry exists, some open entry exists, some not invoiced entry exists, some non-posted document line exists (in journal, purchase or sales document etc.).
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • remarkremark Member Posts: 122
    Yes, thank you, kine, I should alwais remember about this nice thing - debugger. I have not used to it so far.

    The results are:
    the debugger stopped after cheking following (in TestNoEntriesExist (CurrentFieldName) trigger)

    ItemLedgEntry.SETCURRENTKEY("Item No.");
    ItemLedgEntry.SETRANGE("Item No.", "No.");
    IF ItemLedgEntry.FIND ('-') THEN
    ERROR (
    Text007,
    CurrentFieldName);
  • kinekine Member Posts: 12,562
    Ok, it means that no entry must exists to be able to switch that checkbox... but question is, if it is really needed or just using the standard function to check that... sometime the condition are much stronger than needed... but this depends on the functionality behind the checkbox...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • remarkremark Member Posts: 122
    Thank you, kine, very much for your helpful explanations!
  • kinekine Member Posts: 12,562
    You are welcome... :wink:
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.