Merge branch 'develop' into feature/replace_some_icons_by_fontawesome

This commit is contained in:
Laurent Destailleur 2018-10-30 12:28:39 +01:00 committed by GitHub
commit c54cc0a10d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
421 changed files with 1391 additions and 1376 deletions

View File

@ -3,42 +3,27 @@ File added into doxygen generated documentation
-->
<!-- Google analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-9049390-16', 'auto');
ga('send', 'pageview');
</script>
<!-- End google analytics -->
<hr class="footer" />
<address class="footer"><small>Generated on $datetime
for <a href="https://www.dolibarr.org">$projectname</a> by Doxygen $doxygenversion </small></address>
<address class="footer"><small>Generated on $datetime for <a href="https://www.dolibarr.org">$projectname</a> by Doxygen $doxygenversion </small></address>
<!-- Google AdSense -->
<div class="center">
<script type="text/javascript"><!--
google_ad_client = "pub-1071905880519467";
/* PUBBANDEAUDOLIBARR */
google_ad_slot = "1421205532";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<!-- End google adsense -->
<br>
</div>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-9049390-16"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-9049390-16');
</script>
<!-- Twitter ad collector -->
<script src="//platform.twitter.com/oct.js" type="text/javascript"></script>
<script type="text/javascript">twttr.conversion.trackPid('ntm4n', { tw_sale_amount: 0, tw_order_quantity: 0 });</script>

View File

@ -181,6 +181,7 @@ done >>%{name}.lang
%_datadir/dolibarr/htdocs/dav
%_datadir/dolibarr/htdocs/don
%_datadir/dolibarr/htdocs/ecm
%_datadir/dolibarr/htdocs/emailcollector
%_datadir/dolibarr/htdocs/expedition
%_datadir/dolibarr/htdocs/expensereport
%_datadir/dolibarr/htdocs/exports

View File

@ -261,6 +261,7 @@ done >>%{name}.lang
%_datadir/dolibarr/htdocs/dav
%_datadir/dolibarr/htdocs/don
%_datadir/dolibarr/htdocs/ecm
%_datadir/dolibarr/htdocs/emailcollector
%_datadir/dolibarr/htdocs/expedition
%_datadir/dolibarr/htdocs/expensereport
%_datadir/dolibarr/htdocs/exports

View File

@ -178,6 +178,7 @@ done >>%{name}.lang
%_datadir/dolibarr/htdocs/dav
%_datadir/dolibarr/htdocs/don
%_datadir/dolibarr/htdocs/ecm
%_datadir/dolibarr/htdocs/emailcollector
%_datadir/dolibarr/htdocs/expedition
%_datadir/dolibarr/htdocs/expensereport
%_datadir/dolibarr/htdocs/exports

View File

@ -189,6 +189,7 @@ done >>%{name}.lang
%_datadir/dolibarr/htdocs/dav
%_datadir/dolibarr/htdocs/don
%_datadir/dolibarr/htdocs/ecm
%_datadir/dolibarr/htdocs/emailcollector
%_datadir/dolibarr/htdocs/expedition
%_datadir/dolibarr/htdocs/expensereport
%_datadir/dolibarr/htdocs/exports

View File

@ -185,7 +185,4 @@ while ($i < GEN_NUMBER_FACTURE && $result >= 0)
{
dol_print_error($db,$object->error);
}
}

View File

@ -218,6 +218,4 @@ while ($i < GEN_NUMBER_PROPAL && $result >= 0)
{
dol_print_error($db,$object->error);
}
}

View File

@ -173,6 +173,7 @@
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines">
<severity>0</severity>
</rule>
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose" />
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration" />

View File

@ -247,7 +247,6 @@ if (GETPOST('actionadd','alpha') || GETPOST('actionmodify','alpha'))
{
$obj = $db->fetch_object($result);
$newid=($obj->newid + 1);
} else {
dol_print_error($db);
}

View File

@ -202,7 +202,6 @@ if (GETPOST('actionadd','alpha') || GETPOST('actionmodify','alpha'))
{
$obj = $db->fetch_object($result);
$newid=($obj->newid + 1);
} else {
dol_print_error($db);
}

View File

