Options

New Sales Order Multiple No. Series

It4Ch1It4Ch1 Member Posts: 36
Is there a way that we can select No. Series first before creating New sales order?

I'd tried putting AssistEdit(SalesHeader) inside OnNewRecord, made error after select one and pushed OK.

Answers

  • Options
    vijay_gvijay_g Member Posts: 884
    hi,
    you have to use no.series relationship in sales header no.series.
    it's gives u choice of multipal no. series.
  • Options
    It4Ch1It4Ch1 Member Posts: 36
    Futhermore, instead of selecting No. Series automatically, is it possible to prompt AssistEdit for user to select which No. Series they want to use? i.e: Local Sales, Overseas Sales

    Can this be achieved outside the card form?
    With a button as trigger, to open card form and simultaneously open AssistEdit for user to select.

    While in card form, pushing F3 will prompt out No. Series for user to choose from.
    I figure by putting AssistEdit inside OnNewRecord would work. but encountered the error
    "you cannot make changes to database before a transaction been made" something like that
  • Options
    JPHSCJPHSC Member Posts: 67
    In the onnewrecord of the form ...
    CASE STRMENU('NoSeries1, NoSeries2, NoSeries3',3) OF
      1 : No := Getnextno('NoSeries1').....;
      2 : No := Getnextno('NoSeries2').....;
      3 : No := Getnextno('NoSeries3').....;
    END;
    

    Is this what you mean ?
  • Options
    It4Ch1It4Ch1 Member Posts: 36
    JPHSC wrote:
    In the onnewrecord of the form ...
    CASE STRMENU('NoSeries1, NoSeries2, NoSeries3',3) OF
      1 : No := Getnextno('NoSeries1').....;
      2 : No := Getnextno('NoSeries2').....;
      3 : No := Getnextno('NoSeries3').....;
    END;
    

    Is this what you mean ?

    THANKS!
    this helps.
    =D>
  • Options
    SavatageSavatage Member Posts: 7,142
    vijay_g wrote:
    hi,
    you have to use no.series relationship in sales header no.series.
    it's gives u choice of multipal no. series.
    With this no coding needed :D
Sign In or Register to comment.