//
// To find how various hooks are processed look into respective hook_* functions below.
//
-class hooks extends \stdClass {
+class hooks {
var $module_name; // extension module name.
-
+ var $path = null;
//
// Helper for updating databases with extension scheme
//
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
-class user_prefs extends \stdClass
+class user_prefs
{
var $language;
var $sticky_date; // save date on subsequent document entry
var $startup_tab; // default start-up menu tab
var $transaction_days; // transaction days in inquiries
- var $save_report_selection; // save report selections days 0...
+ var $save_report_selections; // save report selections days 0...
var $use_date_picker; // use date picker for all date fields
var $def_print_destination; // default print destination. 0 = PDF/Printer, 1 = Excel
var $def_print_orientation; // default print orientation. 0 = Portrait. 1 = Landscape
*/
//-----------------------------------------------------------------------------------
-class allocation extends \stdClass
+class allocation
{
var $trans_no;
var $person_curr;
var $date_;
var $amount = 0; /*Total amount of the transaction in FX */
+ var $bank_amount = 0;
var $currency;
var $allocs; /*array of transactions allocated to */
Joe Hunt
*/
define('MAXLEN', 27); // we cut after 25 chars + ...
-class Chart extends \stdClass
+class Chart
{
var $id;
var $labels = array();
var $lang;
var $font;
var $path;
+ var $bar_width = 0;
+ var $space_between_dots = 0;
+ var $higher_value = 0;
+ var $higher_value_str = null;
+ var $graphic_area_width = 0;
+ var $graphic_area_height = 0;
+ var $graphic_area_x1 = 0;
+ var $graphic_area_x2 = 0;
+ var $graphic_area_y1 = 0;
+ var $graphic_area_y2 = 0;
+ var $legend_exists = false;
+ var $legend_box_width = 0;
+ var $legend_box_x1 = 0;
+ var $legend_box_x2 = 0;
+ var $legend_box_y1 = 0;
+ var $legend_box_y2 = 0;
+
function __construct($type = 1, $id = 'id', $width = 0, $height = 0)
{
include_once($path_to_root . "/inventory/includes/inventory_db.inc");
include_once($path_to_root . "/taxes/tax_calc.inc");
-class Cart extends \stdClass
+class Cart
{
var $trans_type; // invoice, order, quotation, delivery note ...
var $trans_no = array();// array (num1=>ver1,..) or 0 for new
var $ex_rate;
var $fixed_asset = false;
+ var $bo_policy = null;
//-------------------------------------------------------------------------
//