forked from Wavyzz/dolibarr
Merge pull request #3597 from GPCsolutions/displaymargin
[Qual] Replaced deprecated displayMarginInfos()
This commit is contained in:
@@ -29,6 +29,7 @@ require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formfile.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formaskpricesupplier.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formmargin.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/comm/askpricesupplier/class/askpricesupplier.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/comm/action/class/actioncomm.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/modules/askpricesupplier/modules_askpricesupplier.php';
|
||||
@@ -977,6 +978,7 @@ $form = new Form($db);
|
||||
$formother = new FormOther($db);
|
||||
$formfile = new FormFile($db);
|
||||
$formaskpricesupplier = new FormAskPriceSupplier($db);
|
||||
$formmargin = new FormMargin($this->db);
|
||||
$companystatic = new Societe($db);
|
||||
|
||||
$now = dol_now();
|
||||
@@ -1500,7 +1502,7 @@ if ($action == 'create')
|
||||
// Margin Infos
|
||||
if (! empty($conf->margin->enabled)) {
|
||||
print '<td valign="top" width="50%" rowspan="4">';
|
||||
$object->displayMarginInfos();
|
||||
$formmargin->displayMarginInfos($object);
|
||||
print '</td>';
|
||||
}
|
||||
print '</tr>';
|
||||
|
||||
@@ -35,6 +35,7 @@ require '../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formfile.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formpropal.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formmargin.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/comm/propal/class/propal.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/comm/action/class/actioncomm.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/modules/propale/modules_propale.php';
|
||||
@@ -1183,6 +1184,7 @@ $form = new Form($db);
|
||||
$formother = new FormOther($db);
|
||||
$formfile = new FormFile($db);
|
||||
$formpropal = new FormPropal($db);
|
||||
$formmargin = new FormMargin($this->db);
|
||||
$companystatic = new Societe($db);
|
||||
if (! empty($conf->projet->enabled)) { $formproject = new FormProjets($db); }
|
||||
|
||||
@@ -1986,7 +1988,7 @@ if ($action == 'create')
|
||||
// Margin Infos
|
||||
if (! empty($conf->margin->enabled)) {
|
||||
print '<td valign="top" width="50%" rowspan="4">';
|
||||
$object->displayMarginInfos();
|
||||
$formmargin->displayMarginInfos($object);
|
||||
print '</td>';
|
||||
}
|
||||
print '</tr>';
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
require '../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formfile.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formorder.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formmargin.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/modules/commande/modules_commande.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/commande/class/commande.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/comm/action/class/actioncomm.class.php';
|
||||
@@ -1222,6 +1223,7 @@ llxHeader('', $langs->trans('Order'), 'EN:Customers_Orders|FR:Commandes_Clients|
|
||||
$form = new Form($db);
|
||||
$formfile = new FormFile($db);
|
||||
$formorder = new FormOrder($db);
|
||||
$formmargin = new FormMargin($db);
|
||||
if (! empty($conf->projet->enabled)) { $formproject = new FormProjets($db); }
|
||||
|
||||
/**
|
||||
@@ -2084,7 +2086,7 @@ if ($action == 'create' && $user->rights->commande->creer)
|
||||
// Margin Infos
|
||||
if (! empty($conf->margin->enabled)) {
|
||||
print '<td valign="top" width="50%" colspan="2" rowspan="' . $rowspan . '">';
|
||||
$object->displayMarginInfos();
|
||||
$formmargin->displayMarginInfos($object);
|
||||
print '</td>';
|
||||
} else
|
||||
print '<td width="50%" colspan="2" rowspan="' . $rowspan . '"></td>';
|
||||
|
||||
@@ -42,6 +42,7 @@ require_once DOL_DOCUMENT_ROOT . '/core/modules/facture/modules_facture.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/discount.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formfile.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formmargin.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/lib/invoice.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php';
|
||||
@@ -1800,6 +1801,7 @@ if (empty($reshook))
|
||||
$form = new Form($db);
|
||||
$formother = new FormOther($db);
|
||||
$formfile = new FormFile($db);
|
||||
$formmargin = new FormMargin($this->db);
|
||||
$bankaccountstatic = new Account($db);
|
||||
if (! empty($conf->projet->enabled)) { $formproject = new FormProjets($db); }
|
||||
|
||||
@@ -3166,7 +3168,7 @@ else if ($id > 0 || ! empty($ref))
|
||||
if (! empty($conf->margin->enabled))
|
||||
{
|
||||
print '<br>';
|
||||
$object->displayMarginInfos($object->statut > 0);
|
||||
$formmargin->displayMarginInfos($object, $object->statut > 0);
|
||||
}
|
||||
|
||||
print '</td></tr>';
|
||||
|
||||
Reference in New Issue
Block a user