@ -2,6 +2,7 @@
/* Copyright (C) 2013-2014 Olivier Geffroy <jeff@jeffinfo.com>
* Copyright (C) 2013-2017 Alexandre Spangaro <aspangaro@zendsi.com>
* Copyright (C) 2014 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
*
* 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
@ -71,10 +72,10 @@ if ($_POST["action"] == 'import') {
$accounting = new AccountingAccount($db);
$monLabel = GETPOST('label' . $maLigneCochee);
$monParentAccount = GETPOST('AccountParent' . $maLigneCochee);
$monType = GETPOST('pcgType' . $maLigneCochee);
$monSubType = GETPOST('pcgSubType' . $maLigneCochee);
$monLabel = (string) GETPOST('label' . $maLigneCochee);
$monParentAccount = (string) GETPOST('AccountParent' . $maLigneCochee);
$monType = (string) GETPOST('pcgType' . $maLigneCochee);
$monSubType = (string) GETPOST('pcgSubType' . $maLigneCochee);
$accounting->fk_pcg_version = $obj->pcg_version;
$accounting->account_number = $maLigneCochee;

View File

@ -202,7 +202,6 @@ if (GETPOST('actionadd', 'alpha') || GETPOST('actionmodify', 'alpha'))
{
$obj = $db->fetch_object($result);
$newid=($obj->newid + 1);
} else {
dol_print_error($db);
}

View File

@ -173,7 +173,6 @@ if ($action == 'update') {
$cpt++;
}
}
if ($ko) setEventMessages($langs->trans("XLineFailedToBeBinded", $ko), null, 'errors');

View File

@ -315,7 +315,6 @@ if ($action != 'export_csv')
print "</table>";
print '</form>';
}
// End of page

View File

@ -760,7 +760,6 @@ if ($num > 0)
else print '<td></td>';
}
print '</tr>';
}
}

View File

@ -1841,7 +1841,6 @@ class BookKeeping extends CommonObject
}
return $obj->label;
} else {
$this->error = "Error " . $this->db->lasterror();
dol_syslog(__METHOD__ . " " . $this->error, LOG_ERR);

View File

@ -135,7 +135,6 @@ if (is_array($changeaccount) && count($changeaccount) > 0) {
$account_parent = ''; // Protection to avoid to mass apply it a second time
}
}

View File

@ -500,7 +500,6 @@ if ($action == 'writebookkeeping') {
break; // Break in the foreach
}
}
}
$tabpay = $tabfac;

View File

@ -789,7 +789,6 @@ if (empty($reshook))
$mode='emailfrommember';
$trackid='mem'.$object->id;
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';
}
@ -1320,7 +1319,6 @@ else
print '</div>';
print '</form>';
}
if ($id > 0 && $action != 'edit')
@ -1858,7 +1856,6 @@ else
print '<div class="inline-block divButAction"><a class="butAction" href="card.php?rowid='.$object->id.'&action=add_spip">'.$langs->trans("AddIntoSpip")."</a></div>\n";
}
}
}
}
print '</div>';

View File

@ -208,7 +208,6 @@ if ((! empty($foruserid) || ! empty($foruserlogin) || ! empty($mode)) && ! $mesg
$mesg=$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("DescADHERENT_CARD_TYPE"));
}
if (! $mesg) $result=members_card_pdf_create($db, $arrayofmembers, $model, $outputlangs);
}
elseif ($mode == 'label')
{

View File

@ -2509,7 +2509,6 @@ class Adherent extends CommonObject
}
$this->db->free($result);
}
else
{
@ -2738,7 +2737,6 @@ class Adherent extends CommonObject
$nbok++;
// TODO Add event email sent for member
}
}
else

View File

@ -416,7 +416,6 @@ class Subscription extends CommonObject
}
$this->db->free($result);
}
else
{

View File

@ -116,7 +116,6 @@ if ($id)
dol_fiche_end();
}
// End of page

View File

@ -167,6 +167,7 @@ print '<br><br>';
$data = $stats->getAllByYear();
print '<div class="div-table-responsive-no-min">';
print '<table class="noborder">';
print '<tr class="liste_titre" height="24">';
print '<td align="center">'.$langs->trans("Year").'</td>';
@ -207,6 +208,7 @@ foreach ($data as $val)
}
print '</table>';
print '</div>';
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';

View File

@ -694,7 +694,6 @@ if ($rowid > 0)
{
dol_print_error($db);
}
}
/* ************************************************************************** */

View File

@ -75,7 +75,6 @@ else if ($action == 'update')
else if ($action == 'updateengine')
{
// TODO Update engines.
}
if ($action && $action != 'setcoder' && $action != 'setModuleOptions')

View File

@ -217,7 +217,6 @@ foreach ($dirmodels as $reldir)
print '</td>';
print "</tr>\n";
}
}
}

View File

@ -75,6 +75,8 @@ if ( ($action == 'update' && ! GETPOST("cancel",'alpha'))
activateModulesRequiredByCountry($mysoc->country_code);
}
$db->begin();
dolibarr_set_const($db, "MAIN_INFO_SOCIETE_NOM", GETPOST("nom",'nohtml'),'chaine',0,'',$conf->entity);
dolibarr_set_const($db, "MAIN_INFO_SOCIETE_ADDRESS", GETPOST("MAIN_INFO_SOCIETE_ADDRESS",'nohtml'),'chaine',0,'',$conf->entity);
dolibarr_set_const($db, "MAIN_INFO_SOCIETE_TOWN", GETPOST("MAIN_INFO_SOCIETE_TOWN",'nohtml'),'chaine',0,'',$conf->entity);
@ -173,11 +175,24 @@ if ( ($action == 'update' && ! GETPOST("cancel",'alpha'))
dolibarr_set_const($db, "SOCIETE_FISCAL_MONTH_START", GETPOST("SOCIETE_FISCAL_MONTH_START",'int'),'chaine',0,'',$conf->entity);
dolibarr_set_const($db, "FACTURE_TVAOPTION", GETPOST("optiontva",'aZ09'),'chaine',0,'',$conf->entity);
// Sale tax options
$usevat = GETPOST("optiontva",'aZ09');
$uselocaltax1 = GETPOST("optionlocaltax1",'aZ09');
$uselocaltax2 = GETPOST("optionlocaltax2",'aZ09');
if ($uselocaltax1 == 'localtax1on' && ! $usevat)
{
setEventMessages($langs->trans("IfYouUseASecondTaxYouMustSetYouUseTheMainTax"), null, 'errors');
$error++;
}
if ($uselocaltax2 == 'localtax2on' && ! $usevat)
{
setEventMessages($langs->trans("IfYouUseAThirdTaxYouMustSetYouUseTheMainTax"), null, 'errors');
$error++;
}
// Local taxes
dolibarr_set_const($db, "FACTURE_LOCAL_TAX1_OPTION", GETPOST("optionlocaltax1",'aZ09'),'chaine',0,'',$conf->entity);
dolibarr_set_const($db, "FACTURE_LOCAL_TAX2_OPTION", GETPOST("optionlocaltax2",'aZ09'),'chaine',0,'',$conf->entity);
dolibarr_set_const($db, "FACTURE_TVAOPTION", $usevat,'chaine',0,'',$conf->entity);
dolibarr_set_const($db, "FACTURE_LOCAL_TAX1_OPTION", $uselocaltax1,'chaine',0,'',$conf->entity);
dolibarr_set_const($db, "FACTURE_LOCAL_TAX2_OPTION", $uselocaltax2,'chaine',0,'',$conf->entity);
if($_POST["optionlocaltax1"]=="localtax1on")
{
@ -204,6 +219,15 @@ if ( ($action == 'update' && ! GETPOST("cancel",'alpha'))
dolibarr_set_const($db,"MAIN_INFO_LOCALTAX_CALC2", GETPOST("clt2",'aZ09'),'chaine',0,'',$conf->entity);
}
if (! $error)
{
$db->commit();
}
else
{
$db->rollback();
}
if ($action != 'updateedit' && ! $error)
{
header("Location: ".$_SERVER["PHP_SELF"]);
@ -586,7 +610,7 @@ if ($action == 'edit' || $action == 'updateedit')
print '<td colspan="2">';
print "<table>";
print "<tr><td><label for=\"use_vat\">".$langs->trans("VATIsUsedDesc")."</label></td></tr>";
print "<tr><td><i>".$langs->trans("Example").': '.$langs->trans("VATIsUsedExampleFR")."</i></td></tr>\n";
if ($mysoc->country_code == 'FR') print "<tr><td><i>".$langs->trans("Example").': '.$langs->trans("VATIsUsedExampleFR")."</i></td></tr>\n";
print "</table>";
print "</td></tr>\n";
@ -595,7 +619,7 @@ if ($action == 'edit' || $action == 'updateedit')
print '<td colspan="2">';
print "<table>";
print "<tr><td><label for=\"no_vat\">".$langs->trans("VATIsNotUsedDesc")."</label></td></tr>";
print "<tr><td><i>".$langs->trans("Example").': '.$langs->trans("VATIsNotUsedExampleFR")."</i></td></tr>\n";
if ($mysoc->country_code == 'FR') print "<tr><td><i>".$langs->trans("Example").': '.$langs->trans("VATIsNotUsedExampleFR")."</i></td></tr>\n";
print "</table>";
print "</td></tr>\n";
@ -1024,7 +1048,7 @@ else
print '<td colspan="2">';
print "<table>";
print "<tr><td><label for=\"use_vat\">".$langs->trans("VATIsUsedDesc")."</label></td></tr>";
print "<tr><td><i>".$langs->trans("Example").': '.$langs->trans("VATIsUsedExampleFR")."</i></td></tr>\n";
if ($mysoc->country_code == 'FR') print "<tr><td><i>".$langs->trans("Example").': '.$langs->trans("VATIsUsedExampleFR")."</i></td></tr>\n";
print "</table>";
print "</td></tr>\n";
@ -1034,7 +1058,7 @@ else
print '<td colspan="2">';
print "<table>";
print "<tr><td><label=\"no_vat\">".$langs->trans("VATIsNotUsedDesc")."</label></td></tr>";
print "<tr><td><i>".$langs->trans("Example").': '.$langs->trans("VATIsNotUsedExampleFR")."</i></td></tr>\n";
if ($mysoc->country_code == 'FR') print "<tr><td><i>".$langs->trans("Example").': '.$langs->trans("VATIsNotUsedExampleFR")."</i></td></tr>\n";
print "</table>";
print "</td></tr>\n";

View File

@ -155,7 +155,6 @@ if ($action == 'update')
for($i=0; $i<4; $i++) {
if(isset($_POST['MAIN_METEO'.$plus.'_LEVEL'.$i])) dolibarr_set_const($db, 'MAIN_METEO'.$plus.'_LEVEL'.$i, GETPOST('MAIN_METEO'.$plus.'_LEVEL'.$i, 'int'),'chaine',0,'',$conf->entity);
}
}
@ -254,7 +253,6 @@ else
print '</td></tr>';
print '</table>';
}
print '<br>';
@ -272,7 +270,6 @@ if($action == 'edit') {
print '<input type="hidden" id="MAIN_USE_METEO_WITH_PERCENTAGE" name="MAIN_USE_METEO_WITH_PERCENTAGE" value="'.$conf->global->MAIN_USE_METEO_WITH_PERCENTAGE.'" />';
print '<br><br>';
} else {
if(empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE)) print $langs->trans('MeteoStdModEnabled');
else print $langs->trans('MeteoPercentageModEnabled');
@ -362,7 +359,6 @@ if ($action == 'edit') {
</script>
<?php
} else {
if(!empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE)) {
@ -385,7 +381,6 @@ if ($action == 'edit') {
print '&gt; '.$conf->global->MAIN_METEO_PERCENTAGE_LEVEL3.'&nbsp;%</td>';
print '</div>';
print '</div>';
} else {
print '<div>';
@ -406,7 +401,6 @@ if ($action == 'edit') {
print '&gt; '.$level3;
print '</div>';
print '</div>';
}
}
@ -416,13 +410,11 @@ if($action == 'edit') {
print '<br><div class="center"><input type="submit" class="button" value="'.$langs->trans("Save").'"></div>';
print '<br></form>';
} else {
// Boutons d'action
print '<br><div class="tabsAction">';
print '<a class="butAction" href="delais.php?action=edit">'.$langs->trans("Modify").'</a></div>';
}
// End of page

View File

@ -705,7 +705,6 @@ if (GETPOST('actionadd') || GETPOST('actionmodify'))
{
$obj = $db->fetch_object($result);
$newid=($obj->newid + 1);
} else {
dol_print_error($db);
}

View File

@ -177,7 +177,6 @@ class PrestaShopWebservice
{
$this->printDebug('HTTP REQUEST HEADER', curl_getinfo($session, CURLINFO_HEADER_OUT));
$this->printDebug('HTTP RESPONSE HEADER', $header);
}
$status_code = curl_getinfo($session, CURLINFO_HTTP_CODE);
if ($status_code === 0)

View File

@ -261,8 +261,6 @@ if ($action == 'setDefaultPDFModulesByType')
setEventMessages($langs->trans("Error"), null, 'errors');
}
}
}
@ -436,7 +434,6 @@ foreach ($dirmodels as $reldir)
print '</td>';
print "</tr>\n";
}
}
}

