Merge remote-tracking branch 'upstream/develop' into zapier
This commit is contained in:
commit
61e358bb9d
@ -96,11 +96,11 @@ else
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label1"><?php echo $langs->trans("Login"); ?></td>
|
<td class="label1"><?php echo $langs->trans("Login"); ?></td>
|
||||||
<td><input name="txtUsername" class="texte_login" type="text" value="<?php echo $usertxt; ?>" /></td>
|
<td><input name="txtUsername" class="texte_login maxwidth150onsmartphoneimp" type="text" value="<?php echo $usertxt; ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label1"><?php echo $langs->trans("Password"); ?></td>
|
<td class="label1"><?php echo $langs->trans("Password"); ?></td>
|
||||||
<td><input name="pwdPassword" class="texte_login" type="password" value="" /></td>
|
<td><input name="pwdPassword" class="texte_login maxwidth150onsmartphoneimp" type="password" value="" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -157,7 +157,7 @@ print '<td class="label1">'.$langs->trans("CashDeskBankAccountForSell").'</td>';
|
|||||||
print '<td>';
|
print '<td>';
|
||||||
$defaultknown=0;
|
$defaultknown=0;
|
||||||
if (! empty($conf->global->CASHDESK_ID_BANKACCOUNT_CASH) && $conf->global->CASHDESK_ID_BANKACCOUNT_CASH > 0) $defaultknown=1; // If a particular stock is defined, we disable choice
|
if (! empty($conf->global->CASHDESK_ID_BANKACCOUNT_CASH) && $conf->global->CASHDESK_ID_BANKACCOUNT_CASH > 0) $defaultknown=1; // If a particular stock is defined, we disable choice
|
||||||
print $form->select_comptes(((GETPOST('bankid_cash') > 0)?GETPOST('bankid_cash'):$conf->global->CASHDESK_ID_BANKACCOUNT_CASH), 'CASHDESK_ID_BANKACCOUNT_CASH', 0, "courant=2", ($defaultknown?0:2));
|
$form->select_comptes(((GETPOST('bankid_cash') > 0)?GETPOST('bankid_cash'):$conf->global->CASHDESK_ID_BANKACCOUNT_CASH), 'CASHDESK_ID_BANKACCOUNT_CASH', 0, "courant=2", ($defaultknown?0:2));
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
@ -166,7 +166,7 @@ print '<td class="label1">'.$langs->trans("CashDeskBankAccountForCheque").'</td>
|
|||||||
print '<td>';
|
print '<td>';
|
||||||
$defaultknown=0;
|
$defaultknown=0;
|
||||||
if (! empty($conf->global->CASHDESK_ID_BANKACCOUNT_CHEQUE) && $conf->global->CASHDESK_ID_BANKACCOUNT_CHEQUE > 0) $defaultknown=1; // If a particular stock is defined, we disable choice
|
if (! empty($conf->global->CASHDESK_ID_BANKACCOUNT_CHEQUE) && $conf->global->CASHDESK_ID_BANKACCOUNT_CHEQUE > 0) $defaultknown=1; // If a particular stock is defined, we disable choice
|
||||||
print $form->select_comptes(((GETPOST('bankid_cheque') > 0)?GETPOST('bankid_cheque'):$conf->global->CASHDESK_ID_BANKACCOUNT_CHEQUE), 'CASHDESK_ID_BANKACCOUNT_CHEQUE', 0, "courant=1", ($defaultknown?0:2));
|
$form->select_comptes(((GETPOST('bankid_cheque') > 0)?GETPOST('bankid_cheque'):$conf->global->CASHDESK_ID_BANKACCOUNT_CHEQUE), 'CASHDESK_ID_BANKACCOUNT_CHEQUE', 0, "courant=1", ($defaultknown?0:2));
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
@ -175,7 +175,7 @@ print '<td class="label1">'.$langs->trans("CashDeskBankAccountForCB").'</td>';
|
|||||||
print '<td>';
|
print '<td>';
|
||||||
$defaultknown=0;
|
$defaultknown=0;
|
||||||
if (! empty($conf->global->CASHDESK_ID_BANKACCOUNT_CB) && $conf->global->CASHDESK_ID_BANKACCOUNT_CB > 0) $defaultknown=1; // If a particular stock is defined, we disable choice
|
if (! empty($conf->global->CASHDESK_ID_BANKACCOUNT_CB) && $conf->global->CASHDESK_ID_BANKACCOUNT_CB > 0) $defaultknown=1; // If a particular stock is defined, we disable choice
|
||||||
print $form->select_comptes(((GETPOST('bankid_cb') > 0)?GETPOST('bankid_cb'):$conf->global->CASHDESK_ID_BANKACCOUNT_CB), 'CASHDESK_ID_BANKACCOUNT_CB', 0, "courant=1", ($defaultknown?0:2));
|
$form->select_comptes(((GETPOST('bankid_cb') > 0)?GETPOST('bankid_cb'):$conf->global->CASHDESK_ID_BANKACCOUNT_CB), 'CASHDESK_ID_BANKACCOUNT_CB', 0, "courant=1", ($defaultknown?0:2));
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
@ -191,7 +191,7 @@ print "</tr>\n";
|
|||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<div align="center"><span class="bouton_login"><input class="button" name="sbmtConnexion" type="submit" value=<?php echo $langs->trans("Connection"); ?> /></span></div>
|
<div align="center"><span class="bouton_login"><input class="button" name="sbmtConnexion" type="submit" value="<?php echo dol_escape_htmltag($langs->trans("Connection")); ?>" /></span></div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|||||||
@ -323,7 +323,7 @@ if ($result)
|
|||||||
print '<td>';
|
print '<td>';
|
||||||
if (! $objp->rappro && ! $bankline->getVentilExportCompta())
|
if (! $objp->rappro && ! $bankline->getVentilExportCompta())
|
||||||
{
|
{
|
||||||
print $form->select_comptes($acct->id, 'accountid', 0, '', 0);
|
$form->select_comptes($acct->id, 'accountid', 0, '', 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -4982,7 +4982,7 @@ elseif ($id > 0 || ! empty($ref))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Classify paid
|
// Classify paid
|
||||||
if ($object->statut == 1 && $object->paye == 0 && $usercanissuepayment && (($object->type != Facture::TYPE_CREDIT_NOTE && $object->type != Facture::TYPE_DEPOSIT && $resteapayer <= 0) || ($object->type == Facture::TYPE_CREDIT_NOTE && $resteapayer >= 0))
|
if (($object->statut == 1 && $object->paye == 0 && $usercanissuepayment && (($object->type != Facture::TYPE_CREDIT_NOTE && $object->type != Facture::TYPE_DEPOSIT && $resteapayer <= 0) || ($object->type == Facture::TYPE_CREDIT_NOTE && $resteapayer >= 0)))
|
||||||
|| ($object->type == Facture::TYPE_DEPOSIT && $object->paye == 0 && $object->total_ttc > 0 && $resteapayer == 0 && $usercanissuepayment && empty($discount->id))
|
|| ($object->type == Facture::TYPE_DEPOSIT && $object->paye == 0 && $object->total_ttc > 0 && $resteapayer == 0 && $usercanissuepayment && empty($discount->id))
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -321,7 +321,7 @@ if (! $resql)
|
|||||||
$num = $db->num_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
|
|
||||||
// Direct jump if only one record found
|
// Direct jump if only one record found
|
||||||
if ($num == 1 && ! empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && $sall)
|
if ($num == 1 && ! empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && $sall && ! $page)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
$id = $obj->rowid;
|
$id = $obj->rowid;
|
||||||
|
|||||||
@ -323,6 +323,7 @@ function dolSqlDateFilter($datefield, $day_date, $month_date, $year_date)
|
|||||||
* 0 =Input date is local date using PHP server timezone
|
* 0 =Input date is local date using PHP server timezone
|
||||||
* @return int Date as a timestamp
|
* @return int Date as a timestamp
|
||||||
* 19700101020000 -> 7200 with gm=1
|
* 19700101020000 -> 7200 with gm=1
|
||||||
|
* 19700101000000 -> 0 with gm=1
|
||||||
*
|
*
|
||||||
* @see dol_print_date(), dol_mktime(), dol_getdate()
|
* @see dol_print_date(), dol_mktime(), dol_getdate()
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -468,6 +468,12 @@ UPDATE llx_accounting_bookkeeping set date_creation = tms where date_creation IS
|
|||||||
-- UPDATE llx_facturedet_rec set label = NULL WHERE label IS NOT NULL;
|
-- UPDATE llx_facturedet_rec set label = NULL WHERE label IS NOT NULL;
|
||||||
|
|
||||||
|
|
||||||
|
-- Note to make all deposit as payed when there is already a discount generated from it.
|
||||||
|
--drop table tmp_invoice_deposit_mark_as_available;
|
||||||
|
--create table tmp_invoice_deposit_mark_as_available as select * from llx_facture as f where f.type = 3 and f.paye = 0 and f.rowid in (select fk_facture_source from llx_societe_remise_except);
|
||||||
|
--update llx_facture set paye = 1 where rowid in (select rowid from tmp_invoice_deposit_mark_as_available);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Note to migrate from old counter aquarium to new one
|
-- Note to migrate from old counter aquarium to new one
|
||||||
-- drop table tmp;
|
-- drop table tmp;
|
||||||
|
|||||||
@ -291,7 +291,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Direct jump if only one record found
|
// Direct jump if only one record found
|
||||||
if ($num == 1 && ! empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && $search_all)
|
if ($num == 1 && ! empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && $search_all && ! $page)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
$id = $obj->rowid;
|
$id = $obj->rowid;
|
||||||
|
|||||||
@ -197,7 +197,7 @@ if (! empty($conf->banque->enabled))
|
|||||||
{
|
{
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
print $langs->trans("BankAccount").'</td><td>';
|
print $langs->trans("BankAccount").'</td><td>';
|
||||||
print $form->select_comptes($conf->global->PAYBOX_BANK_ACCOUNT_FOR_PAYMENTS, 'PAYBOX_BANK_ACCOUNT_FOR_PAYMENTS', 0, '', 1);
|
$form->select_comptes($conf->global->PAYBOX_BANK_ACCOUNT_FOR_PAYMENTS, 'PAYBOX_BANK_ACCOUNT_FOR_PAYMENTS', 0, '', 1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -214,7 +214,7 @@ if (! empty($conf->banque->enabled))
|
|||||||
{
|
{
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
print $langs->trans("BankAccount").'</td><td>';
|
print $langs->trans("BankAccount").'</td><td>';
|
||||||
print $form->select_comptes($conf->global->PAYPAL_BANK_ACCOUNT_FOR_PAYMENTS, 'PAYPAL_BANK_ACCOUNT_FOR_PAYMENTS', 0, '', 1);
|
$form->select_comptes($conf->global->PAYPAL_BANK_ACCOUNT_FOR_PAYMENTS, 'PAYPAL_BANK_ACCOUNT_FOR_PAYMENTS', 0, '', 1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -54,19 +54,17 @@ $sortorder = GETPOST("sortorder", 'alpha');
|
|||||||
$max=3;
|
$max=3;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$companystatic=new Societe($db);
|
$companystatic=new Societe($db);
|
||||||
$projectstatic=new Project($db);
|
$projectstatic=new Project($db);
|
||||||
$userstatic=new User($db);
|
|
||||||
$form=new Form($db);
|
$form=new Form($db);
|
||||||
$formfile=new FormFile($db);
|
$formfile=new FormFile($db);
|
||||||
|
|
||||||
$projectset = ($mine?$mine:(empty($user->rights->projet->all->lire)?0:2));
|
$projectset = ($mine?$mine:(empty($user->rights->projet->all->lire)?0:2));
|
||||||
$projectsListId = $projectstatic->getProjectsAuthorizedForUser($user, $projetset, 1);
|
$projectsListId = $projectstatic->getProjectsAuthorizedForUser($user, $projectset, 1);
|
||||||
//var_dump($projectsListId);
|
//var_dump($projectsListId);
|
||||||
|
|
||||||
llxHeader("", $langs->trans("Projects"), "EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos");
|
llxHeader("", $langs->trans("Projects"), "EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos");
|
||||||
@ -80,14 +78,15 @@ $titleall=$langs->trans("AllAllowedProjects");
|
|||||||
if (! empty($user->rights->projet->all->lire) && ! $socid) $titleall=$langs->trans("AllProjects");
|
if (! empty($user->rights->projet->all->lire) && ! $socid) $titleall=$langs->trans("AllProjects");
|
||||||
else $titleall=$langs->trans("AllAllowedProjects").'<br><br>';
|
else $titleall=$langs->trans("AllAllowedProjects").'<br><br>';
|
||||||
|
|
||||||
|
|
||||||
$morehtml='';
|
$morehtml='';
|
||||||
$morehtml.='<form name="projectform">';
|
$morehtml.='<form name="projectform" method="POST">';
|
||||||
|
$morehtml.='<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
$morehtml.='<SELECT name="search_project_user">';
|
$morehtml.='<SELECT name="search_project_user">';
|
||||||
$morehtml.='<option name="all" value="0"'.($mine?'':' selected').'>'.$titleall.'</option>';
|
$morehtml.='<option name="all" value="0"'.($mine?'':' selected').'>'.$titleall.'</option>';
|
||||||
$morehtml.='<option name="mine" value="'.$user->id.'"'.(($search_project_user == $user->id)?' selected':'').'>'.$langs->trans("ProjectsImContactFor").'</option>';
|
$morehtml.='<option name="mine" value="'.$user->id.'"'.(($search_project_user == $user->id)?' selected':'').'>'.$langs->trans("ProjectsImContactFor").'</option>';
|
||||||
$morehtml.='</SELECT>';
|
$morehtml.='</SELECT>';
|
||||||
$morehtml.='<input type="submit" class="button" name="refresh" value="'.$langs->trans("Refresh").'">';
|
$morehtml.='<input type="submit" class="button" name="refresh" value="'.$langs->trans("Refresh").'">';
|
||||||
|
$morehtml.='</form>';
|
||||||
|
|
||||||
print_barre_liste($title, 0, $_SERVER["PHP_SELF"], '', '', '', '', 0, -1, 'title_project.png', 0, $morehtml);
|
print_barre_liste($title, 0, $_SERVER["PHP_SELF"], '', '', '', '', 0, -1, 'title_project.png', 0, $morehtml);
|
||||||
|
|
||||||
@ -170,7 +169,6 @@ print_projecttasks_array($db, $form, $socid, $projectsListId, 0, 0, $listofoppst
|
|||||||
|
|
||||||
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
|
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
|
||||||
|
|
||||||
|
|
||||||
// Last modified projects
|
// Last modified projects
|
||||||
$sql = "SELECT p.rowid, p.ref, p.title, p.fk_statut, p.tms as datem,";
|
$sql = "SELECT p.rowid, p.ref, p.title, p.fk_statut, p.tms as datem,";
|
||||||
$sql.= " s.rowid as socid, s.nom as name, s.email, s.client, s.fournisseur, s.code_client, s.code_fournisseur, s.canvas";
|
$sql.= " s.rowid as socid, s.nom as name, s.email, s.client, s.fournisseur, s.code_client, s.code_fournisseur, s.canvas";
|
||||||
|
|||||||
@ -23,13 +23,14 @@ a:hover {
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: #444444 !important;
|
color: #444444 !important;
|
||||||
|
|
||||||
margin: 8px 0px 8px 2px;
|
margin: 8px 2px 8px 2px;
|
||||||
|
|
||||||
/*border: 1px solid #bbb;
|
/*border: 1px solid #bbb;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
-moz-border-radius: 8px;*/
|
-moz-border-radius: 8px;*/
|
||||||
|
|
||||||
background: -webkit-linear-gradient(bottom, rgb(255,255,255) 85%, rgb(255,255,255) 100%);
|
background: -webkit-linear-gradient(bottom, rgb(255,255,255) 85%, rgb(255,255,255) 100%);
|
||||||
|
|
||||||
|
max-width: 346px;
|
||||||
}
|
}
|
||||||
.csscolumns {
|
.csscolumns {
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
@ -99,7 +100,7 @@ img.demothumb {
|
|||||||
width: 110px;
|
width: 110px;
|
||||||
}
|
}
|
||||||
.demobackground {
|
.demobackground {
|
||||||
background-image: url('dolibarr_demo_ban.jpg');
|
background-image: linear-gradient(to bottom, rgba(250,250,255,0.5), rgba(250,250,255,0.4)), url('dolibarr_demo_ban.jpg');
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
height: 140px;
|
height: 140px;
|
||||||
|
|||||||
@ -336,7 +336,7 @@ foreach ($demoprofiles as $profilearray)
|
|||||||
print '<input type="hidden" name="dol_no_mouse_hover" value="'.$conf->dol_no_mouse_hover.'">'."\n";
|
print '<input type="hidden" name="dol_no_mouse_hover" value="'.$conf->dol_no_mouse_hover.'">'."\n";
|
||||||
print '<input type="hidden" name="dol_use_jmobile" value="'.$conf->dol_use_jmobile.'">'."\n";
|
print '<input type="hidden" name="dol_use_jmobile" value="'.$conf->dol_use_jmobile.'">'."\n";
|
||||||
|
|
||||||
print '<div id="div'.$profilearray['key'].'" summary="Dolibarr online demonstration for profile '.$profilearray['label'].'" class="center inline-block CTable CTableRow'.($i%2==0?'1':'0').'" style="width: 346px;">'."\n";
|
print '<div id="div'.$profilearray['key'].'" summary="Dolibarr online demonstration for profile '.$profilearray['label'].'" class="center inline-block CTable CTableRow'.($i%2==0?'1':'0').'">'."\n";
|
||||||
|
|
||||||
|
|
||||||
print '<div id="a1'.$profilearray['key'].'" class="demobox '.(empty($profilearray['url'])?'modulelineshow cursorpointer':'nomodulelines').'">';
|
print '<div id="a1'.$profilearray['key'].'" class="demobox '.(empty($profilearray['url'])?'modulelineshow cursorpointer':'nomodulelines').'">';
|
||||||
|
|||||||
@ -486,7 +486,7 @@ if (empty($reshook))
|
|||||||
$_POST['lang_id'] = GETPOST('lang_idrib'.GETPOST('companybankid', 'int'), 'alpha');
|
$_POST['lang_id'] = GETPOST('lang_idrib'.GETPOST('companybankid', 'int'), 'alpha');
|
||||||
$_POST['model'] = GETPOST('modelrib'.GETPOST('companybankid', 'int'), 'alpha');
|
$_POST['model'] = GETPOST('modelrib'.GETPOST('companybankid', 'int'), 'alpha');
|
||||||
}
|
}
|
||||||
https://dashboard.stripe.com/search?query=risk_level%3Ahighest&account=acct_1CVGWQLYhjvFj9Sz
|
|
||||||
$id = $socid;
|
$id = $socid;
|
||||||
$upload_dir = $conf->societe->multidir_output[$object->entity];
|
$upload_dir = $conf->societe->multidir_output[$object->entity];
|
||||||
$permissioncreate=$user->rights->societe->creer;
|
$permissioncreate=$user->rights->societe->creer;
|
||||||
|
|||||||
@ -921,6 +921,7 @@ select.selectarrowonleft option {
|
|||||||
.maxwidth75onsmartphone { max-width: 50px; }
|
.maxwidth75onsmartphone { max-width: 50px; }
|
||||||
.maxwidth100onsmartphone { max-width: 70px; }
|
.maxwidth100onsmartphone { max-width: 70px; }
|
||||||
.maxwidth150onsmartphone { max-width: 120px; }
|
.maxwidth150onsmartphone { max-width: 120px; }
|
||||||
|
.maxwidth150onsmartphoneimp { max-width: 120px !important; }
|
||||||
.maxwidth200onsmartphone { max-width: 200px; }
|
.maxwidth200onsmartphone { max-width: 200px; }
|
||||||
.maxwidth300onsmartphone { max-width: 300px; }
|
.maxwidth300onsmartphone { max-width: 300px; }
|
||||||
.maxwidth400onsmartphone { max-width: 400px; }
|
.maxwidth400onsmartphone { max-width: 400px; }
|
||||||
|
|||||||
@ -1083,6 +1083,7 @@ select.selectarrowonleft option {
|
|||||||
.maxwidth75onsmartphone { max-width: 50px; }
|
.maxwidth75onsmartphone { max-width: 50px; }
|
||||||
.maxwidth100onsmartphone { max-width: 70px; }
|
.maxwidth100onsmartphone { max-width: 70px; }
|
||||||
.maxwidth150onsmartphone { max-width: 120px; }
|
.maxwidth150onsmartphone { max-width: 120px; }
|
||||||
|
.maxwidth150onsmartphoneimp { max-width: 120px !important; }
|
||||||
.maxwidth200onsmartphone { max-width: 200px; }
|
.maxwidth200onsmartphone { max-width: 200px; }
|
||||||
.maxwidth300onsmartphone { max-width: 300px; }
|
.maxwidth300onsmartphone { max-width: 300px; }
|
||||||
.maxwidth400onsmartphone { max-width: 400px; }
|
.maxwidth400onsmartphone { max-width: 400px; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user