From b48e6ba125864f8e032d3b09708136040f7d6488 Mon Sep 17 00:00:00 2001 From: Daniel Muyshond Date: Tue, 6 Oct 2020 16:51:55 +0200 Subject: [PATCH] [TELE-694] add 'commune' factor in check for no postage fees --- passerelle_imio_extra_fees/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passerelle_imio_extra_fees/models.py b/passerelle_imio_extra_fees/models.py index 434d8a4..2b7c223 100644 --- a/passerelle_imio_extra_fees/models.py +++ b/passerelle_imio_extra_fees/models.py @@ -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'])