View File

@ -2,6 +2,7 @@
/* Copyright (C) 2011-2013 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2011-2018 Philippe Grand <philippe.grand@atoo-net.com>
* Copyright (C) 2018 Charlene Benke <charlie@patas-monkey.com>
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
*
* 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
@ -297,8 +298,13 @@ foreach ($dirmodels as $reldir)
print '</table><br>';
if ($conf->global->MAIN_FEATURES_LEVEL >= 2)
{
/*
* Documents models for Contracts
* Documents models for Holidays
*/
print load_fiche_titre($langs->trans("TemplatePDFHolidays"),'','');
@ -455,9 +461,9 @@ foreach ($dirmodels as $reldir)
print '</table>';
print "<br>";
/*
* Other options
*
*/
print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
@ -508,6 +514,8 @@ print '<input type="submit" class="button" value="'.$langs->trans("Save").'">';
print '</div>';
print '</form>';
}
dol_fiche_end();

View File

@ -336,7 +336,6 @@ if (function_exists("ldap_connect"))
print $langs->trans("Error").' '.$ldap->error;
print '<br>';
}
}
}

View File

@ -439,7 +439,6 @@ if (function_exists("ldap_connect"))
print $langs->trans("ErrorLDAPMakeManualTest",$conf->ldap->dir_temp).'<br>';
}
}
}
// End of page

View File

@ -443,7 +443,6 @@ if (function_exists("ldap_connect"))
}
$liste[$key] = $label;
}
}
else
{

View File

@ -253,7 +253,6 @@ else
print " x ".$langs->trans("Quantity").": ".$qty;
print " - ".$langs->trans("VAT").": ".$vat.'%';
print " &nbsp; -> &nbsp; ".$langs->trans("TotalPriceAfterRounding").": ".$tmparray[0].' / '.$tmparray[1].' / '.$tmparray[2]."<br>\n";
}
// Important: can debug rounding, to simulate the rounded total

View File

@ -433,9 +433,7 @@ if ($action == 'reset_confirm' && $user->admin)
$form = new Form($db);
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?value='.$value.'&mode='.$mode.$param, $langs->trans('ConfirmUnactivation'), $langs->trans(GETPOST('confirm_message_code')), 'reset', '', 'no', 1);
}
}
print $formconfirm;
@ -711,16 +709,13 @@ if ($mode == 'common')
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?id='.$objMod->numero.'&amp;module_position='.$module_position.'&amp;action=reset_confirm&amp;confirm_message_code='.$objMod->warnings_unactivation[$mysoc->country_code].'&amp;value=' . $modName . '&amp;mode=' . $mode . $param . '">';
print img_picto($langs->trans("Activated"),'switch_on');
print '</a>';
}
else {
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?id='.$objMod->numero.'&amp;module_position='.$module_position.'&amp;action=reset&amp;value=' . $modName . '&amp;mode=' . $mode .'&amp;confirm=yes' . $param . '">';
print img_picto($langs->trans("Activated"),'switch_on');
print '</a>';
}
}
print '</td>'."\n";
@ -775,7 +770,6 @@ if ($mode == 'common')
{
print '<td class="tdsetuppicto right valignmiddle" width="60px">'.img_picto($langs->trans("NothingToSetup"),"setup",'class="opacitytransp" style="padding-right: 6px"').'</td>';
}
}
else // Module not yet activated
{

View File

@ -139,7 +139,6 @@ foreach ($list as $key)
print '<td><label for="'.$key[2].'">'.$langs->trans($key[2]).'</label></td>';
print '<td><input type="password" size="100" id="'.$key[2].'" name="'.$key[2].'" value="'.$conf->global->{$key[2]}.'">';
print '</td></tr>';
}
print '</table>'."\n";

View File

@ -327,7 +327,6 @@ if ($mode == 'setup' && $user->admin)
print '</form>';
}
}
if ($mode == 'test' && $user->admin)
@ -352,11 +351,9 @@ if ($mode == 'test' && $user->admin)
else {
print $langs->trans('PleaseConfigureDriverfromList');
}
}
print '</table>';
}
if ($mode == 'userconf' && $user->admin)

View File

@ -83,7 +83,6 @@ if ($action == 'setparams')
{
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
}
}
@ -217,7 +216,6 @@ foreach ($dirmodels as $reldir)
print '</td>';
print "</tr>\n";
}
}
}

View File

@ -517,7 +517,6 @@ else // Show
$text.= yn($conf->global->MAIN_PDF_MAIN_HIDE_THIRD_TAX,1);
$text.= '</td></tr>';
}
}
// Sales TAX / VAT information

View File

@ -438,7 +438,6 @@ if ($mode == 'template' && $user->admin)
print '</table>';
dol_fiche_end();
}
// to remove after test

View File

@ -301,7 +301,6 @@ foreach ($dirmodels as $reldir)
print '</td>';
print "</tr>\n";
}
}
}

View File

@ -132,9 +132,7 @@ if ($action == 'set')
{
$db->rollback();
setEventMessages($error, $errors, 'errors');
}
}
// Set level

View File

@ -168,7 +168,6 @@ function create_script_table($list)
default:
$sortby = "file";
($order == "asc" ? uasort($list, 'compare') : uasort($list, 'revcompare'));
}
foreach($list as $script) {

View File

@ -170,7 +170,6 @@ if ($savehandler == 'files')
print '<tr '.$bc[false].'><td colspan="6">'.$langs->trans("NoSessionFound",$savepath,$openbasedir).'</td></tr>';
}
print "</table>";
}
else
{

View File

@ -384,7 +384,6 @@ if ($mode == 'overwrite')
print '</table>';
print '</div>';
}
if ($mode == 'searchkey')

