Skip to content

Instantly share code, notes, and snippets.

@foxtacles
Created November 3, 2013 00:12
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 foxtacles/7284937 to your computer and use it in GitHub Desktop.
Save foxtacles/7284937 to your computer and use it in GitHub Desktop.
invoice.transactions.sum(:total) Netto
invoice.total_with_vats - Netto + VATS + Marge abzgl. Gutschein
invoice.total_without_vats - Netto + Marge abzgl. Gutschein
invoice.margin_only Marge-Anteil von obigem
invoice.vats_only VATS-Anteil von obigem
invoice.total_without_vats - invoice.margin_only
=> Netto abzgl. Gutschein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment