spree/spree — Issue #947: effective_amount isn't defined for TaxCategory
Author: r3ap3r2004
Created: 2012-01-07 09:44:56+00:00
State: open

I get the following error when trying to checkout with "Shipment inc VAT" set to TRUE.

```
NoMethodError in Spree/checkout#edit

Showing core/app/views/spree/checkout/_delivery.html.erb where line #10 raised:

undefined method `effective_amount' for #
```

Steps to reproduce.

1) Go to the Admin -> Tax Settings and set 'Shipment including VAT' to true.
2) Attempt to place an order.

After entering shipping address and proceeding to the delivery step this error will be thrown.

As far as I can tell the 'effective_amount' method is never declared, but it is called in the following locations:

```
core/app/models/spree/product.rb line #169
core/app/models/spree/tax_rate.rb line #36
core/spec/models/product_spec.rb line #149
```