Merge branch '3.8' of git@github.com:Dolibarr/dolibarr.git into 3.8
This commit is contained in:
commit
d119e04963
@ -414,9 +414,9 @@ if ($action == 'edit' || $action == 'updateedit')
|
||||
|
||||
// Forme juridique
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'><td><label for="legal_form">'.$langs->trans("JuridicalStatus").'</label></td><td>';
|
||||
print '<tr '.$bc[$var].'><td><label for="forme_juridique_code">'.$langs->trans("JuridicalStatus").'</label></td><td>';
|
||||
if ($mysoc->country_code) {
|
||||
print $formcompany->select_juridicalstatus($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE, $mysoc->country_code, '', 'legal_form');
|
||||
print $formcompany->select_juridicalstatus($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE, $mysoc->country_code, '', 'forme_juridique_code');
|
||||
} else {
|
||||
print $countrynotdefined;
|
||||
}
|
||||
|
||||
@ -191,7 +191,7 @@ if ($search_refcustomer) $sql .= natural_search('f.ref_client', $search_refcusto
|
||||
if ($search_societe) $sql .= natural_search('s.nom', $search_societe);
|
||||
if ($search_montant_ht != '') $sql.= natural_search('f.total', $search_montant_ht, 1);
|
||||
if ($search_montant_ttc != '') $sql.= natural_search('f.total_ttc', $search_montant_ttc, 1);
|
||||
if ($search_status != '') $sql.= " AND f.fk_statut = '".$db->escape($search_status)."'";
|
||||
if ($search_status >= 0 ) $sql.= " AND f.fk_statut = ".$db->escape($search_status);
|
||||
if ($month > 0)
|
||||
{
|
||||
if ($year > 0 && empty($day))
|
||||
|
||||
@ -100,6 +100,10 @@ if ($user->societe_id) {
|
||||
}
|
||||
$result = restrictedArea($user, 'tax', '', '', 'charges');
|
||||
|
||||
// Define modecompta ('CREANCES-DETTES' or 'RECETTES-DEPENSES')
|
||||
$modecompta = $conf->global->ACCOUNTING_MODE;
|
||||
if (GETPOST("modecompta")) $modecompta=GETPOST("modecompta");
|
||||
|
||||
|
||||
|
||||
/*
|
||||
@ -292,7 +296,14 @@ if (is_array($coll_list)) {
|
||||
} else {
|
||||
$langs->load("errors");
|
||||
if ($coll_list == -1) {
|
||||
print '<tr><td colspan="5">' . $langs->trans("ErrorNoAccountancyModuleLoaded") . '</td></tr>';
|
||||
if ($modecompta == 'CREANCES-DETTES')
|
||||
{
|
||||
print '<tr><td colspan="5">' . $langs->trans("ErrorNoAccountancyModuleLoaded") . '</td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<tr><td colspan="5">' . $langs->trans("FeatureNotYetAvailable") . '</td></tr>';
|
||||
}
|
||||
} else if ($coll_list == -2) {
|
||||
print '<tr><td colspan="5">' . $langs->trans("FeatureNotYetAvailable") . '</td></tr>';
|
||||
} else {
|
||||
@ -377,7 +388,14 @@ if (is_array($coll_list)) {
|
||||
} else {
|
||||
$langs->load("errors");
|
||||
if ($coll_list == -1) {
|
||||
print '<tr><td colspan="5">' . $langs->trans("ErrorNoAccountancyModuleLoaded") . '</td></tr>';
|
||||
if ($modecompta == 'CREANCES-DETTES')
|
||||
{
|
||||
print '<tr><td colspan="5">' . $langs->trans("ErrorNoAccountancyModuleLoaded") . '</td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<tr><td colspan="5">' . $langs->trans("FeatureNotYetAvailable") . '</td></tr>';
|
||||
}
|
||||
} else if ($coll_list == -2) {
|
||||
print '<tr><td colspan="5">' . $langs->trans("FeatureNotYetAvailable") . '</td></tr>';
|
||||
} else {
|
||||
@ -457,7 +475,14 @@ if ($special_report) {
|
||||
} else {
|
||||
$langs->load("errors");
|
||||
if ($coll_list == -1) {
|
||||
print '<tr><td colspan="5">' . $langs->trans("ErrorNoAccountancyModuleLoaded") . '</td></tr>';
|
||||
if ($modecompta == 'CREANCES-DETTES')
|
||||
{
|
||||
print '<tr><td colspan="5">' . $langs->trans("ErrorNoAccountancyModuleLoaded") . '</td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<tr><td colspan="5">' . $langs->trans("FeatureNotYetAvailable") . '</td></tr>';
|
||||
}
|
||||
} else {
|
||||
if ($coll_list == -2) {
|
||||
print '<tr><td colspan="5">' . $langs->trans("FeatureNotYetAvailable") . '</td></tr>';
|
||||
@ -530,7 +555,14 @@ if ($special_report) {
|
||||
} else {
|
||||
$langs->load("errors");
|
||||
if ($coll_list == -1) {
|
||||
print '<tr><td colspan="5">' . $langs->trans("ErrorNoAccountancyModuleLoaded") . '</td></tr>';
|
||||
if ($modecompta == 'CREANCES-DETTES')
|
||||
{
|
||||
print '<tr><td colspan="5">' . $langs->trans("ErrorNoAccountancyModuleLoaded") . '</td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<tr><td colspan="5">' . $langs->trans("FeatureNotYetAvailable") . '</td></tr>';
|
||||
}
|
||||
} else {
|
||||
if ($coll_list == -2) {
|
||||
print '<tr><td colspan="5">' . $langs->trans("FeatureNotYetAvailable") . '</td></tr>';
|
||||
|
||||
@ -1743,7 +1743,7 @@ function pdf_getLinkedObjects($object,$outputlangs)
|
||||
else // We show both info of order and shipment
|
||||
{
|
||||
$linkedobjects[$objecttype]['ref_title'] = $outputlangs->transnoentities("RefOrder") . ' / ' . $outputlangs->transnoentities("RefSending");
|
||||
$linkedobjects[$objecttype]['ref_value'] = $outputlangs->transnoentities($order->ref) . ($order->ref_client ? ' ('.$order->ref_client.')' : '');
|
||||
$linkedobjects[$objecttype]['ref_value'] = $outputlangs->convToOutputCharset($order->ref) . ($order->ref_client ? ' ('.$order->ref_client.')' : '');
|
||||
$linkedobjects[$objecttype]['ref_value'].= ' / ' . $outputlangs->transnoentities($elementobject->ref);
|
||||
$linkedobjects[$objecttype]['date_title'] = $outputlangs->transnoentities("OrderDate") . ' / ' . $outputlangs->transnoentities("DateSending");
|
||||
$linkedobjects[$objecttype]['date_value'] = dol_print_date($order->date,'day','',$outputlangs);
|
||||
|
||||
@ -79,7 +79,7 @@ function tax_prepare_head(ChargeSociales $object)
|
||||
* @param int $y Year
|
||||
* @param string $date_start Start date
|
||||
* @param string $date_end End date
|
||||
* @param int $modetax 0 or 1 (option vat on debit)
|
||||
* @param int $modetax 0 or 1 (option vat on debit, 1 => $modecompta = 'CREANCES-DETTES')
|
||||
* @param string $direction 'sell' or 'buy'
|
||||
* @param int $m Month
|
||||
* @return array List of customers third parties with vat, -1 if no accountancy module, -2 if not yet developped, -3 if error
|
||||
|
||||
@ -114,7 +114,23 @@ class modProjet extends DolibarrModules
|
||||
$this->const[$r][2] = "DOL_DATA_ROOT/doctemplates/tasks";
|
||||
$this->const[$r][3] = "";
|
||||
$this->const[$r][4] = 0;
|
||||
|
||||
$r++;
|
||||
|
||||
$this->const[$r][0] = "PROJECT_USE_OPPORTUNIES";
|
||||
$this->const[$r][1] = "chaine";
|
||||
$this->const[$r][2] = "1";
|
||||
$this->const[$r][3] = "";
|
||||
$this->const[$r][4] = 0;
|
||||
$r++;
|
||||
|
||||
/* not required (0 = not present)
|
||||
$this->const[$r][0] = "PROJECT_HIDE_TASKS";
|
||||
$this->const[$r][1] = "chaine";
|
||||
$this->const[$r][2] = "0";
|
||||
$this->const[$r][3] = "";
|
||||
$this->const[$r][4] = 0;
|
||||
*/
|
||||
|
||||
// Boxes
|
||||
$this->boxes = array();
|
||||
$r=0;
|
||||
|
||||
@ -466,6 +466,7 @@ if ($action == 'create' && $user->rights->projet->creer)
|
||||
print $form->textwithtooltip($text.' '.img_help(),$texthelp,1);
|
||||
}
|
||||
else print $text;
|
||||
print ' <a href="'.DOL_URL_ROOT.'/societe/soc.php?action=create&backtopage='.urlencode($_SERVER["PHP_SELF"].'?action=create').'">'.$langs->trans("AddThirdParty").'</a>';
|
||||
print '</td></tr>';
|
||||
|
||||
// Status
|
||||
|
||||
@ -1203,11 +1203,11 @@ else
|
||||
print '</td></tr>';
|
||||
|
||||
// Legal Form
|
||||
print '<tr><td>'.fieldLabel('JuridicalStatus','legal_form').'</td>';
|
||||
print '<tr><td>'.fieldLabel('JuridicalStatus','forme_juridique_code').'</td>';
|
||||
print '<td colspan="3" class="maxwidthonsmartphone">';
|
||||
if ($object->country_id)
|
||||
{
|
||||
print $formcompany->select_juridicalstatus($object->forme_juridique_code, $object->country_code, '', 'legal_form');
|
||||
print $formcompany->select_juridicalstatus($object->forme_juridique_code, $object->country_code, '', 'forme_juridique_code');
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1786,8 +1786,8 @@ else
|
||||
print '</td></tr>';
|
||||
|
||||
// Juridical type
|
||||
print '<tr><td>'.fieldLabel('JuridicalStatus','legal_form').'</td><td colspan="3">';
|
||||
print $formcompany->select_juridicalstatus($object->forme_juridique_code, $object->country_code, '', 'legal_form');
|
||||
print '<tr><td>'.fieldLabel('JuridicalStatus','forme_juridique_code').'</td><td colspan="3">';
|
||||
print $formcompany->select_juridicalstatus($object->forme_juridique_code, $object->country_code, '', 'forme_juridique_code');
|
||||
print '</td></tr>';
|
||||
|
||||
// Capital
|
||||
|
||||
@ -320,6 +320,7 @@ th .button {
|
||||
}
|
||||
.center {
|
||||
text-align: center;
|
||||
margin: 0px auto;
|
||||
}
|
||||
.left {
|
||||
text-align: <?php print $left; ?>;
|
||||
@ -458,6 +459,10 @@ div.tmenu ul li a.tmenusel {/* texte du menu principal sélectionné */
|
||||
|
||||
body.body center { color:white; margin-top: 100px; }
|
||||
|
||||
.login_vertical_align {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
form#login {
|
||||
border:solid 1px rgba(0,0,0,.4);
|
||||
border-top:solid 1px #ffffff;
|
||||
@ -515,6 +520,10 @@ form#login table.login_table {
|
||||
background:none !important;
|
||||
}
|
||||
|
||||
.login_main_message {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div#login_left, div#login_right {
|
||||
display: inline-block;
|
||||
min-width: 220px;
|
||||
@ -522,7 +531,7 @@ div#login_left, div#login_right {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
table.login_table { background-color: red !important;}
|
||||
table.login_table { margin: 0px auto; background-color: red !important;}
|
||||
table.login_table tr td {vertical-align:middle;}
|
||||
table.login_table tr.vmenu td {font-size:18px;}
|
||||
table.login_table tr td a {color:#333333 !important;}
|
||||
|
||||
@ -226,6 +226,7 @@ div.floatright
|
||||
}
|
||||
.center {
|
||||
text-align: center;
|
||||
margin: 0px auto;
|
||||
}
|
||||
.left {
|
||||
text-align: <?php print $left; ?>;
|
||||
@ -542,7 +543,9 @@ foreach($mainmenuusedarray as $val)
|
||||
|
||||
|
||||
/* Login */
|
||||
|
||||
.login_vertical_align {
|
||||
padding: 10px;
|
||||
}
|
||||
form#login {
|
||||
margin-top: <?php echo $dol_optimize_smallscreen?'30':'60' ?>px;
|
||||
margin-bottom: 30px;
|
||||
@ -557,9 +560,8 @@ form#login {
|
||||
text-shadow: 1px 1px 1px #FFF;
|
||||
}
|
||||
.login_table {
|
||||
padding:12px;
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
padding: 12px;
|
||||
margin: 0px auto; /* Center */
|
||||
max-width: 540px;
|
||||
border: 1px solid #C0C0C0;
|
||||
background-color: #E0E0E0;
|
||||
|
||||
@ -251,6 +251,7 @@ div.floatright
|
||||
}
|
||||
.center {
|
||||
text-align: center;
|
||||
margin: 0px auto;
|
||||
}
|
||||
.left {
|
||||
text-align: <?php print $left; ?>;
|
||||
@ -566,15 +567,19 @@ li.tmenu a.tmenudisabled {
|
||||
|
||||
|
||||
/* Login */
|
||||
|
||||
.login_vertical_align {
|
||||
padding: 10px;
|
||||
}
|
||||
.login_main_message {
|
||||
text-align: center;
|
||||
}
|
||||
form#login {
|
||||
margin-top: <?php echo $dol_optimize_smallscreen?'30':'60' ?>px;
|
||||
margin-bottom: 30px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.login_table_title {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
margin: 0px auto;
|
||||
max-width: 540px;
|
||||
color: #888888;
|
||||
text-shadow: 1px 1px 1px #FFF;
|
||||
@ -583,8 +588,7 @@ form#login {
|
||||
text-shadow: 1px 1px 1px #FFF;
|
||||
}
|
||||
.login_table {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
margin: 0px auto; /* Center */
|
||||
padding:12px;
|
||||
max-width: 540px;
|
||||
border: 1px solid #C0C0C0;
|
||||
|
||||
@ -227,6 +227,7 @@ div.floatright
|
||||
}
|
||||
.center {
|
||||
text-align: center;
|
||||
margin: 0px auto;
|
||||
}
|
||||
.left {
|
||||
text-align: <?php print $left; ?>;
|
||||
@ -637,7 +638,12 @@ foreach($mainmenuusedarray as $val)
|
||||
|
||||
|
||||
/* Login */
|
||||
|
||||
.login_vertical_align {
|
||||
padding: 10px;
|
||||
}
|
||||
.login_main_message {
|
||||
text-align: center;
|
||||
}
|
||||
form#login {
|
||||
margin-top: <?php echo $dol_optimize_smallscreen?'30':'60' ?>px;
|
||||
margin-bottom: 30px;
|
||||
@ -652,8 +658,7 @@ form#login {
|
||||
text-shadow: 1px 1px 1px #FFF;
|
||||
}
|
||||
.login_table {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
margin: 0px auto; /* Center */
|
||||
padding:12px;
|
||||
max-width: 540px;
|
||||
border: 1px solid #C0C0C0;
|
||||
|
||||
@ -401,6 +401,7 @@ textarea.centpercent {
|
||||
}
|
||||
.center {
|
||||
text-align: center;
|
||||
margin: 0px auto;
|
||||
}
|
||||
.left {
|
||||
text-align: <?php print $left; ?>;
|
||||
@ -598,8 +599,8 @@ div.ficheaddleft {
|
||||
else print "margin-top: 10px;\n"; ?>
|
||||
}
|
||||
.containercenter {
|
||||
display : table;
|
||||
margin : 0px auto;
|
||||
display : table;
|
||||
margin : 0px auto;
|
||||
}
|
||||
|
||||
#pictotitle {
|
||||
@ -912,8 +913,7 @@ form#login {
|
||||
text-shadow: 1px 1px 1px #FFF;
|
||||
}
|
||||
.login_table {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
margin: 0px auto; /* Center */
|
||||
padding-left:6px;
|
||||
padding-right:6px;
|
||||
padding-top:16px;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user