![]() IF UserSetup."Sales Series Group" '' THEN BEGIN My function is bigger than what you shown. So my suggestion is to change the "Invoice" Document type and put in my user I have assign to my user this series on Posting no field, and in the series table is defined also as in the series line table. In my page I got the error that the series code "MRVF1" doens't exist. NoSeriesMgt.SetDefaultSeries("Posting No. Series",SeriesGroups."Posted Invoice") to ![]() Series",SalesSetup."Posted Invoice Nos.") // returns MRVFA NoSeriesMgt.SetDefaultSeries("Posting No. Series",User."Posting No.") //returns MRVF1 (what i want) ![]() "Document Type"::Quote,"Document Type"::Order: So after a little debugging I found this piece of code in a "InitRecord" function in sales header table, so it's explained why I can't change in my page just the "posting no". If I do this in the "OnNewRecord" trigger when I enter the page everything is ok but when i change anything it changes automatically to another series no. So my page Sales order have the "Sales header" table as source table and if i try to create a new record I want to have in the "posting no. Hi everyone, I'm having a little trouble trying to assign different series no according to the user logged in the NAV system to create a new sales order.
0 Comments
Leave a Reply. |