A pricing rule is defined to automatically set a unit price, a tax and a discount when a product is inserted in a document that includes the product value/price column (sales quotes, orders and invoices). It specifies the conditions against which certain attributes are compared to, when a product is inserted in a row of a document. Those attributes are: The currency of the document, the client or the supplier of the document, the current date, the product inserted in the row, the product category of the product inserted in the row and the quantity of the product inserted in the row of the document.