generate different number sequence number for domestic and international sales order

Dear all, We have a scenario where we need to assign different number sequence for domestic and international sales order,… how to achieve this scenario, we have to achieve this by code…!!! any help!!! thanks, Rohit

You’ll have to identify and change those sales ID assignments that applies to your requirement. Here are some examples (from AX 2012 R2):

  • SalesTableType.numberSeqFormHandlerSalesId()
  • SalesAutoCreate.setSalesTable()
  • SalesCreateOrderFromCustomer.create()
  • SalesTable.initReturnFromSalesTable()
  • ProjTable.createSalesTablle_sales()
  • ProjTable.createSakesTable_ItemReq()
  • RetailOrderManager.createOrder()
  • RetailBuyersPushLineQty,createOrUpdateSalesOrder()

Use cross-references to find more.

Then use if/else (or whatever you decision logic is) to use different number sequences.