View source | Discuss this page | Page history | Printable version   
Main Page
Upload file
What links here
Recent changes

PDF Books
Add page
Show collection (0 pages)
Collections help



This article is protected against manual editing because it is automatically generated from Openbravo meta-data. Learn more about writing and translating such documents.
Back button.png   Back to Sales Management



Create orders tracking product sales to customers.

The Sales Order window allows to register sales related documents with different purposes which is regulated by the Transaction Document field. Depending on the chosen value, the consequences when booking the sales order will be different. These are the types of sales order documents that are available:

Sales Order transaction document.png
POS transaction document.png
Warehouse transaction document.png


Create a sales order and process it when ready.

The sales order Header lists the main terms and conditions related to the customer order that will be used in the heading of its printed copy and further in its shipment and invoicing process.

It is possible to create new Standard Sales Order, Warehouse and POS Orders as a conversion from an existing Sales Quotation

While creating a new sales order in this window:
in majority of the cases main (and the only) field needed to create a new sales transaction document is the Business Partner field. All other fields are automatically populated based on the selected Business Partner, logged in User preferences and other system default parameters.

Some other fields to note are:

Bulbgraph.png   Note: Reservations are disabled by default. To be able to use them please insert a new Preference using property Enable Stock Reservations with value Y. For more information visit Stock Reservations
Bulbgraph.png   Note: Payment Status field is available from 15Q4. It is disabled by default (but you can change it taking below into account) because filtering or sorting using this field (similar to Delivery Status and Invoice Status) can cause performance issues in environments with large volumes of data. In the 16Q2 release, we plan to add new Openbravo Platform functionality to enable / disable filtering & sorting for columns from the Application Dictionary and after this we will enable Payment Status with the corresponding restriction of sorting and filtering by default.

Below fields are defaulted according to the Customer and Location tabs of the Business Partner window.

There are 3 ways of entering lines into a sales order:

  1. Copying selected products from a history of products ordered by this customer using the Copy Lines button.
  2. Copying all products from the chosen order selected in the history of all orders for different business partners using the Copy from Order button.
  3. Manually, line by line, obviously in the Lines tab.

Sales order prepayment

Once a sales order is booked, it is possible to prepay an order by using the process button "Add Payment". Openbravo shows "Add Payment" window.


Same as described for Sales Invoice Payment, this window allows to fully or partially prepaid the order created more than once, and even pay other orders and/or invoices at the same time.

It is also possible to add any type of expense related to the payment of that order as a G/L item and even use available credit previously generated for the customer.

Once all of that is properly fulfilled, the payment can be processed or processed and deposit from the financial account.

It is important to remark that the sales invoice created from the order will inherit the payment done for the order.

Cancel and Replace

Once a sales order is booked, a new button is displayed in Sales Order named as "Cancel and Replace". This functionality will be hidden by default. In order to enable it, there is a preference called "Enable Cancel and Replace" that will be needed to activate.

Cancel and Replace (C&R from now) is a new functionality which closes a booked sales order and creates and replaces the order with a new copy of it in "Draft" status. This process simulates the functionality of modifying a booked ticket, allowing to modify the existing lines quantities, add new lines and remove lines from the new ticket (except for the already delivered units).


Clicking on that button and after confirming the action, a new order is generated and loaded in draft status. This order is the order that will replace the previous one when the process of Cancel and Replace is confirmed.


1) The order is in draft status.

2) The document number of the generated order is the same document number than the original order, but adding a ‘-1’ at the end of it. If this new order gets replaced in a future, its document number would be the same number but with ‘-2’, and so on.

3) A new button appears with name "Confirm Cancel and Replace" for this order. After doing the desired changes in the draft order, the user must click on this button to complete the C&R process (close the original order, create the inverse order and book the new one).

At this point (before clicking on the confirmation button) the user is able to modify the order, adding or removing lines or changing the quantity of them.

Is important to remark that a line that has previously delivered units cannot be removed or its quantity cannot be lowered down to the delivered quantity. Otherwise, the user can add new units without any problem.

Confirm Cancel and Replace process

After clicking on the confirmation button the C&R process will be finished. The old order is closed and the inverse order is created being a copy of the original order but in negative. The lines will be exactly as the original lines, but also with negative quantities.

As happens with the new generated order, the document number is the same than the original order but adding a ‘*R*’ at the end of it.


1) Negative quantities for the inverse order and lines.

2) Document number generated for the inverse order.

The new order will be set to book status, maintaining the changes done by the user. In this example an avalanche transceiver unit has been removed and an insect repellent has been added.



Add products to be included in your sales order. Each product is added by creating a line.

Lines tab lists each product ordered and its characteristics.


Fields to note:

Explode button is shown when selecting a line with a non-stockable BOM product and the product has not already been exploded. When exploding a product, the bill of materials components the selected product consist of are shown in the order. Once you have explode it, you cannot comprime it. You should delete all the lines (first bill of materials components and then the BOM product), and insert again the non-stockable BOM product.

Book button completes the sales order when all the products are entered. If there are non-stocable BOM products and they have not been exploded, the Book process will explode them.

Close button actions closes an order, which implies that :

Warehouse Rule implementation examples

Example 1 You have defined two on hand warehouses for an organization. Warehouse North (priority 10): Unique Attribute warehouse rule

Warehouse South (priority 20)

Create a sales order with quantity 60 and warehouse rule Unique Storage Bin. Book the sales order. Go to create shipments from order and select the newly created sales order. Process it and you will have a good shipment with 60uds taken from Warehouse South-Storage bin S1.

Example 2 You have defined two on hand warehouses for an organization. Warehouse North (priority 10): Unique Attribute warehouse rule

Warehouse South (priority 20)

Note:lotA and lotB are instance attributes for the same product. Create a sales order with quantity 22. Complete the sales order. Go to "create shipments from order" and select the newly created sales order. Process it and you will have a good shipment with 2 lines:

Stock reservations

Sales Order lines can be reserved when the sales order is booked and is pending to deliver.

Fields to be noted:

Manage Reservation pick and execute

Using the Manage Reservation button is possible to open a Pick and Execute window to create and modify reservation for the Sales Order Line. The grid shows all the available stock that can be delivered and the pending to receive purchase orders.


In the grid it is possible to select and set the desired quantity on any available stock. There are validations to avoid setting quantities higher than the available for the specific stock or than the ordered quantity. The Done button will create and process a reservation if none exists with the selected options, note that if the reservation does not exists and the Done button is pressed without selecting any stock or selecting a quantity below the ordered quantity, when the reservation is processed the system will reserve the remaining quantity with the available stock. If a reservation already exists the reserved stock will appear automatically selected and the Done button will update the reservation with the changes done. It is also possible to flag a stock as allocated.

Bulbgraph.png   Note: When the selected Product has the flag Variable Quantity set as true, it is possible to Reserve more Quantity than the Quantity ordered. But be careful, when a Shipment is generated against this Order Line and it is Completed (with the same Quantity or more than in the Order Line), the Reservation will be closed and the Reserved Quantity will be set as the same amount as the Order Quantity to prevent further inconsistency problems. So, it is possible to Reserve more Quantity than Ordered when a Product is set as Variable Quantity, but the Reservation will be set as the original Ordered Quantity when a Shipment is made.

Line Tax

Taxes related to the order line.

Line Tax read-only tab details taxes information for each line of a sales order based on its Tax field which is automatically pre-filled according to the Taxes Setup.


Lists information about discounts automatically applied and / or manually entered for the document.


Edit taxes applied to your order.

Summarizes tax related information for the whole sales order. Contains as many records as tax rates used in the order.

Payment In Plan

Shows the total amount expected to be collected upon order booking as well as the amount/s pre-paid or paid against the invoice/s for the order.

Shows total payment amount expected for the order and its fulfillment. This tab is read-only and is populated after processing the document.

Please visit Commons Section for more details.

Payment In Details

Displays the details of the payments (pre-payments or regular payments) received for the order or for the invoice/s of the order.

Displays the details of the payments (pre-payments or regular ones) received for the order.

Back button.png   Back to Sales Management

Retrieved from ""

This page has been accessed 2,078 times. This page was last modified on 3 April 2012, at 10:41. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.