Sale invoice report problem

WojtekmWojtekm Member Posts: 123
edited 2006-12-22 in Navision Attain
Hello,

I`am a beginner NAV designer. I have a problem with sales invoice raport. I need to print every invoice in 3 copies.
On first i have to add a text "original", on 2nd and 3rd i have to add text "copy".

I found the solution of second part of that problem, i used "STRSUBSTNO(CopyText);" in SourceExpr field, but i don`t know how to add a "Original" text ONLY on first copy.


wojtekm

Answers

  • themavethemave Member Posts: 1,058
    This would be the code to show the copy text:


    CurrReport.PAGENO := 1;

    IF CopyNo = NoLoops THEN BEGIN
    IF NOT CurrReport.PREVIEW THEN
    SalesInvPrinted.RUN("Sales Invoice Header");
    CurrReport.BREAK;
    END ELSE
    CopyNo := CopyNo + 1;
    IF CopyNo = 1 THEN // Original
    CLEAR(CopyTxt)
    ELSE
    CopyTxt := Text000;


    Use a second variable Text009 and set it to "Original"
    and change
    CLEAR(CopyTxt) to CopyTxt := Text009
  • WojtekmWojtekm Member Posts: 123
    Thanx for advice,

    but I solved that problem in the other way: I create 2 checkboxes - first to create original text, second to create copy text.


    ****************
    Wojtekm
Sign In or Register to comment.