# Quantity for free

This feature lets you specify, on an item line of a sales document, part of the sold quantity to be given away for free. The system automatically creates, right below the item line, an offsetting **Charge (Item)** line that cancels the value of the free quantity, keeping the item and its free goods linked.


Open the **Sales & Receivables Setup** page. On the **General** FastTab the following field is available:

| Field | Description |
|---|---|
| Default For Free Code | Item charge proposed automatically on sales lines when a free quantity is entered and no for free code is specified yet. |

The for free code is a standard Business Central **item charge**: its posting groups (product and VAT), if filled in, are used for the offsetting line; otherwise they are taken from the item line.


The fields are available on the lines of **Sales Orders**, **Sales Invoices**, **Sales Credit Memos** and **Sales Return Orders**, and are also carried over to the lines of posted shipments, invoices, credit memos and return receipts.

| Field | Description |
|---|---|
| Quantity for Free | Part of the line quantity given away for free. It cannot exceed the line **Quantity**. |
| For Free Code | Item charge used to create the free goods offsetting line. Proposed from the setup if empty. |


1. Enter a line of type **Item** with a quantity and unit price.
2. Fill in the **Quantity for Free** field.
3. Check or enter the **For Free Code** (required when a free quantity is present).
4. The system adds an item charge line below the item line with:
   - a description made of the item description followed, in brackets, by the for free code description;
   - a quantity equal to the free quantity;
   - a unit price equal to the item price with a negative sign and the same line discount;
   - the same unit of measure and location as the item line;
   - the item charge assignment already linked to the originating item line.


- The free line is recreated whenever the item line's type, item number, quantity for free, for free code, unit price or line discount changes.
- If the quantity for free is cleared, or the item line is deleted, the linked free line is deleted.
- The free line is not created if the line is not an item, if the unit price is zero or if the quantity for free is zero.
- The line **Quantity** cannot be reduced below the quantity for free.
- When shipping the order (directly or through a warehouse shipment) the quantity to ship of the free line is aligned with that of the item line, without exceeding the free line's outstanding quantity. With warehouse shipments, if less than planned is shipped, the free line is reduced accordingly.
- The **Product Canvass** includes a **For Free Code** field: if filled in, the item lines created by the canvass in the sales document are treated as entirely free (quantity for free equal to the quantity) and receive their offsetting lines.