No increment

MclarenMclaren Member Posts: 47
Hi Guys I just want to add a field like the Sales Order No which is in the Sales Order Form and I want to print it as it is getting printed automatically by using NEXT function. I have created a new form and added those fields.But Im very conflicted on the Codes while using NEXT. Can someone write the Code on this and help me.




Any Help will be appreciated.

Comments

  • sendohsendoh Member Posts: 207
    Hi Kabayan :mrgreen: ,

    what are you trying to achieve? I didn't understand this
    which is in the Sales Order Form and I want to print it as it is getting printed automatically by using NEXT function

    regards,
    sendoh
    Sendoh
    be smart before being a clever.
  • MclarenMclaren Member Posts: 47
    Im try to achieve the same function which the Sales Order No is achieving in the Sales Order Form.
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    Check this code in OnInsert trigger of Sales Header table
    IF "No." = '' THEN BEGIN
      TestNoSeries;
      NoSeriesMgt.InitSeries(GetNoSeriesCode,xRec."No. Series","Posting Date","No.","No. Series");
    END;
    
Sign In or Register to comment.