[TELE-694] add 'commune' factor in check for no postage fees

This commit is contained in:
Daniel Muyshond 2020-10-06 16:51:55 +02:00
parent 1bf9c6b0e9
commit b48e6ba125
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:
if destination and ('mail' in destination or 'commune' in destination):
postage_fee = Decimal(0)
if Decimal(basket_item['request_data']['postage_fee']) > postage_fee:
postage_fee = Decimal(basket_item['request_data']['postage_fee'])