*
* This program is free software; you can redistribute it and/or modify
@@ -158,6 +158,31 @@ if ( ($action == 'update' && empty($_POST["cancel"]))
// Local taxes
dolibarr_set_const($db, "FACTURE_LOCAL_TAX1_OPTION",$_POST["optionlocaltax1"],'chaine',0,'',$conf->entity);
dolibarr_set_const($db, "FACTURE_LOCAL_TAX2_OPTION",$_POST["optionlocaltax2"],'chaine',0,'',$conf->entity);
+
+ if($_POST["optionlocaltax1"]=="localtax1on")
+ {
+ if(!isset($_REQUEST['lt1']))
+ {
+ dolibarr_set_const($db, "MAIN_INFO_VALUE_LOCALTAX1", 0,'chaine',0,'',$conf->entity);
+ }
+ else
+ {
+ dolibarr_set_const($db, "MAIN_INFO_VALUE_LOCALTAX1", GETPOST('lt1'),'chaine',0,'',$conf->entity);
+ }
+ dolibarr_set_const($db,"MAIN_INFO_LOCALTAX_CALC1", $_POST["clt1"],'chaine',0,'',$conf->entity);
+ }
+ if($_POST["optionlocaltax2"]=="localtax2on")
+ {
+ if(!isset($_REQUEST['lt2']))
+ {
+ dolibarr_set_const($db, "MAIN_INFO_VALUE_LOCALTAX2", 0,'chaine',0,'',$conf->entity);
+ }
+ else
+ {
+ dolibarr_set_const($db, "MAIN_INFO_VALUE_LOCALTAX2", GETPOST('lt2'),'chaine',0,'',$conf->entity);
+ }
+ dolibarr_set_const($db,"MAIN_INFO_LOCALTAX_CALC2", $_POST["clt2"],'chaine',0,'',$conf->entity);
+ }
if ($action != 'updateedit' && ! $error)
{
@@ -570,6 +595,17 @@ if ($action == 'edit' || $action == 'updateedit')
print "| ".$langs->transcountry("LocalTax1IsUsedDesc",$mysoc->country_code)." |
";
$example=$langs->transcountry("LocalTax1IsUsedExample",$mysoc->country_code);
print ($example!="LocalTax1IsUsedExample"?"| ".$langs->trans("Example").': '.$langs->transcountry("LocalTax1IsUsedExample",$mysoc->country_code)." |
\n":"");
+ if(! isOnlyOneLocalTax(1))
+ {
+ print '| '.$langs->transcountry("LocalTax1Management",$mysoc->country_code).': ';
+ $formcompany->select_localtax(1,$conf->global->MAIN_INFO_VALUE_LOCALTAX1, "lt1");
+ }
+ print ' |
';
+
+ print '| '.$langs->trans("CalcLocaltax").': ';
+ $opcions=array($langs->transcountry("CalcLocaltax1",$mysoc->country_code),$langs->transcountry("CalcLocaltax2",$mysoc->country_code),$langs->transcountry("CalcLocaltax3",$mysoc->country_code));
+ print $form->selectarray("clt1", $opcions, $conf->global->MAIN_INFO_LOCALTAX_CALC1);
+ print ' |
';
print "";
print "\n";
@@ -603,6 +639,16 @@ if ($action == 'edit' || $action == 'updateedit')
print "| ".$langs->transcountry("LocalTax2IsUsedDesc",$mysoc->country_code)." |
";
$example=$langs->transcountry("LocalTax2IsUsedExample",$mysoc->country_code);
print ($example!="LocalTax2IsUsedExample"?"| ".$langs->trans("Example").': '.$langs->transcountry("LocalTax2IsUsedExample",$mysoc->country_code)." |
\n":"");
+ print '| '.$langs->transcountry("LocalTax2Management",$mysoc->country_code).': ';
+ if(! isOnlyOneLocalTax(2))
+ {
+ $formcompany->select_localtax(2,$conf->global->MAIN_INFO_VALUE_LOCALTAX2, "lt2");
+ print ' |
';
+ }
+ print '| '.$langs->trans("CalcLocaltax").': ';
+ $opcions=array($langs->transcountry("CalcLocaltax1",$mysoc->country_code),$langs->transcountry("CalcLocaltax2",$mysoc->country_code),$langs->transcountry("CalcLocaltax3",$mysoc->country_code));
+ print $form->selectarray("clt2", $opcions, $conf->global->MAIN_INFO_LOCALTAX_CALC2);
+ print ' |
';
print "";
print "\n";
@@ -954,6 +1000,19 @@ else
print "| ".$langs->transcountry("LocalTax1IsUsedDesc",$mysoc->country_code)." |
";
$example=$langs->transcountry("LocalTax1IsUsedExample",$mysoc->country_code);
print ($example!="LocalTax1IsUsedExample"?"| ".$langs->trans("Example").': '.$langs->transcountry("LocalTax1IsUsedExample",$mysoc->country_code)." |
\n":"");
+ if($conf->global->MAIN_INFO_VALUE_LOCALTAX1!=0){
+ print '| '.$langs->transcountry("LocalTax1Management",$mysoc->country_code).': '. $conf->global->MAIN_INFO_VALUE_LOCALTAX1 .' |
';
+ }
+ print '| '.$langs->trans("CalcLocaltax").': ';
+ if($conf->global->MAIN_INFO_LOCALTAX_CALC1==0){
+ print $langs->transcountry("CalcLocaltax1",$mysoc->country_code);
+ }else if($conf->global->MAIN_INFO_LOCALTAX_CALC1==1){
+ print $langs->transcountry("CalcLocaltax2",$mysoc->country_code);
+ }else if($conf->global->MAIN_INFO_LOCALTAX_CALC1==2){
+ print $langs->transcountry("CalcLocaltax3",$mysoc->country_code);
+ }
+
+ print ' |
';
print "";
print "\n";
@@ -987,6 +1046,19 @@ else
print "| ".$langs->transcountry("LocalTax2IsUsedDesc",$mysoc->country_code)." |
";
$example=$langs->transcountry("LocalTax2IsUsedExample",$mysoc->country_code);
print ($example!="LocalTax2IsUsedExample"?"| ".$langs->trans("Example").': '.$langs->transcountry("LocalTax2IsUsedExample",$mysoc->country_code)." |
\n":"");
+ if($conf->global->MAIN_INFO_VALUE_LOCALTAX2!=0){
+ print '| '.$langs->transcountry("LocalTax2Management",$mysoc->country_code).': '. $conf->global->MAIN_INFO_VALUE_LOCALTAX2 .' |
';
+ }
+ print '| '.$langs->trans("CalcLocaltax").': ';
+ if($conf->global->MAIN_INFO_LOCALTAX_CALC2==0){
+ print $langs->transcountry("CalcLocaltax1",$mysoc->country_code);
+ }else if($conf->global->MAIN_INFO_LOCALTAX_CALC2==1){
+ print $langs->transcountry("CalcLocaltax2",$mysoc->country_code);
+ }else if($conf->global->MAIN_INFO_LOCALTAX_CALC2==2){
+ print $langs->transcountry("CalcLocaltax3",$mysoc->country_code);
+ }
+
+ print ' |
';
print "";
print "\n";
diff --git a/htdocs/boutique/index.php b/htdocs/boutique/index.php
index 040e81b726a..01b3928a96b 100644
--- a/htdocs/boutique/index.php
+++ b/htdocs/boutique/index.php
@@ -128,7 +128,7 @@ else
}
/*
- * Last 5 commands in wait
+ * Last 5 orders on hold
*/
$sql = "SELECT o.orders_id, o.customers_name, o.date_purchased, t.value, o.payment_method";
$sql .= " FROM ".$conf->global->OSC_DB_NAME.".".$conf->global->OSC_DB_TABLE_PREFIX."orders_total as t JOIN ".$conf->global->OSC_DB_NAME.".".$conf->global->OSC_DB_TABLE_PREFIX."orders as o on o.orders_id = t.orders_id ";
@@ -200,7 +200,7 @@ else
print '';
/*
- * Last customers who commanded
+ * Last customers who ordered
*/
$sql = "SELECT o.orders_id, o.customers_name, o.delivery_country, o.date_purchased, t.value, s.orders_status_name as statut";
$sql .= " FROM ".$conf->global->OSC_DB_NAME.".".$conf->global->OSC_DB_TABLE_PREFIX."orders_total as t JOIN ".$conf->global->OSC_DB_NAME.".".$conf->global->OSC_DB_TABLE_PREFIX."orders as o on o.orders_id = t.orders_id ";
diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php
index e7f277a116b..a50ee50dd14 100644
--- a/htdocs/comm/action/index.php
+++ b/htdocs/comm/action/index.php
@@ -81,7 +81,11 @@ $pid=GETPOST("projectid","int",3);
$status=GETPOST("status");
$type=GETPOST("type");
$maxprint=(isset($_GET["maxprint"])?GETPOST("maxprint"):$conf->global->AGENDA_MAX_EVENTS_DAY_VIEW);
-$actioncode=GETPOST("actioncode","alpha",3)?GETPOST("actioncode","alpha",3):(GETPOST("actioncode")=='0'?'0':(empty($conf->global->AGENDA_USE_EVENT_TYPE)?'AC_OTH':''));
+$actioncode=GETPOST("actioncode","alpha",3)?GETPOST("actioncode","alpha",3):(GETPOST("actioncode")=='0'?'0':'');
+
+if ($actioncode == '') $actioncode=(empty($conf->global->AGENDA_DEFAULT_FILTER_TYPE)?'':$conf->global->AGENDA_DEFAULT_FILTER_TYPE);
+if ($status == '') $status=(empty($conf->global->AGENDA_DEFAULT_FILTER_STATUS)?'':$conf->global->AGENDA_DEFAULT_FILTER_STATUS);
+if (empty($action)) $action=(empty($conf->global->AGENDA_DEFAULT_VIEW)?'show_month':$conf->global->AGENDA_DEFAULT_VIEW);
if (GETPOST('viewcal') && $action != 'show_day' && $action != 'show_week') {
$action='show_month'; $day='';
@@ -93,11 +97,6 @@ if (GETPOST('viewday') || $action == 'show_day') {
$action='show_day'; $day=($day?$day:date("d"));
} // View by day
-if (empty($action))
-{
- if (empty($conf->global->AGENDA_DEFAULT_VIEW)) $action='show_month';
- else $action=$conf->global->AGENDA_DEFAULT_VIEW;
-}
$langs->load("agenda");
$langs->load("other");
@@ -110,7 +109,8 @@ $hookmanager->initHooks(array('agenda'));
/*
* Actions
*/
-if (GETPOST("viewlist"))
+
+if (GETPOST("viewlist") || $action == 'show_list')
{
$param='';
foreach($_POST as $key => $val)
@@ -123,6 +123,19 @@ if (GETPOST("viewlist"))
exit;
}
+if (GETPOST("viewperuser") || $action == 'show_peruser')
+{
+ $param='';
+ foreach($_POST as $key => $val)
+ {
+ if ($key=='token') continue;
+ $param.='&'.$key.'='.urlencode($val);
+ }
+ //print $param;
+ header("Location: ".DOL_URL_ROOT.'/comm/action/peruser.php?'.$param);
+ exit;
+}
+
if ($action=='delete_action')
{
$event = new ActionComm($db);
diff --git a/htdocs/comm/action/listactions.php b/htdocs/comm/action/listactions.php
index 0c220a89194..15e75e85661 100644
--- a/htdocs/comm/action/listactions.php
+++ b/htdocs/comm/action/listactions.php
@@ -44,11 +44,9 @@ $status=GETPOST("status",'alpha');
$type=GETPOST('type');
$actioncode=GETPOST("actioncode","alpha",3)?GETPOST("actioncode","alpha",3):(GETPOST("actioncode")=='0'?'0':(empty($conf->global->AGENDA_USE_EVENT_TYPE)?'AC_OTH':''));
-if (empty($action))
-{
- if (empty($conf->global->AGENDA_DEFAULT_VIEW)) $action='show_list';
- else $action=$conf->global->AGENDA_DEFAULT_VIEW;
-}
+if ($actioncode == '') $actioncode=(empty($conf->global->AGENDA_DEFAULT_FILTER_TYPE)?'':$conf->global->AGENDA_DEFAULT_FILTER_TYPE);
+if ($status == '') $status=(empty($conf->global->AGENDA_DEFAULT_FILTER_STATUS)?'':$conf->global->AGENDA_DEFAULT_FILTER_STATUS);
+if (empty($action)) $action=(empty($conf->global->AGENDA_DEFAULT_VIEW)?'show_list':$conf->global->AGENDA_DEFAULT_VIEW);
$filter=GETPOST("filter",'',3);
$filtera = GETPOST("userasked","int",3)?GETPOST("userasked","int",3):GETPOST("filtera","int",3);
@@ -214,6 +212,7 @@ if ($resql)
if ($action == 'show_week') $tabactive='cardweek';
if ($action == 'show_day') $tabactive='cardday';
if ($action == 'show_list') $tabactive='cardlist';
+ if ($action == 'show_peruser') $tabactive='cardperuser';
$head = calendars_prepare_head($param);
diff --git a/htdocs/compta/bank/class/account.class.php b/htdocs/compta/bank/class/account.class.php
index 8bcabf7f17b..8a940c6db22 100644
--- a/htdocs/compta/bank/class/account.class.php
+++ b/htdocs/compta/bank/class/account.class.php
@@ -74,6 +74,7 @@ class Account extends CommonObject
var $type_lib=array();
var $account_number;
+ var $accountancy_journal;
var $currency_code;
var $min_allowed;
@@ -382,6 +383,7 @@ class Account extends CommonObject
$sql.= ", label";
$sql.= ", entity";
$sql.= ", account_number";
+ $sql.= ", accountancy_journal";
$sql.= ", currency_code";
$sql.= ", rappro";
$sql.= ", min_allowed";
@@ -395,6 +397,7 @@ class Account extends CommonObject
$sql.= ", '".$this->db->escape($this->label)."'";
$sql.= ", ".$conf->entity;
$sql.= ", '".$this->db->escape($this->account_number)."'";
+ $sql.= ", '".$this->db->escape($this->accountancy_journal)."'";
$sql.= ", '".$this->currency_code."'";
$sql.= ", ".$this->rappro;
$sql.= ", ".price2num($this->min_allowed);
@@ -500,6 +503,7 @@ class Account extends CommonObject
$sql.= ",rappro = ".$this->rappro;
$sql.= ",url = ".($this->url?"'".$this->url."'":"null");
$sql.= ",account_number = '".$this->account_number."'";
+ $sql.= ",accountancy_journal = '".$this->accountancy_journal."'";
$sql.= ",currency_code = '".$this->currency_code."'";
@@ -606,7 +610,7 @@ class Account extends CommonObject
$sql = "SELECT ba.rowid, ba.ref, ba.label, ba.bank, ba.number, ba.courant, ba.clos, ba.rappro, ba.url,";
$sql.= " ba.code_banque, ba.code_guichet, ba.cle_rib, ba.bic, ba.iban_prefix as iban,";
$sql.= " ba.domiciliation, ba.proprio, ba.owner_address, ba.state_id, ba.fk_pays as country_id,";
- $sql.= " ba.account_number, ba.currency_code,";
+ $sql.= " ba.account_number, ba.accountancy_journal, ba.currency_code,";
$sql.= " ba.min_allowed, ba.min_desired, ba.comment,";
$sql.= ' p.code as country_code, p.libelle as country,';
$sql.= ' d.code_departement as state_code, d.nom as state';
@@ -656,6 +660,7 @@ class Account extends CommonObject
$this->country = $obj->country;
$this->account_number = $obj->account_number;
+ $this->accountancy_journal = $obj->accountancy_journal;
$this->currency_code = $obj->currency_code;
$this->account_currency_code = $obj->currency_code;
diff --git a/htdocs/compta/bank/fiche.php b/htdocs/compta/bank/fiche.php
index bdb30e46528..57c5e2b075a 100644
--- a/htdocs/compta/bank/fiche.php
+++ b/htdocs/compta/bank/fiche.php
@@ -1,8 +1,9 @@
- * Copyright (C) 2003 Jean-Louis Bergamo
- * Copyright (C) 2004-2012 Laurent Destailleur
- * Copytight (C) 2005-2009 Regis Houssin
+/* Copyright (C) 2002-2003 Rodolphe Quiedeville
+ * Copyright (C) 2003 Jean-Louis Bergamo
+ * Copyright (C) 2004-2012 Laurent Destailleur
+ * Copytight (C) 2005-2009 Regis Houssin
+ * Copytight (C) 2014 Alexandre Spangaro
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -34,6 +35,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
$langs->load("banks");
$langs->load("categories");
$langs->load("companies");
+$langs->load("compta");
$action=GETPOST("action");
@@ -65,6 +67,7 @@ if ($_POST["action"] == 'add')
$account->url = $_POST["url"];
$account->account_number = trim($_POST["account_number"]);
+ $account->accountancy_journal = trim($_POST["accountancy_journal"]);
$account->solde = $_POST["solde"];
$account->date_solde = dol_mktime(12,0,0,$_POST["remonth"],$_POST["reday"],$_POST["reyear"]);
@@ -139,6 +142,7 @@ if ($_POST["action"] == 'update' && ! $_POST["cancel"])
$account->owner_address = trim($_POST["owner_address"]);
$account->account_number = trim($_POST["account_number"]);
+ $account->accountancy_journal = trim($_POST["accountancy_journal"]);
$account->currency_code = trim($_POST["account_currency_code"]);
@@ -292,18 +296,6 @@ if ($action == 'create')
}
print '
';
- // Accountancy code
- if (! empty($conf->global->MAIN_BANK_ACCOUNTANCY_CODE_ALWAYS_REQUIRED))
- {
- print '| '.$langs->trans("AccountancyCode").' | ';
- print ' |
';
- }
- else
- {
- print '| '.$langs->trans("AccountancyCode").' | ';
- print ' |
';
- }
-
// Web
print '| '.$langs->trans("Web").' | ';
print ' |
';
@@ -334,6 +326,27 @@ if ($action == 'create')
print '| '.$langs->trans("BalanceMinimalDesired").' | ';
print 'account_min_desired).'"> |
';
+ print '';
+
+ print '
';
+
+ print '';
print '
';
@@ -431,10 +444,6 @@ else
else print ($account->rappro==1 ? $langs->trans("Yes") : ($langs->trans("No").' ('.$langs->trans("ConciliationDisabled").')'));
print '';
- // Accountancy code
- print '| '.$langs->trans("AccountancyCode").' | ';
- print ''.$account->account_number.' |
';
-
print '| '.$langs->trans("BalanceMinimalAllowed").' | ';
print ''.$account->min_allowed.' |
';
@@ -451,7 +460,19 @@ else
print ''.$account->comment.' | ';
print '';
-
+
+ print '
';
+ print '';
+ // Accountancy code
+ print '| '.$langs->trans("AccountancyCode").' | ';
+ print ''.$account->account_number.' |
';
+
+ // Accountancy journal
+ print '| '.$langs->trans("AccountancyJournal").' | ';
+ print ''.$account->accountancy_journal.' |
';
+
+ print '
';
+
print '';
@@ -574,19 +595,7 @@ else
else print 'rappro?'':' checked="checked"').'"> '.$langs->trans("DisableConciliation");
print '';
- // Accountancy code
- if (! empty($conf->global->MAIN_BANK_ACCOUNTANCY_CODE_ALWAYS_REQUIRED))
- {
- print '| '.$langs->trans("AccountancyCode").' | ';
- print 'account_number).'"> |
';
- }
- else
- {
- print '| '.$langs->trans("AccountancyCode").' | ';
- print 'account_number).'"> |
';
- }
-
- // Balance
+ // Balance
print '| '.$langs->trans("BalanceMinimalAllowed").' | ';
print 'min_allowed).'"> |
';
@@ -606,6 +615,22 @@ else
$doleditor=new DolEditor('account_comment',(isset($_POST["account_comment"])?$_POST["account_comment"]:$account->comment),'',200,'dolibarr_notes','',false,true,$conf->global->FCKEDITOR_ENABLE_SOCIETE,10,70);
$doleditor->Create();
print '';
+
+ // Accountancy code
+ if (! empty($conf->global->MAIN_BANK_ACCOUNTANCY_CODE_ALWAYS_REQUIRED))
+ {
+ print '| '.$langs->trans("AccountancyCode").' | ';
+ print 'account_number).'"> |
';
+ }
+ else
+ {
+ print '| '.$langs->trans("AccountancyCode").' | ';
+ print 'account_number).'"> |
';
+ }
+
+ // Accountancy journal
+ print '| '.$langs->trans("AccountancyJournalCode").' | ';
+ print 'accountancy_journal).'"> |
';
print '| ';
print ' ';
diff --git a/htdocs/compta/facture/fiche-rec.php b/htdocs/compta/facture/fiche-rec.php
index 2b3fc89d33b..7ae2e6aeb96 100644
--- a/htdocs/compta/facture/fiche-rec.php
+++ b/htdocs/compta/facture/fiche-rec.php
@@ -217,12 +217,15 @@ if ($action == 'create')
if ($num)
{
print ' |
';
- print '| '.$langs->trans("Description").' | ';
- print ''.$langs->trans("VAT").' | ';
- print ''.$langs->trans("Qty").' | ';
- print ''.$langs->trans("ReductionShort").' | ';
- print ''.$langs->trans("PriceU").' | ';
- if (empty($conf->global->PRODUIT_MULTIPRICES)) print ''.$langs->trans("CurrentProductPrice").' | ';
+ print ''.$langs->trans("Description").' | ';
+ print ''.$langs->trans("VAT").' | ';
+ print ''.$langs->trans("Qty").' | ';
+ print ''.$langs->trans("ReductionShort").' | ';
+ print ''.$langs->trans("TotalHT").' | ';
+ print ''.$langs->trans("TotalVAT").' | ';
+ print ''.$langs->trans("TotalTTC").' | ';
+ print ''.$langs->trans("PriceUHT").' | ';
+ if (empty($conf->global->PRODUIT_MULTIPRICES)) print ''.$langs->trans("CurrentProductPrice").' | ';
print "
\n";
}
$var=True;
@@ -288,9 +291,13 @@ if ($action == 'create')
print "\n";
}
-
+ // Vat rate
print ''.vatrate($objp->tva_tx).'% | ';
+
+ // Qty
print ''.$objp->qty.' | ';
+
+ // Percent
if ($objp->remise_percent > 0)
{
print ''.$objp->remise_percent." % | \n";
@@ -300,9 +307,19 @@ if ($action == 'create')
print ' | ';
}
+ // Total HT
+ print ''.price($objp->total_ht)." | \n";
+
+ // Total VAT
+ print ''.price($objp->total_vat)." | \n";
+
+ // Total TTC
+ print ''.price($objp->total_ttc)." | \n";
+
+ // Total Unit price
print ''.price($objp->subprice)." | \n";
- // Price of product
+ // Current price of product
if (empty($conf->global->PRODUIT_MULTIPRICES))
{
if ($objp->fk_product > 0)
diff --git a/htdocs/compta/paiement/class/paiement.class.php b/htdocs/compta/paiement/class/paiement.class.php
index 0eea10bf510..1d077f933da 100644
--- a/htdocs/compta/paiement/class/paiement.class.php
+++ b/htdocs/compta/paiement/class/paiement.class.php
@@ -248,10 +248,8 @@ class Paiement extends CommonObject
if (! $error)
{
// Appel des triggers
- include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
- $interface=new Interfaces($this->db);
- $result=$interface->run_triggers('PAYMENT_CUSTOMER_CREATE',$this,$user,$langs,$conf);
- if ($result < 0) { $error++; $this->errors=$interface->errors; }
+ $result=$this->call_trigger('PAYMENT_CUSTOMER_CREATE', $user);
+ if ($result < 0) { $error++; }
// Fin appel triggers
}
}
@@ -363,11 +361,13 @@ class Paiement extends CommonObject
if (! $notrigger)
{
// Appel des triggers
- include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
- $interface=new Interfaces($this->db);
- $result=$interface->run_triggers('PAYMENT_DELETE',$this,$user,$langs,$conf);
- if ($result < 0) { $error++; $this->errors=$interface->errors; }
- // Fin appel triggers
+ $result=$this->call_trigger('PAYMENT_DELETE', $user);
+ if ($result < 0)
+ {
+ $this->db->rollback();
+ return -1;
+ }
+ // Fin appel triggers
}
$this->db->commit();
@@ -516,11 +516,9 @@ class Paiement extends CommonObject
if (! $error && ! $notrigger)
{
// Appel des triggers
- include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
- $interface=new Interfaces($this->db);
- $result=$interface->run_triggers('PAYMENT_ADD_TO_BANK',$this,$user,$langs,$conf);
- if ($result < 0) { $error++; $this->errors=$interface->errors; }
- // Fin appel triggers
+ $result=$this->call_trigger('PAYMENT_ADD_TO_BANK', $user);
+ if ($result < 0) { $error++; }
+ // Fin appel triggers
}
}
else
diff --git a/htdocs/core/class/html.formactions.class.php b/htdocs/core/class/html.formactions.class.php
index 81a7ea1f048..ed32fcc9f0d 100644
--- a/htdocs/core/class/html.formactions.class.php
+++ b/htdocs/core/class/html.formactions.class.php
@@ -120,7 +120,7 @@ class FormActions
{
//var_dump($selected);
if ($selected == 'done') $selected='100';
- print '