Change default of a option

yuppicideyuppicide Member Posts: 410
edited 2010-12-01 in Navision Attain
I'm in Nav 3.10. Purchase and Payables, Orders Received.

In there is an MenuButton that says "Posting". From there I have several options, one of them is "Post (F11)".

When I hit post, it gives me three options Receive, Invoice, Receive and Invoice. It defaults to having Receive and Invoice button marked.

I can't see to find where I can make it default to Receive being marked. We don't do Invoice usually, because it also prints and wastes paper. We don't want to remove the other options just in case we'd ever like them.

Comments

  • SavatageSavatage Member Posts: 7,142
    yuppicide wrote:
    I can't see to find where I can make it default to Receive being marked. We don't do Invoice usually, because it also prints and wastes paper. We don't want to remove the other options just in case we'd ever like them.

    Go to a puchase order - then Tools->Debugger->Code Coverage->Start.
    Go back to the PO & hit F11 - Then back to Code Coverage & Hit Stop

    You'll see a line that says: Codeunit 91-Purch.-Post (Yes/No)
    Click that & then the code button

    You'll see a line in the code that says:
    Selection := STRMENU(Text000,3);
    3 is "Receive & Invoice"
    If you change it to: Selection := STRMENU(Text000,2);
    then "Invoice" will be your default
    If you change it to: Selection := STRMENU(Text000,1);
    then "Receive" will be your default

    Note: F11 should not print even with the invoice option selected.
    Shift-F11 Will post & print.
  • yuppicideyuppicide Member Posts: 410
    Thanks.. you know.. says I don't have permission to modify Codeunit, but if I go into Tools -> Security -> Roles and look at the permissions for my login, it says YES to everything.. wonder why I can't do it then.
  • David_SingletonDavid_Singleton Member Posts: 5,479
    yuppicide wrote:
    Thanks.. you know.. says I don't have permission to modify Codeunit, but if I go into Tools -> Security -> Roles and look at the permissions for my login, it says YES to everything.. wonder why I can't do it then.

    Do you have a partner license or are you using an end user license?
    David Singleton
  • yuppicideyuppicide Member Posts: 410
    No idea. If I go to Tools -> License Information it shows a license number and Licensed to has our name, address, and phone number.
  • David_SingletonDavid_Singleton Member Posts: 5,479
    yuppicide wrote:
    No idea. If I go to Tools -> License Information it shows a license number and Licensed to has our name, address, and phone number.


    If you don't know, then probably you are an end user, not a partner. I guess you don't sell Navision; right? :wink:
    David Singleton
  • yuppicideyuppicide Member Posts: 410
    Nah, we don't sell Navision.. we got it from someone else. Had I sold Navision I think my knowledge of it would be a lot better and I wouldn't need to ask for help a lot of times. :)
  • David_SingletonDavid_Singleton Member Posts: 5,479
    OK, without a developer license you wont be able to do this. Its a very simple mod, so contact your partner and ask them to do it for you.
    David Singleton
Sign In or Register to comment.