add hooks for object options
This commit is contained in:
parent
8762051f89
commit
68a9994b62
@ -23,7 +23,7 @@
|
|||||||
* \file htdocs/comm/addpropal.php
|
* \file htdocs/comm/addpropal.php
|
||||||
* \ingroup propal
|
* \ingroup propal
|
||||||
* \brief Page to add a new commercial proposal
|
* \brief Page to add a new commercial proposal
|
||||||
* \version $Id: addpropal.php,v 1.132 2011/08/13 00:47:59 eldy Exp $
|
* \version $Id: addpropal.php,v 1.133 2011/08/23 15:23:19 hregis Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
@ -42,6 +42,11 @@ $langs->load("bills");
|
|||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
$langs->load("deliveries");
|
$langs->load("deliveries");
|
||||||
|
|
||||||
|
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
|
||||||
|
include_once(DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php');
|
||||||
|
$hookmanager=new HookManager($db);
|
||||||
|
$hookmanager->callHooks(array('propalcard'));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
@ -233,6 +238,10 @@ if ($_GET["action"] == 'create')
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Insert hooks
|
||||||
|
$parameters=array();
|
||||||
|
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
@ -335,5 +344,5 @@ if ($_GET["action"] == 'create')
|
|||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter('$Date: 2011/08/13 00:47:59 $ - $Revision: 1.132 $');
|
llxFooter('$Date: 2011/08/23 15:23:19 $ - $Revision: 1.133 $');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
* \file htdocs/comm/propal.php
|
* \file htdocs/comm/propal.php
|
||||||
* \ingroup propale
|
* \ingroup propale
|
||||||
* \brief Page of commercial proposals card and list
|
* \brief Page of commercial proposals card and list
|
||||||
* \version $Id: propal.php,v 1.621 2011/08/12 21:29:47 eldy Exp $
|
* \version $Id: propal.php,v 1.622 2011/08/23 15:23:19 hregis Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
@ -1400,6 +1400,10 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Insert hooks
|
||||||
|
$parameters=array('colspan'=>'colspan="3"');
|
||||||
|
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
||||||
|
|
||||||
// Amount HT
|
// Amount HT
|
||||||
print '<tr><td height="10">'.$langs->trans('AmountHT').'</td>';
|
print '<tr><td height="10">'.$langs->trans('AmountHT').'</td>';
|
||||||
print '<td align="right" colspan="2" nowrap><b>'.price($object->total_ht).'</b></td>';
|
print '<td align="right" colspan="2" nowrap><b>'.price($object->total_ht).'</b></td>';
|
||||||
@ -1932,6 +1936,6 @@ else
|
|||||||
}
|
}
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter('$Date: 2011/08/12 21:29:47 $ - $Revision: 1.621 $');
|
llxFooter('$Date: 2011/08/23 15:23:19 $ - $Revision: 1.622 $');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
* \file htdocs/commande/fiche.php
|
* \file htdocs/commande/fiche.php
|
||||||
* \ingroup commande
|
* \ingroup commande
|
||||||
* \brief Page to show customer order
|
* \brief Page to show customer order
|
||||||
* \version $Id: fiche.php,v 1.535 2011/08/12 05:41:02 hregis Exp $
|
* \version $Id: fiche.php,v 1.536 2011/08/23 15:23:19 hregis Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
@ -1278,6 +1278,10 @@ if ($action == 'create' && $user->rights->commande->creer)
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Insert hooks
|
||||||
|
$parameters=array();
|
||||||
|
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans('Model').'</td>';
|
print '<tr><td>'.$langs->trans('Model').'</td>';
|
||||||
print '<td colspan="2">';
|
print '<td colspan="2">';
|
||||||
// pdf
|
// pdf
|
||||||
@ -1745,7 +1749,6 @@ else
|
|||||||
//print '<a href="'.DOL_URL_ROOT.'/admin/dict.php?id=22&origin=order&originid='.$object->id.'">'.$langs->trans("DictionnarySource").'</a>';
|
//print '<a href="'.DOL_URL_ROOT.'/admin/dict.php?id=22&origin=order&originid='.$object->id.'">'.$langs->trans("DictionnarySource").'</a>';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|
||||||
// Project
|
// Project
|
||||||
if ($conf->projet->enabled)
|
if ($conf->projet->enabled)
|
||||||
{
|
{
|
||||||
@ -1769,6 +1772,10 @@ else
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Insert hooks
|
||||||
|
$parameters=array('colspan'=>'colspan="2"');
|
||||||
|
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
||||||
|
|
||||||
// Lignes de 3 colonnes
|
// Lignes de 3 colonnes
|
||||||
|
|
||||||
// Total HT
|
// Total HT
|
||||||
@ -2070,5 +2077,5 @@ else
|
|||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter('$Date: 2011/08/12 05:41:02 $ - $Revision: 1.535 $');
|
llxFooter('$Date: 2011/08/23 15:23:19 $ - $Revision: 1.536 $');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
* \file htdocs/compta/facture.php
|
* \file htdocs/compta/facture.php
|
||||||
* \ingroup facture
|
* \ingroup facture
|
||||||
* \brief Page to create/see an invoice
|
* \brief Page to create/see an invoice
|
||||||
* \version $Id: facture.php,v 1.855 2011/08/11 15:14:50 hregis Exp $
|
* \version $Id: facture.php,v 1.856 2011/08/23 15:23:19 hregis Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require('../main.inc.php');
|
require('../main.inc.php');
|
||||||
@ -1691,6 +1691,10 @@ if ($action == 'create')
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Insert hooks
|
||||||
|
$parameters=array();
|
||||||
|
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
||||||
|
|
||||||
// Modele PDF
|
// Modele PDF
|
||||||
print '<tr><td>'.$langs->trans('Model').'</td>';
|
print '<tr><td>'.$langs->trans('Model').'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
@ -2541,6 +2545,10 @@ else
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Insert hooks
|
||||||
|
$parameters=array('colspan'=>'colspan="3"');
|
||||||
|
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
||||||
|
|
||||||
print '</table><br>';
|
print '</table><br>';
|
||||||
|
|
||||||
|
|
||||||
@ -3185,5 +3193,5 @@ else
|
|||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter('$Date: 2011/08/11 15:14:50 $ - $Revision: 1.855 $');
|
llxFooter('$Date: 2011/08/23 15:23:19 $ - $Revision: 1.856 $');
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user