1

AX2009. We have our AR parameters for AIF default Order Type to "Sales Order". However, there are instances where orders must come in as "Journal" type. Changing the SalesType in the xml to "Journal" does not seem to work. Is there a way to do accomplish this, maybe at the Endpoint setup? Thanks.

j.a.estevan
  • 3,057
  • 18
  • 32
Viet
  • 11
  • 1

1 Answers1

1

This parameter is called in the Class AxdSalesOrder in the method prepareSalesOrder as follows:

_axSalesTable.parmSalesType(this.SalesType());

This sets the sales type to the sales type held in your AR parameters. in this method, you can add code to change the parmSalesType to be SalesType::Journalbased on whatever criteria you specify.

Michael Brown
  • 2,221
  • 2
  • 17
  • 34