. ***********************************************************************/ include_once($path_to_root . "/admin/db/company_db.inc"); class sys_prefs { var $prefs; var $db_ok; // check whether database has been upgraded after src update. function sys_prefs() { // $this->prefs = get_company_prefs(); } function allow_negative_stock() { return $this->prefs['allow_negative_stock']; } /* Sherifoz 26.06.03 Proportion by which items can be received over the quantity that is specified in a purchase invoice The figure entered is interpreted as a percentage ie 10 means 0.1 or 10% not 10 times */ function over_receive_allowance() { return $this->prefs['po_over_receive']; } /* Proportion by which a purchase invoice line is an overcharge for a purchase order item received is an overcharge. If the overcharge is more than this percentage then an error is reported and purchase invoice line cannot be entered The figure entered is interpreted as a percentage ie 20 means 0.2 or 20% not 20 times */ function over_charge_allowance() { return $this->prefs['po_over_charge']; } function default_credit_limit() { return $this->prefs['default_credit_limit']; } function default_wo_required_by() { return $this->prefs['default_workorder_required']; } function default_quote_valid_days() { return $this->prefs['default_quote_valid_days']; } function default_delivery_required_by() { return $this->prefs['default_delivery_required']; } function default_dimension_required_by() { return $this->prefs['default_dim_required']; } function auto_currency_revaluation() { return $this->prefs['auto_curr_reval']; } function allocation_settled_allowance() { global $config_allocation_settled_allowance; return $config_allocation_settled_allowance; } } ?>