Skip to content

Commit

Permalink
refactor base
Browse files Browse the repository at this point in the history
  • Loading branch information
vintem committed Jul 14, 2011
1 parent 9acb41c commit 75b6779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/shipping/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def compute(object)

peso_total = peso_total_do_pedido(pedido)

return 0 if total_weight == 0
return 0 if peso_total == 0

frete = Correios::Frete.new :cep_origem => preferred_zipcode,
:cep_destino => pedido.ship_address.zipcode.to_s,
Expand Down

0 comments on commit 75b6779

Please sign in to comment.