How to create Purchase Invoice with Free Items

Is there a way to easily enter free items received for a line item in the purchase invoice? For Ex: I receive 10 units of ITEM-A and 2 units of the same type for free. I don’t find an easy option for this kind of purchase entry in ERPNext except for using the pricing rule which is not user friendly.

I just used 2 rows in the Purchase Invoice Items table.

  1. row with the 10 units and the regular price.
  2. row with the 2 units and price $0. (In this row you need to check “Allow Zero Valuation Rate”).
    It is a manual process but simple, safe and understandable for every user.