Created
June 24, 2014 04:53
-
-
Save jetsgit/f3a69ec22a89a6dcf618 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 tax_cloud_adjustment | |
line_items.each do |line_item| | |
line_item.adjustments.create({ | |
source: self.tax_cloud_transaction, | |
label: 'Tax from TaxCloud', | |
mandatory: true, | |
eligible: true, | |
amount: line_item.tax_cloud_cart_item.amount, | |
order_id: self.id | |
}) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment