Warehouse rules window allows to review the warehouse rules available.
Warehouse rules are used to restrict the stock available on the warehouse.
The rules are applied when the stock is retrieved automatically by processes like good shipment generation.
New warehouse rules can only by applied by extension modules which must include a dataset with the definition of the rule and a procedure that implements it.
Openbravo ships three different rules by default:
- Unique Attribute: All the stock proposed to be used must be of the same attribute set value. It returns the first attribute set value that is found with enough quantity to fulfill the requirement. If there isn't any attribute set value with enough stock no stock is proposed. This is a excluding rule.
- Unique Storage Bin: All the stock proposed must come from the same storage bin. It returns the stock from the first storage bin found with enough quantity. If there is no storage bin with enough quantity then the stock is get from any storage bin. This is a preference rule and not a excluding rule
- and Default Warehouse Rule: The default rule does not restrict anything and all the available stock from the on hand warehouses is returned. This rule can be used in Sales Orders whenever it is desired to overwrite a rule defined in the warehouse to not apply any rule.
Full list of Warehouse Rules window fields and their descriptions is available in the Warehouse Rules Screen Reference.