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 ?