Merge branch '3.4' of https://github.com/Dolibarr/dolibarr.git into 3.4
This commit is contained in:
commit
ccb60e549a
@ -176,7 +176,7 @@ class modMyModule extends DolibarrModules
|
|||||||
|
|
||||||
|
|
||||||
// Main menu entries
|
// Main menu entries
|
||||||
$this->menus = array(); // List of menus to add
|
$this->menu = array(); // List of menus to add
|
||||||
$r=0;
|
$r=0;
|
||||||
|
|
||||||
// Add here entries to declare new menus
|
// Add here entries to declare new menus
|
||||||
|
|||||||
@ -351,7 +351,7 @@ else if ($action == 'add' && $user->rights->propal->creer)
|
|||||||
if ($id > 0)
|
if ($id > 0)
|
||||||
{
|
{
|
||||||
// Insertion contact par defaut si defini
|
// Insertion contact par defaut si defini
|
||||||
if (GETPOST('contactidp'))
|
if (GETPOST('contactidp') > 0)
|
||||||
{
|
{
|
||||||
$result=$object->add_contact(GETPOST('contactidp'),'CUSTOMER','external');
|
$result=$object->add_contact(GETPOST('contactidp'),'CUSTOMER','external');
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
@ -1347,6 +1347,7 @@ if ($action == 'create')
|
|||||||
$numprojet=select_projects($soc->id,$projectid);
|
$numprojet=select_projects($soc->id,$projectid);
|
||||||
if ($numprojet==0)
|
if ($numprojet==0)
|
||||||
{
|
{
|
||||||
|
$langs->load("projects");
|
||||||
print ' <a href="../projet/fiche.php?socid='.$soc->id.'&action=create">'.$langs->trans("AddProject").'</a>';
|
print ' <a href="../projet/fiche.php?socid='.$soc->id.'&action=create">'.$langs->trans("AddProject").'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
@ -648,8 +648,7 @@ class Propal extends CommonObject
|
|||||||
dol_syslog(get_class($this)."::create");
|
dol_syslog(get_class($this)."::create");
|
||||||
|
|
||||||
// Check parameters
|
// Check parameters
|
||||||
$soc = new Societe($this->db);
|
$result=$this->fetch_thirdparty();
|
||||||
$result=$soc->fetch($this->socid);
|
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$this->error="Failed to fetch company";
|
$this->error="Failed to fetch company";
|
||||||
@ -670,8 +669,6 @@ class Propal extends CommonObject
|
|||||||
|
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
$this->fetch_thirdparty();
|
|
||||||
|
|
||||||
// Insert into database
|
// Insert into database
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."propal (";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."propal (";
|
||||||
$sql.= "fk_soc";
|
$sql.= "fk_soc";
|
||||||
|
|||||||
@ -74,11 +74,11 @@ function barcode_print($code, $encoding="ANY", $scale = 2 ,$mode = "png")
|
|||||||
dol_syslog("barcode.lib.php::barcode_print $code $encoding $scale $mode");
|
dol_syslog("barcode.lib.php::barcode_print $code $encoding $scale $mode");
|
||||||
|
|
||||||
$bars=barcode_encode($code,$encoding);
|
$bars=barcode_encode($code,$encoding);
|
||||||
|
if (! $bars || ! empty($bars['error']))
|
||||||
if (! $bars)
|
|
||||||
{
|
{
|
||||||
// DOLCHANGE LDR Return error message instead of array
|
// DOLCHANGE LDR Return error message instead of array
|
||||||
$error='Bad Value '.$code.' for encoding '.$encoding;
|
if (empty($bars['error'])) $error='Bad Value '.$code.' for encoding '.$encoding;
|
||||||
|
else $error=$bars['error'];
|
||||||
dol_syslog('barcode.lib.php::barcode_print '.$error, LOG_ERR);
|
dol_syslog('barcode.lib.php::barcode_print '.$error, LOG_ERR);
|
||||||
return $error;
|
return $error;
|
||||||
}
|
}
|
||||||
@ -133,7 +133,7 @@ function barcode_encode($code,$encoding)
|
|||||||
dol_syslog("barcode.lib.php::barcode_encode Use barcode_encode_ean");
|
dol_syslog("barcode.lib.php::barcode_encode Use barcode_encode_ean");
|
||||||
$bars=barcode_encode_ean($code, $encoding);
|
$bars=barcode_encode_ean($code, $encoding);
|
||||||
}
|
}
|
||||||
else if (file_exists($genbarcode_loc))
|
else if (file_exists($genbarcode_loc)) // For example C39
|
||||||
{
|
{
|
||||||
/* use genbarcode */
|
/* use genbarcode */
|
||||||
dol_syslog("barcode.lib.php::barcode_encode Use genbarcode ".$genbarcode_loc." code=".$code." encoding=".$encoding);
|
dol_syslog("barcode.lib.php::barcode_encode Use genbarcode ".$genbarcode_loc." code=".$code." encoding=".$encoding);
|
||||||
@ -252,10 +252,11 @@ function barcode_encode_genbarcode($code,$encoding)
|
|||||||
$code=preg_replace("/[\\\|]/", "_", $code);
|
$code=preg_replace("/[\\\|]/", "_", $code);
|
||||||
|
|
||||||
$command=escapeshellarg($genbarcode_loc);
|
$command=escapeshellarg($genbarcode_loc);
|
||||||
$paramclear=" \"".str_replace("\"", "\\\"",$code)."\" \"".str_replace("\"", "\\\"",strtoupper($encoding))."\"";
|
//$paramclear=" \"".str_replace("\"", "\\\"",$code)."\" \"".str_replace("\"", "\\\"",strtoupper($encoding))."\"";
|
||||||
|
$paramclear=" ".escapeshellarg($code)." ".escapeshellarg(strtoupper($encoding));
|
||||||
|
|
||||||
$fullcommandclear=$command." ".$paramclear." 2>&1";
|
$fullcommandclear=$command." ".$paramclear." 2>&1";
|
||||||
//print $fullcommandclear."<br>\n";
|
//print $fullcommandclear."<br>\n";exit;
|
||||||
|
|
||||||
dol_syslog("Run command ".$fullcommandclear);
|
dol_syslog("Run command ".$fullcommandclear);
|
||||||
$fp=popen($fullcommandclear, "r");
|
$fp=popen($fullcommandclear, "r");
|
||||||
@ -273,14 +274,20 @@ function barcode_encode_genbarcode($code,$encoding)
|
|||||||
}
|
}
|
||||||
//var_dump($bars);
|
//var_dump($bars);
|
||||||
$ret=array(
|
$ret=array(
|
||||||
"encoding" => trim($encoding),
|
|
||||||
"bars" => trim($bars),
|
"bars" => trim($bars),
|
||||||
"text" => trim($text)
|
"text" => trim($text),
|
||||||
|
"encoding" => trim($encoding),
|
||||||
|
"error" => ""
|
||||||
);
|
);
|
||||||
//var_dump($ret);
|
//var_dump($ret);
|
||||||
if (!$ret['encoding']) return false;
|
if (preg_match('/permission denied/i',$ret['bars']))
|
||||||
|
{
|
||||||
|
$ret['error']=$ret['bars']; $ret['bars']='';
|
||||||
|
return $ret;
|
||||||
|
}
|
||||||
if (!$ret['bars']) return false;
|
if (!$ret['bars']) return false;
|
||||||
if (!$ret['text']) return false;
|
if (!$ret['text']) return false;
|
||||||
|
if (!$ret['encoding']) return false;
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2194,10 +2194,10 @@ function dol_print_error($db='',$error='')
|
|||||||
$out.="<b>".$langs->trans("PHP").":</b> ".phpversion()."<br>\n";
|
$out.="<b>".$langs->trans("PHP").":</b> ".phpversion()."<br>\n";
|
||||||
//phpinfo(); // This is to show location of php.ini file
|
//phpinfo(); // This is to show location of php.ini file
|
||||||
}
|
}
|
||||||
$out.="<b>".$langs->trans("Server").":</b> ".$_SERVER["SERVER_SOFTWARE"]."<br>\n";;
|
$out.="<b>".$langs->trans("Server").":</b> ".$_SERVER["SERVER_SOFTWARE"]."<br>\n";
|
||||||
$out.="<br>\n";
|
$out.="<br>\n";
|
||||||
$out.="<b>".$langs->trans("RequestedUrl").":</b> ".$_SERVER["REQUEST_URI"]."<br>\n";;
|
$out.="<b>".$langs->trans("RequestedUrl").":</b> ".dol_htmlentities($_SERVER["REQUEST_URI"],ENT_COMPAT,'UTF-8')."<br>\n";
|
||||||
$out.="<b>".$langs->trans("Referer").":</b> ".(isset($_SERVER["HTTP_REFERER"])?$_SERVER["HTTP_REFERER"]:'')."<br>\n";;
|
$out.="<b>".$langs->trans("Referer").":</b> ".(isset($_SERVER["HTTP_REFERER"])?dol_htmlentities($_SERVER["HTTP_REFERER"],ENT_COMPAT,'UTF-8'):'')."<br>\n";
|
||||||
$out.="<b>".$langs->trans("MenuManager").":</b> ".(isset($conf->standard_menu)?$conf->standard_menu:'')."<br>\n";
|
$out.="<b>".$langs->trans("MenuManager").":</b> ".(isset($conf->standard_menu)?$conf->standard_menu:'')."<br>\n";
|
||||||
$out.="<br>\n";
|
$out.="<br>\n";
|
||||||
$syslog.="url=".$_SERVER["REQUEST_URI"];
|
$syslog.="url=".$_SERVER["REQUEST_URI"];
|
||||||
|
|||||||
@ -102,7 +102,7 @@ else $searchform=$hookmanager->resPrint;
|
|||||||
|
|
||||||
print "\n";
|
print "\n";
|
||||||
print "<!-- Begin SearchForm -->\n";
|
print "<!-- Begin SearchForm -->\n";
|
||||||
print '<div class="center" data-role="page">';
|
print '<div class="center" data-role="page" style="padding-left: 2px;">';
|
||||||
print '<style>.menu_titre { padding-top: 6px; }</style>';
|
print '<style>.menu_titre { padding-top: 6px; }</style>';
|
||||||
//print '<div id="distance"></div><div id="container" class="center">';
|
//print '<div id="distance"></div><div id="container" class="center">';
|
||||||
print '<div id="blockvmenusearch">'."\n";
|
print '<div id="blockvmenusearch">'."\n";
|
||||||
|
|||||||
@ -30,6 +30,13 @@ if (! empty($conf->margin->enabled) && ! empty($object->element) && in_array($ob
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- BEGIN PHP TEMPLATE freeproductline_create.tpl.php -->
|
<!-- BEGIN PHP TEMPLATE freeproductline_create.tpl.php -->
|
||||||
|
|
||||||
|
<form name="addproduct" id="addproduct" action="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id; ?>#add" method="POST">
|
||||||
|
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>">
|
||||||
|
<input type="hidden" name="action" value="addline">
|
||||||
|
<input type="hidden" name="mode" value="libre">
|
||||||
|
<input type="hidden" name="id" value="<?php echo $this->id; ?>">
|
||||||
|
|
||||||
<tr class="liste_titre nodrag nodrop">
|
<tr class="liste_titre nodrag nodrop">
|
||||||
<td
|
<td
|
||||||
<?php echo (! empty($conf->global->MAIN_VIEW_LINE_NUMBER) ? ' colspan="2"' : ''); ?>><div
|
<?php echo (! empty($conf->global->MAIN_VIEW_LINE_NUMBER) ? ' colspan="2"' : ''); ?>><div
|
||||||
@ -60,15 +67,9 @@ if (! empty($conf->margin->enabled) && ! empty($object->element) && in_array($ob
|
|||||||
<td colspan="<?php echo $colspan; ?>"> </td>
|
<td colspan="<?php echo $colspan; ?>"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<form name="addproduct" id="addproduct" action="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id; ?>#add" method="POST">
|
<tr <?php echo $bcnd[$var]; ?>>
|
||||||
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>">
|
<td<?php echo (! empty($conf->global->MAIN_VIEW_LINE_NUMBER) ? ' colspan="2"' : ''); ?>>
|
||||||
<input type="hidden" name="action" value="addline">
|
<?php
|
||||||
<input type="hidden" name="mode" value="libre">
|
|
||||||
<input type="hidden" name="id" value="<?php echo $this->id; ?>">
|
|
||||||
|
|
||||||
<tr <?php echo $bcnd[$var]; ?>>
|
|
||||||
<td<?php echo (! empty($conf->global->MAIN_VIEW_LINE_NUMBER) ? ' colspan="2"' : ''); ?>>
|
|
||||||
<?php
|
|
||||||
|
|
||||||
echo '<span>';
|
echo '<span>';
|
||||||
echo $form->select_type_of_lines(isset($_POST["type"])?$_POST["type"]:-1,'type',1);
|
echo $form->select_type_of_lines(isset($_POST["type"])?$_POST["type"]:-1,'type',1);
|
||||||
@ -90,66 +91,69 @@ if (! empty($conf->margin->enabled) && ! empty($object->element) && in_array($ob
|
|||||||
$doleditor=new DolEditor('dp_desc',GETPOST('dp_desc'),'',100,'dolibarr_details','',false,true,$enabled,$nbrows,70);
|
$doleditor=new DolEditor('dp_desc',GETPOST('dp_desc'),'',100,'dolibarr_details','',false,true,$enabled,$nbrows,70);
|
||||||
$doleditor->Create();
|
$doleditor->Create();
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td align="right"><?php
|
<td align="right"><?php
|
||||||
if ($seller->tva_assuj == "0") echo '<input type="hidden" name="np_tva_tx" value="0">0';
|
if ($seller->tva_assuj == "0") echo '<input type="hidden" name="np_tva_tx" value="0">0';
|
||||||
else echo $form->load_tva('tva_tx', (isset($_POST["tva_tx"])?$_POST["tva_tx"]:-1), $seller, $buyer);
|
else echo $form->load_tva('tva_tx', (isset($_POST["tva_tx"])?$_POST["tva_tx"]:-1), $seller, $buyer);
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
<td align="right"><input type="text" size="5" name="price_ht" value="<?php echo (isset($_POST["price_ht"])?$_POST["price_ht"]:''); ?>">
|
|
||||||
</td>
|
|
||||||
<td align="right"><input type="text" size="2" name="qty" value="<?php echo (isset($_POST["qty"])?$_POST["qty"]:1); ?>"></td>
|
|
||||||
<td align="right" class="nowrap"><input type="text" size="1" value="<?php echo $buyer->remise_client; ?>" name="remise_percent"><span class="hideonsmartphone">%</span></td>
|
|
||||||
<?php
|
|
||||||
$colspan = 4;
|
|
||||||
if (! empty($usemargins))
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<td align="right"><input type="text" size="5" name="buying_price"
|
|
||||||
value="<?php echo (isset($_POST["buying_price"])?$_POST["buying_price"]:''); ?>">
|
|
||||||
</td>
|
|
||||||
<?php
|
|
||||||
if (! empty($conf->global->DISPLAY_MARGIN_RATES)) $colspan++;
|
|
||||||
if (! empty($conf->global->DISPLAY_MARK_RATES)) $colspan++;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<td align="center" valign="middle" colspan="<?php echo $colspan; ?>"><input type="submit" class="button" value="<?php echo $langs->trans('Add'); ?>" name="addline"></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if (! empty($conf->service->enabled) && $dateSelector)
|
|
||||||
{
|
|
||||||
if(! empty($conf->global->MAIN_VIEW_LINE_NUMBER)) $colspan = 10;
|
|
||||||
else $colspan = 9;
|
|
||||||
|
|
||||||
if (! empty($usemargins))
|
|
||||||
{
|
|
||||||
$colspan++; // For the buying price
|
|
||||||
if($conf->global->DISPLAY_MARGIN_RATES) $colspan++;
|
|
||||||
if($conf->global->DISPLAY_MARK_RATES) $colspan++;
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
<tr <?php echo $bcnd[$var]; ?>>
|
</td>
|
||||||
<td colspan="<?php echo $colspan; ?>"><?php
|
<td align="right"><input type="text" size="5" name="price_ht" class="flat" value="<?php echo (isset($_POST["price_ht"])?$_POST["price_ht"]:''); ?>">
|
||||||
if (! empty($object->element) && $object->element == 'contrat')
|
</td>
|
||||||
{
|
<td align="right"><input type="text" size="2" name="qty" class="flat" value="<?php echo (isset($_POST["qty"])?$_POST["qty"]:1); ?>"></td>
|
||||||
print $langs->trans("DateStartPlanned").' ';
|
<td align="right" class="nowrap"><input type="text" size="1" class="flat" value="<?php echo $buyer->remise_client; ?>" name="remise_percent"><span class="hideonsmartphone">%</span></td>
|
||||||
$form->select_date('',"date_start_sl",$usehm,$usehm,1,"addline_sl");
|
<?php
|
||||||
print ' '.$langs->trans("DateEndPlanned").' ';
|
$colspan = 4;
|
||||||
$form->select_date('',"date_end_sl",$usehm,$usehm,1,"addline_sl");
|
if (! empty($usemargins))
|
||||||
}
|
{
|
||||||
else
|
|
||||||
{
|
|
||||||
echo $langs->trans('ServiceLimitedDuration').' '.$langs->trans('From').' ';
|
|
||||||
echo $form->select_date('','date_start',empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE)?0:1,empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE)?0:1,1,"addproduct");
|
|
||||||
echo ' '.$langs->trans('to').' ';
|
|
||||||
echo $form->select_date('','date_end',empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE)?0:1,empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE)?0:1,1,"addproduct");
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
<td align="right"><input type="text" size="5" name="buying_price" class="flat"
|
||||||
|
value="<?php echo (isset($_POST["buying_price"])?$_POST["buying_price"]:''); ?>">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
<?php
|
||||||
<?php } ?>
|
if (! empty($conf->global->DISPLAY_MARGIN_RATES)) $colspan++;
|
||||||
|
if (! empty($conf->global->DISPLAY_MARK_RATES)) $colspan++;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<td align="center" valign="middle" colspan="<?php echo $colspan; ?>"><input type="submit" class="button" value="<?php echo $langs->trans('Add'); ?>" name="addline"></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (! empty($conf->service->enabled) && $dateSelector)
|
||||||
|
{
|
||||||
|
if(! empty($conf->global->MAIN_VIEW_LINE_NUMBER)) $colspan = 10;
|
||||||
|
else $colspan = 9;
|
||||||
|
|
||||||
|
if (! empty($usemargins))
|
||||||
|
{
|
||||||
|
$colspan++; // For the buying price
|
||||||
|
if($conf->global->DISPLAY_MARGIN_RATES) $colspan++;
|
||||||
|
if($conf->global->DISPLAY_MARK_RATES) $colspan++;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<tr <?php echo $bcnd[$var]; ?>>
|
||||||
|
<td colspan="<?php echo $colspan; ?>"><?php
|
||||||
|
if (! empty($object->element) && $object->element == 'contrat')
|
||||||
|
{
|
||||||
|
print $langs->trans("DateStartPlanned").' ';
|
||||||
|
$form->select_date('',"date_start_sl",$usehm,$usehm,1,"addline_sl");
|
||||||
|
print ' '.$langs->trans("DateEndPlanned").' ';
|
||||||
|
$form->select_date('',"date_end_sl",$usehm,$usehm,1,"addline_sl");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo $langs->trans('ServiceLimitedDuration').' '.$langs->trans('From').' ';
|
||||||
|
echo $form->select_date('','date_start',empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE)?0:1,empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE)?0:1,1,"addproduct");
|
||||||
|
echo ' '.$langs->trans('to').' ';
|
||||||
|
echo $form->select_date('','date_end',empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE)?0:1,empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE)?0:1,1,"addproduct");
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
<!-- END PHP TEMPLATE freeproductline_create.tpl.php -->
|
<!-- END PHP TEMPLATE freeproductline_create.tpl.php -->
|
||||||
@ -32,6 +32,21 @@ if (! empty($conf->margin->enabled) && ! empty($object->element) && in_array($ob
|
|||||||
|
|
||||||
<!-- BEGIN PHP TEMPLATE predefinedproductline_create.tpl.php -->
|
<!-- BEGIN PHP TEMPLATE predefinedproductline_create.tpl.php -->
|
||||||
|
|
||||||
|
<form name="addpredefinedproduct" id="addpredefinedproduct" action="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id; ?>#add" method="POST">
|
||||||
|
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>">
|
||||||
|
<input type="hidden" name="action" value="addline">
|
||||||
|
<input type="hidden" name="mode" value="predefined">
|
||||||
|
<input type="hidden" name="id" value="<?php echo $this->id; ?>">
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
jQuery(document).ready(function() {
|
||||||
|
jQuery('#idprod').change(function() {
|
||||||
|
if (jQuery('#idprod').val() > 0) jQuery('#np_desc').focus();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<tr class="liste_titre nodrag nodrop">
|
<tr class="liste_titre nodrag nodrop">
|
||||||
<td<?php echo (! empty($conf->global->MAIN_VIEW_LINE_NUMBER) ? ' colspan="4"' : ' colspan="3"'); ?>>
|
<td<?php echo (! empty($conf->global->MAIN_VIEW_LINE_NUMBER) ? ' colspan="4"' : ' colspan="3"'); ?>>
|
||||||
<?php
|
<?php
|
||||||
@ -64,20 +79,6 @@ if (! empty($usemargins))
|
|||||||
<td colspan="<?php echo $colspan; ?>"> </td>
|
<td colspan="<?php echo $colspan; ?>"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<form name="addpredefinedproduct" id="addpredefinedproduct" action="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id; ?>#add" method="POST">
|
|
||||||
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>">
|
|
||||||
<input type="hidden" name="action" value="addline">
|
|
||||||
<input type="hidden" name="mode" value="predefined">
|
|
||||||
<input type="hidden" name="id" value="<?php echo $this->id; ?>">
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
jQuery(document).ready(function() {
|
|
||||||
jQuery('#idprod').change(function() {
|
|
||||||
if (jQuery('#idprod').val() > 0) jQuery('#np_desc').focus();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<tr <?php echo $bcnd[$var]; ?>>
|
<tr <?php echo $bcnd[$var]; ?>>
|
||||||
<td<?php echo (! empty($conf->global->MAIN_VIEW_LINE_NUMBER) ? ' colspan="4"' : ' colspan="3"'); ?>>
|
<td<?php echo (! empty($conf->global->MAIN_VIEW_LINE_NUMBER) ? ' colspan="4"' : ' colspan="3"'); ?>>
|
||||||
<?php
|
<?php
|
||||||
@ -105,8 +106,8 @@ jQuery(document).ready(function() {
|
|||||||
$doleditor->Create();
|
$doleditor->Create();
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td align="right"><input type="text" size="2" name="qty" value="1"></td>
|
<td align="right"><input type="text" size="2" name="qty" class="flat" value="1"></td>
|
||||||
<td align="right" nowrap><input type="text" size="1" name="remise_percent" value="<?php echo $buyer->remise_client; ?>"><span class="hideonsmartphone">%</span></td>
|
<td align="right" nowrap><input type="text" size="1" class="flat" name="remise_percent" value="<?php echo $buyer->remise_client; ?>"><span class="hideonsmartphone">%</span></td>
|
||||||
<?php
|
<?php
|
||||||
$colspan = 4;
|
$colspan = 4;
|
||||||
if (! empty($usemargins))
|
if (! empty($usemargins))
|
||||||
@ -115,8 +116,8 @@ jQuery(document).ready(function() {
|
|||||||
if (! empty($conf->global->DISPLAY_MARK_RATES)) $colspan++;
|
if (! empty($conf->global->DISPLAY_MARK_RATES)) $colspan++;
|
||||||
?>
|
?>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<select id="fournprice" name="fournprice" style="display: none;"></select>
|
<select id="fournprice" name="fournprice" class="flat" style="display: none;"></select>
|
||||||
<input type="text" size="5" id="buying_price" name="buying_price" value="<?php echo (isset($_POST["buying_price"])?$_POST["buying_price"]:''); ?>">
|
<input type="text" size="5" id="buying_price" name="buying_price" class="flat" value="<?php echo (isset($_POST["buying_price"])?$_POST["buying_price"]:''); ?>">
|
||||||
</td>
|
</td>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
@ -138,6 +139,7 @@ if (! empty($conf->service->enabled) && $dateSelector)
|
|||||||
if (! empty($conf->global->DISPLAY_MARK_RATES)) $colspan++;
|
if (! empty($conf->global->DISPLAY_MARK_RATES)) $colspan++;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr <?php echo $bcnd[$var]; ?>>
|
<tr <?php echo $bcnd[$var]; ?>>
|
||||||
<td colspan="<?php echo $colspan; ?>">
|
<td colspan="<?php echo $colspan; ?>">
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@ -122,6 +122,7 @@ ErrorFailedToRemoveToMailmanList=Failed to remove record %s to Mailman list %s o
|
|||||||
ErrorNewValueCantMatchOldValue=New value can't be equal to old one
|
ErrorNewValueCantMatchOldValue=New value can't be equal to old one
|
||||||
ErrorFailedToValidatePasswordReset=Failed to reinit password. May be the reinit was already done (this link can be used only one time). If not, try to restart the reinit process.
|
ErrorFailedToValidatePasswordReset=Failed to reinit password. May be the reinit was already done (this link can be used only one time). If not, try to restart the reinit process.
|
||||||
ErrorToConnectToMysqlCheckInstance=Connect to database fails. Check Mysql server is running (in most cases, you can launch it from command line with 'sudo /etc/init.d/mysql start').
|
ErrorToConnectToMysqlCheckInstance=Connect to database fails. Check Mysql server is running (in most cases, you can launch it from command line with 'sudo /etc/init.d/mysql start').
|
||||||
|
ErrorFailedToAddContact=Failed to add contact
|
||||||
|
|
||||||
# Warnings
|
# Warnings
|
||||||
WarningMandatorySetupNotComplete=Mandatory setup parameters are not yet defined
|
WarningMandatorySetupNotComplete=Mandatory setup parameters are not yet defined
|
||||||
|
|||||||
@ -123,6 +123,7 @@ ErrorFailedToRemoveToMailmanList=Echec de la suppression de %s de la liste Mailm
|
|||||||
ErrorNewValueCantMatchOldValue=La nouvelle valeur ne peut être égale à l'ancienne
|
ErrorNewValueCantMatchOldValue=La nouvelle valeur ne peut être égale à l'ancienne
|
||||||
ErrorFailedToValidatePasswordReset=Echec de la réinitialisation du mot de passe. Il est possible que ce lien ait déjà été utilisé (l'utilisation de ce lien ne fonctionne qu'une fois). Si ce n'est pas le cas, essayer de recommencer le processus de réinit de mot de passe depuis le début.
|
ErrorFailedToValidatePasswordReset=Echec de la réinitialisation du mot de passe. Il est possible que ce lien ait déjà été utilisé (l'utilisation de ce lien ne fonctionne qu'une fois). Si ce n'est pas le cas, essayer de recommencer le processus de réinit de mot de passe depuis le début.
|
||||||
ErrorToConnectToMysqlCheckInstance=Echec de la connection au serveur de base de donnée. Vérifier que Mysql est bien lancé (dans la plupart des cas, vous pouvez le lancer depuis la ligne de commande par la commande 'sudo /etc/init.d/mysql start').
|
ErrorToConnectToMysqlCheckInstance=Echec de la connection au serveur de base de donnée. Vérifier que Mysql est bien lancé (dans la plupart des cas, vous pouvez le lancer depuis la ligne de commande par la commande 'sudo /etc/init.d/mysql start').
|
||||||
|
ErrorFailedToAddContact=Echec à l'ajout du contact
|
||||||
|
|
||||||
# Warnings
|
# Warnings
|
||||||
WarningMandatorySetupNotComplete=Les informations de configuration obligatoire doivent être renseignées
|
WarningMandatorySetupNotComplete=Les informations de configuration obligatoire doivent être renseignées
|
||||||
|
|||||||
@ -1432,7 +1432,7 @@ table.liste td {
|
|||||||
|
|
||||||
tr.liste_titre, tr.liste_titre_sel
|
tr.liste_titre, tr.liste_titre_sel
|
||||||
{
|
{
|
||||||
height: 20px;
|
height: 20px !important;
|
||||||
}
|
}
|
||||||
div.liste_titre, tr.liste_titre {
|
div.liste_titre, tr.liste_titre {
|
||||||
color: #842F00;
|
color: #842F00;
|
||||||
@ -1440,24 +1440,23 @@ div.liste_titre, tr.liste_titre {
|
|||||||
font-family: "Trebuchet MS",Arial,Helvetica,sans-serif;
|
font-family: "Trebuchet MS",Arial,Helvetica,sans-serif;
|
||||||
/*border-bottom: 1px solid #FDFFFF;*/
|
/*border-bottom: 1px solid #FDFFFF;*/
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
line-height: 18px;
|
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
white-space: nowrap;
|
white-space: <?php echo $dol_optimize_smallscreen?'normal':'nowrap'; ?>;
|
||||||
text-align: <?php echo $left; ?>;
|
text-align: <?php echo $left; ?>;
|
||||||
}
|
}
|
||||||
th.liste_titre, td.liste_titre
|
th.liste_titre, td.liste_titre
|
||||||
{
|
{
|
||||||
padding-left: 6px;
|
padding-left: 6px;
|
||||||
padding-right: 6px;
|
padding-right: 6px;
|
||||||
/*vertical-align: text-top;*/
|
white-space: <?php echo $dol_optimize_smallscreen?'normal':'nowrap'; ?>;
|
||||||
}
|
}
|
||||||
th.liste_titre_sel, td.liste_titre_sel
|
th.liste_titre_sel, td.liste_titre_sel
|
||||||
{
|
{
|
||||||
background-position: top right;
|
background-position: top right;
|
||||||
color: #A51B00;
|
color: #A51B00;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
white-space: nowrap;
|
white-space: <?php echo $dol_optimize_smallscreen?'normal':'nowrap'; ?>;
|
||||||
}
|
}
|
||||||
|
|
||||||
input.liste_titre {
|
input.liste_titre {
|
||||||
|
|||||||
@ -238,7 +238,7 @@ input, input.flat, textarea, textarea.flat, form.flat select, select.flat {
|
|||||||
background: #FDFDFD;
|
background: #FDFDFD;
|
||||||
border: 1px solid #C0C0C0;
|
border: 1px solid #C0C0C0;
|
||||||
<?php if (empty($dol_use_jmobile)) { ?>
|
<?php if (empty($dol_use_jmobile)) { ?>
|
||||||
padding: 1px 1px 1px 1px;
|
/*padding: 1px 1px 1px 1px; */
|
||||||
margin: 0px 0px 0px 0px;
|
margin: 0px 0px 0px 0px;
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user