From: Janusz Dobrowolski Date: Mon, 13 Jun 2011 22:39:12 +0000 (+0200) Subject: Price_in_words and retrieve_ex_rate commented out in base hook class (required becaus... X-Git-Tag: 2.3-final~622 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=5045b61ccd1b86932c8b981041a93112c6f9db36;p=fa-stable.git Price_in_words and retrieve_ex_rate commented out in base hook class (required because of hook_invoke_last usage) --- 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