Linking Blanket sales order to sales order No. series

LazyBoy_IndiaLazyBoy_India Member Posts: 3
Hello,

We use Blanket orders. If we create a sales order out of a blanket order, Navision will simply take the first available No. series for sales orders. However, I would like to choose out of the two existing No. series for sales orders. It seems not possible to set this up.
The same goes for converting Quotes to orders!

Got a Suggestions in this way but some one can elobarte it in detail...

You could add a new field to put which no. series you want when you make the sales order.

And put a few codes on Codeunit 86 Sales-Quote to Order.

TESTFIELD(NewField);

SalesOrderHeader."No. Series" := NewField;


I did it for converting Quotes to Order, but I believe you could do the same for Blanket Order. Use Codeunit 87 Blanket Sales Order to Order

Answers

  • LazyBoy_IndiaLazyBoy_India Member Posts: 3
    screenshot is my req...can some one guide me
  • mark_aumark_au Member Posts: 40
    There's a few ways you could do this, I'm assuming you want to link a single Blanket Sales Order No. Series to a single Sales Order No. Series (1:1 relationship always). I'd probably do it by adding a new field to the "No. Series" table called something like "Linked No. Series", then updating Codeunit 87 as you mentioned, change the line:
    SalesOrderHeader."No. Printed" := 0;
    SalesOrderHeader.Status := SalesOrderHeader.Status::Open;
    SalesOrderHeader."No." := '';
    

    to:
    SalesOrderHeader."No. Printed" := 0;
    SalesOrderHeader.Status := SalesOrderHeader.Status::Open;
     - NEW LOGIC BELOW:
     - check for relevant "Linked No. Series"
     - either generate the No. based on this in CU87, or, pass it to the Sales Header and use it there (first way is probably cleaner
    
Sign In or Register to comment.