Could someone kindly explain me another use-case than the one provided in the doc ?
My understanding was that if my default UOM is Kg, and I buy bags of 25Kg, I could set 25 in the Packing Unit, so I would not have to define new UOM and conversion, since it is only a simple multiplier of Kg.
But as soon as I set a value in Packing Unit, and I try to create a PO, no rate is fetched from this price list.
Hi @guimorin
Effect is on stock transaction and not in PO,
SETUP in price list
UOM : kg
Packing Unit: 25
PO QTY =1
Received qty =1
Transaction qty = 25, your stock should increase by 25 kg.
Did not tried but you can give a po receipt trx and see result.
Let me know result…
This is what i too understood from the documentation. But it is absurd. This configuration is already possible UoM conversions. Why would someone what to jackup the transaction qty in item price list.
I was thinking that this feature is used to automatically apply price based on the quantity feild in the transaction.
Say I enter qty 25, the price should be fetched where the qty is 25. Is there any possible solution for this?
I’ve been digging into Packing Unit to try and understand how it’s used. Thought I’d share what I’ve learned.
I searched the codebase for packing_unit and found it is used only once, in the function check_packing_list(), which is used inside get_price_list_rate_for().
The get_price_list_rate_for() function checks if a valid price is available for a given item and quantity, and if so, returns the price. As part of this check, it looks to see if the desired quantity is an exact multiple of the packing_unit for an otherwise-valid Item Price. If yes, then the Rate is returned. If no, then that Item Price is considered not valid.
In other words, the Packing Unit is used purely as a way to filter the Item Price that is fetched in various situations in ERPNext. It has no effect on quantities used in any transactions. It’ s kind of like the ‘Valid To’ date in an Item Price.
I tried to find out when the Item Price is fetched and filtered based on Packing Unit. I think it happens when you add an Item to a Packing List, BOM, or Sales Order.
Hope that helps.