Skip to content

Instantly share code, notes, and snippets.

@jetsgit
Created June 24, 2014 04:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jetsgit/f3a69ec22a89a6dcf618 to your computer and use it in GitHub Desktop.
Save jetsgit/f3a69ec22a89a6dcf618 to your computer and use it in GitHub Desktop.
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