View File

@ -167,7 +167,6 @@ if (GETPOST('actionadd','alpha') || GETPOST('actionmodify','alpha'))
{
$obj = $db->fetch_object($result);
$newid=($obj->newid + 1);
} else {
dol_print_error($db);
}

View File

@ -463,7 +463,6 @@ class Asset extends CommonObject
}
$this->db->free($result);
}
else
{

View File

@ -356,7 +356,6 @@ if ($action == 'create')
print '<td>';
print $formaccounting->select_account($object->accountancy_code_depreciation_expense, 'accountancy_code_depreciation_expense', 1, '', 1, 1);
print '</td></tr>';
}
else // For external software
{
@ -732,7 +731,6 @@ if ($rowid > 0)
{
dol_print_error($db);
}
}
/* ************************************************************************** */
@ -782,7 +780,6 @@ if ($rowid > 0)
print '<td>';
print $formaccounting->select_account($object->accountancy_code_depreciation_expense, 'accountancy_code_depreciation_expense', 1, '', 1, 1);
print '</td></tr>';
}
else // For external software
{

View File

@ -444,7 +444,6 @@ if (! empty($conf->global->BLOCKEDLOG_SCAN_ALL_FOR_LOWERIDINERROR))
// TODO Make a full scan of table in reverse order of id of $block, so we can use the parameter $previoushash into checkSignature to save requests
// to find the $loweridinerror.
}
else
{
@ -538,7 +537,6 @@ if (is_array($blocks))
print '<td></td>';
print '</tr>';
}
}
}

View File

@ -53,7 +53,6 @@ if($auth->fetch(0, $signature)<=0) {
if(!empty($hash)) {
echo $auth->checkBlockchain($hash) ? 'hashisok' : 'hashisjunk';
}
elseif(!empty($newblock)){
if($auth->checkBlock($newblock)) {
@ -65,7 +64,6 @@ elseif(!empty($newblock)){
else{
echo 'blockalreadyadded';
}
}
else{

View File

@ -49,7 +49,6 @@ $auth->signature = $block_static->getSignature();
foreach($blocks as &$b) {
$auth->blockchain.=$b->signature;
}
$hash = $auth->getBlockchainHash();

View File

@ -73,7 +73,6 @@ class BlockedLogAuthority
foreach($blocks as &$b) {
$this->blockchain.=$b->signature;
}
return $this->blockchain;
@ -319,15 +318,12 @@ class BlockedLogAuthority
if($res === 'blockalreadyadded' || $res === 'blockadded') {
$block->setCertified();
}
else {
$this->error = $langs->trans('ImpossibleToContactAuthority ',$url);
return -1;
}
}
return 1;

View File

@ -947,17 +947,14 @@ class BlockedLog
$sql="SELECT rowid FROM ".MAIN_DB_PREFIX."blockedlog
WHERE entity=".$conf->entity;
}
else if ($element=='not_certified') {
$sql="SELECT rowid FROM ".MAIN_DB_PREFIX."blockedlog
WHERE entity=".$conf->entity." AND certified = 0";
}
else if ($element=='just_certified') {
$sql="SELECT rowid FROM ".MAIN_DB_PREFIX."blockedlog
WHERE entity=".$conf->entity." AND certified = 1";
}
else{
$sql="SELECT rowid FROM ".MAIN_DB_PREFIX."blockedlog

View File

@ -333,7 +333,6 @@ if ($id > 0 && ! preg_match('/^add/i',$action))
}
print '</div>';
}
// End of page

View File

@ -290,19 +290,16 @@ class Facturation
if ( !$aId )
{
return $this->id;
}
else if ( $aId == 'RESET' )
{
$this->id = null;
}
else
{
$this->id = $aId;
}
}
@ -410,15 +407,12 @@ class Facturation
if (is_null($aMontantRemise)) {
return $this->montant_remise;
} else if ( $aMontantRemise == 'RESET' ) {
$this->montant_remise = null;
} else {
$this->montant_remise = $aMontantRemise;
}
}
@ -434,15 +428,12 @@ class Facturation
if (is_null($aPrix)) {
return $this->prix;
} else if ( $aPrix == 'RESET' ) {
$this->prix = null;
} else {
$this->prix = $aPrix;
}
}
@ -457,15 +448,12 @@ class Facturation
if (is_null($aTva)) {
return $this->tva;
} else if ( $aTva == 'RESET' ) {
$this->tva = null;
} else {
$this->tva = $aTva;
}
}
@ -480,15 +468,12 @@ class Facturation
if (is_null($aNumFacture)) {
return $this->num_facture;
} else if ( $aNumFacture == 'RESET' ) {
$this->num_facture = null;
} else {
$this->num_facture = $aNumFacture;
}
}
@ -504,15 +489,12 @@ class Facturation
if (is_null($aModeReglement)) {
return $this->mode_reglement;
} else if ( $aModeReglement == 'RESET' ) {
$this->mode_reglement = null;
} else {
$this->mode_reglement = $aModeReglement;
}
}
@ -528,15 +510,12 @@ class Facturation
if (is_null($aMontantEncaisse)) {
return $this->montant_encaisse;
} else if ( $aMontantEncaisse == 'RESET' ) {
$this->montant_encaisse = null;
} else {
$this->montant_encaisse = $aMontantEncaisse;
}
}
@ -555,11 +534,9 @@ class Facturation
} else if ( $aMontantRendu == 'RESET' ) {
$this->montant_rendu = null;
} else {
$this->montant_rendu = $aMontantRendu;
}
}
@ -574,15 +551,12 @@ class Facturation
if (is_null($aPaiementLe)) {
return $this->paiement_le;
} else if ( $aPaiementLe == 'RESET' ) {
$this->paiement_le = null;
} else {
$this->paiement_le = $aPaiementLe;
}
}
@ -597,15 +571,12 @@ class Facturation
if (is_null($aTotalHt)) {
return $this->prix_total_ht;
} else if ( $aTotalHt == 'RESET' ) {
$this->prix_total_ht = null;
} else {
$this->prix_total_ht = $aTotalHt;
}
}
@ -620,15 +591,12 @@ class Facturation
if (is_null($aMontantTva)) {
return $this->montant_tva;
} else if ( $aMontantTva == 'RESET' ) {
$this->montant_tva = null;
} else {
$this->montant_tva = $aMontantTva;
}
}

View File

@ -137,7 +137,6 @@ if ( $nbr_enreg > 1 )
{
$top_liste_produits = '----- '.$nbr_enreg.' '.$langs->transnoentitiesnoconv("CashDeskProducts").' '.$langs->trans("CashDeskOn").' '.$nbr_enreg.' -----';
}
}
else if ( $nbr_enreg == 1 )
{

View File

@ -108,5 +108,4 @@ if (dol_strlen($search) >= 0) // If search criteria is on char length at least
print '</ul>';
}
}
}

View File

@ -216,7 +216,6 @@ switch($action)
$obj_facturation->remisePercent($_POST['txtRemise']);
$obj_facturation->ajoutArticle(); // This add an entry into $_SESSION['poscart']
// We update prixTotalTtc
}
$redirection = DOL_URL_ROOT.'/cashdesk/affIndex.php?menutpl=facturation';
@ -227,7 +226,6 @@ switch($action)
$redirection = DOL_URL_ROOT.'/cashdesk/affIndex.php?menutpl=facturation';
break;
}
// We saved object obj_facturation

View File

@ -89,7 +89,6 @@ $langs->loadLangs(array("main","bills","cashdesk"));
print '<option '.$selected.' value="'.$tab_designations[$i]['rowid'].'">'.dol_trunc($tab_designations[$i]['ref'],16).' - '.dol_trunc($label,35,'middle');
if (! empty($conf->stock->enabled) && !empty($conf_fkentrepot) && $tab_designations[$i]['fk_product_type']==0) print ' ('.$langs->trans("CashDeskStock").': '.(empty($tab_designations[$i]['reel'])?0:$tab_designations[$i]['reel']).')';
print '</option>'."\n";
}
?>
</select>

View File

@ -60,11 +60,9 @@ else
if ( $tab[$i]['remise_percent'] > 0 ) {
$remise_percent = ' -'.$tab[$i]['remise_percent'].'%';
} else {
$remise_percent = '';
}
$remise = $tab[$i]['remise'];

View File

@ -41,13 +41,11 @@ $langs->loadLangs(array("main","bills","banks"));
if ( $obj_facturation->montantTva() ) {
echo ('<tr><td class="resume_label">'.$langs->trans("VAT").'</td><td>'.price(price2num($obj_facturation->montantTva(),'MT'),0,$langs,0,0,-1,$conf->currency).'</td></tr>');
}
else
{
echo ('<tr><td class="resume_label">'.$langs->trans("VAT").'</td><td>'.$langs->trans("NoVAT").'</td></tr>');
}
?>
<tr><td class="resume_label"><?php echo $langs->trans("TotalTTC"); ?> </td><td><?php echo price(price2num($obj_facturation->prixTotalTtc(),'MT'),0,$langs,0,0,-1,$conf->currency); ?></td></tr>
@ -91,18 +89,15 @@ $langs->loadLangs(array("main","bills","banks"));
if ( $obj_facturation->getsetPaymentMode() == 'DIF' ) {
echo ('<tr><td class="resume_label">'.$langs->trans("DateDue").'</td><td>'.$obj_facturation->paiementLe().'</td></tr>');
} else {
echo ('<tr><td class="resume_label">'.$langs->trans("Received").'</td><td>'.price(price2num($obj_facturation->montantEncaisse(),'MT'),0,$langs,0,0,-1,$conf->currency).'</td></tr>');
}
// Affichage du montant rendu (reglement en especes)
if ( $obj_facturation->montantRendu() ) {
echo ('<tr><td class="resume_label">'.$langs->trans("Change").'</td><td>'.price(price2num($obj_facturation->montantRendu(),'MT'),0,$langs,0,0,-1,$conf->currency).'</td></tr>');
}
?>

View File

@ -328,7 +328,6 @@ switch ($action)
$result=$invoice->set_paid($user);
//print 'set paid';exit;
}
}
}
else

View File

@ -665,7 +665,6 @@ class Categorie extends CommonObject
$this->db->rollback();
return -2;
}
}
else
{
@ -1810,7 +1809,6 @@ class Categorie extends CommonObject
{
$this->label = $obj->label;
$this->description = $obj->description;
}
$this->multilangs["$obj->lang"]["label"] = $obj->label;
$this->multilangs["$obj->lang"]["description"] = $obj->description;

View File

@ -269,7 +269,6 @@ if ($action == 'edit')
print '</div>';
print '</form>';
}
else if ($action != 'add')
{

View File

@ -168,7 +168,6 @@ if ($type == Categorie::TYPE_PRODUCT && $elemid && $action == 'addintocategory'
setEventMessages($object->error,$object->errors,'errors');
}
}
}

View File

@ -597,7 +597,6 @@ if (GETPOST('actionmove','alpha') == 'mupdate')
{
$action='';
}
}
// Actions to delete doc
@ -873,7 +872,6 @@ if ($action == 'create')
} else {
print $form->select_company('', 'socid', '', 'SelectThirdParty', 1, 0, $events, 0, 'minwidth300');
}
}
print '</td></tr>';

View File

