Workflow is empty by default but can be modified with module workflow
This commit is contained in:
parent
f33c9c00e0
commit
f5b43e0d08
@ -92,32 +92,40 @@ print "</tr>\n";
|
|||||||
|
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
|
|
||||||
$workflowcodes=array('WORKFLOW_PROPAL_AUTOCREATE_ORDER'=>'WORKFLOW_PROPAL_AUTOCREATE_ORDER');
|
$workflowcodes=array();
|
||||||
|
if ($conf->propal->enabled && $conf->commande->enabled) $workflowcodes['WORKFLOW_PROPAL_AUTOCREATE_ORDER']='WORKFLOW_PROPAL_AUTOCREATE_ORDER';
|
||||||
|
|
||||||
foreach($workflowcodes as $code)
|
if (sizeof($workflowcodes) > 0)
|
||||||
{
|
{
|
||||||
$var = !$var;
|
foreach($workflowcodes as $code)
|
||||||
print "<tr ".$bc[$var].">\n";
|
{
|
||||||
print "<td>".$langs->trans($code)."</td>\n";
|
$var = !$var;
|
||||||
if (! empty($conf->global->$code))
|
print "<tr ".$bc[$var].">\n";
|
||||||
{
|
print "<td>".$langs->trans($code)."</td>\n";
|
||||||
print '<td align="center"><a href="'.$_SERVER['PHP_SELF'].'?action=del'.$code.'">';
|
if (! empty($conf->global->$code))
|
||||||
print img_picto($langs->trans("Activated"),'on');
|
{
|
||||||
print '</a></td>';
|
print '<td align="center"><a href="'.$_SERVER['PHP_SELF'].'?action=del'.$code.'">';
|
||||||
}
|
print img_picto($langs->trans("Activated"),'on');
|
||||||
else
|
print '</a></td>';
|
||||||
{
|
}
|
||||||
print '<td align="center"><a href="'.$_SERVER['PHP_SELF'].'?action=set'.$code.'">';
|
else
|
||||||
print img_picto($langs->trans("Disabled"),'off');
|
{
|
||||||
print '</a></td>';
|
print '<td align="center"><a href="'.$_SERVER['PHP_SELF'].'?action=set'.$code.'">';
|
||||||
}
|
print img_picto($langs->trans("Disabled"),'off');
|
||||||
|
print '</a></td>';
|
||||||
|
}
|
||||||
|
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
//$s=$modCodeTiers->getToolTip($langs,$soc,-1);
|
//$s=$modCodeTiers->getToolTip($langs,$soc,-1);
|
||||||
//print $form->textwithpicto('',$s,1);
|
//print $form->textwithpicto('',$s,1);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<tr><td colspan="3">'.$langs->trans("ThereIsNoWorkflowToModify");
|
||||||
}
|
}
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
|
|||||||
@ -101,7 +101,7 @@ class InterfaceWorkflowManager
|
|||||||
if ($action == 'PROPAL_CLOSE_SIGNED')
|
if ($action == 'PROPAL_CLOSE_SIGNED')
|
||||||
{
|
{
|
||||||
dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);
|
dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);
|
||||||
if (! empty($conf->commande->enabled) && ! empty($conf->WORKFLOW_PROPAL_AUTOCREATE_ORDER))
|
if (! empty($conf->commande->enabled) && ! empty($conf->global->WORKFLOW_PROPAL_AUTOCREATE_ORDER))
|
||||||
{
|
{
|
||||||
include_once(DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php');
|
include_once(DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php');
|
||||||
$order = new Commande($this->db);
|
$order = new Commande($this->db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user