[TELE-768] update for destination with no fees
This commit is contained in:
parent
b48e6ba125
commit
41753650e1
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue