Preselected supplier when there's only one

This commit is contained in:
Cédric Salvador 2013-06-10 18:10:06 +02:00
parent 53265591fc
commit bd9c4556e8

View File

@ -1400,7 +1400,7 @@ class Form
$objp->remise = $objp2->remise;
$objp->price_by_qty_rowid = $objp2->rowid;
$this->constructProductListOption($objp, $opt, $optJson, 0, $selected);
$this->_construct_product_list_option($objp, $opt, $optJson, 0, $selected);
$j++;
@ -1414,7 +1414,7 @@ class Form
}
else
{
$this->constructProductListOption($objp, $opt, $optJson, $price_level, $selected);
$this->_construct_product_list_option($objp, $opt, $optJson, $price_level, $selected);
// Add new entry
// "key" value of json key array is used by jQuery automatically as selected value
// "label" value of json key array is used by jQuery automatically as text for combo box