Merge remote-tracking branch 'origin/3.7' into develop
This commit is contained in:
commit
e69b83820b
@ -157,7 +157,7 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
|||||||
$sql.= " ORDER BY dlr ASC";
|
$sql.= " ORDER BY dlr ASC";
|
||||||
|
|
||||||
// Supplier invoices
|
// Supplier invoices
|
||||||
$sql2= " SELECT 'invoice_supplier' as family, ff.rowid as objid, ff.ref_supplier as ref, (-1*ff.total_ttc) as total_ttc, ff.type, ff.date_lim_reglement as dlr,";
|
$sql2= " SELECT 'invoice_supplier' as family, ff.rowid as objid, ff.ref as ref, ff.ref_supplier as ref_supplier, (-1*ff.total_ttc) as total_ttc, ff.type, ff.date_lim_reglement as dlr,";
|
||||||
$sql2.= " s.rowid as socid, s.nom as name, s.fournisseur";
|
$sql2.= " s.rowid as socid, s.nom as name, s.fournisseur";
|
||||||
$sql2.= " FROM ".MAIN_DB_PREFIX."facture_fourn as ff";
|
$sql2.= " FROM ".MAIN_DB_PREFIX."facture_fourn as ff";
|
||||||
$sql2.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON ff.fk_soc = s.rowid";
|
$sql2.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON ff.fk_soc = s.rowid";
|
||||||
@ -254,12 +254,13 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
|||||||
|
|
||||||
if ($obj->family == 'invoice_supplier')
|
if ($obj->family == 'invoice_supplier')
|
||||||
{
|
{
|
||||||
// TODO This code is to avoid to count suppliers credit note (ff.type = 2)
|
$showline=1;
|
||||||
// Ajouter gestion des avoirs fournisseurs, champ
|
// Uncomment this line to avoid to count suppliers credit note (ff.type = 2)
|
||||||
if (($obj->total_ttc < 0 && $obj->type != 2)
|
//$showline=(($obj->total_ttc < 0 && $obj->type != 2) || ($obj->total_ttc > 0 && $obj->type == 2))
|
||||||
|| ($obj->total_ttc > 0 && $obj->type == 2))
|
if ($showline)
|
||||||
{
|
{
|
||||||
$facturefournstatic->ref=$obj->ref;
|
$ref=$obj->ref;
|
||||||
|
$facturefournstatic->ref=$ref;
|
||||||
$facturefournstatic->id=$obj->objid;
|
$facturefournstatic->id=$obj->objid;
|
||||||
$facturefournstatic->type=$obj->type;
|
$facturefournstatic->type=$obj->type;
|
||||||
$ref = $facturefournstatic->getNomUrl(1,'');
|
$ref = $facturefournstatic->getNomUrl(1,'');
|
||||||
@ -298,7 +299,7 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
|||||||
if ($paiement) $total_ttc = $obj->total_ttc - $paiement;
|
if ($paiement) $total_ttc = $obj->total_ttc - $paiement;
|
||||||
$solde += $total_ttc;
|
$solde += $total_ttc;
|
||||||
|
|
||||||
// We discard with a remain to pay to 0
|
// We discard lines with a remainder to pay to 0
|
||||||
if (price2num($total_ttc) != 0)
|
if (price2num($total_ttc) != 0)
|
||||||
{
|
{
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
|
|||||||
@ -146,10 +146,10 @@ if (($action == 'send' || $action == 'relance') && ! $_POST['addfile'] && ! $_PO
|
|||||||
if ($message)
|
if ($message)
|
||||||
{
|
{
|
||||||
$actionmsg=$langs->transnoentities('MailSentBy').' '.$from.' '.$langs->transnoentities('To').' '.$sendto;
|
$actionmsg=$langs->transnoentities('MailSentBy').' '.$from.' '.$langs->transnoentities('To').' '.$sendto;
|
||||||
if ($sendtocc) $actionmsg = dol_concatdesc($actionmsg, $langs->transnoentities('Bcc') . ": " . $sendtocc);
|
if ($sendtocc) $actionmsg = dol_concatdesc($actionmsg, $langs->transnoentities('Bcc') . ": " . $sendtocc);
|
||||||
$actionmsg = dol_concatdesc($actionmsg, $langs->transnoentities('MailTopic') . ": " . $subject);
|
$actionmsg = dol_concatdesc($actionmsg, $langs->transnoentities('MailTopic') . ": " . $subject);
|
||||||
$actionmsg = dol_concatdesc($actionmsg, $langs->transnoentities('TextUsedInTheMessageBody') . ":");
|
$actionmsg = dol_concatdesc($actionmsg, $langs->transnoentities('TextUsedInTheMessageBody') . ":");
|
||||||
$actionmsg = dol_concatdesc($actionmsg, $message);
|
$actionmsg = dol_concatdesc($actionmsg, $message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -748,10 +748,10 @@ if ($action == 'send' && ! GETPOST('cancel','alpha') && (empty($conf->global->MA
|
|||||||
$actionmsg = $langs->transnoentities('MailSentBy').' '.$from.' '.$langs->transnoentities('To').' '.$sendto;
|
$actionmsg = $langs->transnoentities('MailSentBy').' '.$from.' '.$langs->transnoentities('To').' '.$sendto;
|
||||||
if ($message)
|
if ($message)
|
||||||
{
|
{
|
||||||
if ($sendtocc) $actionmsg = dol_concatdesc($actionmsg, $langs->transnoentities('Bcc') . ": " . $sendtocc);
|
if ($sendtocc) $actionmsg = dol_concatdesc($actionmsg, $langs->transnoentities('Bcc') . ": " . $sendtocc);
|
||||||
$actionmsg = dol_concatdesc($actionmsg, $langs->transnoentities('MailTopic') . ": " . $subject);
|
$actionmsg = dol_concatdesc($actionmsg, $langs->transnoentities('MailTopic') . ": " . $subject);
|
||||||
$actionmsg = dol_concatdesc($actionmsg, $langs->transnoentities('TextUsedInTheMessageBody') . ":");
|
$actionmsg = dol_concatdesc($actionmsg, $langs->transnoentities('TextUsedInTheMessageBody') . ":");
|
||||||
$actionmsg = dol_concatdesc($actionmsg, $message);
|
$actionmsg = dol_concatdesc($actionmsg, $message);
|
||||||
}
|
}
|
||||||
$actionmsg2=$langs->transnoentities("InterventionSentByEMail",$object->ref);
|
$actionmsg2=$langs->transnoentities("InterventionSentByEMail",$object->ref);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -75,21 +75,21 @@ if (! is_object($conf)) dolibarr_install_syslog("upgrade2: conf file not initial
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (! $versionfrom && ! $versionto)
|
if (! $versionfrom && ! $versionto)
|
||||||
{
|
{
|
||||||
print 'Error: Parameter versionfrom or versionto missing.'."\n";
|
print 'Error: Parameter versionfrom or versionto missing.'."\n";
|
||||||
print 'Upgrade must be ran from cmmand line with parameters or called from page install/index.php (like a first install) instead of page install/upgrade.php'."\n";
|
print 'Upgrade must be ran from cmmand line with parameters or called from page install/index.php (like a first install) instead of page install/upgrade.php'."\n";
|
||||||
// Test if batch mode
|
// Test if batch mode
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path=dirname(__FILE__).'/';
|
$path=dirname(__FILE__).'/';
|
||||||
if (substr($sapi_type, 0, 3) == 'cli')
|
if (substr($sapi_type, 0, 3) == 'cli')
|
||||||
{
|
{
|
||||||
print 'Syntax from command line: '.$script_file." x.y.z a.b.c\n";
|
print 'Syntax from command line: '.$script_file." x.y.z a.b.c\n";
|
||||||
}
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pHeader('',"upgrade2",GETPOST('action'),'versionfrom='.$versionfrom.'&versionto='.$versionto);
|
pHeader('',"upgrade2",GETPOST('action'),'versionfrom='.$versionfrom.'&versionto='.$versionto);
|
||||||
|
|
||||||
|
|||||||
@ -83,20 +83,20 @@ if (! is_object($conf)) dolibarr_install_syslog("upgrade2: conf file not initial
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (! $versionfrom && ! $versionto)
|
if (! $versionfrom && ! $versionto)
|
||||||
{
|
{
|
||||||
print 'Error: Parameter versionfrom or versionto missing.'."\n";
|
print 'Error: Parameter versionfrom or versionto missing.'."\n";
|
||||||
print 'Upgrade must be ran from cmmand line with parameters or called from page install/index.php (like a first install) instead of page install/upgrade.php'."\n";
|
print 'Upgrade must be ran from cmmand line with parameters or called from page install/index.php (like a first install) instead of page install/upgrade.php'."\n";
|
||||||
// Test if batch mode
|
// Test if batch mode
|
||||||
$sapi_type = php_sapi_name();
|
$sapi_type = php_sapi_name();
|
||||||
$script_file = basename(__FILE__);
|
$script_file = basename(__FILE__);
|
||||||
$path=dirname(__FILE__).'/';
|
$path=dirname(__FILE__).'/';
|
||||||
if (substr($sapi_type, 0, 3) == 'cli')
|
if (substr($sapi_type, 0, 3) == 'cli')
|
||||||
{
|
{
|
||||||
print 'Syntax from command line: '.$script_file." x.y.z a.b.c\n";
|
print 'Syntax from command line: '.$script_file." x.y.z a.b.c\n";
|
||||||
}
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
pHeader('','etape5',GETPOST("action")?GETPOST("action"):'upgrade','versionfrom='.$versionfrom.'&versionto='.$versionto);
|
pHeader('','etape5',GETPOST("action")?GETPOST("action"):'upgrade','versionfrom='.$versionfrom.'&versionto='.$versionto);
|
||||||
|
|
||||||
|
|||||||
@ -683,7 +683,8 @@ function hash_call($methodName,$nvpStr)
|
|||||||
exit;*/
|
exit;*/
|
||||||
curl_setopt($ch, CURLOPT_URL, $API_Endpoint);
|
curl_setopt($ch, CURLOPT_URL, $API_Endpoint);
|
||||||
curl_setopt($ch, CURLOPT_VERBOSE, 1);
|
curl_setopt($ch, CURLOPT_VERBOSE, 1);
|
||||||
curl_setopt($ch, CURLOPT_SSLVERSION, 3); // Force SSLv3
|
//curl_setopt($ch, CURLOPT_SSLVERSION, 3); // Force SSLv3
|
||||||
|
curl_setopt($ch, CURLOPT_SSLVERSION, 1); // Force TLSv1
|
||||||
|
|
||||||
//turning off the server and peer verification(TrustManager Concept).
|
//turning off the server and peer verification(TrustManager Concept).
|
||||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user