in Shop/Tax, make taxes floating point numbers instead of integers

This commit is contained in:
Colin Kuskie 2008-07-16 17:00:05 +00:00
parent ee61031ed7
commit 5e1a0eb1be
2 changed files with 4 additions and 2 deletions

View file

@ -15,6 +15,8 @@
- fixed: The Sku's, Donation, Product, Subscription and FlatDiscount have a
continue shopping url that will take the user back the Sku in its normal
mode.
- fixed: Cannot enter floating point percentages (Kaleb Murphy, aka
perlmonkey2)
7.5.16
- Created a migration from 7.4.40 directly to 7.5.16.

View file

@ -410,7 +410,7 @@ sub www_addTax {
$params->{state} = $form->get('state', 'text');
$params->{city} = $form->get('city', 'text');
$params->{code} = $form->get('code', 'text');
$params->{taxRate} = $form->get('taxRate', 'integer');
$params->{taxRate} = $form->get('taxRate', 'float');
$self->add($params);
return $self->www_manage;
}
@ -576,7 +576,7 @@ sub www_manage {
hoverHelp => $i18n->get('code help'),
name => 'code',
);
$addForm->integer(
$addForm->float(
label => $i18n->get('tax rate'),
hoverHelp => $i18n->get('tax rate help'),
name => 'taxRate',