From ae7e885619c0a3112765d9e32df2b3dd68a35d6a Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 27 Jul 2016 21:36:56 +0200 Subject: Move SUBTOTAL, VAT and TOTAL to Calculatable --- classes/Calculatable.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'classes/Calculatable.php') diff --git a/classes/Calculatable.php b/classes/Calculatable.php index 1d51f0f..086adc2 100644 --- a/classes/Calculatable.php +++ b/classes/Calculatable.php @@ -27,6 +27,10 @@ * total can be calculated */ trait Calculatable { + const SUBTOTAL = 1; + const VAT = 2; + const TOTAL = 3; + /** * Calculate the subtotal * @@ -57,7 +61,7 @@ trait Calculatable { * VAT: the sum of all the VAT from all the assignments * Total: the sum of subtotal and total * - * @param int $what Any of offer::SUBTOTAL, offer::VAT and offer::TOTAL + * @param int $what Any of Calculatable::SUBTOTAL, Calculatable::VAT and Calculatable::TOTAL * @param int $round How many decimals to round the result on * @param bool $format Whether to format the number nicely (for output) or not (for calculations) * -- cgit v1.2.3