multiple Journal voucher not posted if narration is blank

divyesh10divyesh10 Member Posts: 71
if multiple journal voucher lines are posted then it should check for approvement of narration for each line posted
in default it only checks for first line and all the lines in voucher are posted
i tried to modify in 439 code unit but not working..

Comments

  • divyesh10divyesh10 Member Posts: 71
    Got My Solution
    this might help some one
    on Post Of journal To check all the Voucher has Narration

    IF GenJnlLine_gRec.FINDSET THEN BEGIN
    REPEAT
    IF ApprovalMgmt_gCdu.PrePostVouchApprovalCheck_gFnc(GenJnlLine_gRec) THEN;
    UNTIL GenJnlLine_gRec.NEXT=0;

    CODEUNIT.RUN(CODEUNIT::"Gen. Jnl.-Post",Rec);
    CurrentJnlBatchName := GETRANGEMAX("Journal Batch Name");
    CurrPage.UPDATE(FALSE);
    END;
Sign In or Register to comment.