diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php
index 0c25f3a5bd8..b31a1972dd1 100644
--- a/htdocs/admin/dict.php
+++ b/htdocs/admin/dict.php
@@ -951,7 +951,6 @@ if (empty($id))
print $langs->trans("DictionaryDesc");
print " ".$langs->trans("OnlyActiveElementsAreShown")." \n";
}
-print " \n";
$param = '&id='.urlencode($id);
@@ -1016,6 +1015,13 @@ if ($id)
print '';
print '';
+ if ($id == 10 && empty($conf->global->FACTURE_TVAOPTION))
+ {
+ print info_admin($langs->trans("VATIsUsedIsOff", $langs->transnoentities("Setup"), $langs->transnoentities("CompanyFoundation")));
+ }
+
+ print " \n";
+
// Form to add a new line
if ($tabname[$id])
{
diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php
index 94dc94aee52..7082d6991a3 100644
--- a/htdocs/core/lib/company.lib.php
+++ b/htdocs/core/lib/company.lib.php
@@ -1583,7 +1583,7 @@ function show_actions_done($conf, $langs, $db, $filterobj, $objcon='', $noprint=
$out.='';
// Author of event
- $out.='
';
+ $out.='
';
//$userstatic->id=$histo[$key]['userid'];
//$userstatic->login=$histo[$key]['login'];
//$out.=$userstatic->getLoginUrl(1);
diff --git a/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php b/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php
index ba9a9490daa..7c3ca5bd2e6 100644
--- a/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php
+++ b/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php
@@ -38,9 +38,18 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/doc.lib.php';
*/
class doc_generic_order_odt extends ModelePDFCommandes
{
- public $emetteur; // Objet societe qui emet
+ /**
+ * Issuer
+ * @var Societe
+ */
+ public $emetteur;
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
+
+ /**
+ * Dolibarr version of the loaded document
+ * @public string
+ */
public $version = 'dolibarr';
diff --git a/htdocs/core/modules/commande/doc/pdf_einstein.modules.php b/htdocs/core/modules/commande/doc/pdf_einstein.modules.php
index 12b755fa220..9cbd5f31959 100644
--- a/htdocs/core/modules/commande/doc/pdf_einstein.modules.php
+++ b/htdocs/core/modules/commande/doc/pdf_einstein.modules.php
@@ -115,9 +115,9 @@ class pdf_einstein extends ModelePDFCommandes
public $marge_basse;
/**
- * Issuer
- * @var Societe
- */
+ * Issuer
+ * @var Societe
+ */
public $emetteur; // Objet societe qui emet
diff --git a/htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php b/htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php
index f8940dd95ef..eca3f13d57f 100644
--- a/htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php
+++ b/htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php
@@ -37,9 +37,18 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/doc.lib.php';
*/
class doc_generic_contract_odt extends ModelePDFContract
{
- public $emetteur; // Objet societe qui emet
+ /**
+ * Issuer
+ * @var Societe
+ */
+ public $emetteur;
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
+
+ /**
+ * Dolibarr version of the loaded document
+ * @public string
+ */
public $version = 'dolibarr';
diff --git a/htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php b/htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php
index f5e2b182a73..729663bf625 100644
--- a/htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php
+++ b/htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php
@@ -39,9 +39,18 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/doc.lib.php';
*/
class doc_generic_shipment_odt extends ModelePdfExpedition
{
- public $emetteur; // Objet societe qui emet
+ /**
+ * Issuer
+ * @var Societe
+ */
+ public $emetteur;
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
+
+ /**
+ * Dolibarr version of the loaded document
+ * @public string
+ */
public $version = 'dolibarr';
diff --git a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php
index ddd2df87b93..77824b75c8c 100644
--- a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php
+++ b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php
@@ -38,9 +38,18 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/doc.lib.php';
*/
class doc_generic_invoice_odt extends ModelePDFFactures
{
+ /**
+ * Issuer
+ * @var Societe
+ */
public $emetteur; // Objet societe qui emet
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
+
+ /**
+ * Dolibarr version of the loaded document
+ * @public string
+ */
public $version = 'dolibarr';
diff --git a/htdocs/core/modules/modModuleBuilder.class.php b/htdocs/core/modules/modModuleBuilder.class.php
index b27a03cc798..7f4132d7e44 100644
--- a/htdocs/core/modules/modModuleBuilder.class.php
+++ b/htdocs/core/modules/modModuleBuilder.class.php
@@ -60,7 +60,7 @@ class modModuleBuilder extends DolibarrModules
// Config pages
//-------------
- $this->config_page_url = array('setup@modulebuilder');
+ $this->config_page_url = array('setup.php@modulebuilder');
// Dependencies
//-------------
diff --git a/htdocs/core/modules/modSocialNetworks.class.php b/htdocs/core/modules/modSocialNetworks.class.php
index 063cce438fe..6aceeff6a70 100644
--- a/htdocs/core/modules/modSocialNetworks.class.php
+++ b/htdocs/core/modules/modSocialNetworks.class.php
@@ -48,7 +48,7 @@ class modSocialNetworks extends DolibarrModules
$this->family = "interface";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = preg_replace('/^mod/i','',get_class($this));
- $this->description = "Enable Social Networks fields into contacts";
+ $this->description = "Enable Social Networks fields into third parties and addresses (skype, twitter, facebook, ...)";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'dolibarr';
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
diff --git a/htdocs/core/modules/modSyslog.class.php b/htdocs/core/modules/modSyslog.class.php
index d401b2f1621..7166a787809 100644
--- a/htdocs/core/modules/modSyslog.class.php
+++ b/htdocs/core/modules/modSyslog.class.php
@@ -85,7 +85,20 @@ class modSyslog extends DolibarrModules
// Cronjobs
$this->cronjobs = array(
- 0=>array('label'=>'CompressSyslogs', 'jobtype'=>'method', 'class'=>'core/class/utils.class.php', 'objectname'=>'Utils', 'method'=>'compressSyslogs', 'parameters'=>'', 'comment'=>'Compress and archive log files. Warning: batch must be run with same account than your web server to avoid to get log files with different owner than required by web server. Another solution is to set web server Operating System group as the group of directory documents and set GROUP permission "rws" on this directory so log files will always have the group and permissions of the web server Operating System group', 'frequency'=>1, 'unitfrequency'=> 3600 * 24, 'priority'=>50, 'status'=>0, 'test'=>true),
+ 0 => array(
+ 'label' => 'CompressSyslogs',
+ 'jobtype' => 'method',
+ 'class' => 'core/class/utils.class.php',
+ 'objectname' => 'Utils',
+ 'method' => 'compressSyslogs',
+ 'parameters' => '',
+ 'comment' => 'Compress and archive log files. Warning: batch must be run with same account than your web server to avoid to get log files with different owner than required by web server. Another solution is to set web server Operating System group as the group of directory documents and set GROUP permission "rws" on this directory so log files will always have the group and permissions of the web server Operating System group',
+ 'frequency' => 1,
+ 'unitfrequency' => 3600 * 24,
+ 'priority' => 50,
+ 'status' => 0,
+ 'test' => true,
+ ),
);
}
}
diff --git a/htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php b/htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php
index ca50317fe81..b11e17a6623 100644
--- a/htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php
+++ b/htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php
@@ -36,9 +36,18 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/doc.lib.php';
*/
class doc_generic_product_odt extends ModelePDFProduct
{
- public $emetteur; // Objet societe qui emet
+ /**
+ * Issuer
+ * @var Societe
+ */
+ public $emetteur;
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
+
+ /**
+ * Dolibarr version of the loaded document
+ * @public string
+ */
public $version = 'dolibarr';
diff --git a/htdocs/core/modules/product/doc/pdf_standard.modules.php b/htdocs/core/modules/product/doc/pdf_standard.modules.php
index 16efd190836..b163e22c712 100644
--- a/htdocs/core/modules/product/doc/pdf_standard.modules.php
+++ b/htdocs/core/modules/product/doc/pdf_standard.modules.php
@@ -58,9 +58,9 @@ class pdf_standard extends ModelePDFProduct
/**
* @var array() Minimum version of PHP required by module.
- * e.g.: PHP ≥ 5.3 = array(5, 3)
+ * e.g.: PHP ≥ 5.4 = array(5, 4)
*/
- public $phpmin = array(5, 2);
+ public $phpmin = array(5, 4);
/**
* Dolibarr version of the loaded document
@@ -76,7 +76,11 @@ class pdf_standard extends ModelePDFProduct
public $marge_haute;
public $marge_basse;
- public $emetteur; // Objet societe qui emet
+ /**
+ * Issuer
+ * @var Societe
+ */
+ public $emetteur;
/**
diff --git a/htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php b/htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php
index 7846c68af7a..c881c6c5b46 100644
--- a/htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php
+++ b/htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php
@@ -54,9 +54,18 @@ if (! empty($conf->agenda->enabled)) require_once DOL_DOCUMENT_ROOT.'/comm/
*/
class doc_generic_task_odt extends ModelePDFTask
{
+ /**
+ * Issuer
+ * @var Societe
+ */
public $emetteur; // Objet societe qui emet
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
+
+ /**
+ * Dolibarr version of the loaded document
+ * @public string
+ */
public $version = 'dolibarr';
diff --git a/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php b/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php
index 7483c2a9623..469d154ddc5 100644
--- a/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php
+++ b/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php
@@ -37,9 +37,18 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/doc.lib.php';
*/
class doc_generic_proposal_odt extends ModelePDFPropales
{
+ /**
+ * Issuer
+ * @var Societe
+ */
public $emetteur; // Objet societe qui emet
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
+
+ /**
+ * Dolibarr version of the loaded document
+ * @public string
+ */
public $version = 'dolibarr';
diff --git a/htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php b/htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php
index d5e0f1ba984..4f9de22f975 100644
--- a/htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php
+++ b/htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php
@@ -36,9 +36,18 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/doc.lib.php';
*/
class doc_generic_stock_odt extends ModelePDFStock
{
- public $emetteur; // Objet societe qui emet
+ /**
+ * Issuer
+ * @var Societe
+ */
+ public $emetteur;
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
+
+ /**
+ * Dolibarr version of the loaded document
+ * @public string
+ */
public $version = 'dolibarr';
diff --git a/htdocs/core/modules/stock/doc/pdf_standard.modules.php b/htdocs/core/modules/stock/doc/pdf_standard.modules.php
index 66799612d8f..957a4fc2e32 100644
--- a/htdocs/core/modules/stock/doc/pdf_standard.modules.php
+++ b/htdocs/core/modules/stock/doc/pdf_standard.modules.php
@@ -58,9 +58,9 @@ class pdf_standard extends ModelePDFStock
/**
* @var array() Minimum version of PHP required by module.
- * e.g.: PHP ≥ 5.3 = array(5, 3)
+ * e.g.: PHP ≥ 5.4 = array(5, 4)
*/
- public $phpmin = array(5, 2);
+ public $phpmin = array(5, 4);
/**
* Dolibarr version of the loaded document
@@ -76,7 +76,11 @@ class pdf_standard extends ModelePDFStock
public $marge_haute;
public $marge_basse;
- public $emetteur; // Objet societe qui emet
+ /**
+ * Issuer
+ * @var Societe
+ */
+ public $emetteur;
/**
diff --git a/htdocs/core/modules/stock/doc/pdf_stdmovement.modules.php b/htdocs/core/modules/stock/doc/pdf_stdmovement.modules.php
index a4795926cc4..0c9c55b5e7f 100644
--- a/htdocs/core/modules/stock/doc/pdf_stdmovement.modules.php
+++ b/htdocs/core/modules/stock/doc/pdf_stdmovement.modules.php
@@ -59,9 +59,9 @@ class pdf_stdmovement extends ModelePDFMovement
/**
* @var array() Minimum version of PHP required by module.
- * e.g.: PHP ≥ 5.3 = array(5, 3)
+ * e.g.: PHP ≥ 5.4 = array(5, 4)
*/
- public $phpmin = array(5, 2);
+ public $phpmin = array(5, 4);
/**
* Dolibarr version of the loaded document
@@ -77,7 +77,11 @@ class pdf_stdmovement extends ModelePDFMovement
public $marge_haute;
public $marge_basse;
- public $emetteur; // Objet societe qui emet
+ /**
+ * Issuer
+ * @var Societe
+ */
+ public $emetteur;
/**
diff --git a/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php b/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php
index 5a318a3a6b3..a259fbbe7ee 100644
--- a/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php
+++ b/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php
@@ -37,9 +37,18 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/doc.lib.php';
*/
class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
{
- public $emetteur; // Objet societe qui emet
+ /**
+ * Issuer
+ * @var Societe
+ */
+ public $emetteur;
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
+
+ /**
+ * Dolibarr version of the loaded document
+ * @public string
+ */
public $version = 'dolibarr';
diff --git a/htdocs/core/modules/ticket/mod_ticket_simple.php b/htdocs/core/modules/ticket/mod_ticket_simple.php
index aa8b4c4e3f5..a2201208534 100644
--- a/htdocs/core/modules/ticket/mod_ticket_simple.php
+++ b/htdocs/core/modules/ticket/mod_ticket_simple.php
@@ -30,7 +30,12 @@ require_once DOL_DOCUMENT_ROOT.'/core/modules/ticket/modules_ticket.php';
*/
class mod_ticket_simple extends ModeleNumRefTicket
{
- public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr'
+ /**
+ * Dolibarr version of the loaded document
+ * @public string
+ */
+ public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr'
+
public $prefix = 'TS';
public $error = '';
public $nom = "Simple";
diff --git a/htdocs/core/modules/ticket/mod_ticket_universal.php b/htdocs/core/modules/ticket/mod_ticket_universal.php
index c3dad0aa482..ee201740eed 100644
--- a/htdocs/core/modules/ticket/mod_ticket_universal.php
+++ b/htdocs/core/modules/ticket/mod_ticket_universal.php
@@ -29,7 +29,12 @@ require_once DOL_DOCUMENT_ROOT.'/core/modules/ticket/modules_ticket.php';
*/
class mod_ticket_universal extends ModeleNumRefTicket
{
- public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr'
+ /**
+ * Dolibarr version of the loaded document
+ * @public string
+ */
+ public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr'
+
public $error = '';
public $nom = 'Universal';
public $name = 'Universal';
diff --git a/htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php b/htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php
index e3d44050149..41fb48ecec5 100644
--- a/htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php
+++ b/htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php
@@ -35,9 +35,18 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/doc.lib.php';
*/
class doc_generic_user_odt extends ModelePDFUser
{
- public $emetteur; // Objet societe qui emet
+ /**
+ * Issuer
+ * @var Societe
+ */
+ public $emetteur;
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
+
+ /**
+ * Dolibarr version of the loaded document
+ * @public string
+ */
public $version = 'dolibarr';
diff --git a/htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php b/htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php
index 76cc423eb32..571a12aaf7b 100644
--- a/htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php
+++ b/htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php
@@ -37,9 +37,18 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/doc.lib.php';
*/
class doc_generic_usergroup_odt extends ModelePDFUserGroup
{
- public $emetteur; // Objet societe qui emet
+ /**
+ * Issuer
+ * @var Societe
+ */
+ public $emetteur;
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
+
+ /**
+ * Dolibarr version of the loaded document
+ * @public string
+ */
public $version = 'dolibarr';
diff --git a/htdocs/expedition/shipment.php b/htdocs/expedition/shipment.php
index 24ccda21579..33e1dd97f7b 100644
--- a/htdocs/expedition/shipment.php
+++ b/htdocs/expedition/shipment.php
@@ -4,6 +4,7 @@
* Copyright (C) 2005-2012 Regis Houssin
* Copyright (C) 2012-2015 Juanjo Menent
* Copyright (C) 2018 Frédéric France
+ * Copyright (C) 2018 Philippe Grand
*
* 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
@@ -921,8 +922,8 @@ if ($id > 0 || ! empty($ref))
}
else
{
- /* Commande non trouvee */
- print "Commande inexistante";
+ /* Order not found */
+ setEventMessages($langs->trans("NonExistentOrder"), null, 'errors');
}
}
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index 01d73f6c04b..89af1ebbbc1 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -1806,6 +1806,7 @@ YouCanDeleteFileOnServerWith=You can delete this file on server with Command Lin
ChartLoaded=Chart of account loaded
SocialNetworkSetup=Setup of module Social Networks
EnableFeatureFor=Enable features for %s
+VATIsUsedIsOff=Note: The option to use sales Tax or VAT has been set to Off in the menu %s - %s, so Sale tax or Vat used will always be 0 for sales.
##### Resource ####
ResourceSetup=Configuration du module Resource
UseSearchToSelectResource=Use a search form to choose a resource (rather than a drop-down list).
diff --git a/htdocs/langs/en_US/deliveries.lang b/htdocs/langs/en_US/deliveries.lang
index 7e39f48ea55..1c9cb791900 100644
--- a/htdocs/langs/en_US/deliveries.lang
+++ b/htdocs/langs/en_US/deliveries.lang
@@ -28,3 +28,4 @@ ErrorStockIsNotEnough=There's not enough stock
Shippable=Shippable
NonShippable=Not Shippable
ShowReceiving=Show delivery receipt
+NonExistentOrder=Non-existent order
diff --git a/htdocs/modulebuilder/admin/setup.php b/htdocs/modulebuilder/admin/setup.php
index 26e64785524..6ca9bfe2a1e 100644
--- a/htdocs/modulebuilder/admin/setup.php
+++ b/htdocs/modulebuilder/admin/setup.php
@@ -73,7 +73,7 @@ if (preg_match('/del_(.*)/', $action, $reg)) {
}
}
-
+
/*
* View
*/
@@ -87,73 +87,78 @@ if (GETPOST('withtab', 'alpha')) {
$linkback = '' . $langs->trans("BackToModuleList") . '';
}
+print '';
// End of page
llxFooter();
diff --git a/htdocs/stripe/charge.php b/htdocs/stripe/charge.php
index d39cac84eca..0f26bf0e11a 100644
--- a/htdocs/stripe/charge.php
+++ b/htdocs/stripe/charge.php
@@ -1,5 +1,5 @@
+/* Copyright (C) 2018 Thibault FOUCART
*
* 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
@@ -62,13 +62,13 @@ llxHeader('', $langs->trans("StripeChargeList"));
if (! empty($conf->stripe->enabled) && (empty($conf->global->STRIPE_LIVE) || GETPOST('forcesandbox','alpha')))
{
$service = 'StripeTest';
- $servicestatus = '0';
+ $servicestatus = '0';
dol_htmloutput_mesg($langs->trans('YouAreCurrentlyInSandboxMode', 'Stripe'), '', 'warning');
}
else
{
- $service = 'StripeLive';
- $servicestatus = '1';
+ $service = 'StripeLive';
+ $servicestatus = '1';
}
$stripeacc = $stripe->getStripeAccount($service);
@@ -150,7 +150,7 @@ if (!$rowid)
print '