diff --git a/htdocs/core/tpl/freeproductline_create.tpl.php b/htdocs/core/tpl/freeproductline_create.tpl.php
index 00fa589a710db0c6c8e52b5a8cfbeb5d1cac5e75..66688b69190b6fc68a3071415c78810ed6970f8b 100644
--- a/htdocs/core/tpl/freeproductline_create.tpl.php
+++ b/htdocs/core/tpl/freeproductline_create.tpl.php
@@ -63,13 +63,13 @@ if ($conf->global->PRODUIT_USE_MARKUP) $colspan = 'colspan="2"';
 
 	<td align="right">
 	<?php
-	if ($soc->tva_assuj == "0") echo '<input type="hidden" name="np_tva_tx" value="0">0';
+	if ($buyer->tva_assuj == "0") echo '<input type="hidden" name="np_tva_tx" value="0">0';
 	else $html->select_tva('np_tva_tx', $conf->defaulttx, $seller, $buyer);
 	?>
 	</td>
 	<td align="right"><input type="text" size="5" name="np_price"></td>
 	<td align="right"><input type="text" size="2" name="qty" value="<?php echo (isset($_POST["qty"])?$_POST["qty"]:1); ?>"></td>
-	<td align="right" nowrap><input type="text" size="1" value="<?php echo $soc->remise_client; ?>" name="remise_percent">%</td>
+	<td align="right" nowrap><input type="text" size="1" value="<?php echo $buyer->remise_client; ?>" name="remise_percent">%</td>
 	<td align="center" valign="middle" colspan="4"><input type="submit" class="button" value="<?php echo $langs->trans('Add'); ?>" name="addline"></td>
 </tr>
 
diff --git a/htdocs/core/tpl/predefinedproductline_create.tpl.php b/htdocs/core/tpl/predefinedproductline_create.tpl.php
index a6a7f5c184e5c92c3f0a299595da97458d235512..b7d504ac9c29f5522601fc6bbde58e15c84c1ad7 100644
--- a/htdocs/core/tpl/predefinedproductline_create.tpl.php
+++ b/htdocs/core/tpl/predefinedproductline_create.tpl.php
@@ -60,7 +60,7 @@ $colspan = 'colspan="3"';
 	<?php
 	// multiprix
 	if($conf->global->PRODUIT_MULTIPRICES)
-	$html->select_produits('','idprod','',$conf->product->limit_size,$soc->price_level);
+	$html->select_produits('','idprod','',$conf->product->limit_size,$buyer->price_level);
 	else
 	$html->select_produits('','idprod','',$conf->product->limit_size);
 
@@ -75,7 +75,7 @@ $colspan = 'colspan="3"';
 	?>
 	</td>
 	<td align="right"><input type="text" size="2" name="qty" value="1"></td>
-	<td align="right" nowrap><input type="text" size="1" name="remise_percent" value="<?php echo $soc->remise_client; ?>">%</td>
+	<td align="right" nowrap><input type="text" size="1" name="remise_percent" value="<?php echo $buyer->remise_client; ?>">%</td>
 
 	<td align="center" valign="middle" colspan="4"><input type="submit" class="button" value="<?php echo $langs->trans("Add"); ?>" name="addline"></td>
 </tr>