X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fprefs%2Fuserprefs.inc;h=50fa0a8811e1b5cf3a32a220dcae1179ff0a1746;hb=e7b078084252dbcb1fd1051ed0114804ed68b0e1;hp=49ef0e80a3277c6ef5ed52ebac1c91d73678085e;hpb=4b8770a78aa2719248bb09613bad52a5d2de5fe6;p=fa-stable.git diff --git a/includes/prefs/userprefs.inc b/includes/prefs/userprefs.inc index 49ef0e80..50fa0a88 100644 --- a/includes/prefs/userprefs.inc +++ b/includes/prefs/userprefs.inc @@ -46,6 +46,7 @@ class user_prefs $this->date_format = $dflt_date_fmt; $this->tho_sep = 0; $this->dec_sep = 0; + $this->price_dec = 2; $this->language = $dflt_lang; $this->theme = 'default'; @@ -83,7 +84,32 @@ class user_prefs } } } - + + function get_all() + { + return array( + 'language' => $this->language, + 'qty_dec' => $this->qty_dec, + 'prices_dec' => $this->price_dec, + 'rates_dec' => $this->exrate_dec, + 'percent_dec' => $this->percent_dec, + 'show_gl' => $this->show_gl_info, + 'show_codes' => $this->show_codes, + 'date_format' =>$this->date_format, + 'date_sep' => $this->date_sep, + 'tho_sep' => $this->tho_sep, + 'dec_sep' => $this->dec_sep, + 'theme' => $this->theme, + 'page_size' => $this->pagesize, + 'show_hints' => $this->show_hints, + 'print_profile' => $this->print_profile, + 'rep_popup' => $this->rep_popup, + 'query_size' => $this->query_size, + 'graphic_links' => $this->graphic_links, + 'sticky_doc_date' => $this->sticky_date, + 'startup_tab' => $this->startup_tab); + } + function language() { return $this->language;