Permalink
Browse files

Have taxable_amount() check for item-level discounts too

  • Loading branch information...
Josh Lavin authored and jonjensen committed Jul 11, 2011
1 parent 7587e18 commit a3f2836d8c7fe5952113e1b8b37c5067032b9ecc
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Vend/Interpolate.pm
View
@@ -5365,11 +5365,11 @@ sub taxable_amount {
$item = $Vend::Items->[$i];
next if is_yes( $item->{mv_nontaxable} );
next if is_yes( item_field($item, $Vend::Cfg->{NonTaxableField}) );
- unless (%$::Discounts) {
- $taxable += item_subtotal($item);
+ if (%$::Discounts or $item->{mv_discount}) {
+ $taxable += apply_discount($item);
}
else {
- $taxable += apply_discount($item);
+ $taxable += item_subtotal($item);
}
}

0 comments on commit a3f2836

Please sign in to comment.