Checkstyle
This commit is contained in:
parent
c87af887ea
commit
6b2faf02d9
@ -45,52 +45,52 @@ $object=new Mailing($db);
|
|||||||
|
|
||||||
// Tableau des substitutions possibles
|
// Tableau des substitutions possibles
|
||||||
$substitutionarray=array(
|
$substitutionarray=array(
|
||||||
'__ID__' => 'IdRecord',
|
'__ID__' => 'IdRecord',
|
||||||
'__EMAIL__' => 'EMail',
|
'__EMAIL__' => 'EMail',
|
||||||
'__LASTNAME__' => 'Lastname',
|
'__LASTNAME__' => 'Lastname',
|
||||||
'__FIRSTNAME__' => 'Firstname',
|
'__FIRSTNAME__' => 'Firstname',
|
||||||
'__MAILTOEMAIL__' => 'MailtoEmail',
|
'__MAILTOEMAIL__' => 'MailtoEmail',
|
||||||
'__OTHER1__' => 'Other1',
|
'__OTHER1__' => 'Other1',
|
||||||
'__OTHER2__' => 'Other2',
|
'__OTHER2__' => 'Other2',
|
||||||
'__OTHER3__' => 'Other3',
|
'__OTHER3__' => 'Other3',
|
||||||
'__OTHER4__' => 'Other4',
|
'__OTHER4__' => 'Other4',
|
||||||
'__OTHER5__' => 'Other5',
|
'__OTHER5__' => 'Other5',
|
||||||
'__SIGNATURE__' => 'Signature',
|
'__SIGNATURE__' => 'Signature',
|
||||||
'__PERSONALIZED__' => 'Personalized'
|
'__PERSONALIZED__' => 'Personalized'
|
||||||
);
|
);
|
||||||
if ($conf->global->MAILING_EMAIL_UNSUBSCRIBE)
|
if ($conf->global->MAILING_EMAIL_UNSUBSCRIBE)
|
||||||
{
|
{
|
||||||
$substitutionarray=array_merge(
|
$substitutionarray=array_merge(
|
||||||
$substitutionarray,
|
$substitutionarray,
|
||||||
array(
|
array(
|
||||||
'__CHECK_READ__' => 'CheckMail',
|
'__CHECK_READ__' => 'CheckMail',
|
||||||
'__UNSUSCRIBE__' => 'Unsubscribe'
|
'__UNSUSCRIBE__' => 'Unsubscribe'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$substitutionarrayfortest=array(
|
$substitutionarrayfortest=array(
|
||||||
'__ID__' => 'TESTIdRecord',
|
'__ID__' => 'TESTIdRecord',
|
||||||
'__EMAIL__' => 'TESTEMail',
|
'__EMAIL__' => 'TESTEMail',
|
||||||
'__LASTNAME__' => 'TESTLastname',
|
'__LASTNAME__' => 'TESTLastname',
|
||||||
'__FIRSTNAME__' => 'TESTFirstname',
|
'__FIRSTNAME__' => 'TESTFirstname',
|
||||||
'__MAILTOEMAIL__' => 'TESTMailtoEmail',
|
'__MAILTOEMAIL__' => 'TESTMailtoEmail',
|
||||||
'__OTHER1__' => 'TESTOther1',
|
'__OTHER1__' => 'TESTOther1',
|
||||||
'__OTHER2__' => 'TESTOther2',
|
'__OTHER2__' => 'TESTOther2',
|
||||||
'__OTHER3__' => 'TESTOther3',
|
'__OTHER3__' => 'TESTOther3',
|
||||||
'__OTHER4__' => 'TESTOther4',
|
'__OTHER4__' => 'TESTOther4',
|
||||||
'__OTHER5__' => 'TESTOther5',
|
'__OTHER5__' => 'TESTOther5',
|
||||||
'__SIGNATURE__' => 'TESTSignature',
|
'__SIGNATURE__' => 'TESTSignature',
|
||||||
'__PERSONALIZED__' => 'TESTPersonalized'
|
'__PERSONALIZED__' => 'TESTPersonalized'
|
||||||
);
|
);
|
||||||
if ($conf->global->MAILING_EMAIL_UNSUBSCRIBE)
|
if ($conf->global->MAILING_EMAIL_UNSUBSCRIBE)
|
||||||
{
|
{
|
||||||
$substitutionarrayfortest=array_merge(
|
$substitutionarrayfortest=array_merge(
|
||||||
$substitutionarrayfortest,
|
$substitutionarrayfortest,
|
||||||
array(
|
array(
|
||||||
'__CHECK_READ__' => 'TESTCheckMail',
|
'__CHECK_READ__' => 'TESTCheckMail',
|
||||||
'__UNSUSCRIBE__' => 'TESTUnsubscribe'
|
'__UNSUSCRIBE__' => 'TESTUnsubscribe'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2009 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2009 Regis Houssin <regis@dolibarr.fr>
|
||||||
* Copyright (C) 2010-2011 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2010-2011 Juanjo Menent <jmenent@2byte.es>
|
||||||
*
|
*
|
||||||
@ -30,8 +30,7 @@ require_once(DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php");
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class FactureRec
|
* Classe de gestion des factures recurrentes/Modeles
|
||||||
* \brief Classe de gestion des factures recurrentes/Modeles
|
|
||||||
*/
|
*/
|
||||||
class FactureRec extends Facture
|
class FactureRec extends Facture
|
||||||
{
|
{
|
||||||
@ -147,20 +146,20 @@ class FactureRec extends Facture
|
|||||||
for ($i = 0; $i < $num; $i++)
|
for ($i = 0; $i < $num; $i++)
|
||||||
{
|
{
|
||||||
$result_insert = $this->addline(
|
$result_insert = $this->addline(
|
||||||
$this->id,
|
$this->id,
|
||||||
$facsrc->lines[$i]->desc,
|
$facsrc->lines[$i]->desc,
|
||||||
$facsrc->lines[$i]->subprice,
|
$facsrc->lines[$i]->subprice,
|
||||||
$facsrc->lines[$i]->qty,
|
$facsrc->lines[$i]->qty,
|
||||||
$facsrc->lines[$i]->tva_tx,
|
$facsrc->lines[$i]->tva_tx,
|
||||||
$facsrc->lines[$i]->fk_product,
|
$facsrc->lines[$i]->fk_product,
|
||||||
$facsrc->lines[$i]->remise_percent,
|
$facsrc->lines[$i]->remise_percent,
|
||||||
'HT',
|
'HT',
|
||||||
0,
|
0,
|
||||||
'',
|
'',
|
||||||
0,
|
0,
|
||||||
$facsrc->lines[$i]->product_type,
|
$facsrc->lines[$i]->product_type,
|
||||||
$facsrc->lines[$i]->rang,
|
$facsrc->lines[$i]->rang,
|
||||||
$facsrc->lines[$i]->special_code
|
$facsrc->lines[$i]->special_code
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($result_insert < 0)
|
if ($result_insert < 0)
|
||||||
|
|||||||
@ -542,8 +542,8 @@ if (empty($reshook))
|
|||||||
$localtax2_tx, // localtax2
|
$localtax2_tx, // localtax2
|
||||||
$prod->id,
|
$prod->id,
|
||||||
$_POST["remise_percent"],
|
$_POST["remise_percent"],
|
||||||
'',
|
'',
|
||||||
'', //Todo: voir si fk_remise_except est encore valable car n'apparait plus dans les propales
|
'', // TODO voir si fk_remise_except est encore valable car n'apparait plus dans les propales
|
||||||
$price_base_type,
|
$price_base_type,
|
||||||
$pu_ttc
|
$pu_ttc
|
||||||
);
|
);
|
||||||
@ -624,11 +624,11 @@ if (empty($reshook))
|
|||||||
$localtax2_tx,
|
$localtax2_tx,
|
||||||
$prod->id,
|
$prod->id,
|
||||||
$_POST["remise_percent"],
|
$_POST["remise_percent"],
|
||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
$price_base_type,
|
$price_base_type,
|
||||||
$pu_ttc
|
$pu_ttc
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user