sram | 15 years ago | on: The best investment advice you'll never get
sram's comments
sram | 16 years ago | on: Ask HN: Why U.S. people dislike Nokia?
Make that two: Ewww
sram | 16 years ago | on: Interviewing programmers: coding test example explained
#!/usr/bin/perl
$in = <STDIN>;
$remove = <STDIN>;
chomp ($remove);
chomp ($in);
$in =~ s/$remove//g;
sram | 16 years ago | on: Intuit QuickBooks Discount Error Goes Unfixed
The crux of the matter is: How should the discount be applied, when there are multiple line items - taxable and non-taxable? One way of applying it is to say that the discount will be split equally between the line items that precede the discount.
In your example, there is a discount of $1, and there are two line items, one taxable, the other not. The software splits the discounts between the two line items. So there is 50c of taxable discount applied to item 1 (taxable), 50c of non-taxable applied to item 2 (non-taxable)
Well, then the calculation becomes more apparent. The calculation becomes
( 50c taxable + (50c*8%tax)) + 50c non-taxable
for a total of $1.04.
This way of calculating has been validated over a decade by Quickbooks users and accountants, so I do not consider it a defect. If you want to accomplish it differently, you can always apply a discount to a subtotal. If you look up Quickbooks help, you will find an entry for
'How is sales tax calculated for a discounted sale? '
That explains the behavior in great detail.
Hope this helps. Please let me know if there are additional clarifications needed on this
Thanks for being a QuickBooks user :-)