Permalink
Browse files

Allow to override item tax calculation with tax value in $Items as ta…

…x rates may vary between items.
  • Loading branch information...
1 parent 7b1ee9c commit 4acb1f0b7e2474cb32f2935006e91bcef295bd40 @racke racke committed Oct 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Vend/Payment/PaypalExpress.pm
@@ -1088,7 +1088,7 @@ return $Tag->deliver({ location => $redirecturl });
description => Vend::Data::item_description($item),
amount => Vend::Data::item_price($item),
comment => Vend::Data::item_field($item, 'comment'),
- tax => (Vend::Data::item_price($item)/$itemTotal * $taxTotal),
+ tax => exists $item->{'tax'} ? $item->{'tax'} : (Vend::Data::item_price($item)/$itemTotal * $taxTotal),
rpAmount => Vend::Data::item_field($item, 'rpamount'),
};

0 comments on commit 4acb1f0

Please sign in to comment.