[TELE-768] update for destination with no fees

This commit is contained in:
Nicolas Selva 2020-12-21 12:16:18 +01:00
parent b48e6ba125
commit 41753650e1
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class ExtraFees(BaseResource):
nb_documents += int(basket_item['request_data']['nb_documents'])
destination = basket_item['request_data']['destination'] # Passed in the workflow webservice
# No postage fees if send by mail
if destination and ('mail' in destination or 'commune' in destination):
if destination and ('mail' in destination or 'commune' in destination or destination == 'False'):
postage_fee = Decimal(0)
if Decimal(basket_item['request_data']['postage_fee']) > postage_fee:
postage_fee = Decimal(basket_item['request_data']['postage_fee'])