diff --git a/app/models/spree/calculator/sysmocom_mail_value_calculator.rb b/app/models/spree/calculator/sysmocom_mail_value_calculator.rb index b6d3cd2..fd9cb72 100644 --- a/app/models/spree/calculator/sysmocom_mail_value_calculator.rb +++ b/app/models/spree/calculator/sysmocom_mail_value_calculator.rb @@ -24,18 +24,21 @@ module Spree shipping_value = total_value_no_tax(object) iso_code = extract_iso_code(object) + # Warenpost International Unterschrift S: 6.20 / M: 9.50 / L: 19.50 base = 9.5 if iso_code == 'DE' + # Grossbrief Einschreiben: 3.95; Maxibrief Einschreiben: 5.10 / 7.30 base = 5.1 end # We need to add insurance.. - if shipping_value < 30 + if shipping_value < 20 # Plain registered letter return base end - return base + (((shipping_value.round / 100) + 1) * 2) + # Wert Intenational: 2.50 + 2 EUR je 100 EUR Haftungssumme + return base + 2.5 + (((shipping_value.round / 100) + 1) * 2) end end