Added POS and cash sale support.
[fa-stable.git] / includes / current_user.inc
index 05b98800643be3190a59d21175450dd77377b5a4..0e7a4a878091330b7cfa3564e11cb03d971a4b9d 100644 (file)
@@ -11,6 +11,7 @@ class current_user
        var $username;
        var     $name;
        var $company;
+       var $pos;
        var $access;
 
        var $logged;
@@ -48,6 +49,7 @@ class current_user
 
                    $this->access = $myrow["full_access"];
                    $this->name = $myrow["real_name"];
+                   $this->pos = $myrow["pos"];
                    $this->loginname = $loginname;
                    $this->username = $this->loginname;
                    $this->prefs = new user_prefs($myrow);
@@ -182,6 +184,11 @@ function user_company()
        return $_SESSION["wa_current_user"]->company;
 }
 
+function user_pos()
+{
+       return $_SESSION["wa_current_user"]->pos;
+}
+
 function user_language()
 {
        return $_SESSION["wa_current_user"]->prefs->language();