Options

codeunit 80 - problems and solution

davmac1davmac1 Member Posts: 1,283
edited 2015-06-28 in NAV Three Tier
http://mibuso.com/blogs/davidmachanick/2015/06/22/nightmare-on-nav-street-codeunit-80-problems-and-solution/

I have posted my sample program on my blog.
I think the more we extend NAV, the worse codeunit 80, 90, and some of the other codeuntis get, and the harder it becomes to make mods.
I have not attempted to untangle the logic - just separate error checking and posting, and reduce table locks.

When I get time, I will look at untangling the logic as well.

As NAV adds more and more nice features, I think it is important to fix the codeunits that are not following the new NAV coding standards.
If you add any sizable ISV products to the posting codeunits, they become even more tangled.

Comments

  • Options
    bbrownbbrown Member Posts: 3,268
    "...G/L Entry locked even if no ledger entries written (shipments do not write to the ledgers)....

    That depends on the setting of "Expected Cost Posting".
    There are no bugs - only undocumented features.
  • Options
    davmac1davmac1 Member Posts: 1,283
    Thanks for pointing that out.
    I will add that in, next time I work on it.
  • Options
    davmac1davmac1 Member Posts: 1,283
    I looked thru the code for posting expected cost, and the process does lock the G/L Entry table.

    I still have to do some more testing and cleanup on my proposed solution.
    What I have done is meant to be a demonstration on how to make codeunit 80 conform to published NAV standards, and it will take additional work to fully test it, and even more to have it pass Gary Winters readability proposal.
Sign In or Register to comment.