mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 14:31:57 -05:00
Set postage and international for letters uploaded with a CSV
If the letter is outside of the United Kingdom, set the postage and international flag.
This commit is contained in:
@@ -242,7 +242,7 @@ def validate_address(service, letter_data):
|
||||
raise ValidationError(
|
||||
message='Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / ,'
|
||||
)
|
||||
if address.postage == 'united-kingdom':
|
||||
return None # use postage from template
|
||||
else:
|
||||
if address.international:
|
||||
return address.postage
|
||||
else:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user