Register    Login    Forum    Search    FAQ

Board index » General Usage » Inventory




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Create Price Sheet with multi level 2,3,4
 Post Posted: Thu Apr 26, 2012 5:36 pm 
Offline

Joined: Mon Apr 23, 2012 3:16 am
Posts: 5
hii... dave
i have a problem to create price sheet in default price source i have only select level 1, item cost and retail price. can u help me how to get price source with multilevel : level 2, level 3 and level 4 like this :

Image

can u tell me what can i do to aviabel multilevel source.


Top 
 Profile  
 
 Post subject: Re: Create Price Sheet with multi level 2,3,4
 Post Posted: Thu Apr 26, 2012 9:39 pm 
Offline

Joined: Mon Apr 23, 2012 3:16 am
Posts: 5
i try to start from this :
\modules\inventory\defaults.php
Orginal On Line 53
Code:
$price_mgr_sources = array(
  '0' => TEXT_NOT_USED,   // Do not remove this selection, leave as first entry
  '1' => TEXT_DIR_ENTRY,
  '2' => TEXT_ITEM_COST,
  '3' => TEXT_RETAIL_PRICE,
// Price Level 1 needs to always be at the end (it is pulled from the first row to avoid a circular reference)
// The index can change but must be matched with the javascript to update the price source values.
  '4' => TEXT_PRICE_LVL_1,


ADD
Code:
  '5' => TEXT_PRICE_LVL_2,
  '6' => TEXT_PRICE_LVL_3,
  '7' => TEXT_PRICE_LVL_4,


File : \modules\inventory\pages\price_sheets\js_include.php
Line 94
i think must add code javascript in 'function updatePrice' case 5,6,7
Code:
 case 2: // Last Cost
     case 3: // Retail Price
     case 4: // Price Level 1
     default:
      document.getElementById('adj_'+rowID).disabled = false;
      document.getElementById('rnd_'+rowID).disabled = false;
      document.getElementById('adj_val_'+rowID).disabled = false;
      document.getElementById('rnd_val_'+rowID).disabled = false;
      document.getElementById('price_'+rowID).disabled = true;
   }

but i don't know how to calculate value, where code to calculate src/price value ?


Top 
 Profile  
 
 Post subject: Re: Create Price Sheet with multi level 2,3,4
 Post Posted: Wed May 02, 2012 3:04 pm 
Offline

Joined: Fri Oct 26, 2007 3:55 pm
Posts: 3499
Location: Colorado, US
Here: /modules/inventory/pages/price_sheets/js_include.php

Dave


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: