Fix: obsolete
This commit is contained in:
parent
10ae9fe93b
commit
2df0d15ef7
@ -177,11 +177,6 @@ if ($_POST["action"] == 'set_enable_editdelete')
|
||||
dolibarr_set_const($db, "FACTURE_ENABLE_EDITDELETE",$_POST["enable_editdelete"],'chaine',0,'',$conf->entity);
|
||||
}
|
||||
|
||||
if ($_POST["action"] == 'set_use_bill_contact_as_recipient')
|
||||
{
|
||||
dolibarr_set_const($db, "FACTURE_USE_BILL_CONTACT_AS_RECIPIENT",$_POST["use_bill_contact_as_recipient"],'chaine',0,'',$conf->entity);
|
||||
}
|
||||
|
||||
if ($_POST["action"] == 'update' || $_POST["action"] == 'add')
|
||||
{
|
||||
if (! dolibarr_set_const($db, $_POST["constname"],$_POST["constvalue"],$typeconst[$_POST["consttype"]],0,isset($_POST["constnote"])?$_POST["constnote"]:'',$conf->entity));
|
||||
@ -257,7 +252,7 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
||||
|
||||
if (is_readable($dir.$filebis))
|
||||
{
|
||||
// Chargement de la classe de num<EFBFBD>rotation
|
||||
// Chargement de la classe de numerotation
|
||||
require_once($dir.$filebis);
|
||||
$classname = "mod_facture_".$file;
|
||||
$module = new $classname($db);
|
||||
@ -613,21 +608,6 @@ print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'
|
||||
print "</td></tr>\n";
|
||||
print '</form>';
|
||||
|
||||
/*
|
||||
$var=! $var;
|
||||
print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
print '<input type="hidden" name="action" value="set_use_bill_contact_as_recipient">';
|
||||
print '<tr '.$bc[$var].'><td>';
|
||||
print $langs->trans("UsBillingContactAsIncoiveRecipientIfExist");
|
||||
print '</td><td width="60" align="center">';
|
||||
print $html->selectyesno("use_bill_contact_as_recipient",$conf->global->FACTURE_USE_BILL_CONTACT_AS_RECIPIENT,1);
|
||||
print '</td><td align="right">';
|
||||
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
||||
print "</td></tr>\n";
|
||||
print '</form>';
|
||||
*/
|
||||
|
||||
$var=! $var;
|
||||
print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
|
||||
@ -514,9 +514,6 @@ Class pdf_expedition_merou extends ModelePdfExpedition
|
||||
|
||||
if ($usecontact)
|
||||
{
|
||||
// On peut utiliser le nom de la societe du contact
|
||||
//if ($conf->global->FACTURE_USE_COMPANY_NAME_OF_BILL_CONTACT) $socname = $object->contact->socname;
|
||||
//else
|
||||
$socname = $object->client->nom;
|
||||
$carac_client_name=$outputlangs->convToOutputCharset($socname);
|
||||
|
||||
|
||||
@ -1097,15 +1097,13 @@ class pdf_crabe extends ModelePDFFactures
|
||||
|
||||
// If BILLING contact defined on invoice, we use it
|
||||
$usecontact=false;
|
||||
//if ($conf->global->FACTURE_USE_BILL_CONTACT_AS_RECIPIENT)
|
||||
//{
|
||||
$arrayidcontact=$object->getIdContact('external','BILLING');
|
||||
if (sizeof($arrayidcontact) > 0)
|
||||
{
|
||||
$usecontact=true;
|
||||
$result=$object->fetch_contact($arrayidcontact[0]);
|
||||
}
|
||||
//}
|
||||
$arrayidcontact=$object->getIdContact('external','BILLING');
|
||||
if (sizeof($arrayidcontact) > 0)
|
||||
{
|
||||
$usecontact=true;
|
||||
$result=$object->fetch_contact($arrayidcontact[0]);
|
||||
}
|
||||
|
||||
if ($usecontact)
|
||||
{
|
||||
// On peut utiliser le nom de la societe du contact
|
||||
|
||||
@ -884,15 +884,13 @@ class pdf_oursin extends ModelePDFFactures
|
||||
|
||||
// If BILLING contact defined on invoice, we use it
|
||||
$usecontact=false;
|
||||
//if ($conf->global->FACTURE_USE_BILL_CONTACT_AS_RECIPIENT)
|
||||
//{
|
||||
$arrayidcontact=$object->getIdContact('external','BILLING');
|
||||
if (sizeof($arrayidcontact) > 0)
|
||||
{
|
||||
$usecontact=true;
|
||||
$result=$object->fetch_contact($arrayidcontact[0]);
|
||||
}
|
||||
//}
|
||||
$arrayidcontact=$object->getIdContact('external','BILLING');
|
||||
if (sizeof($arrayidcontact) > 0)
|
||||
{
|
||||
$usecontact=true;
|
||||
$result=$object->fetch_contact($arrayidcontact[0]);
|
||||
}
|
||||
|
||||
if ($usecontact)
|
||||
{
|
||||
// On peut utiliser le nom de la societe du contact facturation
|
||||
|
||||
@ -404,20 +404,15 @@ class pdf_sirocco extends ModelePDFDeliveryOrder
|
||||
|
||||
// If SHIPPING contact defined on invoice, we use it
|
||||
$usecontact=false;
|
||||
//if ($conf->global->FACTURE_USE_BILL_CONTACT_AS_RECIPIENT)
|
||||
//{
|
||||
$arrayidcontact=$object->commande->getIdContact('external','SHIPPING');
|
||||
if (sizeof($arrayidcontact) > 0)
|
||||
{
|
||||
$usecontact=true;
|
||||
$result=$object->fetch_contact($arrayidcontact[0]);
|
||||
}
|
||||
//}
|
||||
$arrayidcontact=$object->commande->getIdContact('external','SHIPPING');
|
||||
if (sizeof($arrayidcontact) > 0)
|
||||
{
|
||||
$usecontact=true;
|
||||
$result=$object->fetch_contact($arrayidcontact[0]);
|
||||
}
|
||||
|
||||
if ($usecontact)
|
||||
{
|
||||
// On peut utiliser le nom de la societe du contact
|
||||
//if ($conf->global->FACTURE_USE_COMPANY_NAME_OF_BILL_CONTACT) $socname = $object->contact->socname;
|
||||
//else
|
||||
$socname = $object->client->nom;
|
||||
$carac_client_name=$outputlangs->convToOutputCharset($socname);
|
||||
|
||||
|
||||
@ -574,20 +574,15 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
||||
|
||||
// If SHIPPING contact defined on invoice, we use it
|
||||
$usecontact=false;
|
||||
//if ($conf->global->FACTURE_USE_BILL_CONTACT_AS_RECIPIENT)
|
||||
//{
|
||||
$arrayidcontact=$object->commande->getIdContact('external','SHIPPING');
|
||||
if (sizeof($arrayidcontact) > 0)
|
||||
{
|
||||
$usecontact=true;
|
||||
$result=$object->fetch_contact($arrayidcontact[0]);
|
||||
}
|
||||
//}
|
||||
$arrayidcontact=$object->commande->getIdContact('external','SHIPPING');
|
||||
if (sizeof($arrayidcontact) > 0)
|
||||
{
|
||||
$usecontact=true;
|
||||
$result=$object->fetch_contact($arrayidcontact[0]);
|
||||
}
|
||||
|
||||
if ($usecontact)
|
||||
{
|
||||
// On peut utiliser le nom de la societe du contact
|
||||
//if ($conf->global->FACTURE_USE_COMPANY_NAME_OF_BILL_CONTACT) $socname = $object->contact->socname;
|
||||
//else
|
||||
$socname = $object->client->nom;
|
||||
$carac_client_name=$outputlangs->convToOutputCharset($socname);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user