# Enhanced Sales Return

The module streamlines sales return order handling:

- a new function lets you search the customer's sales shipments that still have quantity to return, filtering by item and entering the quantity and return reason directly;
- return reasons can be reserved for sales and linked to **rules** that automatically calculate the return price (percentage of the original amount, grace period, specific customer);
- for each return reason you can define an **alternative location** where goods are received;
- each location can have a **default return reason**.



The **Return Reasons** page has a new column:

| Field | Description |
|---|---|
| Area Usage | Area where the reason is used: blank, *Sales* or *Purchases*. On sales return order lines only reasons with usage *Sales* can be selected. |

From the same page, in the **Process** group, these actions are available:

- **Return Reason per Location**: opens the alternative locations for the selected reason;
- **Return Reason Rules**: opens the price calculation rules for the selected reason.


| Field | Description |
|---|---|
| Location Code | Location of the return order. |
| New Location Code | Location where goods are actually received when this reason is used. |


| Field | Description |
|---|---|
| Priority | Order in which rules are evaluated: the first valid rule applies. |
| Partner Type | Blank (all) or *Customer* (*Vendor* rules relate to purchases). |
| Partner No. | If filled in, the rule applies only to that customer (bill-to customer). |
| Grace Period Formula | Period within which the return must occur, starting from the original shipment date (e.g. `30D`). If the return document date is beyond it, the rule is skipped. Blank = no limit. |
| Amount % | Percentage of the reference price credited to the customer (0–100). |
| Price List Base | When available and filled in, the reference price is taken from the specified price list instead of the original sales amount. |


On the **Location Card**, General FastTab:

| Field | Description |
|---|---|
| Default Return Reason Code | Return reason automatically proposed for lines coming from shipments of this location. |



The **Sales Return Order** page has the **Get Sales Shipment to Reverse** action (shortcut **F4**), next to **Get Posted Doc. Lines to Reverse**.

1. Fill in the return order header (customer and location).
2. Choose **Get Sales Shipment to Reverse**: the list of the customer's shipment lines opens, most recent first, showing only lines with quantity not yet returned.
3. In the top section, optionally fill in:
   - **Item No.**: filters lines by item (an item reference or barcode can also be entered);
   - **Quantity to Return**: total quantity to return;
   - **Return Reason Code**: reason applied to all lines (if blank, the default reason of the shipment location is proposed).
4. Select one or more lines and confirm with **OK**.

Each line shows Document No., Posting Date, No., Description, Location Code, Unit of Measure Code, Quantity, **Shipped Qty. Not Returned**, Unit Price and Line Discount %. The FactBoxes show item invoicing and warehouse information.

On confirmation:

- the selected lines are copied to the return order, linked to the original shipment;
- if a **Quantity to Return** is entered, it is distributed across the lines until used up; if the selected lines are not enough, the other lines of the filtered list are used too, most recent first;
- the return reason is applied to each line (with the price and location rules described below);
- the return quantity to receive is set equal to the line quantity.


| Field | Description |
|---|---|
| Return Reason Code | Replaces the standard field: only reasons with usage *Sales* are offered. |
| Original Return Unit Amt. | Net unit amount of the original sale, stored when the line is copied from a posted document. Not editable. Also carried to posted credit memos. |


When the return reason is set or changed on a line:

1. the line location is reset to the header location (mandatory) and the default bin is proposed;
2. if the line is applied to an original sales entry and a **New Location Code** exists for the reason and the return location, the line is moved to that location;
3. the reason's **rules** are evaluated by priority; the first valid one (matching customer and return within the grace period) sets the unit price to *Amount %* of the reference price;
4. if no rule applies, the unit price equals the **Original Return Unit Amt.**;
5. in all cases the line discount is reset to zero.

In addition:

- when copying lines into a return order, if the line has no reason and the source location has a default return reason, it is set automatically;
- the warning message about unit price changes on sales lines is no longer shown.