How to insert custom field value in G/L Entry table

krishnamkkrishnamk Member Posts: 27
Dear Friends

I have added two fields in 81 table. while Posting I want transfer value into G/L entry table into custom field.
In which codeunit we can add these fields

Warm Regards
Kris

Answers

  • jglathejglathe Member Posts: 639
    edited 2017-07-05
    Hi there,

    Codeunit 12, function InitGLEntry() and siblings. If you're on NAV2013R2 or later, then you should do the change in Table 17, function CopyFromGenJnlLine(). This should be the only change then, too. Depends a little on the nature of the new fields.

    with best regards

    Jens
  • krishnamkkrishnamk Member Posts: 27
    Dear Jens;

    Very nice, I did it in Table 17, function CopyFromGenJnlLine
    with follwoing two lines
    //kris
    "Cheque No" := GenJnlLine."Cheque No";
    "Cheque Date" := GenJnlLine."Cheque Date";
    //===

    Warm regards
    Kris
  • jglathejglathe Member Posts: 639
    Great! :) And there we are at the nature of the fields: They should only be filled for payment transactions, I would assume.
Sign In or Register to comment.