@ -401,7 +401,6 @@ class ActionComm extends CommonObject
$error++;
$this->errors[]=$this->db->lasterror();
}
}
}
}
@ -937,7 +936,6 @@ class ActionComm extends CommonObject
$error++;
$this->errors[]=$this->db->lasterror();
}
}
}
}

View File

@ -309,7 +309,6 @@ class AgendaEvents extends DolibarrApi
if (!isset($data[$field]))
throw new RestException(400, "$field field missing");
$event[$field] = $data[$field];
}
return $event;
}

View File

@ -666,7 +666,6 @@ if ($resql)
//print ' startincalendar='.dol_print_date($event->date_start_in_calendar).'-endincalendar='.dol_print_date($event->date_end_in_calendar).') was added in '.$j.' different index key of array<br>';
}
$i++;
}
}
else

View File

@ -643,7 +643,6 @@ if ($resql)
print "&nbsp;";
}
print '</td>';
}
// Extra fields
@ -668,7 +667,6 @@ if ($resql)
print '</form>';
$db->free($resql);
}
else
{

View File

@ -543,7 +543,6 @@ if ($resql)
//print ' startincalendar='.dol_print_date($event->date_start_in_calendar).'-endincalendar='.dol_print_date($event->date_end_in_calendar).') was added in '.$j.' different index key of array<br>';
}
$i++;
}
}
else

View File

@ -571,7 +571,6 @@ if ($resql)
//print ' startincalendar='.dol_print_date($event->date_start_in_calendar).'-endincalendar='.dol_print_date($event->date_end_in_calendar).') was added in '.$j.' different index key of array<br>';
}
$i++;
}
$db->free($resql);
}
@ -798,7 +797,6 @@ while($currentdaytoshow<$lastdaytoshow) {
echo "<br>";
$currentdaytoshow = dol_time_plus_duree($currentdaytoshow, 7, 'd');
}
echo '</div>';

View File

@ -151,7 +151,6 @@ if ($action == 'add' || $action == 'update')
$action= "edit";
}
}
}
else if ($action == 'confirm_delete' && $confirm == 'yes' && $user->rights->societe->supprimer)
@ -291,7 +290,6 @@ if ($action == 'create')
print '</div>'."\n";
print '</form>'."\n";
}
}
elseif ($action == 'edit')
@ -486,7 +484,6 @@ else
}
print '</div>';
}
}

View File

@ -1301,7 +1301,6 @@ if ($object->id > 0)
if ($object->client != 0 && $object->client != 2) print '<div class="inline-block divButAction"><a class="butAction" href="'.DOL_URL_ROOT.'/compta/facture/card.php?action=create&socid='.$object->id.'">'.$langs->trans("AddBill").'</a></div>';
else print '<div class="inline-block divButAction"><a class="butActionRefused" title="'.dol_escape_js($langs->trans("ThirdPartyMustBeEditAsCustomer")).'" href="#">'.$langs->trans("AddBill").'</a></div>';
}
}
}
@ -1344,7 +1343,6 @@ if ($object->id > 0)
// List of done actions
show_actions_done($conf,$langs,$db,$object);
}
}
else
{

View File

@ -521,7 +521,6 @@ if (! empty($conf->societe->enabled) && $user->rights->societe->lire)
print '<td align="right" nowrap>'.dol_print_date($db->jdate($objp->tms),'day')."</td>";
print '</tr>';
$i++;
}
$db->free($resql);
@ -580,7 +579,6 @@ if (! empty($conf->fournisseur->enabled) && $user->rights->societe->lire)
$i++;
}
}
else
{

View File

@ -467,7 +467,6 @@ if ($object->fetch($id) >= 0) {
if ($object->statut == 0 && $user->rights->mailing->creer) {
include DOL_DOCUMENT_ROOT . '/core/tpl/advtarget.tpl.php';
}
}

View File

@ -1165,7 +1165,6 @@ else
print '</div>';
dol_fiche_end();
}
else
{

View File

@ -643,7 +643,6 @@ if ($object->fetch($id) >= 0)
}
print "\n<!-- Fin liste destinataires selectionnes -->\n";
}
// End of page

View File

@ -240,7 +240,6 @@ class AdvanceTargetingMailing extends CommonObject
$this->datec = $this->db->jdate($obj->datec);
$this->fk_user_mod = $obj->fk_user_mod;
$this->tms = $this->db->jdate($obj->tms);
}
$this->db->free($resql);
@ -304,7 +303,6 @@ class AdvanceTargetingMailing extends CommonObject
$this->datec = $this->db->jdate($obj->datec);
$this->fk_user_mod = $obj->fk_user_mod;
$this->tms = $this->db->jdate($obj->tms);
}
$this->db->free($resql);
@ -372,7 +370,6 @@ class AdvanceTargetingMailing extends CommonObject
$this->datec = $this->db->jdate($obj->datec);
$this->fk_user_mod = $obj->fk_user_mod;
$this->tms = $this->db->jdate($obj->tms);
}
$this->db->free($resql);
@ -664,14 +661,10 @@ class AdvanceTargetingMailing extends CommonObject
$sqlwhere[]= " (te.".$key." LIKE '".$arrayquery['options_'.$key]."')";
}
}
}
}
if (count($sqlwhere)>0) $sql.= " WHERE ".implode(" AND ",$sqlwhere);
}
@ -803,7 +796,6 @@ class AdvanceTargetingMailing extends CommonObject
$sqlwhere[]= " (te.".$key." LIKE '".$arrayquery['options_'.$key.'_cnct']."')";
}
}
}
if (! empty($withThirdpartyFilter)) {
@ -969,7 +961,6 @@ class AdvanceTargetingMailing extends CommonObject
if (count($return_sql_not_like)>0) {
$return_sql_criteria .= ' AND (' . implode (' AND ', $return_sql_not_like).')';
}
}else {
$return_sql_criteria .= $column_to_test . ' LIKE \''.$this->db->escape($criteria).'\'';
}

