Register    Login    Forum    Search    FAQ

Board index » General Usage » Inventory




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Error in Transfer Module
 Post Posted: Mon Dec 12, 2011 10:07 am 
Offline

Joined: Sun Dec 04, 2011 10:37 pm
Posts: 6
When we click on Transfer Item menu, it throws javascript error. Upon investigating, the <?php echo $_SESSION['admin_prefs']['def_store_id']; ?> is always blank. I could not locate the place where this attribute is set in the session. Please let me know what changes need to be done.


Top 
 Profile  
 
 Post subject: Re: Error in Transfer Module
 Post Posted: Thu Dec 15, 2011 1:53 pm 
Offline

Joined: Mon Mar 01, 2010 5:32 am
Posts: 554
Location: Netherlands
This should be set on loading of the page.

It is done by a includes/common_functions around line 320
you should find a function.

Make sure your files are complete. (incomplete files can happen during uploading.)

Code:
 function gen_get_store_ids() {
   global $db;
    $result_array = array();
   $result = $db->Execute("select id, short_name from " . TABLE_CONTACTS . " where type = 'b'");
   if (($_SESSION['admin_prefs']['restrict_store'] && $_SESSION['admin_prefs']['def_store_id'] == 0)
     || !$_SESSION['admin_prefs']['restrict_store']) {
        $result_array[] = array('id' => '0', 'text' => COMPANY_ID); // main branch id
   }
   while(!$result->EOF) {
     if (($_SESSION['admin_prefs']['restrict_store'] && $_SESSION['admin_prefs']['def_store_id'] == $result->fields['id'])
       || !$_SESSION['admin_prefs']['restrict_store']) {
          $result_array[] = array('id' => $result->fields['id'], 'text' => $result->fields['short_name']);
     }
     $result->MoveNext();
   }
    return $result_array;
  }

_________________
Rene Kervezee


Top 
 Profile  
 
 Post subject: Re: Error in Transfer Module
 Post Posted: Wed Jan 04, 2012 7:32 am 
Offline

Joined: Fri Aug 28, 2009 8:50 am
Posts: 186
Location: Miami, FL
Try this: Company->Users->Bring up your user information ->Save and log out.

See similar topic

_________________
Ruben.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 3 posts ] 

Board index » General Usage » Inventory


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron