Default Purchase Price: Algorithm

June 15, 2022


When you pick an item to a Purchase Invoice or a Purchase Order, then the "Price" field is pre-populated with a default value:

  1. From a supplier price list — if the module has been enabled, and there is a price list for the given supplier. 
    1. If there are several supplier price lists, then the newest one takes precedence. 
    2. If quantity-based prices are used (unit price may differ based on quantity), then purchased quantity is also taken into account.
  2. If step 1 did not give results, Erply takes the price from the most recent confirmed purchase invoice, regardless of supplier or location.
  3. If step 2 did not give results, Erply uses the value from the "Product cost" field on product card.
  4. If step 3 did not give results, Erply takes the cost from the most recent confirmed Inventory Registration, regardless of location. (This way, the costs from an initial import can be used as defaults.)