No need to calculate average price.
If prices are identical, no need to do average calculation each time. It also prevent returning a price of 0 if all quantity values equal 0.
Showing
Please register or sign in to comment
If prices are identical, no need to do average calculation each time. It also prevent returning a price of 0 if all quantity values equal 0.