View File

@ -178,7 +178,6 @@ class FormAdvTargetEmailing extends Form
$label = $obj_usr->firstname . " " . $obj_usr->name . " (" . $obj_usr->login . ')';
$options_array [$obj_usr->rowid] = $label;
}
$this->db->free ( $resql_usr );
} else {
@ -323,7 +322,6 @@ class FormAdvTargetEmailing extends Form
$i++;
}
}
}
else
{
@ -411,7 +409,6 @@ class FormAdvTargetEmailing extends Form
$i++;
}
}
}
else
{

View File

@ -362,7 +362,6 @@ class Mailing extends CommonObject
'source_id'=>$obj->source_id,
'source_type'=>$obj->source_type);
}
}
}
else
@ -373,7 +372,6 @@ class Mailing extends CommonObject
$mailing_target->add_to_target($object->id, $target_array);
}
}
unset($object->context['createfromclone']);

View File

@ -182,7 +182,6 @@ if ($result)
print '</tr>';
$i++;
}
}
else
{

View File

@ -174,7 +174,6 @@ if ($_socid > 0)
{
dol_print_error($db);
}
}
// End of page

View File

@ -1364,7 +1364,6 @@ if (empty($reshook))
$upload_dir = $conf->propal->multidir_output[$object->entity];
$permissioncreate=$usercancreate;
include DOL_DOCUMENT_ROOT.'/core/actions_builddoc.inc.php';
}
@ -1777,7 +1776,6 @@ if ($action == 'create')
print '</table>';
}
} elseif ($object->id > 0) {
/*
* Show object in view mode
@ -1825,7 +1823,6 @@ if ($action == 'create')
}
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('SetAcceptedRefused'), $text, 'setstatut', $formquestion, '', 1, 250);
}
// Confirm delete

View File

@ -700,7 +700,6 @@ class Proposals extends DolibarrApi
if (!isset($data[$field]))
throw new RestException(400, "$field field missing");
$propal[$field] = $data[$field];
}
return $propal;
}

View File

@ -3127,11 +3127,8 @@ class Propal extends CommonObject
$cluser->fetch($obj->fk_user_cloture);
$this->user_cloture = $cluser;
}
}
$this->db->free($result);
}
else
{

View File

@ -227,7 +227,6 @@ if (GETPOST('button_removefilter_x','alpha') || GETPOST('button_removefilter.x',
$toselect='';
$search_array_options=array();
$search_categ_cus=0;
}
if ($object_statut != '') $viewstatut=$object_statut;

View File

@ -276,6 +276,7 @@ print '<div class="fichecenter"><div class="fichethirdleft">';
print '<br><br>';
//}
print '<div class="div-table-responsive-no-min">';
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre" height="24">';
print '<td align="center">'.$langs->trans("Year").'</td>';
@ -318,7 +319,7 @@ foreach ($data as $val)
}
print '</table>';
print '</div>';
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';

View File

@ -423,7 +423,6 @@ if (empty($reshook))
// modified by hook
if ($reshook < 0)
$error++;
} else {
setEventMessages($object->error, $object->errors, 'errors');
$error++;

View File

@ -297,7 +297,6 @@ class Orders extends DolibarrApi
if ($updateRes > 0) {
return $updateRes;
} else {
throw new RestException(400, $this->commande->error);
}
@ -793,7 +792,6 @@ class Orders extends DolibarrApi
if (!isset($data[$field]))
throw new RestException(400, $field ." field missing");
$commande[$field] = $data[$field];
}
return $commande;
}

View File

@ -3616,7 +3616,6 @@ class Commande extends CommonOrder
}
$this->db->free($result);
}
else
{

View File

@ -214,7 +214,6 @@ if (empty($reshook))
$uploaddir = $conf->commande->dir_output;
$trigger_name='ORDER_SENTBYMAIL';
include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php';
}

View File

@ -118,7 +118,6 @@ if (($action == 'create' || $action == 'add') && !$error)
$originid=$orders_id[0];
$_GET['originid']=$orders_id[0];
}
if (isset($_POST['orders_to_invoice']))
{
@ -128,7 +127,6 @@ if (($action == 'create' || $action == 'add') && !$error)
$originid=$orders_id[0];
$_POST['originid']=$orders_id[0];
}
$projectid = GETPOST('projectid','int')?GETPOST('projectid','int'):0;
@ -531,8 +529,6 @@ if ($action == 'create' && !$error)
print '</td></tr>';
print "</table>\n";
}
// Mode liste
@ -737,7 +733,6 @@ if (($action != 'create' && $action != 'add') || ($action == 'create' && $error)
{
dol_print_error($db);
}
}
// End of page

View File

@ -302,6 +302,7 @@ print '</form>';
print '<br><br>';
print '<div class="div-table-responsive-no-min">';
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre" height="24">';
print '<td align="center">'.$langs->trans("Year").'</td>';
@ -346,6 +347,7 @@ foreach ($data as $val)
}
print '</table>';
print '</div>';
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';

View File

@ -339,7 +339,6 @@ else
$i++;
}
$db->free($resql);
}
else
{

View File

@ -576,7 +576,6 @@ else
if ($action == 'delete')
{
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id,$langs->trans("DeleteAccount"),$langs->trans("ConfirmDeleteAccount"),"confirm_delete");
}
// Print form confirm
@ -766,7 +765,6 @@ else
}
print '</div>';
}
/* ************************************************************************** */
@ -1033,7 +1031,6 @@ else
print '</form>';
}
}
// End of page

View File

@ -452,7 +452,6 @@ class PaymentVarious extends CommonObject
$result=$this->call_trigger('PAYMENT_VARIOUS_CREATE',$user);
if ($result < 0) $error++;
// End call triggers
}
else $error++;

Some files were not shown because too many files have changed in this diff Show More