Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@remcotolsma
Last active September 28, 2018 13:50
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 remcotolsma/1fcddfd0280cb24e5d2fa89a5945db02 to your computer and use it in GitHub Desktop.
Save remcotolsma/1fcddfd0280cb24e5d2fa89a5945db02 to your computer and use it in GitHub Desktop.
Pronamic Pay - Payment Item
<?php
// `vat` or `tax`
// `amount` or `price`
// `including`, `inclusive` or `inc`
// `excluding`, `exclusive` or `exc`
$item = new Item();
$item->get_total_price_including_tax();
$item->get_total_price_inclusive_tax();
$item->get_total_price_inc_tax();
$item->get_total_price_excluding_tax();
$item->get_total_price_exclusive_tax();
$item->get_total_price_exc_tax();
$item->get_total_amount_including_tax();
$item->get_total_amount_inclusive_tax();
$item->get_total_amount_inc_tax();
$item->get_total_amount_excluding_tax();
$item->get_total_amount_exclusive_tax();
$item->get_total_amount_exc_tax();
$item->get_total_tax();
$item->get_total_tax_amount();
$item->get_total_vat();
$item->get_total_vat_amount();
@remcotolsma
Copy link
Author

vat of tax: tax zijn alle belastingen, VAT is één soort belasting (Value Added Tax; btw) — als het om belastingen in het algemeen gaat zou ik voor tax gaan

amount of price: ik vind price een goede voor een stuksprijs, vermenigvuldig je die met de quantity dan heb je een amount m.i.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment