Options

I thought NAV all versions would not allow an Item # to be deleted if there were Ledger Entries.

jlyankiejlyankie Member Posts: 27
I just ran into a situation in NAV 2017 where an Item # was delete. The Item # had Ledger Entries and a Posted Invoice with the Item #, however NAV allowed the Item to be deleted.

After testing, it appears NAV 2017 will allow an Item # to be deleted if none of the Ledger Entries are open, is this true? If so did this just start with 2017 or it has always been that way?

Best Answer

Answers

  • Options
    Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    edited 2017-11-15
    Not sure if always, but certainly in v3.70 it was that way.
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • Options
    jlyankiejlyankie Member Posts: 27
    Answer ✓
    Thank you.
  • Options
    R3dNeX90R3dNeX90 Member Posts: 5
    from NAV 2009 to NAV 2016 I have never seen if it has worked.
  • Options
    Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    edited 2017-11-15
    Check Cronus.

    You will find
    MoveEntries.MoveItemEntries(Rec);
    
    in OnDelete trigger in various places depending on version - this is where deleted Item No is removed from ledgers on item deletion - Item No field is blanked in Job Ledger Entries / Value Entries.

    It might have some quirks as I remember vaguely fixing something around that - but clearly the intention was to let the Item to be deleted
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • Options
    vivek4121vivek4121 Member Posts: 165
    I don't think so, that it will allow in same fiscal year, if the year is not closed yet.
Sign In or Register to comment.