Neue Tarife / Wert International zu Warenpost International Unterschrift

This commit is contained in:
Harald Welte 2019-01-15 15:41:20 +01:00
parent 7dd5700701
commit 60bb99fb80
1 changed files with 5 additions and 2 deletions

View File

@ -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