Show amounts with tax now

This commit is contained in:
Deon George
2011-10-14 08:41:01 +11:00
parent f2fed0c54f
commit 8a8fbec9de
5 changed files with 29 additions and 9 deletions

View File

@@ -44,10 +44,10 @@ class StaticList_RecurSchedule extends StaticList {
$table = static::factory()->table();
foreach ($product->get_price_array() as $term => $price) {
$x[$term] = sprintf('%s %s',Currency::display($price['price_base']),$table[$term]);
$x[$term] = sprintf('%s %s',Currency::display(Tax::add($price['price_base'])),$table[$term]);
if ($price['price_setup'] > 0)
$x[$term] .= sprintf(' + %s %s',Currency::display($price['price_setup']),_('Setup'));
$x[$term] .= sprintf(' + %s %s',Currency::display(Tax::add($price['price_setup'])),_('Setup'));
}
return Form::select($name,$x,$default);