Last active
July 28, 2019 17:40
-
-
Save anthonygharvey/e65eb268590a7202a4b24220e301cc25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def print_shipping_label(order) | |
if order.outstanding_payments? | |
nil | |
else | |
if order.address_incomplete? | |
order.send_address_reminder | |
else | |
if order.standard_shipping? | |
order.print_standard_shipping_label | |
else | |
order.print_priority_shipping_lable | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment