From 41753650e191dbc6d9ed84cb39c84f9244473e77 Mon Sep 17 00:00:00 2001 From: Nicolas Selva Date: Mon, 21 Dec 2020 12:16:18 +0100 Subject: [PATCH] [TELE-768] update for destination with no 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 2b7c223..0100215 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 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'])