';
@@ -650,7 +650,7 @@ if ($id)
// Determine le nom du champ par rapport aux noms possibles
// dans les dictionnaires de donnees
$showfield=1; // By defaut
- $align="left";
+ $class="left";
$sortable=1;
$valuetoshow='';
/*
@@ -705,7 +705,7 @@ if ($id)
if (empty($reshook)) fieldListAccountModel($fieldlist, $obj, $tabname[$id], 'edit');
- print '
';
+ print '
';
print '
';
}
else
@@ -722,7 +722,7 @@ if ($id)
{
$showfield=1;
- $align="left";
+ $class="left";
$valuetoshow=$obj->{$fieldlist[$field]};
if ($value == 'type_template')
{
@@ -877,4 +877,3 @@ function fieldListAccountModel($fieldlist, $obj = '', $tabname = '', $context =
}
}
}
-
diff --git a/htdocs/accountancy/admin/categories_list.php b/htdocs/accountancy/admin/categories_list.php
index 9c2be8091a6..35930d8255d 100644
--- a/htdocs/accountancy/admin/categories_list.php
+++ b/htdocs/accountancy/admin/categories_list.php
@@ -467,7 +467,7 @@ if ($id)
// dans les dictionnaires de donnees
$valuetoshow=ucfirst($fieldlist[$field]); // Par defaut
$valuetoshow=$langs->trans($valuetoshow); // try to translate
- $align="left";
+ $class="left";
if ($fieldlist[$field]=='type') {
if ($tabname[$id] == MAIN_DB_PREFIX."c_paiement") $valuetoshow=$form->textwithtooltip($langs->trans("Type"), $langs->trans("TypePaymentDesc"), 2, 1, img_help(1, ''));
else $valuetoshow=$langs->trans("Type");
@@ -531,7 +531,7 @@ if ($id)
fieldListAccountingCategories($fieldlist, $obj, $tabname[$id], 'add');
}
- print '
';
+ print '
';
print '';
print '
';
print "";
@@ -559,7 +559,7 @@ if ($id)
// There is several pages
if ($num > $listlimit)
{
- print '
situation_counter == 1 || !$this->situation_cycle_ref) && empty($disableremove)) {
+ if (($line->fk_prev_id == null ) && empty($disableremove)) { //La suppression n'est autorisée que si il n'y a pas de ligne dans une précédente situation
print 'id . '&action=ask_deleteline&lineid=' . $line->id . '">';
print img_delete();
print '';
diff --git a/htdocs/core/tpl/onlinepaymentlinks.tpl.php b/htdocs/core/tpl/onlinepaymentlinks.tpl.php
index 921b6954db6..b32fcf3658a 100644
--- a/htdocs/core/tpl/onlinepaymentlinks.tpl.php
+++ b/htdocs/core/tpl/onlinepaymentlinks.tpl.php
@@ -161,5 +161,3 @@ if (! empty($conf->use_javascript_ajax))
print info_admin($langs->trans("YouCanAddTagOnUrl"));
print '';
-
-
diff --git a/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php b/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php
index fe02aceea8a..f6d9e10521c 100644
--- a/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php
+++ b/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php
@@ -184,7 +184,7 @@ class InterfaceWorkflowManager extends DolibarrTriggers
dol_syslog( "Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id );
// First classify billed the order to allow the proposal classify process
- if (! empty($conf->fournisseur->commande->enabled) && ! empty($conf->global->WORKFLOW_INVOICE_AMOUNT_CLASSIFY_BILLED_SUPPLIER_ORDER))
+ if (! empty($conf->fournisseur->enabled) && ! empty($conf->global->WORKFLOW_INVOICE_AMOUNT_CLASSIFY_BILLED_SUPPLIER_ORDER))
{
$object->fetchObjectLinked('', 'order_supplier', $object->id, $object->element);
if (! empty($object->linkedObjects))
diff --git a/htdocs/dav/dav.lib.php b/htdocs/dav/dav.lib.php
index 4c26ae3f5e8..3c213f400c1 100644
--- a/htdocs/dav/dav.lib.php
+++ b/htdocs/dav/dav.lib.php
@@ -69,4 +69,3 @@ function dav_admin_prepare_head()
return $head;
}
-
diff --git a/htdocs/ecm/ajax/ecmdatabase.php b/htdocs/ecm/ajax/ecmdatabase.php
index 60d9370f666..571a810939a 100644
--- a/htdocs/ecm/ajax/ecmdatabase.php
+++ b/htdocs/ecm/ajax/ecmdatabase.php
@@ -180,4 +180,3 @@ if (isset($action) && ! empty($action))
$db->query($sql);
}
}
-
diff --git a/htdocs/ecm/class/htmlecm.form.class.php b/htdocs/ecm/class/htmlecm.form.class.php
index 698ddd57bfe..7877b85b0a5 100644
--- a/htdocs/ecm/class/htmlecm.form.class.php
+++ b/htdocs/ecm/class/htmlecm.form.class.php
@@ -105,4 +105,3 @@ class FormEcm
return $output;
}
}
-
diff --git a/htdocs/emailcollector/class/emailcollectorfilter.class.php b/htdocs/emailcollector/class/emailcollectorfilter.class.php
index ec25390b27f..e0556bf865b 100644
--- a/htdocs/emailcollector/class/emailcollectorfilter.class.php
+++ b/htdocs/emailcollector/class/emailcollectorfilter.class.php
@@ -490,4 +490,3 @@ class EmailCollectorFilter extends CommonObject
$this->initAsSpecimenCommon();
}
}
-
diff --git a/htdocs/expedition/class/expeditionstats.class.php b/htdocs/expedition/class/expeditionstats.class.php
index e776551fa1b..e1bb3c0b219 100644
--- a/htdocs/expedition/class/expeditionstats.class.php
+++ b/htdocs/expedition/class/expeditionstats.class.php
@@ -143,4 +143,3 @@ class ExpeditionStats extends Stats
return $this->_getAllByYear($sql);
}
}
-
diff --git a/htdocs/expensereport/class/expensereportstats.class.php b/htdocs/expensereport/class/expensereportstats.class.php
index c18c9f469a9..0eec447d997 100644
--- a/htdocs/expensereport/class/expensereportstats.class.php
+++ b/htdocs/expensereport/class/expensereportstats.class.php
@@ -177,4 +177,3 @@ class ExpenseReportStats extends Stats
return $this->_getAllByYear($sql);
}
}
-
diff --git a/htdocs/fichinter/class/fichinterstats.class.php b/htdocs/fichinter/class/fichinterstats.class.php
index 16a0488c6aa..80d7e6107c8 100644
--- a/htdocs/fichinter/class/fichinterstats.class.php
+++ b/htdocs/fichinter/class/fichinterstats.class.php
@@ -211,4 +211,3 @@ class FichinterStats extends Stats
return $this->_getAllByProduct($sql);
}
}
-
diff --git a/htdocs/filefunc.inc.php b/htdocs/filefunc.inc.php
index 428732e25b5..8989d0e4583 100644
--- a/htdocs/filefunc.inc.php
+++ b/htdocs/filefunc.inc.php
@@ -294,4 +294,3 @@ if (preg_match('/crypted:/i', $dolibarr_main_db_pass) || ! empty($dolibarr_main_
}
else $dolibarr_main_db_pass = dol_decode($dolibarr_main_db_encrypted_pass);
}
-
diff --git a/htdocs/fourn/ajax/getSupplierPrices.php b/htdocs/fourn/ajax/getSupplierPrices.php
index 8bda483db42..85b0ed37155 100644
--- a/htdocs/fourn/ajax/getSupplierPrices.php
+++ b/htdocs/fourn/ajax/getSupplierPrices.php
@@ -97,4 +97,3 @@ if ($idprod > 0)
}
echo json_encode($prices);
-
diff --git a/htdocs/fourn/class/fournisseur.product.class.php b/htdocs/fourn/class/fournisseur.product.class.php
index edd3dbc1894..90cd6046765 100644
--- a/htdocs/fourn/class/fournisseur.product.class.php
+++ b/htdocs/fourn/class/fournisseur.product.class.php
@@ -680,11 +680,12 @@ class ProductFournisseur extends Product
$sql.= " ,pfp.multicurrency_price, pfp.multicurrency_unitprice, pfp.multicurrency_tx, pfp.fk_multicurrency, pfp.multicurrency_code";
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."product_fournisseur_price as pfp";
$sql.= " WHERE s.entity IN (".getEntity('societe').")";
+ $sql.= " AND pfp.entity = ".$conf->entity; // only current entity
$sql.= " AND pfp.fk_product = ".$prodid;
$sql.= " AND pfp.fk_soc = s.rowid";
$sql.= " AND s.status = 1"; // only enabled society
if ($qty > 0) $sql.= " AND pfp.quantity <= ".$qty;
- if ($socid > 0) $sql.= ' AND pfp.fk_soc = '.$socid;
+ if ($socid > 0) $sql.= ' AND pfp.fk_soc = '.$socid;
dol_syslog(get_class($this)."::find_min_price_product_fournisseur", LOG_DEBUG);
diff --git a/htdocs/holiday/common.inc.php b/htdocs/holiday/common.inc.php
index 3480ada58e4..45a95bcbada 100644
--- a/htdocs/holiday/common.inc.php
+++ b/htdocs/holiday/common.inc.php
@@ -40,4 +40,3 @@ if (empty($conf->holiday->enabled))
llxFooter();
exit();
}
-
diff --git a/htdocs/install/index.php b/htdocs/install/index.php
index 364636a57ae..e30336d4c88 100644
--- a/htdocs/install/index.php
+++ b/htdocs/install/index.php
@@ -66,4 +66,3 @@ print '
'.$langs->trans("SomeTranslationAreUncomplete");
// If there's no error, we display the next step button
if ($err == 0) pFooter(0);
-
diff --git a/htdocs/install/lib/repair.lib.php b/htdocs/install/lib/repair.lib.php
index 1ee96855c94..bc2d746968c 100644
--- a/htdocs/install/lib/repair.lib.php
+++ b/htdocs/install/lib/repair.lib.php
@@ -142,4 +142,3 @@ function clean_data_ecm_directories()
return;
}
-
diff --git a/htdocs/install/phpinfo.php b/htdocs/install/phpinfo.php
index b3817dcbde2..895436c2069 100644
--- a/htdocs/install/phpinfo.php
+++ b/htdocs/install/phpinfo.php
@@ -24,4 +24,3 @@
include_once 'inc.php';
phpinfo();
-
diff --git a/htdocs/install/step5.php b/htdocs/install/step5.php
index c5c06dac3c0..5bdaa9ca017 100644
--- a/htdocs/install/step5.php
+++ b/htdocs/install/step5.php
@@ -469,4 +469,3 @@ pFooter(1, $setuplang);
// Return code if ran from command line
if ($ret) exit($ret);
-
diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php
index a2b2d27b9c9..5027e976a4b 100644
--- a/htdocs/install/upgrade2.php
+++ b/htdocs/install/upgrade2.php
@@ -4924,4 +4924,3 @@ On les corrige:
update llx_facture set paye=1, fk_statut=2 where close_code is null
and rowid in (...)
*/
-
diff --git a/htdocs/langs/en_US/accountancy.lang b/htdocs/langs/en_US/accountancy.lang
index a118151355c..67f30b27db8 100644
--- a/htdocs/langs/en_US/accountancy.lang
+++ b/htdocs/langs/en_US/accountancy.lang
@@ -156,6 +156,8 @@ ADHERENT_SUBSCRIPTION_ACCOUNTINGACCOUNT=Accounting account to register subscript
ACCOUNTING_PRODUCT_BUY_ACCOUNT=Accounting account by default for bought products (used if not defined in the product sheet)
ACCOUNTING_PRODUCT_SOLD_ACCOUNT=Accounting account by default for the sold products (used if not defined in the product sheet)
+ACCOUNTING_PRODUCT_SOLD_ACCOUNT_INTRA=Accounting account by default for the sold products in EEC (used if not defined in the product sheet)
+ACCOUNTING_PRODUCT_SOLD_ACCOUNT_EXPORT=Accounting account by default for the sold products export out of EEC (used if not defined in the product sheet)
ACCOUNTING_SERVICE_BUY_ACCOUNT=Accounting account by default for the bought services (used if not defined in the service sheet)
ACCOUNTING_SERVICE_SOLD_ACCOUNT=Accounting account by default for the sold services (used if not defined in the service sheet)
diff --git a/htdocs/loan/note.php b/htdocs/loan/note.php
index b0f8a8c9c0a..b0ec23316c7 100644
--- a/htdocs/loan/note.php
+++ b/htdocs/loan/note.php
@@ -132,4 +132,3 @@ if ($id > 0)
// End of page
llxFooter();
$db->close();
-
diff --git a/htdocs/margin/index.php b/htdocs/margin/index.php
index 04a2ba0d544..c223caf775b 100644
--- a/htdocs/margin/index.php
+++ b/htdocs/margin/index.php
@@ -33,4 +33,3 @@ if ($user->rights->produit->lire) {
}
header('Location: '.dol_buildpath('/margin/'.$page.'.php', 1));
-
diff --git a/htdocs/master.inc.php b/htdocs/master.inc.php
index 4c523e201ff..1ccb0b81402 100644
--- a/htdocs/master.inc.php
+++ b/htdocs/master.inc.php
@@ -245,4 +245,3 @@ $hookmanager=new HookManager($db);
if (! defined('MAIN_LABEL_MENTION_NPR') ) define('MAIN_LABEL_MENTION_NPR', 'NPR');
-
diff --git a/htdocs/modulebuilder/template/admin/setup.php b/htdocs/modulebuilder/template/admin/setup.php
index 8ba380a8315..e39d31c8c7a 100644
--- a/htdocs/modulebuilder/template/admin/setup.php
+++ b/htdocs/modulebuilder/template/admin/setup.php
@@ -144,4 +144,3 @@ dol_fiche_end();
llxFooter();
$db->close();
-
diff --git a/htdocs/paybox/lib/paybox.lib.php b/htdocs/paybox/lib/paybox.lib.php
index ce54036dd8a..7dca957e489 100644
--- a/htdocs/paybox/lib/paybox.lib.php
+++ b/htdocs/paybox/lib/paybox.lib.php
@@ -196,4 +196,3 @@ function print_paybox_redirect($PRICE, $CURRENCY, $EMAIL, $urlok, $urlko, $TAG)
return;
}
-
diff --git a/htdocs/paypal/lib/paypal.lib.php b/htdocs/paypal/lib/paypal.lib.php
index 6464bc2698f..d3942e560ed 100644
--- a/htdocs/paypal/lib/paypal.lib.php
+++ b/htdocs/paypal/lib/paypal.lib.php
@@ -739,4 +739,3 @@ function getApiError()
return $errors;
}
-
diff --git a/htdocs/paypal/lib/paypalfunctions.lib.php b/htdocs/paypal/lib/paypalfunctions.lib.php
index 1528d66e92d..2390d27e44e 100644
--- a/htdocs/paypal/lib/paypalfunctions.lib.php
+++ b/htdocs/paypal/lib/paypalfunctions.lib.php
@@ -75,4 +75,3 @@ $PROXY_PORT = $conf->global->MAIN_PROXY_PORT;
$PROXY_USER = $conf->global->MAIN_PROXY_USER;
$PROXY_PASS = $conf->global->MAIN_PROXY_PASS;
$USE_PROXY = empty($conf->global->MAIN_PROXY_USE)?false:true;
-
diff --git a/htdocs/product/admin/product.php b/htdocs/product/admin/product.php
index 8cd9deb1f41..1d95e2c9fa3 100644
--- a/htdocs/product/admin/product.php
+++ b/htdocs/product/admin/product.php
@@ -746,4 +746,3 @@ print '';
// End of page
llxFooter();
$db->close();
-
diff --git a/htdocs/product/ajax/products.php b/htdocs/product/ajax/products.php
index 6f7b74af9eb..ca2ce7baeb8 100644
--- a/htdocs/product/ajax/products.php
+++ b/htdocs/product/ajax/products.php
@@ -197,4 +197,3 @@ else
if ($outjson)
print json_encode($arrayresult);
}
-
diff --git a/htdocs/product/card.php b/htdocs/product/card.php
index 414eb7133f8..004f9fc3c20 100644
--- a/htdocs/product/card.php
+++ b/htdocs/product/card.php
@@ -1176,7 +1176,13 @@ else
// Accountancy_code_sell
print '