Merge remote-tracking branch 'origin/3.9' into develop
This commit is contained in:
commit
85cd0038f5
17
ChangeLog
17
ChangeLog
@ -712,6 +712,23 @@ Dolibarr better:
|
|||||||
- Function get_exdir require now 6 parameters. This is to prepare a future feature.
|
- Function get_exdir require now 6 parameters. This is to prepare a future feature.
|
||||||
|
|
||||||
|
|
||||||
|
***** ChangeLog for 3.7.4 compared to 3.7.3 *****
|
||||||
|
FIX: #3694
|
||||||
|
FIX: #4239
|
||||||
|
FIX: #4291 Correctly filter external calendar GETPOSTs
|
||||||
|
FIX: #4341
|
||||||
|
FIX: #4414 Supplier invoices use FAC_FORCE_DATE_VALIDATION client invoices property
|
||||||
|
FIX: #4440 Wrong price is filled by Product::fetch into multiprices arrays
|
||||||
|
FIX: add missing global def for ttc column
|
||||||
|
FIX: Contrat card don't consider user permissions to show active/unactive service button
|
||||||
|
FIX: CVE CVE-2015-8685
|
||||||
|
FIX: Email templates not compatible with Multicompany
|
||||||
|
Fix: for avoid division by 0
|
||||||
|
FIX: ISSUE #4506 : make working the PROPAL_CLONE_ON_CREATE_PAGE hidden constant
|
||||||
|
FIX: $outputlangs is not defined (dolibarr 3.7, 3.8, 3.9)
|
||||||
|
FIX: sql injection even when code is on several lines
|
||||||
|
FIX: The third dashboard don't consider user permissions
|
||||||
|
|
||||||
***** ChangeLog for 3.7.3 compared to 3.7.2 *****
|
***** ChangeLog for 3.7.3 compared to 3.7.2 *****
|
||||||
FIX: #3734 Do not show empty links of deleted source objects in stock movement list
|
FIX: #3734 Do not show empty links of deleted source objects in stock movement list
|
||||||
FIX: #3890 Expected transactions bank account page, shows negative numbers
|
FIX: #3890 Expected transactions bank account page, shows negative numbers
|
||||||
|
|||||||
@ -176,7 +176,7 @@ $tabsql[21]= "SELECT c.rowid as rowid, code, label, active FROM ".MAIN_DB_PREFIX
|
|||||||
$tabsql[22]= "SELECT rowid as rowid, code, label, active FROM ".MAIN_DB_PREFIX."c_input_reason";
|
$tabsql[22]= "SELECT rowid as rowid, code, label, active FROM ".MAIN_DB_PREFIX."c_input_reason";
|
||||||
$tabsql[23]= "SELECT t.rowid as rowid, t.taux, c.label as country, c.code as country_code, t.fk_pays as country_id, t.note, t.active, t.accountancy_code_sell, t.accountancy_code_buy FROM ".MAIN_DB_PREFIX."c_revenuestamp as t, ".MAIN_DB_PREFIX."c_country as c WHERE t.fk_pays=c.rowid";
|
$tabsql[23]= "SELECT t.rowid as rowid, t.taux, c.label as country, c.code as country_code, t.fk_pays as country_id, t.note, t.active, t.accountancy_code_sell, t.accountancy_code_buy FROM ".MAIN_DB_PREFIX."c_revenuestamp as t, ".MAIN_DB_PREFIX."c_country as c WHERE t.fk_pays=c.rowid";
|
||||||
$tabsql[24]= "SELECT rowid as rowid, code, label, active FROM ".MAIN_DB_PREFIX."c_type_resource";
|
$tabsql[24]= "SELECT rowid as rowid, code, label, active FROM ".MAIN_DB_PREFIX."c_type_resource";
|
||||||
$tabsql[25]= "SELECT rowid as rowid, label, type_template, private, position, topic, content, active FROM ".MAIN_DB_PREFIX."c_email_templates";
|
$tabsql[25]= "SELECT rowid as rowid, label, type_template, private, position, topic, content, active FROM ".MAIN_DB_PREFIX."c_email_templates WHERE entity IN (".getEntity('email_template',1).")";
|
||||||
$tabsql[26]= "SELECT rowid as rowid, code, label, short_label, active FROM ".MAIN_DB_PREFIX."c_units";
|
$tabsql[26]= "SELECT rowid as rowid, code, label, short_label, active FROM ".MAIN_DB_PREFIX."c_units";
|
||||||
$tabsql[27]= "SELECT id as rowid, code, libelle, active FROM ".MAIN_DB_PREFIX."c_stcomm";
|
$tabsql[27]= "SELECT id as rowid, code, libelle, active FROM ".MAIN_DB_PREFIX."c_stcomm";
|
||||||
$tabsql[28]= "SELECT h.rowid as rowid, h.code, h.label, h.affect, h.delay, h.newByMonth, h.fk_country as country_id, c.code as country_code, c.label as country, h.active FROM ".MAIN_DB_PREFIX."c_holiday_types as h LEFT JOIN ".MAIN_DB_PREFIX."c_country as c ON h.fk_country=c.rowid";
|
$tabsql[28]= "SELECT h.rowid as rowid, h.code, h.label, h.affect, h.delay, h.newByMonth, h.fk_country as country_id, c.code as country_code, c.label as country, h.active FROM ".MAIN_DB_PREFIX."c_holiday_types as h LEFT JOIN ".MAIN_DB_PREFIX."c_country as c ON h.fk_country=c.rowid";
|
||||||
@ -316,7 +316,7 @@ $tabfieldinsert[21]= "code,label";
|
|||||||
$tabfieldinsert[22]= "code,label";
|
$tabfieldinsert[22]= "code,label";
|
||||||
$tabfieldinsert[23]= "fk_pays,taux,accountancy_code_sell,accountancy_code_buy,note";
|
$tabfieldinsert[23]= "fk_pays,taux,accountancy_code_sell,accountancy_code_buy,note";
|
||||||
$tabfieldinsert[24]= "code,label";
|
$tabfieldinsert[24]= "code,label";
|
||||||
$tabfieldinsert[25]= "label,type_template,position,topic,content";
|
$tabfieldinsert[25]= "label,type_template,private,position,topic,content,entity";
|
||||||
$tabfieldinsert[26]= "code,label,short_label";
|
$tabfieldinsert[26]= "code,label,short_label";
|
||||||
$tabfieldinsert[27]= "code,libelle";
|
$tabfieldinsert[27]= "code,libelle";
|
||||||
$tabfieldinsert[28]= "code,label,affect,delay,newByMonth,fk_country";
|
$tabfieldinsert[28]= "code,label,affect,delay,newByMonth,fk_country";
|
||||||
|
|||||||
@ -174,9 +174,11 @@ for ($m = 1 ; $m < 13 ; $m++ ) {
|
|||||||
$parameters["mode"] = $modetax;
|
$parameters["mode"] = $modetax;
|
||||||
$parameters["year"] = $y;
|
$parameters["year"] = $y;
|
||||||
$parameters["month"] = $m;
|
$parameters["month"] = $m;
|
||||||
|
$parameters["type"] = 'localtax'.$localTaxType;
|
||||||
|
|
||||||
// Initialize technical object to manage hooks of expenses. Note that conf->hooks_modules contains array array
|
// Initialize technical object to manage hooks of expenses. Note that conf->hooks_modules contains array array
|
||||||
$hookmanager->initHooks(array('externalbalance'));
|
$hookmanager->initHooks(array('externalbalance'));
|
||||||
$reshook=$hookmanager->executeHooks('addStatisticLine',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
$reshook=$hookmanager->executeHooks('addVatLine',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
||||||
|
|
||||||
if (! is_array($coll_listbuy) && $coll_listbuy == -1) {
|
if (! is_array($coll_listbuy) && $coll_listbuy == -1) {
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
|
|||||||
@ -210,9 +210,8 @@ $total = 0;
|
|||||||
$i=0;
|
$i=0;
|
||||||
|
|
||||||
// Load arrays of datas
|
// Load arrays of datas
|
||||||
$x_coll= local_by_date($db, 0, 0, $date_start, $date_end, $modetax, 'sell', $local);
|
$x_coll = vat_by_date($db, 0, 0, $date_start, $date_end, $modetax, 'sell');
|
||||||
//$x_coll = vat_by_date($db, 0, 0, $date_start, $date_end, $modetax, 'sell');
|
$x_paye = vat_by_date($db, 0, 0, $date_start, $date_end, $modetax, 'buy');
|
||||||
$x_paye = local_by_date($db, 0, 0, $date_start, $date_end, $modetax, 'buy', $local);
|
|
||||||
|
|
||||||
|
|
||||||
echo '<table class="noborder" width="100%">';
|
echo '<table class="noborder" width="100%">';
|
||||||
@ -235,9 +234,9 @@ else
|
|||||||
{
|
{
|
||||||
//foreach($x_coll[$my_coll_rate][localtax1_list]){
|
//foreach($x_coll[$my_coll_rate][localtax1_list]){
|
||||||
$x_both[$my_coll_rate]['coll']['totalht'] = $x_coll[$my_coll_rate]['totalht'];
|
$x_both[$my_coll_rate]['coll']['totalht'] = $x_coll[$my_coll_rate]['totalht'];
|
||||||
$x_both[$my_coll_rate]['coll']['vat'] = $x_coll[$my_coll_rate]['vat'];
|
$x_both[$my_coll_rate]['coll']['localtax'.$local] = $x_coll[$my_coll_rate]['localtax'.$local];
|
||||||
$x_both[$my_coll_rate]['paye']['totalht'] = 0;
|
$x_both[$my_coll_rate]['paye']['totalht'] = 0;
|
||||||
$x_both[$my_coll_rate]['paye']['vat'] = 0;
|
$x_both[$my_coll_rate]['paye']['localtax'.$local] = 0;
|
||||||
$x_both[$my_coll_rate]['coll']['links'] = '';
|
$x_both[$my_coll_rate]['coll']['links'] = '';
|
||||||
$x_both[$my_coll_rate]['coll']['detail'] = array();
|
$x_both[$my_coll_rate]['coll']['detail'] = array();
|
||||||
foreach($x_coll[$my_coll_rate]['facid'] as $id=>$dummy)
|
foreach($x_coll[$my_coll_rate]['facid'] as $id=>$dummy)
|
||||||
|
|||||||
@ -161,9 +161,11 @@ for ($m = 1 ; $m < 13 ; $m++ )
|
|||||||
$parameters["mode"] = $modetax;
|
$parameters["mode"] = $modetax;
|
||||||
$parameters["year"] = $y;
|
$parameters["year"] = $y;
|
||||||
$parameters["month"] = $m;
|
$parameters["month"] = $m;
|
||||||
|
$parameters["type"] = 'vat';
|
||||||
|
|
||||||
// Initialize technical object to manage hooks of expenses. Note that conf->hooks_modules contains array array
|
// Initialize technical object to manage hooks of expenses. Note that conf->hooks_modules contains array array
|
||||||
$hookmanager->initHooks(array('externalbalance'));
|
$hookmanager->initHooks(array('externalbalance'));
|
||||||
$reshook=$hookmanager->executeHooks('addStatisticLine',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
$reshook=$hookmanager->executeHooks('addVatLine',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
||||||
|
|
||||||
if (! is_array($coll_listbuy) && $coll_listbuy == -1)
|
if (! is_array($coll_listbuy) && $coll_listbuy == -1)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1169,14 +1169,21 @@ class Project extends CommonObject
|
|||||||
//Generate next ref
|
//Generate next ref
|
||||||
$defaultref='';
|
$defaultref='';
|
||||||
$obj = empty($conf->global->PROJECT_ADDON)?'mod_project_simple':$conf->global->PROJECT_ADDON;
|
$obj = empty($conf->global->PROJECT_ADDON)?'mod_project_simple':$conf->global->PROJECT_ADDON;
|
||||||
if (! empty($conf->global->PROJECT_ADDON) && is_readable(DOL_DOCUMENT_ROOT ."/core/modules/project/".$conf->global->PROJECT_ADDON.".php"))
|
// Search template files
|
||||||
|
$file=''; $classname=''; $filefound=0;
|
||||||
|
$dirmodels=array_merge(array('/'),(array) $conf->modules_parts['models']);
|
||||||
|
foreach($dirmodels as $reldir)
|
||||||
{
|
{
|
||||||
|
$file=dol_buildpath($reldir."core/modules/project/".$obj.'.php',0);
|
||||||
require_once DOL_DOCUMENT_ROOT ."/core/modules/project/".$conf->global->PROJECT_ADDON.'.php';
|
if (file_exists($file))
|
||||||
$modProject = new $obj;
|
{
|
||||||
$defaultref = $modProject->getNextValue(is_object($clone_project->thirdparty)?$clone_project->thirdparty->id:0,$clone_project);
|
$filefound=1;
|
||||||
|
dol_include_once($reldir."core/modules/project/".$obj.'.php');
|
||||||
|
$modProject = new $obj;
|
||||||
|
$defaultref = $modProject->getNextValue(is_object($clone_project->thirdparty)?$clone_project->thirdparty:null, $clone_project);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_numeric($defaultref) && $defaultref <= 0) $defaultref='';
|
if (is_numeric($defaultref) && $defaultref <= 0) $defaultref='';
|
||||||
|
|
||||||
$clone_project->ref=$defaultref;
|
$clone_project->ref=$defaultref;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user