From purchase order subform to posted purch. invoice subform

Nav-NoobNav-Noob Member Posts: 5
Hi

I'm new to this site, but I already found some good tips just reading some of the posts. Now i have a question myself.

I have added a new field to table 39: Purchase Line & added the field to the "Purchase Order Subform" and all is well.

Now i want to add the field to the posted purchase invoiced lines (subform) as well. How do i go about that.?
What changes (and where) do I need to do?

The field is Type Code.

Kind Regards
Jan

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Add the field with the same fieldnumber and fieldtype to table 123 "Purch. Inv. Line. Then the field gets automagically updated after posting the Purchase Order. This because the function TRANSFERFIELDS is used in codeunit 90, to copy the fields from table 39 to table 123.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    Welcome to Mibuso.

    Do you want to flow the same value from Purchase Order Sub form to Purch. Invoice subform?

    If yes then simply add the field to table 123 - Purch. Inv. Line with same field ID as in Purchase Line table..
  • Nav-NoobNav-Noob Member Posts: 5
    Thanks guys ... i Like magic stuff happening on its own :mrgreen:
  • Nav-NoobNav-Noob Member Posts: 5
    One more thing ..

    I have noticed that our Nav Consultant creates fields in the database while it's in production. Sometime this causes the the users having to restart their nav clients because of app. errors. Schould'nt you wait untill the Nav clients have all been logged off? Or can you just get away with that i Navision? (we are using Nav 5.0 Sp1).

    Can i do the above change while in production?

    Regards
    Jan
Sign In or Register to comment.