[TELE-694] add 'commune' factor in check for no postage fees
This commit is contained in:
parent
1bf9c6b0e9
commit
b48e6ba125
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue