New Action: Create Sales Order Directly

 


 

Background

In the Sales Quotes module, there was previously only the Create Sales Order 

button available. Through this route, the action list was always opened first, and then the user had to manually select lines.

With this update, we introduce the new Create Sales Order Directly button. This button allows you to create a sales order directly with one click based on the selected sales quote lines, without involving the action list. This also enables you to control the process via the API. 

 

Configuration

In the Sales Quotes module, the Create Sales Order Directly button has been added to the toolbar of the lines. This button is located to the right of the Create Sales Order 

button. The new button is only visible and available for sales quote lines that do not yet have the status 'Order'.

 

API Release

For sales quote lines, the action Create Sales Order Directly [s_create_sale_order] has been released for the MKG API. More information can be found in the Data dictionary: table 'vofr'. Additionally, below are 2 examples to further explain the application.

 

Example 1: Forwarding a specific quote line to a sales order

Fill in the following to directly create a sales order based on the selected sales quote line (vofr_num).

PUT:

{{restUrl}}/Documents/vofr/1+{{vofh_num}}+{{vofr_num}}/Service/s_create_sale_order?DialogResult=1&FieldList=vorh.vorh_num

Body:

Empty

 

Example 2: Forwarding multiple quote lines to a sales order at once

Fill in the following to forward multiple sales quote lines to a sales order at once.

PUT:

{{restUrl}}/Documents/vofr/0/Service/s_create_sale_order?DialogResult=1&FieldList=vorh.vorh_num

Body:

{
"request": {
"InputData": {
"t_selected_rows": [
{
"t_value": "1+{{vofh_num}}+{{vofr_num_2}}"
},
{
"t_value": "1+{{vofh_num}}+{{vofr_num_3}}"
}
]
}
}
}