diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php
index 4f04861f844..e65578c7d45 100644
--- a/htdocs/core/tpl/objectline_create.tpl.php
+++ b/htdocs/core/tpl/objectline_create.tpl.php
@@ -35,7 +35,7 @@
// Protection to avoid direct call of template
if (empty($object) || ! is_object($object))
{
- print "Error, template page can't be called as URL";
+ print "Error: this template page cannot be called directly as an URL";
exit;
}
@@ -100,7 +100,7 @@ if ($nolinesbefore) {
?>
';
- if ($user->rights->margins->creer && ! empty($conf->global->DISPLAY_MARK_RATES)) echo '
'.$langs->trans('MarkRate').'
';
+ if ($user->rights->margins->creer && ! empty($conf->global->DISPLAY_MARGIN_RATES)) echo '
'.$langs->trans('MarginRate').'
';
+ if ($user->rights->margins->creer && ! empty($conf->global->DISPLAY_MARK_RATES)) echo '
'.$langs->trans('MarkRate').'
';
}
?>
@@ -165,7 +165,7 @@ if ($nolinesbefore) {
if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
$coldisplay=2;
?>
-
+
array('qty'=>'qty','remise_percent' => 'discount','idprod' => 'idprod'), // html id tags that will be edited with which ajax json response key
'option_disabled' => 'idthatdoesnotexists', // html id to disable once select is done
- 'warning' => $langs->trans("NoPriceDefinedForThisSupplier") // translation of an error saved into var 'warning' (for exemple shown we select a disabled option into combo)
+ 'warning' => $langs->trans("NoPriceDefinedForThisSupplier") // translation of an error saved into var 'warning' (for example shown we select a disabled option into combo)
);
$alsoproductwithnosupplierprice=0;
}
@@ -318,7 +318,7 @@ else {
$doleditor=new DolEditor('dp_desc',GETPOST('dp_desc'),'',100,$toolbarname,'',false,true,$enabled,$nbrows,'98%');
$doleditor->Create();
- // Show autofill date for recuring invoices
+ // Show autofill date for recurring invoices
if (! empty($conf->service->enabled) && $object->element == 'facturerec')
{
echo '
';
@@ -336,35 +336,35 @@ else {
if ($object->element == 'supplier_proposal' || $object->element == 'order_supplier' || $object->element == 'invoice_supplier') // We must have same test in printObjectLines
{
?>
-