mail DE: There are no letters in Germany > 1kg anymore
This commit is contained in:
parent
a5dc694967
commit
404c16657e
|
@ -32,8 +32,6 @@ module Spree
|
||||||
# Maxibrief Einschreiben: 5.10
|
# Maxibrief Einschreiben: 5.10
|
||||||
if weight < 1000
|
if weight < 1000
|
||||||
return 5.10
|
return 5.10
|
||||||
elsif weight < 2000
|
|
||||||
return 7.30
|
|
||||||
else
|
else
|
||||||
return 99999
|
return 99999
|
||||||
end
|
end
|
||||||
|
@ -53,13 +51,22 @@ module Spree
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.available?(object)
|
def self.available?(object)
|
||||||
# Letters have a maximum weight of 2kg
|
iso_code = extract_iso_code(object)
|
||||||
weight = total_weight(object)
|
weight = total_weight(object)
|
||||||
if weight < 2000
|
if iso_code == 'DE'
|
||||||
true
|
if weight < 1000
|
||||||
else
|
return true
|
||||||
false
|
else
|
||||||
end
|
return false
|
||||||
|
end
|
||||||
|
else
|
||||||
|
# Letters have a maximum weight of 2kg
|
||||||
|
if weight < 2000
|
||||||
|
return true
|
||||||
|
else
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def compute(object)
|
def compute(object)
|
||||||
|
|
Loading…
Reference in New Issue