From: Ashley J G. <agi...@pu...> - 2007-09-04 15:52:54
|
On Tue, 4 Sep 2007, Jeff Roberts wrote: > The item is discounted first, then rounded then multiplied by your > quantity. This allows you to discount one item while retaining other > items on the same invoice at full price If you applied the discount to > the sub total you'd lose the functionality of being able to discount > individual items. That is incorrect. There is nothing problematic with taking a line item, discounting it, multiplying out for qty and _then_ rounding, that would have absolutely no affect on other line items, and avoids that line item having a rounding "error". Additionally, it may be arguable that each invoice line should not be rounded before total as well, but that's not what Robert is noting here. (btw, the math you expressed is exactly what I had said earlier - but I am guessing you were replying to Robert more so than my post). -- Regards, Ashley J Gittins web: http://www.purple.dropbear.id.au jabber: agi...@pu... |