Fix: Other minor fixes
This commit is contained in:
parent
9dac672ca6
commit
9997d6ca15
@ -152,7 +152,7 @@ if (($action == 'create' || $action == 'add') && empty($mesgs))
|
|||||||
$datefacture = dol_mktime(12, 0, 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']);
|
$datefacture = dol_mktime(12, 0, 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']);
|
||||||
if (empty($datefacture))
|
if (empty($datefacture))
|
||||||
{
|
{
|
||||||
$datefacture = dol_mktime(12, 0, 0, date("m"), date("d"), date("Y"));
|
$datefacture = dol_mktime(date("h"), date("M"), 0, date("m"), date("d"), date("Y"));
|
||||||
}
|
}
|
||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
@ -388,16 +388,21 @@ if ($action == 'create')
|
|||||||
print '<input type="hidden" name="originid" value="'.GETPOST('originid').'">';
|
print '<input type="hidden" name="originid" value="'.GETPOST('originid').'">';
|
||||||
print '<input type="hidden" name="autocloseorders" value="'.GETPOST('autocloseorders').'">';
|
print '<input type="hidden" name="autocloseorders" value="'.GETPOST('autocloseorders').'">';
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
// Ref
|
// Ref
|
||||||
print '<tr><td class="fieldrequired">'.$langs->trans('Ref').'</td><td colspan="2">'.$langs->trans('Draft').'</td></tr>';
|
print '<tr><td class="fieldrequired">'.$langs->trans('Ref').'</td><td colspan="2">'.$langs->trans('Draft').'</td></tr>';
|
||||||
// Tiers
|
|
||||||
|
// Third party
|
||||||
print '<tr><td class="fieldrequired">'.$langs->trans('Customer').'</td><td colspan="2">';
|
print '<tr><td class="fieldrequired">'.$langs->trans('Customer').'</td><td colspan="2">';
|
||||||
print $soc->getNomUrl(1);
|
print $soc->getNomUrl(1);
|
||||||
print '<input type="hidden" name="socid" value="'.$soc->id.'">';
|
print '<input type="hidden" name="socid" value="'.$soc->id.'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>'."\n";
|
print '</tr>'."\n";
|
||||||
|
|
||||||
|
// Type
|
||||||
print '<tr><td valign="top" class="fieldrequired">'.$langs->trans('Type').'</td><td colspan="2">';
|
print '<tr><td valign="top" class="fieldrequired">'.$langs->trans('Type').'</td><td colspan="2">';
|
||||||
print '<table class="nobordernopadding">'."\n";
|
print '<table class="nobordernopadding">'."\n";
|
||||||
|
|
||||||
// Standard invoice
|
// Standard invoice
|
||||||
print '<tr height="18"><td width="16px" valign="middle">';
|
print '<tr height="18"><td width="16px" valign="middle">';
|
||||||
print '<input type="radio" name="type" value="0"'.(GETPOST('type')==0?' checked="true"':'').'>';
|
print '<input type="radio" name="type" value="0"'.(GETPOST('type')==0?' checked="true"':'').'>';
|
||||||
@ -443,16 +448,16 @@ if ($action == 'create')
|
|||||||
|
|
||||||
dol_include_once('/commande/class/commande.class.php');
|
dol_include_once('/commande/class/commande.class.php');
|
||||||
$srcobject = new Commande($db);
|
$srcobject = new Commande($db);
|
||||||
$commandes = $langs->trans("Orders").": ";
|
$listoforders = '';
|
||||||
foreach ($selected as $sel)
|
foreach ($selected as $sel)
|
||||||
{
|
{
|
||||||
$result=$srcobject->fetch($sel);
|
$result=$srcobject->fetch($sel);
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
$commandes.= $srcobject->ref.", ";
|
$listoforders .= ($listoforders?', ':'').$srcobject->ref;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print $commandes;
|
print $langs->trans("Orders").": ".$listoforders;
|
||||||
|
|
||||||
print '</textarea></td></tr>';
|
print '</textarea></td></tr>';
|
||||||
// Private note
|
// Private note
|
||||||
@ -663,13 +668,13 @@ if (($action != 'create' && $action != 'add') || ! empty($mesgs))
|
|||||||
/*
|
/*
|
||||||
* Boutons actions
|
* Boutons actions
|
||||||
*/
|
*/
|
||||||
|
print '<center><br><input type="checkbox" checked="checked" name="autocloseorders"> '.$langs->trans("CloseProcessedOrdersAutomatically");
|
||||||
print '<div align="right">';
|
print '<div align="right">';
|
||||||
print '<input type="hidden" name="socid" value="'.$socid.'">';
|
print '<input type="hidden" name="socid" value="'.$socid.'">';
|
||||||
print '<input type="hidden" name="action" value="create">';
|
print '<input type="hidden" name="action" value="create">';
|
||||||
print '<input type="hidden" name="origin" value="commande"><br>';
|
print '<input type="hidden" name="origin" value="commande"><br>';
|
||||||
print '<a class="butAction" href="index.php">'.$langs->trans("GoBack").'</a>';
|
//print '<a class="butAction" href="index.php">'.$langs->trans("GoBack").'</a>';
|
||||||
print '<input type="submit" class="butAction" value='.$langs->trans("GenerateBill").'>';
|
print '<input type="submit" class="butAction" value="'.$langs->trans("GenerateBill").'">';
|
||||||
print '<center><br><input type="checkbox" checked="checked" name="autocloseorders"> '.$langs->trans("CloseProcessedOrdersAutomatically");
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
$db->free($resql);
|
$db->free($resql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user