Skip to content

Instantly share code, notes, and snippets.

@foxtacles
Created November 3, 2013 00:12
Show Gist options
  • Select an option

  • Save foxtacles/7284937 to your computer and use it in GitHub Desktop.

Select an option

Save foxtacles/7284937 to your computer and use it in GitHub Desktop.

Revisions

  1. foxtacles created this gist Nov 3, 2013.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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