From 5045b61ccd1b86932c8b981041a93112c6f9db36 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Tue, 14 Jun 2011 00:39:12 +0200 Subject: [PATCH] Price_in_words and retrieve_ex_rate commented out in base hook class (required because of hook_invoke_last usage) --- includes/hooks.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/hooks.inc b/includes/hooks.inc index 716b6d93..f5cfe2a0 100644 --- a/includes/hooks.inc +++ b/includes/hooks.inc @@ -100,10 +100,11 @@ class hooks { // // Returns: amount in words as string. +/* commented out in base class to enable use with hook_invoke_last function price_in_words($amount, $doc_type) { } - +*/ // // Exchange rate currency $curr as on date $date. // Keep in mind FA has internally implemented 3 exrate providers @@ -111,13 +112,14 @@ class hooks { // with apprioprate provider set, otherwise implement your own. // Returns: $curr value in home currency units as a real number. +/* commented out in base class to enable use with hook_invoke_last function retrieve_exrate($curr, $date) { // $provider = 'ECB'; // 'ECB', 'YAHOO' or 'GOOGLE' // return get_extern_rate($curr, $provider, $date); return null; } - +*/ // Generic function called at the end of Tax Report (report 709) // Can be used e.g. for special database updates on every report printing // or to print special tax report footer -- 2.30.2