summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Muyshond <daniel.muyshond@gmail.com>2020-10-06 14:51:55 (GMT)
committerDaniel Muyshond <daniel.muyshond@gmail.com>2020-10-06 14:51:55 (GMT)
commitb48e6ba125864f8e032d3b09708136040f7d6488 (patch)
tree0211d374953d304a8ca355dc6468f92e7b6807f3
parent1bf9c6b0e9dccea546e9d3127ebf30690b229520 (diff)
downloadpasserelle-imio-extra-fees-master.zip
passerelle-imio-extra-fees-master.tar.gz
passerelle-imio-extra-fees-master.tar.bz2
[TELE-694] add 'commune' factor in check for no postage feesHEADmaster
-rw-r--r--passerelle_imio_extra_fees/models.py2
1 files changed, 1 insertions, 1 deletions
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'])