Skip to content

Commit

Permalink
Merge pull request #1633 from aspangaro/develop
Browse files Browse the repository at this point in the history
Typo / Missing key language / Fix limit list on mass movement stock page
  • Loading branch information
eldy committed May 30, 2014
2 parents 14d76d9 + 66d8b50 commit fb0f004
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
8 changes: 4 additions & 4 deletions htdocs/core/class/html.form.class.php
Expand Up @@ -1259,7 +1259,7 @@ function select_dolusers($selected='', $htmlname='userid', $show_empty=0, $exclu
* Return list of products for customer in Ajax if Ajax activated or go to select_produits_list
*
* @param int $selected Preselected products
* @param string $htmlname Name of HTML seletc field (must be unique in page)
* @param string $htmlname Name of HTML select field (must be unique in page)
* @param int $filtertype Filter on product type (''=nofilter, 0=product, 1=service)
* @param int $limit Limit on number of returned lines
* @param int $price_level Level of price to show
Expand All @@ -1268,7 +1268,7 @@ function select_dolusers($selected='', $htmlname='userid', $show_empty=0, $exclu
* @param string $selected_input_value Value of preselected input text (with ajax)
* @param int $hidelabel Hide label (0=no, 1=yes, 2=show search icon (before) and placeholder, 3 search icon after)
* @param array $ajaxoptions Options for ajax_autocompleter
* @param int $socid Thridparty Id
* @param int $socid Thirdparty Id
* @return void
*/
function select_produits($selected='', $htmlname='productid', $filtertype='', $limit=20, $price_level=0, $status=1, $finished=2, $selected_input_value='', $hidelabel=0, $ajaxoptions=array(),$socid=0)
Expand Down Expand Up @@ -1320,13 +1320,13 @@ function select_produits($selected='', $htmlname='productid', $filtertype='', $l
* @param int $selected Preselected product
* @param string $htmlname Name of select html
* @param string $filtertype Filter on product type (''=nofilter, 0=product, 1=service)
* @param int $limit Limite sur le nombre de lignes retournees
* @param int $limit Limit on number of returned lines
* @param int $price_level Level of price to show
* @param string $filterkey Filter on product
* @param int $status -1=Return all products, 0=Products not on sell, 1=Products on sell
* @param int $finished Filter on finished field: 2=No filter
* @param int $outputmode 0=HTML select string, 1=Array
* @param int $socid Thridparty Id
* @param int $socid Thirdparty Id
* @return array Array of keys for json
*/
function select_produits_list($selected='',$htmlname='productid',$filtertype='',$limit=20,$price_level=0,$filterkey='',$status=1,$finished=2,$outputmode=0,$socid=0)
Expand Down
1 change: 1 addition & 0 deletions htdocs/langs/en_US/stocks.lang
Expand Up @@ -112,6 +112,7 @@ ReplenishmentOrdersDesc=This is list of all opened supplier orders
Replenishments=Replenishments
NbOfProductBeforePeriod=Quantity of product %s in stock before selected period (< %s)
NbOfProductAfterPeriod=Quantity of product %s in stock after selected period (> %s)
MassMovement=Mass movement
MassStockMovement=Mass stock movement
SelectProductInAndOutWareHouse=Select a product, a quantity, a source warehouse and a target warehouse, then click "%s". Once this is done for all required movements, click onto "%s".
RecordMovement=Record transfert
Expand Down
2 changes: 2 additions & 0 deletions htdocs/langs/fr_FR/products.lang
Expand Up @@ -28,8 +28,10 @@ ProductsAndServicesStatistics=Statistiques produits et services
ProductsStatistics=Statistiques produits
ProductsOnSell=Produits en vente ou en achat
ProductsNotOnSell=Produits hors vente et hors achat
ProductsOnSellAndOnBuy=Produits en vente et en achat
ServicesOnSell=Services en vente ou en achat
ServicesNotOnSell=Services hors vente et hors achat
ServicesOnSellAndOnBuy=Services en vente et en achat
InternalRef=Référence interne
LastRecorded=Derniers produits/services en vente enregistrés
LastRecordedProductsAndServices=Les %s derniers produits/services enregistrés
Expand Down
2 changes: 1 addition & 1 deletion htdocs/langs/fr_FR/stocks.lang
Expand Up @@ -103,7 +103,7 @@ CurentlyUsingVirtualStock=Stock théorique
CurentlyUsingPhysicalStock=Stock réel
RuleForStockReplenishment=Règle de gestion du réapprovisionnement des stocks
SelectProductWithNotNullQty=Sélectionnez au moins un produit avec une quantité non nulle et un fournisseur
AlertOnly= Alertes seulement
AlertOnly=Alertes seulement
WarehouseForStockDecrease=L'entrepôt <b>%s</b> sera utilisé pour la décrémentation du stock
WarehouseForStockIncrease=L'entrepôt <b>%s</b> sera utilisé pour l'incrémentation du stock
ForThisWarehouse=Pour cet entrepôt
Expand Down
10 changes: 9 additions & 1 deletion htdocs/product/stock/massstockmove.php
Expand Up @@ -265,7 +265,15 @@
print '<td colspan="2">';
$filtertype=0;
if (! empty($conf->global->STOCK_SUPPORTS_SERVICES)) $filtertype='';
print $form->select_produits($id_product,'productid',$filtertype);
if ($conf->global->PRODUIT_LIMIT_SIZE <= 0)
{
$limit='';
}
else
{
$limit = $conf->global->PRODUIT_LIMIT_SIZE;
}
print $form->select_produits($id_product,'productid',$filtertype,$limit);
print '</td>';
// In warehouse
print '<td>';
Expand Down

0 comments on commit fb0f004

Please sign in to comment.