Merge branch 'develop' of ssh://git@github.com/Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
a6bbe1032d
@ -81,6 +81,7 @@ class modMyModule extends DolibarrModules
|
|||||||
// 'models' => 0, // Set this to 1 if module has its own models directory
|
// 'models' => 0, // Set this to 1 if module has its own models directory
|
||||||
// 'css' => '/mymodule/css/mymodule.css.php', // Set this to relative path of css if module has its own css file
|
// 'css' => '/mymodule/css/mymodule.css.php', // Set this to relative path of css if module has its own css file
|
||||||
// 'hooks' => array('hookcontext1','hookcontext2') // Set here all hooks context managed by module
|
// 'hooks' => array('hookcontext1','hookcontext2') // Set here all hooks context managed by module
|
||||||
|
// 'workflow' => array('order' => array('WORKFLOW_ORDER_AUTOCREATE_INVOICE')) // Set here all workflow context managed by module
|
||||||
// );
|
// );
|
||||||
$this->module_parts = array();
|
$this->module_parts = array();
|
||||||
|
|
||||||
|
|||||||
@ -36,11 +36,13 @@ $langs->load("admin");
|
|||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
$langs->load("interventions");
|
$langs->load("interventions");
|
||||||
|
|
||||||
if (!$user->admin)
|
if (! $user->admin) accessforbidden();
|
||||||
accessforbidden();
|
|
||||||
|
|
||||||
$action = GETPOST('action','alpha');
|
$action = GETPOST('action','alpha');
|
||||||
$value = GETPOST('value','alpha');
|
$value = GETPOST('value','alpha');
|
||||||
|
$label = GETPOST('label','alpha');
|
||||||
|
$scandir = GETPOST('scandir','alpha');
|
||||||
|
$type='ficheinter';
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -146,30 +148,13 @@ if ($action == 'specimen')
|
|||||||
|
|
||||||
if ($action == 'set')
|
if ($action == 'set')
|
||||||
{
|
{
|
||||||
$label = GETPOST('label','alpha');
|
$ret = addDocumentModel($value, $type, $label, $scandir);
|
||||||
$scandir = GETPOST('scandir','alpha');
|
|
||||||
|
|
||||||
$type='ficheinter';
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity, libelle, description)";
|
|
||||||
$sql.= " VALUES ('".$db->escape($value)."','".$type."',".$conf->entity.", ";
|
|
||||||
$sql.= ($label?"'".$db->escape($label)."'":'null').", ";
|
|
||||||
$sql.= (! empty($scandir)?"'".$db->escape($scandir)."'":"null");
|
|
||||||
$sql.= ")";
|
|
||||||
if ($db->query($sql))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action == 'del')
|
if ($action == 'del')
|
||||||
{
|
{
|
||||||
$type='ficheinter';
|
$ret = delDocumentModel($value, $type);
|
||||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
if ($ret > 0)
|
||||||
$sql.= " WHERE nom = '".$db->escape($value)."'";
|
|
||||||
$sql.= " AND type = '".$type."'";
|
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
|
||||||
|
|
||||||
if ($db->query($sql))
|
|
||||||
{
|
{
|
||||||
if ($conf->global->FICHEINTER_ADDON_PDF == "$value") dolibarr_del_const($db, 'FICHEINTER_ADDON_PDF',$conf->entity);
|
if ($conf->global->FICHEINTER_ADDON_PDF == "$value") dolibarr_del_const($db, 'FICHEINTER_ADDON_PDF',$conf->entity);
|
||||||
}
|
}
|
||||||
@ -177,11 +162,6 @@ if ($action == 'del')
|
|||||||
|
|
||||||
if ($action == 'setdoc')
|
if ($action == 'setdoc')
|
||||||
{
|
{
|
||||||
$label = GETPOST('label','alpha');
|
|
||||||
$scandir = GETPOST('scandir','alpha');
|
|
||||||
|
|
||||||
$db->begin();
|
|
||||||
|
|
||||||
if (dolibarr_set_const($db, "FICHEINTER_ADDON_PDF",$value,'chaine',0,'',$conf->entity))
|
if (dolibarr_set_const($db, "FICHEINTER_ADDON_PDF",$value,'chaine',0,'',$conf->entity))
|
||||||
{
|
{
|
||||||
// La constante qui a ete lue en avant du nouveau set
|
// La constante qui a ete lue en avant du nouveau set
|
||||||
@ -190,28 +170,10 @@ if ($action == 'setdoc')
|
|||||||
}
|
}
|
||||||
|
|
||||||
// On active le modele
|
// On active le modele
|
||||||
$type='ficheinter';
|
$ret = delDocumentModel($value, $type);
|
||||||
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
if ($ret > 0)
|
||||||
$sql_del.= " WHERE nom = '".$db->escape($value)."'";
|
|
||||||
$sql_del.= " AND type = '".$type."'";
|
|
||||||
$sql_del.= " AND entity = ".$conf->entity;
|
|
||||||
dol_syslog("fichinter: sql_del=".$sql_del);
|
|
||||||
$result1=$db->query($sql_del);
|
|
||||||
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity, libelle, description)";
|
|
||||||
$sql.= " VALUES ('".$db->escape($value)."', '".$type."', ".$conf->entity.", ";
|
|
||||||
$sql.= ($label?"'".$db->escape($label)."'":'null').", ";
|
|
||||||
$sql.= (! empty($scandir)?"'".$db->escape($scandir)."'":"null");
|
|
||||||
$sql.= ")";
|
|
||||||
dol_syslog("fichinter: sql_del=".$sql_del);
|
|
||||||
$result2=$db->query($sql);
|
|
||||||
if ($result1 && $result2)
|
|
||||||
{
|
{
|
||||||
$db->commit();
|
$ret = addDocumentModel($value, $type, $label, $scandir);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$db->rollback();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -372,9 +334,9 @@ print "</tr>\n";
|
|||||||
clearstatcache();
|
clearstatcache();
|
||||||
|
|
||||||
$var=true;
|
$var=true;
|
||||||
foreach ($conf->file->dol_document_root as $dirroot)
|
foreach ($dirmodels as $reldir)
|
||||||
{
|
{
|
||||||
$dir = $dirroot . "/core/modules/fichinter/doc/";
|
$dir = dol_buildpath($reldir."core/modules/fichinter/doc/");
|
||||||
|
|
||||||
if (is_dir($dir))
|
if (is_dir($dir))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -37,8 +37,11 @@ $langs->load("errors");
|
|||||||
|
|
||||||
if (! $user->admin) accessforbidden();
|
if (! $user->admin) accessforbidden();
|
||||||
|
|
||||||
$action =GETPOST('action','alpha');
|
$action = GETPOST('action','alpha');
|
||||||
$value = GETPOST('value','alpha');
|
$value = GETPOST('value','alpha');
|
||||||
|
$label = GETPOST('label','alpha');
|
||||||
|
$scandir = GETPOST('scandir','alpha');
|
||||||
|
$type='propal';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
@ -183,26 +186,13 @@ if ($action == 'setclassifiedinvoiced')
|
|||||||
|
|
||||||
if ($action == 'set')
|
if ($action == 'set')
|
||||||
{
|
{
|
||||||
$label = GETPOST('label','alpha');
|
$ret = addDocumentModel($value, $type, $label, $scandir);
|
||||||
$scandir = GETPOST('scandir','alpha');
|
|
||||||
|
|
||||||
$type='propal';
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity, libelle, description)";
|
|
||||||
$sql.= " VALUES ('".$db->escape($value)."','".$type."',".$conf->entity.", ";
|
|
||||||
$sql.= ($label?"'".$db->escape($label)."'":'null').", ";
|
|
||||||
$sql.= (! empty($scandir)?"'".$db->escape($scandir)."'":"null");
|
|
||||||
$sql.= ")";
|
|
||||||
$resql=$db->query($sql);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ($action == 'del')
|
else if ($action == 'del')
|
||||||
{
|
{
|
||||||
$type='propal';
|
$ret = delDocumentModel($value, $type);
|
||||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
if ($ret > 0)
|
||||||
$sql.= " WHERE nom = '".$db->escape($value)."'";
|
|
||||||
$sql.= " AND type = '".$type."'";
|
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
|
||||||
if ($db->query($sql))
|
|
||||||
{
|
{
|
||||||
if ($conf->global->PROPALE_ADDON_PDF == "$value") dolibarr_del_const($db, 'PROPALE_ADDON_PDF',$conf->entity);
|
if ($conf->global->PROPALE_ADDON_PDF == "$value") dolibarr_del_const($db, 'PROPALE_ADDON_PDF',$conf->entity);
|
||||||
}
|
}
|
||||||
@ -210,37 +200,16 @@ else if ($action == 'del')
|
|||||||
|
|
||||||
else if ($action == 'setdoc')
|
else if ($action == 'setdoc')
|
||||||
{
|
{
|
||||||
$label = GETPOST('label','alpha');
|
|
||||||
$scandir = GETPOST('scandir','alpha');
|
|
||||||
|
|
||||||
$db->begin();
|
|
||||||
|
|
||||||
if (dolibarr_set_const($db, "PROPALE_ADDON_PDF",$value,'chaine',0,'',$conf->entity))
|
if (dolibarr_set_const($db, "PROPALE_ADDON_PDF",$value,'chaine',0,'',$conf->entity))
|
||||||
{
|
{
|
||||||
$conf->global->PROPALE_ADDON_PDF = $value;
|
$conf->global->PROPALE_ADDON_PDF = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
// On active le modele
|
// On active le modele
|
||||||
$type='propal';
|
$ret = delDocumentModel($value, $type);
|
||||||
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
if ($ret > 0)
|
||||||
$sql_del.= " WHERE nom = '".$db->escape($value)."'";
|
|
||||||
$sql_del.= " AND type = '".$type."'";
|
|
||||||
$sql_del.= " AND entity = ".$conf->entity;
|
|
||||||
$result1=$db->query($sql_del);
|
|
||||||
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity, libelle, description)";
|
|
||||||
$sql.= " VALUES ('".$db->escape($value)."', '".$type."', ".$conf->entity.", ";
|
|
||||||
$sql.= ($value?"'".$db->escape($label)."'":'null').", ";
|
|
||||||
$sql.= (! empty($value)?"'".$db->escape($scandir)."'":"null");
|
|
||||||
$sql.= ")";
|
|
||||||
$result2=$db->query($sql);
|
|
||||||
if ($result1 && $result2)
|
|
||||||
{
|
{
|
||||||
$db->commit();
|
$ret = addDocumentModel($value, $type, $label, $scandir);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$db->rollback();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -77,10 +77,36 @@ print "</tr>\n";
|
|||||||
clearstatcache();
|
clearstatcache();
|
||||||
|
|
||||||
$workflowcodes=array();
|
$workflowcodes=array();
|
||||||
if ($conf->propal->enabled && $conf->commande->enabled) $workflowcodes['WORKFLOW_PROPAL_AUTOCREATE_ORDER']='WORKFLOW_PROPAL_AUTOCREATE_ORDER';
|
$workflow=array(
|
||||||
//if ($conf->propal->enabled && $conf->facture->enabled) $workflowcodes['WORKFLOW_PROPAL_AUTOCREATE_INVOICE']='WORKFLOW_PROPAL_AUTOCREATE_INVOICE';
|
'order' => array(
|
||||||
//if ($conf->contrat->enabled && $conf->facture->enabled) $workflowcodes['WORKFLOW_CONTRACT_AUTOCREATE_INVOICE']='WORKFLOW_CONTRACT_AUTOCREATE_INVOICE';
|
'propal' => array('WORKFLOW_PROPAL_AUTOCREATE_ORDER')
|
||||||
if ($conf->commande->enabled && $conf->facture->enabled) $workflowcodes['WORKFLOW_ORDER_AUTOCREATE_INVOICE']='WORKFLOW_ORDER_AUTOCREATE_INVOICE';
|
),
|
||||||
|
'invoice' => array (
|
||||||
|
'order' => array('WORKFLOW_ORDER_AUTOCREATE_INVOICE')
|
||||||
|
//,'contract' => array('WORKFLOW_CONTRACT_AUTOCREATE_INVOICE')
|
||||||
|
//, 'propal' => array('WORKFLOW_PROPAL_AUTOCREATE_INVOICE')
|
||||||
|
)
|
||||||
|
);
|
||||||
|
$workflow = array_merge($workflow, $conf->modules_parts['workflow']);
|
||||||
|
|
||||||
|
foreach($workflow as $child => $parents)
|
||||||
|
{
|
||||||
|
if ($conf->$child->enabled)
|
||||||
|
{
|
||||||
|
$langs->Load($child.'@'.$child);
|
||||||
|
|
||||||
|
foreach($parents as $parent => $actions)
|
||||||
|
{
|
||||||
|
if ($conf->$parent->enabled)
|
||||||
|
{
|
||||||
|
foreach($actions as $action)
|
||||||
|
{
|
||||||
|
$workflowcodes[$action] = $action;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (count($workflowcodes) > 0)
|
if (count($workflowcodes) > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -192,7 +192,7 @@ if ($action == 'sendallconfirmed' && $confirm == 'yes')
|
|||||||
$substitutionarray=array(
|
$substitutionarray=array(
|
||||||
'__ID__' => $obj->source_id,
|
'__ID__' => $obj->source_id,
|
||||||
'__EMAIL__' => $obj->email,
|
'__EMAIL__' => $obj->email,
|
||||||
'__CHECK_READ__' => '<img src="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-read.php?tag='.$obj->tag.'" style="width:0px;height:0px" border="0"/>',
|
'__CHECK_READ__' => '<img src="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-read.php?tag='.$obj->tag.'" width="0" height="0" style="width:0px;height:0px" border="0"/>',
|
||||||
'__UNSUSCRIBE__' => '<a href="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-usubscribe.php?tag='.$obj->tag.'&unsuscrib=1" target="_blank"/>'.$langs->trans("MailUnsubcribe").'</a>',
|
'__UNSUSCRIBE__' => '<a href="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-usubscribe.php?tag='.$obj->tag.'&unsuscrib=1" target="_blank"/>'.$langs->trans("MailUnsubcribe").'</a>',
|
||||||
'__LASTNAME__' => $obj->nom,
|
'__LASTNAME__' => $obj->nom,
|
||||||
'__FIRSTNAME__' => $obj->prenom,
|
'__FIRSTNAME__' => $obj->prenom,
|
||||||
@ -257,6 +257,34 @@ if ($action == 'sendallconfirmed' && $confirm == 'yes')
|
|||||||
{
|
{
|
||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//if cheack read is use then update prospect contact status
|
||||||
|
if (strpos($message, '__CHECK_READ__') !== false)
|
||||||
|
{
|
||||||
|
//Update status communication of thirdparty prospect
|
||||||
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=2 WHERE rowid IN (SELECT source_id FROM ".MAIN_DB_PREFIX."mailing_cibles WHERE rowid=".$obj->rowid.")";
|
||||||
|
dol_syslog("fiche.php: set prospect thirdparty status sql=".$sql, LOG_DEBUG);
|
||||||
|
$resql2=$db->query($sql);
|
||||||
|
if (! $resql2)
|
||||||
|
{
|
||||||
|
dol_print_error($db);
|
||||||
|
}
|
||||||
|
|
||||||
|
//Update status communication of contact prospect
|
||||||
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=2 WHERE rowid IN (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX."socpeople AS sc INNER JOIN ".MAIN_DB_PREFIX."mailing_cibles AS mc ON mc.rowid=".$obj->rowid." AND mc.source_type = 'contact' AND mc.source_id = sc.rowid)";
|
||||||
|
dol_syslog("fiche.php: set prospect contact status sql=".$sql, LOG_DEBUG);
|
||||||
|
|
||||||
|
$resql2=$db->query($sql);
|
||||||
|
if (! $resql2)
|
||||||
|
{
|
||||||
|
dol_print_error($db);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//test if CHECK READ change statut prospect contact
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -401,6 +401,9 @@ class Conf
|
|||||||
|
|
||||||
// For backward compatibility
|
// For backward compatibility
|
||||||
$this->produit=$this->product;
|
$this->produit=$this->product;
|
||||||
|
$this->invoice=$this->facture;
|
||||||
|
$this->order=$this->commande;
|
||||||
|
$this->contract=$this->contrat;
|
||||||
|
|
||||||
|
|
||||||
// Define menu manager in setup
|
// Define menu manager in setup
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2008-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2008-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2012 Regis Houssin <regis@dolibarr.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -1121,4 +1121,73 @@ function form_constantes($tableau)
|
|||||||
print '</table>';
|
print '</table>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add document model used by doc generator
|
||||||
|
*
|
||||||
|
* @param string $name Model name
|
||||||
|
* @param string $type Model type
|
||||||
|
* @param string $label Model label
|
||||||
|
* @param string $description Model description
|
||||||
|
* @return int <0 if KO, >0 if OK
|
||||||
|
*/
|
||||||
|
function addDocumentModel($name, $type, $label='', $description='')
|
||||||
|
{
|
||||||
|
global $db, $conf;
|
||||||
|
|
||||||
|
$db->begin();
|
||||||
|
|
||||||
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity, libelle, description)";
|
||||||
|
$sql.= " VALUES ('".$db->escape($name)."','".$type."',".$conf->entity.", ";
|
||||||
|
$sql.= ($label?"'".$db->escape($label)."'":'null').", ";
|
||||||
|
$sql.= (! empty($description)?"'".$db->escape($description)."'":"null");
|
||||||
|
$sql.= ")";
|
||||||
|
|
||||||
|
dol_syslog("admin.lib::addDocumentModel sql=".$sql);
|
||||||
|
$resql=$db->query($sql);
|
||||||
|
if ($resql)
|
||||||
|
{
|
||||||
|
$db->commit();
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dol_print_error($db);
|
||||||
|
$db->rollback();
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete document model used by doc generator
|
||||||
|
*
|
||||||
|
* @param string $name Model name
|
||||||
|
* @param string $type Model type
|
||||||
|
* @return int <0 if KO, >0 if OK
|
||||||
|
*/
|
||||||
|
function delDocumentModel($name, $type)
|
||||||
|
{
|
||||||
|
global $db, $conf;
|
||||||
|
|
||||||
|
$db->begin();
|
||||||
|
|
||||||
|
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
|
$sql.= " WHERE nom = '".$db->escape($name)."'";
|
||||||
|
$sql.= " AND type = '".$type."'";
|
||||||
|
$sql.= " AND entity = ".$conf->entity;
|
||||||
|
|
||||||
|
dol_syslog("admin.lib::delDocumentModel sql=".$sql);
|
||||||
|
$resql=$db->query($sql);
|
||||||
|
if ($resql)
|
||||||
|
{
|
||||||
|
$db->commit();
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dol_print_error($db);
|
||||||
|
$db->rollback();
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -695,12 +695,14 @@ function pdf_pagefoot(&$pdf,$outputlangs,$paramfreetext,$fromcompany,$marge_bass
|
|||||||
* @param Translate $outputlangs Object lang
|
* @param Translate $outputlangs Object lang
|
||||||
* @param int $posx X
|
* @param int $posx X
|
||||||
* @param int $posy Y
|
* @param int $posy Y
|
||||||
|
* @param float $w Width of cells. If 0, they extend up to the right margin of the page.
|
||||||
|
* @param float $h Cell minimum height. The cell extends automatically if needed.
|
||||||
* @param int $align Align
|
* @param int $align Align
|
||||||
* @param string $default_font_size Font size
|
* @param string $default_font_size Font size
|
||||||
* @param HookManager $hookmanager Hook manager object
|
* @param HookManager $hookmanager Hook manager object
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function pdf_writeLinkedObjects(&$pdf,$object,$outputlangs,$posx,$posy,$align,$default_font_size,$hookmanager=false)
|
function pdf_writeLinkedObjects(&$pdf,$object,$outputlangs,$posx,$posy,$w,$h,$align,$default_font_size,$hookmanager=false)
|
||||||
{
|
{
|
||||||
$linkedobjects = pdf_getLinkedObjects($object,$outputlangs,$hookmanager);
|
$linkedobjects = pdf_getLinkedObjects($object,$outputlangs,$hookmanager);
|
||||||
if (! empty($linkedobjects))
|
if (! empty($linkedobjects))
|
||||||
@ -710,13 +712,13 @@ function pdf_writeLinkedObjects(&$pdf,$object,$outputlangs,$posx,$posy,$align,$d
|
|||||||
$posy+=3;
|
$posy+=3;
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
$pdf->SetFont('','', $default_font_size - 2);
|
$pdf->SetFont('','', $default_font_size - 2);
|
||||||
$pdf->MultiCell(100, 3, $linkedobject["ref_title"].' : '.$linkedobject["ref_value"], '', $align);
|
$pdf->MultiCell($w, $h, $linkedobject["ref_title"].' : '.$linkedobject["ref_value"], '', $align);
|
||||||
|
|
||||||
if (! empty($linkedobject["date_title"]) && ! empty($linkedobject["date_value"]))
|
if (! empty($linkedobject["date_title"]) && ! empty($linkedobject["date_value"]))
|
||||||
{
|
{
|
||||||
$posy+=3;
|
$posy+=3;
|
||||||
$pdf->SetXY($posx,$posy);
|
$pdf->SetXY($posx,$posy);
|
||||||
$pdf->MultiCell(100, 3, $linkedobject["date_title"].' : '.$linkedobject["date_value"], '', $align);
|
$pdf->MultiCell($w, $h, $linkedobject["date_title"].' : '.$linkedobject["date_value"], '', $align);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -653,7 +653,7 @@ class pdf_edison extends ModelePDFCommandes
|
|||||||
$posy+=1;
|
$posy+=1;
|
||||||
|
|
||||||
// Show list of linked objects
|
// Show list of linked objects
|
||||||
$posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, 'L', $default_font_size, $hookmanager);
|
$posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, 100, 3, 'L', $default_font_size, $hookmanager);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -930,7 +930,7 @@ class pdf_einstein extends ModelePDFCommandes
|
|||||||
$posy+=2;
|
$posy+=2;
|
||||||
|
|
||||||
// Show list of linked objects
|
// Show list of linked objects
|
||||||
$posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, 'R', $default_font_size, $hookmanager);
|
$posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, 100, 3, 'R', $default_font_size, $hookmanager);
|
||||||
|
|
||||||
if ($showaddress)
|
if ($showaddress)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1125,7 +1125,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$posy+=2;
|
$posy+=2;
|
||||||
|
|
||||||
// Show list of linked objects
|
// Show list of linked objects
|
||||||
$posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, 'R', $default_font_size, $hookmanager);
|
$posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, 100, 3, 'R', $default_font_size, $hookmanager);
|
||||||
|
|
||||||
if ($showaddress)
|
if ($showaddress)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1003,7 +1003,7 @@ class pdf_oursin extends ModelePDFFactures
|
|||||||
$posy+=1;
|
$posy+=1;
|
||||||
|
|
||||||
// Show list of linked objects
|
// Show list of linked objects
|
||||||
$posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, 'L', $default_font_size, $hookmanager);
|
$posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, 100, 3, 'L', $default_font_size, $hookmanager);
|
||||||
|
|
||||||
// Amount in (at tab_top - 1)
|
// Amount in (at tab_top - 1)
|
||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
|
|||||||
@ -184,13 +184,24 @@ class MailingTargets // This can't be abstract as it is used for some method
|
|||||||
|
|
||||||
dol_syslog(get_class($this)."::add_to_target: mailing ".$j." targets added");
|
dol_syslog(get_class($this)."::add_to_target: mailing ".$j." targets added");
|
||||||
|
|
||||||
//Update the status to show poelple that don't want to be contacted anymore'
|
//Update the status to show thirdparty mail that don't want to be contacted anymore'
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."mailing_cibles";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."mailing_cibles";
|
||||||
$sql .= " SET statut=3";
|
$sql .= " SET statut=3";
|
||||||
$sql .= " WHERE fk_mailing=".$mailing_id." and email in (SELECT email FROM ".MAIN_DB_PREFIX."societe where fk_stcomm=-1)";
|
$sql .= " WHERE fk_mailing=".$mailing_id." AND email in (SELECT email FROM ".MAIN_DB_PREFIX."societe where fk_stcomm=-1)";
|
||||||
|
$sql .= " AND source_type='thirdparty'";
|
||||||
$result=$this->db->query($sql);
|
$result=$this->db->query($sql);
|
||||||
|
|
||||||
dol_syslog("MailingTargets::add_to_target: mailing update status to display people that do not want to be contacted sql:".$sql);
|
dol_syslog(get_class($this)."::add_to_target: mailing update status to display thirdparty mail that do not want to be contacted sql:".$sql);
|
||||||
|
|
||||||
|
//Update the status to show contact mail that don't want to be contacted anymore'
|
||||||
|
$sql = "UPDATE ".MAIN_DB_PREFIX."mailing_cibles";
|
||||||
|
$sql .= " SET statut=3";
|
||||||
|
$sql .= " WHERE fk_mailing=".$mailing_id." AND email in (SELECT sc.email FROM ".MAIN_DB_PREFIX."socpeople AS sc ";
|
||||||
|
$sql .= " INNER JOIN ".MAIN_DB_PREFIX."societe s ON s.fk_stcomm=-1 AND s.rowid=sc.fk_soc)";
|
||||||
|
$sql .= " AND source_type='contact'";
|
||||||
|
$result=$this->db->query($sql);
|
||||||
|
|
||||||
|
dol_syslog(get_class($this)."::add_to_target: mailing update status to display contact mail that do not want to be contacted sql:".$sql);
|
||||||
|
|
||||||
|
|
||||||
$this->update_nb($mailing_id);
|
$this->update_nb($mailing_id);
|
||||||
|
|||||||
@ -69,7 +69,7 @@ class modWorkflow extends DolibarrModules
|
|||||||
$this->dirs = array("/workflow/temp");
|
$this->dirs = array("/workflow/temp");
|
||||||
|
|
||||||
// Config pages. Put here list of php page names stored in admmin directory used to setup module.
|
// Config pages. Put here list of php page names stored in admmin directory used to setup module.
|
||||||
$this->config_page_url = 'workflow.php';
|
$this->config_page_url = array('workflow.php');
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
$this->depends = array(); // List of modules id that must be enabled if this module is enabled
|
$this->depends = array(); // List of modules id that must be enabled if this module is enabled
|
||||||
|
|||||||
@ -985,7 +985,7 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
$posy+=2;
|
$posy+=2;
|
||||||
|
|
||||||
// Show list of linked objects
|
// Show list of linked objects
|
||||||
$posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, 'R', $default_font_size, $hookmanager);
|
$posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, 100, 3, 'R', $default_font_size, $hookmanager);
|
||||||
|
|
||||||
if ($showaddress)
|
if ($showaddress)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2011-2012 Juanjo Menent <jmenent@2byte.es>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -40,7 +40,7 @@ $langs->load("externalsite");
|
|||||||
|
|
||||||
$def = array();
|
$def = array();
|
||||||
|
|
||||||
$action = GETPOST("action");
|
$action = GETPOST('action','alpha');
|
||||||
|
|
||||||
// Sauvegardes parametres
|
// Sauvegardes parametres
|
||||||
if ($action == 'update')
|
if ($action == 'update')
|
||||||
@ -49,7 +49,7 @@ if ($action == 'update')
|
|||||||
|
|
||||||
$db->begin();
|
$db->begin();
|
||||||
|
|
||||||
$exturl = GETPOST("EXTERNALSITE_URL");
|
$exturl = GETPOST('EXTERNALSITE_URL','alpha');
|
||||||
|
|
||||||
$i+=dolibarr_set_const($db,'EXTERNALSITE_URL',trim($exturl),'chaine',0,'',$conf->entity);
|
$i+=dolibarr_set_const($db,'EXTERNALSITE_URL',trim($exturl),'chaine',0,'',$conf->entity);
|
||||||
//$i+=dolibarr_set_const($db,'EXTERNALSITE_LABEL',trim($_POST["EXTERNALSITE_LABEL"]),'chaine',0,'',$conf->entity);
|
//$i+=dolibarr_set_const($db,'EXTERNALSITE_LABEL',trim($_POST["EXTERNALSITE_LABEL"]),'chaine',0,'',$conf->entity);
|
||||||
@ -99,7 +99,7 @@ print "</tr>";
|
|||||||
|
|
||||||
print "<tr class=\"impair\">";
|
print "<tr class=\"impair\">";
|
||||||
print "<td>".$langs->trans("ExternalSiteURL")."</td>";
|
print "<td>".$langs->trans("ExternalSiteURL")."</td>";
|
||||||
print "<td><input type=\"text\" class=\"flat\" name=\"EXTERNALSITE_URL\" value=\"". ($_POST["EXTERNALSITE_URL"]?$_POST["EXTERNALSITE_URL"]:$conf->global->EXTERNALSITE_URL) . "\" size=\"40\"></td>";
|
print "<td><input type=\"text\" class=\"flat\" name=\"EXTERNALSITE_URL\" value=\"". (GETPOST('EXTERNALSITE_URL','alpha')?GETPOST('EXTERNALSITE_URL','alpha'):$conf->global->EXTERNALSITE_URL) . "\" size=\"40\"></td>";
|
||||||
print "<td>http://localhost/myurl/";
|
print "<td>http://localhost/myurl/";
|
||||||
print "<br>http://wikipedia.org/";
|
print "<br>http://wikipedia.org/";
|
||||||
print "</td>";
|
print "</td>";
|
||||||
|
|||||||
125
htdocs/fourn/commande/index.php
Normal file → Executable file
125
htdocs/fourn/commande/index.php
Normal file → Executable file
@ -2,6 +2,7 @@
|
|||||||
/* Copyright (C) 2001-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2011 Regis Houssin <regis@dolibarr.fr>
|
||||||
|
* Copyright (C) 2012-2012 Vinicius Nogueira <viniciusvgn@gmail.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -147,47 +148,54 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Commandes brouillons
|
* Legends / Status
|
||||||
|
*
|
||||||
|
* Motivo: Mostrar todos os Status e dar a possibilidade de filtrar apenas um deles
|
||||||
|
* Reason: Show all Status and give the possibility to filter only one
|
||||||
*/
|
*/
|
||||||
if ($conf->fournisseur->enabled)
|
|
||||||
|
$sql = "SELECT count(cf.rowid), fk_statut";
|
||||||
|
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
|
||||||
|
$sql.= ", ".MAIN_DB_PREFIX."commande_fournisseur as cf";
|
||||||
|
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
||||||
|
$sql.= " WHERE cf.fk_soc = s.rowid";
|
||||||
|
$sql.= " AND s.entity = ".$conf->entity;
|
||||||
|
if ($user->societe_id) $sql.=' AND cf.fk_soc = '.$user->societe_id;
|
||||||
|
if (!$user->rights->societe->client->voir && !$socid) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;
|
||||||
|
$sql.= " GROUP BY cf.fk_statut";
|
||||||
|
|
||||||
|
$resql = $db->query($sql);
|
||||||
|
if ($resql)
|
||||||
{
|
{
|
||||||
$sql = "SELECT c.rowid, c.ref, s.nom, s.rowid as socid";
|
$num = $db->num_rows($resql);
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."commande_fournisseur as c";
|
$i = 0;
|
||||||
$sql.= ", ".MAIN_DB_PREFIX."societe as s";
|
|
||||||
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
|
||||||
$sql.= " WHERE c.fk_soc = s.rowid";
|
|
||||||
$sql.= " AND c.entity = ".$conf->entity;
|
|
||||||
$sql.= " AND c.fk_statut = 0";
|
|
||||||
if ($socid) $sql.= " AND c.fk_soc = ".$socid;
|
|
||||||
if (!$user->rights->societe->client->voir && !$socid) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;
|
|
||||||
|
|
||||||
$resql=$db->query($sql);
|
print '<table class="liste" width="100%">';
|
||||||
if ($resql)
|
|
||||||
|
print '<tr class="liste_titre"><td>'.$langs->trans("Status").'</td>';
|
||||||
|
print '<td align="right">'.$langs->trans("Nb").'</td>';
|
||||||
|
print "</tr>\n";
|
||||||
|
$var=True;
|
||||||
|
|
||||||
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
print '<table class="noborder" width="100%">';
|
$row = $db->fetch_row($resql);
|
||||||
print '<tr class="liste_titre">';
|
$var=!$var;
|
||||||
print '<td colspan="2">'.$langs->trans("DraftOrders").'</td></tr>';
|
|
||||||
$langs->load("orders");
|
|
||||||
$num = $db->num_rows($resql);
|
|
||||||
if ($num)
|
|
||||||
{
|
|
||||||
$i = 0;
|
|
||||||
$var = True;
|
|
||||||
while ($i < $num)
|
|
||||||
{
|
|
||||||
$var=!$var;
|
|
||||||
$obj = $db->fetch_object($resql);
|
|
||||||
print "<tr $bc[$var]>";
|
|
||||||
print '<td nowrap="nowrap">';
|
|
||||||
print "<a href=\"fiche.php?id=".$obj->rowid."\">".img_object($langs->trans("ShowOrder"),"order").' '.$obj->ref."</a></td>";
|
|
||||||
print '<td><a href="'.DOL_URL_ROOT.'/fourn/fiche.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($obj->nom,24).'</a></td></tr>';
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
print "</table><br>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
print "<tr $bc[$var]>";
|
||||||
|
print '<td>'.$langs->trans($commandestatic->statuts[$row[1]]).'</td>';
|
||||||
|
print '<td align="right"><a href="liste.php?statut='.$row[1].'">'.$row[0].' '.$commandestatic->LibStatut($row[1],3).'</a></td>';
|
||||||
|
|
||||||
|
print "</tr>\n";
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
print "</table><br>";
|
||||||
|
$db->free($resql);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dol_print_error($db);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* List of users allowed
|
* List of users allowed
|
||||||
@ -312,11 +320,54 @@ if ($resql)
|
|||||||
}
|
}
|
||||||
else dol_print_error($db);
|
else dol_print_error($db);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Commandes brouillons
|
||||||
|
*/
|
||||||
|
// Drafts position of the box changed to a better visualization
|
||||||
|
|
||||||
|
if ($conf->fournisseur->enabled)
|
||||||
|
{
|
||||||
|
$sql = "SELECT c.rowid, c.ref, s.nom, s.rowid as socid";
|
||||||
|
$sql.= " FROM ".MAIN_DB_PREFIX."commande_fournisseur as c";
|
||||||
|
$sql.= ", ".MAIN_DB_PREFIX."societe as s";
|
||||||
|
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
||||||
|
$sql.= " WHERE c.fk_soc = s.rowid";
|
||||||
|
$sql.= " AND c.entity = ".$conf->entity;
|
||||||
|
$sql.= " AND c.fk_statut = 0";
|
||||||
|
if ($socid) $sql.= " AND c.fk_soc = ".$socid;
|
||||||
|
if (!$user->rights->societe->client->voir && !$socid) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;
|
||||||
|
|
||||||
|
$resql=$db->query($sql);
|
||||||
|
if ($resql)
|
||||||
|
{
|
||||||
|
print '<table class="noborder" width="100%">';
|
||||||
|
print '<tr class="liste_titre">';
|
||||||
|
print '<td colspan="2">'.$langs->trans("DraftOrders").'</td></tr>';
|
||||||
|
$langs->load("orders");
|
||||||
|
$num = $db->num_rows($resql);
|
||||||
|
if ($num)
|
||||||
|
{
|
||||||
|
$i = 0;
|
||||||
|
$var = True;
|
||||||
|
while ($i < $num)
|
||||||
|
{
|
||||||
|
$var=!$var;
|
||||||
|
$obj = $db->fetch_object($resql);
|
||||||
|
print "<tr $bc[$var]>";
|
||||||
|
print '<td nowrap="nowrap">';
|
||||||
|
print "<a href=\"fiche.php?id=".$obj->rowid."\">".img_object($langs->trans("ShowOrder"),"order").' '.$obj->ref."</a></td>";
|
||||||
|
print '<td><a href="'.DOL_URL_ROOT.'/fourn/fiche.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($obj->nom,24).'</a></td></tr>';
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
print "</table><br>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Orders to process
|
* Orders to process
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
$sql = "SELECT c.rowid, c.ref, c.fk_statut, s.nom, s.rowid as socid";
|
$sql = "SELECT c.rowid, c.ref, c.fk_statut, s.nom, s.rowid as socid";
|
||||||
$sql.=" FROM ".MAIN_DB_PREFIX."commande_fournisseur as c";
|
$sql.=" FROM ".MAIN_DB_PREFIX."commande_fournisseur as c";
|
||||||
$sql.= ", ".MAIN_DB_PREFIX."societe as s";
|
$sql.= ", ".MAIN_DB_PREFIX."societe as s";
|
||||||
|
|||||||
@ -34,8 +34,8 @@ if (!$user->admin) accessforbidden();
|
|||||||
$def = array();
|
$def = array();
|
||||||
$lastftpentry=0;
|
$lastftpentry=0;
|
||||||
|
|
||||||
$action = GETPOST("action");
|
$action = GETPOST('action','alpha');
|
||||||
$entry = GETPOST("numero_entry");
|
$entry = GETPOST('numero_entry','alpha');
|
||||||
|
|
||||||
// Positionne la variable pour le nombre de rss externes
|
// Positionne la variable pour le nombre de rss externes
|
||||||
$sql ="select MAX(name) as name from ".MAIN_DB_PREFIX."const";
|
$sql ="select MAX(name) as name from ".MAIN_DB_PREFIX."const";
|
||||||
@ -52,7 +52,7 @@ else
|
|||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action == 'add' || GETPOST("modify"))
|
if ($action == 'add' || GETPOST('modify','alpha'))
|
||||||
{
|
{
|
||||||
$ftp_name = "FTP_NAME_" . $entry;// $_POST["numero_entry"];
|
$ftp_name = "FTP_NAME_" . $entry;// $_POST["numero_entry"];
|
||||||
$ftp_server = "FTP_SERVER_" . $entry; //$_POST["numero_entry"];
|
$ftp_server = "FTP_SERVER_" . $entry; //$_POST["numero_entry"];
|
||||||
@ -60,13 +60,13 @@ if ($action == 'add' || GETPOST("modify"))
|
|||||||
$error=0;
|
$error=0;
|
||||||
$mesg='';
|
$mesg='';
|
||||||
|
|
||||||
if (! GETPOST("$ftp_name"))
|
if (! GETPOST("$ftp_name",'alpha'))
|
||||||
{
|
{
|
||||||
$error=1;
|
$error=1;
|
||||||
$mesg.='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Label")).'</div>';
|
$mesg.='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Label")).'</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! GETPOST("$ftp_server"))
|
if (! GETPOST("$ftp_server",'alpha'))
|
||||||
{
|
{
|
||||||
$error=1;
|
$error=1;
|
||||||
$mesg.='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Server")).'</div>';
|
$mesg.='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Server")).'</div>';
|
||||||
@ -81,11 +81,11 @@ if ($action == 'add' || GETPOST("modify"))
|
|||||||
|
|
||||||
$db->begin();
|
$db->begin();
|
||||||
|
|
||||||
$result1=dolibarr_set_const($db, "FTP_PORT_" . $entry,GETPOST($ftp_port),'chaine',0,'',$conf->entity);
|
$result1=dolibarr_set_const($db, "FTP_PORT_" . $entry,GETPOST($ftp_port,'alpha'),'chaine',0,'',$conf->entity);
|
||||||
if ($result1) $result2=dolibarr_set_const($db, "FTP_SERVER_" . $entry, GETPOST($ftp_server),'chaine',0,'',$conf->entity);
|
if ($result1) $result2=dolibarr_set_const($db, "FTP_SERVER_" . $entry, GETPOST($ftp_server,'alpha'),'chaine',0,'',$conf->entity);
|
||||||
if ($result2) $result3=dolibarr_set_const($db, "FTP_USER_" . $entry,GETPOST($ftp_user),'chaine',0,'',$conf->entity);
|
if ($result2) $result3=dolibarr_set_const($db, "FTP_USER_" . $entry,GETPOST($ftp_user,'alpha'),'chaine',0,'',$conf->entity);
|
||||||
if ($result3) $result4=dolibarr_set_const($db, "FTP_PASSWORD_" . $entry,GETPOST($ftp_password),'chaine',0,'',$conf->entity);
|
if ($result3) $result4=dolibarr_set_const($db, "FTP_PASSWORD_" . $entry,GETPOST($ftp_password,'alpha'),'chaine',0,'',$conf->entity);
|
||||||
if ($result4) $result5=dolibarr_set_const($db, "FTP_NAME_" . $entry,GETPOST($ftp_name),'chaine',0,'',$conf->entity);
|
if ($result4) $result5=dolibarr_set_const($db, "FTP_NAME_" . $entry,GETPOST($ftp_name,'alpha'),'chaine',0,'',$conf->entity);
|
||||||
|
|
||||||
if ($result1 && $result2 && $result3 && $result4 && $result5)
|
if ($result1 && $result2 && $result3 && $result4 && $result5)
|
||||||
{
|
{
|
||||||
@ -102,7 +102,7 @@ if ($action == 'add' || GETPOST("modify"))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_POST["delete"])
|
if (GETPOST('delete','alpha'))
|
||||||
{
|
{
|
||||||
if($entry)
|
if($entry)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -216,6 +216,7 @@ OfficialWebSiteFr=lloc web oficial francòfon
|
|||||||
OfficialWiki=Wiki Dolibarr
|
OfficialWiki=Wiki Dolibarr
|
||||||
OfficialDemo=Demo en línia Dolibarr
|
OfficialDemo=Demo en línia Dolibarr
|
||||||
OfficialMarketPlace=Lloc oficial de mòduls complementaris i extensions
|
OfficialMarketPlace=Lloc oficial de mòduls complementaris i extensions
|
||||||
|
OfficialWebHostingService=Servei oficial d'allotjament (SaaS)
|
||||||
ForDocumentationSeeWiki=Per a la documentació d'usuari, desenvolupador o Preguntes Freqüents (FAQ), consulteu el wiki Dolibarr: <br><b><a href="%s" target="_blank">%s</a></b>
|
ForDocumentationSeeWiki=Per a la documentació d'usuari, desenvolupador o Preguntes Freqüents (FAQ), consulteu el wiki Dolibarr: <br><b><a href="%s" target="_blank">%s</a></b>
|
||||||
ForAnswersSeeForum=Per altres qüestions o realitzar les seves pròpies consultes, pot utilitzar el fòrum Dolibarr: <br><b><a href="%s" target="_blank">%s</a></b>
|
ForAnswersSeeForum=Per altres qüestions o realitzar les seves pròpies consultes, pot utilitzar el fòrum Dolibarr: <br><b><a href="%s" target="_blank">%s</a></b>
|
||||||
HelpCenterDesc1=Aquesta aplicació, independent de Dolibarr, us permet ajudar a obtenir un servei de suport de Dolibarr.
|
HelpCenterDesc1=Aquesta aplicació, independent de Dolibarr, us permet ajudar a obtenir un servei de suport de Dolibarr.
|
||||||
|
|||||||
@ -216,6 +216,7 @@ OfficialWebSiteFr=sitio web oficial habla francesa
|
|||||||
OfficialWiki=Wiki documentación Dolibarr
|
OfficialWiki=Wiki documentación Dolibarr
|
||||||
OfficialDemo=Demo en línea Dolibarr
|
OfficialDemo=Demo en línea Dolibarr
|
||||||
OfficialMarketPlace=Sitio oficial de módulos complementarios y extensiones
|
OfficialMarketPlace=Sitio oficial de módulos complementarios y extensiones
|
||||||
|
OfficialWebHostingService=Servicio oficial de alojamiento (SaaS)
|
||||||
ForDocumentationSeeWiki=Para la documentación de usuario, desarrollador o Preguntas Frecuentes (FAQ), consulte el wiki Dolibarr: <br><b><a href="%s" target="_blank">%s</a></b>
|
ForDocumentationSeeWiki=Para la documentación de usuario, desarrollador o Preguntas Frecuentes (FAQ), consulte el wiki Dolibarr: <br><b><a href="%s" target="_blank">%s</a></b>
|
||||||
ForAnswersSeeForum=Para otras cuestiones o realizar sus propias consultas, puede utilizar el foro Dolibarr: <br><b><a href="%s" target="_blank">%s</a></b>
|
ForAnswersSeeForum=Para otras cuestiones o realizar sus propias consultas, puede utilizar el foro Dolibarr: <br><b><a href="%s" target="_blank">%s</a></b>
|
||||||
HelpCenterDesc1=Esta aplicación, independiente de Dolibarr, le permite ayudarle a obtener un servicio de soporte de Dolibarr.
|
HelpCenterDesc1=Esta aplicación, independiente de Dolibarr, le permite ayudarle a obtener un servicio de soporte de Dolibarr.
|
||||||
|
|||||||
2
htdocs/langs/pt_BR/banks.lang
Normal file → Executable file
2
htdocs/langs/pt_BR/banks.lang
Normal file → Executable file
@ -12,7 +12,7 @@ BankAccounts=Contas Bancarias
|
|||||||
AccountRef=Ref. Conta Financeira
|
AccountRef=Ref. Conta Financeira
|
||||||
AccountLabel=Etiqueta da Conta Financeira
|
AccountLabel=Etiqueta da Conta Financeira
|
||||||
CashAccount=Conta Caixa/Efetivo
|
CashAccount=Conta Caixa/Efetivo
|
||||||
CashAccounts=Contas Caixa/Efecivo
|
CashAccounts=Contas Caixa/Efetivo
|
||||||
MainAccount=Conta Principal
|
MainAccount=Conta Principal
|
||||||
CurrentAccount=Conta Corrente
|
CurrentAccount=Conta Corrente
|
||||||
CurrentAccounts=Contas Correntes
|
CurrentAccounts=Contas Correntes
|
||||||
|
|||||||
3
htdocs/langs/pt_BR/bills.lang
Normal file → Executable file
3
htdocs/langs/pt_BR/bills.lang
Normal file → Executable file
@ -1,4 +1,5 @@
|
|||||||
# Dolibarr language file - pt_BR rev. 0.0 - bills
|
# Dolibarr language file - pt_BR rev. 0.0 - bills
|
||||||
|
# 2012 Vinícius Nogueira <viniciusvgn@gmail.com>
|
||||||
CHARSET=UTF-8
|
CHARSET=UTF-8
|
||||||
Bill=Fatura
|
Bill=Fatura
|
||||||
Bills=Faturas
|
Bills=Faturas
|
||||||
@ -356,6 +357,8 @@ ShowUnpayedAll=Ver todos os não remunerados
|
|||||||
ShowUnpayedLateOnly=Mostrar apenas os não remunerados
|
ShowUnpayedLateOnly=Mostrar apenas os não remunerados
|
||||||
PaymentInvoiceRef=Pagamento Fatura %s
|
PaymentInvoiceRef=Pagamento Fatura %s
|
||||||
ErrorDeletePaymentLinkedToAClosedInvoiceNotPossible=Não é possível excluir pagamento de uma Fatura fechada.
|
ErrorDeletePaymentLinkedToAClosedInvoiceNotPossible=Não é possível excluir pagamento de uma Fatura fechada.
|
||||||
|
CustomerBillsUnpaid=Faturas de Clientes Pendentes de Cobrança
|
||||||
|
BillsCustomersUnpaid=Faturas de Clientes Pendentes de Cobrança
|
||||||
|
|
||||||
# oursin PDF model
|
# oursin PDF model
|
||||||
Of=de
|
Of=de
|
||||||
|
|||||||
2
htdocs/langs/pt_BR/commercial.lang
Normal file → Executable file
2
htdocs/langs/pt_BR/commercial.lang
Normal file → Executable file
@ -76,6 +76,8 @@ ActionAC_REL=Lembrete fatura por correio
|
|||||||
ActionAC_CLO=Fechar
|
ActionAC_CLO=Fechar
|
||||||
ActionAC_EMAILING=Envio mailing massivo
|
ActionAC_EMAILING=Envio mailing massivo
|
||||||
ActionAC_COM=Envio Pedido por Correio
|
ActionAC_COM=Envio Pedido por Correio
|
||||||
|
ActionAC_OTH=Outro
|
||||||
|
ActionAC_SHIP=Enviar Por E-Mail
|
||||||
Stats=Estatisticas de Venda
|
Stats=Estatisticas de Venda
|
||||||
CAOrder=Ordem CA
|
CAOrder=Ordem CA
|
||||||
FromTo=A partir de %s até %s
|
FromTo=A partir de %s até %s
|
||||||
|
|||||||
@ -153,7 +153,11 @@ DiscountNone=Nenhuma
|
|||||||
Supplier=Fornecedor
|
Supplier=Fornecedor
|
||||||
CompanyList=Lista de Empresas
|
CompanyList=Lista de Empresas
|
||||||
AddContact=Criar Contato
|
AddContact=Criar Contato
|
||||||
|
NewContactAddress=Novo Contato/Endereço
|
||||||
Contact=Contato
|
Contact=Contato
|
||||||
|
AddContactAddress=Novo Contato/Endereço
|
||||||
|
ListOfContacts=Lista de Contatos/Endereços
|
||||||
|
ListOfContactsAddresses=Lista de Contatos/Endereços
|
||||||
NoContactDefined=Nenhum contato definido para este fornecedor
|
NoContactDefined=Nenhum contato definido para este fornecedor
|
||||||
DefaultContact=Contato por Padrao
|
DefaultContact=Contato por Padrao
|
||||||
AddCompany=Criar Empresa
|
AddCompany=Criar Empresa
|
||||||
@ -174,7 +178,6 @@ ThisIsModuleRules=Esta é a regra para este módulo
|
|||||||
LastProspect=último Cliente Potencial
|
LastProspect=último Cliente Potencial
|
||||||
ProspectToContact=Cliente Potencial a Contactar
|
ProspectToContact=Cliente Potencial a Contactar
|
||||||
CompanyDeleted=A Empresa "%s" foi Eliminada
|
CompanyDeleted=A Empresa "%s" foi Eliminada
|
||||||
ListOfContacts=Lista de Contatos
|
|
||||||
ListOfProspectsContacts=Lista de Contatos Clientes Potenciais
|
ListOfProspectsContacts=Lista de Contatos Clientes Potenciais
|
||||||
ListOfCustomersContacts=Lista de Contatos Clientes
|
ListOfCustomersContacts=Lista de Contatos Clientes
|
||||||
ListOfSuppliersContacts=Lista de Contatos Fornecedores
|
ListOfSuppliersContacts=Lista de Contatos Fornecedores
|
||||||
@ -213,7 +216,7 @@ Staff=Empregados
|
|||||||
ProspectLevelShort=Cli. Potenc.
|
ProspectLevelShort=Cli. Potenc.
|
||||||
ProspectLevel=Cliente Potencial
|
ProspectLevel=Cliente Potencial
|
||||||
ContactPrivate=Privado
|
ContactPrivate=Privado
|
||||||
ContactPublic=Partilhado
|
ContactPublic=Compartilhado
|
||||||
ContactVisibility=Visibilidade
|
ContactVisibility=Visibilidade
|
||||||
OthersNotLinkedToThirdParty=Outros, não associado a um Fornecedor
|
OthersNotLinkedToThirdParty=Outros, não associado a um Fornecedor
|
||||||
ProspectStatus=Estado cliente potencial
|
ProspectStatus=Estado cliente potencial
|
||||||
|
|||||||
18
htdocs/langs/pt_BR/main.lang
Normal file → Executable file
18
htdocs/langs/pt_BR/main.lang
Normal file → Executable file
@ -158,7 +158,7 @@ Number=Número
|
|||||||
Numero=Número
|
Numero=Número
|
||||||
Limit=Límite
|
Limit=Límite
|
||||||
Limits=Limites
|
Limits=Limites
|
||||||
DevelopmentTeam=Equipa de Desenvolvimento
|
DevelopmentTeam=Equipe de Desenvolvimento
|
||||||
Logout=Sair
|
Logout=Sair
|
||||||
Connection=Login
|
Connection=Login
|
||||||
Setup=Configuração
|
Setup=Configuração
|
||||||
@ -175,7 +175,7 @@ DateCreation=Data de Criação
|
|||||||
DateModification=Data Modificação
|
DateModification=Data Modificação
|
||||||
DateModificationShort=Data Modif.
|
DateModificationShort=Data Modif.
|
||||||
DateLastModification=Data última Modificação
|
DateLastModification=Data última Modificação
|
||||||
DateValidation=Vata Validação
|
DateValidation=Data Validação
|
||||||
DateClosing=Data de Encerramento
|
DateClosing=Data de Encerramento
|
||||||
DateDue=Data Vencimento
|
DateDue=Data Vencimento
|
||||||
DateValue=Data Valor
|
DateValue=Data Valor
|
||||||
@ -428,13 +428,13 @@ RebuildDoc=Recriar o doc
|
|||||||
Entity=Entidade
|
Entity=Entidade
|
||||||
Entities=Entidadees
|
Entities=Entidadees
|
||||||
EventLogs=Log
|
EventLogs=Log
|
||||||
CustomerPreview=Historial Cliente
|
CustomerPreview=Historico Cliente
|
||||||
SupplierPreview=Historial Fornecedor
|
SupplierPreview=Historico Fornecedor
|
||||||
AccountancyPreview=Historial Contabilidade
|
AccountancyPreview=Historico Contabilidade
|
||||||
ShowCustomerPreview=Ver Historial Cliente
|
ShowCustomerPreview=Ver Historico Cliente
|
||||||
ShowSupplierPreview=Ver Historial Fornecedor
|
ShowSupplierPreview=Ver Historico Fornecedor
|
||||||
ShowProspectPreview=Ver Historial Cliente Potencial
|
ShowProspectPreview=Ver Historico Cliente Potencial
|
||||||
ShowAccountancyPreview=Ver Historial Contabilidade
|
ShowAccountancyPreview=Ver Historico Contabilidade
|
||||||
RefCustomer=Ref. Cliente
|
RefCustomer=Ref. Cliente
|
||||||
Currency=Moeda
|
Currency=Moeda
|
||||||
InfoAdmin=Informação para os administradores
|
InfoAdmin=Informação para os administradores
|
||||||
|
|||||||
6
htdocs/langs/pt_BR/orders.lang
Normal file → Executable file
6
htdocs/langs/pt_BR/orders.lang
Normal file → Executable file
@ -1,6 +1,8 @@
|
|||||||
# Dolibarr language file - pt_BR rev. 0.0 - orders
|
# Dolibarr language file - pt_BR rev. 0.0 - orders
|
||||||
|
# 2012 Vinícius Nogueira <viniciusvgn@gmail.com>
|
||||||
|
|
||||||
CHARSET=UTF-8
|
CHARSET=UTF-8
|
||||||
OrdersArea=Area de Pedidos de Clientes
|
OrdersArea=Área de Pedidos de Clientes
|
||||||
SuppliersOrdersArea=Área de Pedidos a Fornecedores
|
SuppliersOrdersArea=Área de Pedidos a Fornecedores
|
||||||
OrderCard=Ficha Pedido
|
OrderCard=Ficha Pedido
|
||||||
Order=Pedido
|
Order=Pedido
|
||||||
@ -59,7 +61,7 @@ ShipProduct=Enviar Produto
|
|||||||
Discount=Desconto
|
Discount=Desconto
|
||||||
CreateOrder=Criar Pedido
|
CreateOrder=Criar Pedido
|
||||||
RefuseOrder=Rejeitar o Pedido
|
RefuseOrder=Rejeitar o Pedido
|
||||||
ApproveOrder=Aceptar o Pedido
|
ApproveOrder=Aceitar o Pedido
|
||||||
ValidateOrder=Confirmar o Pedido
|
ValidateOrder=Confirmar o Pedido
|
||||||
DeleteOrder=Eliminar o pedido
|
DeleteOrder=Eliminar o pedido
|
||||||
CancelOrder=Anular o Pedido
|
CancelOrder=Anular o Pedido
|
||||||
|
|||||||
45
htdocs/langs/pt_BR/other.lang
Normal file → Executable file
45
htdocs/langs/pt_BR/other.lang
Normal file → Executable file
@ -1,4 +1,5 @@
|
|||||||
# Dolibarr language file - pt_BR rev. 0.0 - other
|
# Dolibarr language file - pt_BR rev. 0.0 - other
|
||||||
|
# 2012 Vinícius Nogueira <viniciusvgn@gmail.com>
|
||||||
CHARSET=UTF-8
|
CHARSET=UTF-8
|
||||||
SecurityCode=Código Segurança
|
SecurityCode=Código Segurança
|
||||||
Calendar=Calendário
|
Calendar=Calendário
|
||||||
@ -18,10 +19,10 @@ AttachANewFile=Adicionar Novo Arquivo/Documento
|
|||||||
LinkedObject=Arquivo Anexo
|
LinkedObject=Arquivo Anexo
|
||||||
Miscellanous=Diversos
|
Miscellanous=Diversos
|
||||||
NbOfActiveNotifications=Número Notificações
|
NbOfActiveNotifications=Número Notificações
|
||||||
PredefinedMailContentSendInvoice=Le juntamos a fatura __FACREF__\n\n__PERSONALIZED__Cordialmente\n\n__SIGNATURE__
|
PredefinedMailContentSendInvoice=Le juntamos a fatura __FACREF__\n\nCordialmente\n\n
|
||||||
PredefinedMailContentSendInvoiceReminder=Ponemos na sua conhecimento que a fatura __FACREF__ parece não estar paga. Se a juntamos pois, para que possa revisarla.\n\n__PERSONALIZED__Cordialmente\n\n__SIGNATURE__
|
PredefinedMailContentSendInvoiceReminder=Ponemos na sua conhecimento que a fatura __FACREF__ parece não estar paga. Se a juntamos pois, para que possa revisarla.\n\nCordialmente\n\n
|
||||||
PredefinedMailContentSendProposal=Anexo segue proposta solicitada de codigo__PROPREF__\n\n__PERSONALIZED__Cordialmente\n\n__SIGNATURE__
|
PredefinedMailContentSendProposal=Anexo segue proposta solicitada de codigo__PROPREF__\n\nCordialmente\n\n
|
||||||
PredefinedMailContentSendOrder=Anexo segue o pedido solicitado de codigo __ORDERREF__\n\n__PERSONALIZED__Cordialmente\n\n__SIGNATURE__
|
PredefinedMailContentSendOrder=Anexo segue o pedido solicitado de codigo __ORDERREF__\n\nCordialmente\n\n
|
||||||
DemoDesc=Dolibarr não é um ERP monolítico, mas está composto de módulos funcionais simples e opcionais. uma demonstração que inclua todos estes módulos não tem sentido, já que nunca mais todos Os módulos são utilizados. De todas maneras existe disponíveis muitos perfis de demonstração
|
DemoDesc=Dolibarr não é um ERP monolítico, mas está composto de módulos funcionais simples e opcionais. uma demonstração que inclua todos estes módulos não tem sentido, já que nunca mais todos Os módulos são utilizados. De todas maneras existe disponíveis muitos perfis de demonstração
|
||||||
ChooseYourDemoProfil=quer ver o perfil de demonstração que melhor corresponda e a sua Atividade...
|
ChooseYourDemoProfil=quer ver o perfil de demonstração que melhor corresponda e a sua Atividade...
|
||||||
DemoFundation=Administração de Membros de uma associação
|
DemoFundation=Administração de Membros de uma associação
|
||||||
@ -64,7 +65,7 @@ SizeUnitdm=dm
|
|||||||
SizeUnitcm=cm
|
SizeUnitcm=cm
|
||||||
SizeUnitmm=mm
|
SizeUnitmm=mm
|
||||||
BugTracker=Incidências
|
BugTracker=Incidências
|
||||||
SendNewPasswordDesc=Este formulário permite enviar uma Nova senha. Se enviará à e-mail do usuário<br>a modificação da senha não será efetiva até que o usario faça click ao link de confirmação incluido neste e-mail.<br>Supervise a sua correio.
|
SendNewPasswordDesc=Este formulário permite enviar uma Nova senha. Será enviado ao e-mail do usuário<br>a modificação da senha não será efetiva até que o usuário click no link de confirmação neste e-mail.<br>Verifique sua caixa de correio.
|
||||||
BackToLoginPage=Voltar e a página de login
|
BackToLoginPage=Voltar e a página de login
|
||||||
AuthenticationDoesNotAllowSendNewPassword=o modo de autentificação de Dolibarr está configurado como "<b>%s</b>".<br>neste modo Dolibarr não pode conhecer nem modificar a sua senha<br>Contacte com a sua administrador para conhecer as modalidades de alterar.
|
AuthenticationDoesNotAllowSendNewPassword=o modo de autentificação de Dolibarr está configurado como "<b>%s</b>".<br>neste modo Dolibarr não pode conhecer nem modificar a sua senha<br>Contacte com a sua administrador para conhecer as modalidades de alterar.
|
||||||
EnableGDLibraryDesc=deve ativar o instalar a Bibliotéca GD na sua PHP para poder ativar esta Opção
|
EnableGDLibraryDesc=deve ativar o instalar a Bibliotéca GD na sua PHP para poder ativar esta Opção
|
||||||
@ -112,23 +113,23 @@ ErrorWebcalLoginNotDefined=o login Webcalendar associado e a sua usuário Doliba
|
|||||||
ErrorPhenixLoginNotDefined=o login Phenix associado e a sua conta Dolibarrr <b>%s</b> não está definido
|
ErrorPhenixLoginNotDefined=o login Phenix associado e a sua conta Dolibarrr <b>%s</b> não está definido
|
||||||
##### Calendar common #####=
|
##### Calendar common #####=
|
||||||
AddCalendarEntry=Adicionar entrada ao calendário
|
AddCalendarEntry=Adicionar entrada ao calendário
|
||||||
NewCompanyToDolibarr=Empresa %s inserida em Dolibarr
|
NewCompanyToDolibarr=Empresa %s Cadastrada
|
||||||
ContractValidatedInDolibarr=Contrato %s validado em Dolibarr
|
ContractValidatedInDolibarr=Contrato %s Confirmado
|
||||||
ContractCanceledInDolibarr=Contrato %s anulado em Dolibarr
|
ContractCanceledInDolibarr=Contrato %s Cancelado
|
||||||
ContractClosedInDolibarr=Contrato %s encerrado no Dolibarr
|
ContractClosedInDolibarr=Contrato %s Encerrado
|
||||||
PropalClosedSignedInDolibarr=Orçamento %s assinado no Dolibarr
|
PropalClosedSignedInDolibarr=Orçamento %s Assinado
|
||||||
PropalClosedRefusedInDolibarr=Orçamento %s rejeitado no Dolibarr
|
PropalClosedRefusedInDolibarr=Orçamento %s rejeitado
|
||||||
PropalValidatedInDolibarr=orçamento %s validado em Dolibarr
|
PropalValidatedInDolibarr=Orçamento %s Validado
|
||||||
InvoiceValidatedInDolibarr=Fatura %s validada em Dolibarr
|
InvoiceValidatedInDolibarr=Fatura %s Confirmada
|
||||||
InvoicePayedInDolibarr=Fatura %s pasada a paga em Dolibarr
|
InvoicePayedInDolibarr=Fatura %s recebeu status de PAGA
|
||||||
InvoiceCanceledInDolibarr=Fatura %s anulada em Dolibarr
|
InvoiceCanceledInDolibarr=Fatura %s Cancelada
|
||||||
PaymentDoneInDolibarr=pagamento %s realizado em Dolibarr
|
PaymentDoneInDolibarr=Pagamento %s Realizado
|
||||||
CustomerPaymentDoneInDolibarr=pagamento de cliente %s em Dolibarr
|
CustomerPaymentDoneInDolibarr=Pagamento do cliente %s
|
||||||
SupplierPaymentDoneInDolibarr=pagamento a fornecedor %s em Dolibarr
|
SupplierPaymentDoneInDolibarr=Pagamento a fornecedor %s
|
||||||
MemberValidatedInDolibarr=membro %s validado em Dolibarr
|
MemberValidatedInDolibarr=Membro %s Confirmado
|
||||||
MemberResiliatedInDolibarr=membro %s dado de baixa em Dolibarr
|
MemberResiliatedInDolibarr=Membro %s Baixado
|
||||||
MemberDeletedInDolibarr=membro %s eliminado de Dolibarr
|
MemberDeletedInDolibarr=Membro %s Excluido
|
||||||
MemberSubscriptionAddedInDolibarr=Subscrição do membro % adicionada em Dolibarr
|
MemberSubscriptionAddedInDolibarr=Inscrição do membro % adicionada
|
||||||
##### Export #####=
|
##### Export #####=
|
||||||
ExportsArea=Área de Exportações
|
ExportsArea=Área de Exportações
|
||||||
AvailableFormats=Formatos disponíveis
|
AvailableFormats=Formatos disponíveis
|
||||||
|
|||||||
1
htdocs/langs/pt_BR/products.lang
Normal file → Executable file
1
htdocs/langs/pt_BR/products.lang
Normal file → Executable file
@ -1,4 +1,5 @@
|
|||||||
# Dolibarr language file - pt_BR rev. 0.0 - products
|
# Dolibarr language file - pt_BR rev. 0.0 - products
|
||||||
|
# 2012 Vinícius Nogueira <viniciusvgn@gmail.com>
|
||||||
CHARSET=UTF-8
|
CHARSET=UTF-8
|
||||||
ProductRef=Ref. Produto
|
ProductRef=Ref. Produto
|
||||||
ProductLabel=Nome do Produto
|
ProductLabel=Nome do Produto
|
||||||
|
|||||||
3
htdocs/langs/pt_BR/projects.lang
Normal file → Executable file
3
htdocs/langs/pt_BR/projects.lang
Normal file → Executable file
@ -2,7 +2,8 @@
|
|||||||
CHARSET=UTF-8
|
CHARSET=UTF-8
|
||||||
Project=Projeto
|
Project=Projeto
|
||||||
Projects=Projetos
|
Projects=Projetos
|
||||||
SharedProject=Projeto Partilhado
|
SharedProject=Projeto Compartilhado
|
||||||
|
PrivateProject=Contatos do Projeto
|
||||||
Myprojects=Os Meus Projetos
|
Myprojects=Os Meus Projetos
|
||||||
ProjectsArea=Área de Projetos
|
ProjectsArea=Área de Projetos
|
||||||
NewProject=Novo Projeto
|
NewProject=Novo Projeto
|
||||||
|
|||||||
@ -155,13 +155,15 @@ if ($format == 'ical' || $format == 'vcal')
|
|||||||
// Ajout directives pour resoudre bug IE
|
// Ajout directives pour resoudre bug IE
|
||||||
//header('Cache-Control: Public, must-revalidate');
|
//header('Cache-Control: Public, must-revalidate');
|
||||||
//header('Pragma: public');
|
//header('Pragma: public');
|
||||||
|
if ($cachedelay) header('Cache-Control: max-age='.$cachedelay.', private, must-revalidate');
|
||||||
|
else header('Cache-Control: private, must-revalidate');
|
||||||
|
|
||||||
// Clean parameters
|
// Clean parameters
|
||||||
$outputfile=$conf->agenda->dir_temp.'/'.$filename;
|
$outputfile=$conf->agenda->dir_temp.'/'.$filename;
|
||||||
$result=readfile($outputfile);
|
$result=readfile($outputfile);
|
||||||
if (! $result) print 'File '.$outputfile.' was empty.';
|
if (! $result) print 'File '.$outputfile.' was empty.';
|
||||||
|
|
||||||
// header("Location: ".DOL_URL_ROOT.'/document.php?modulepart=agenda&file='.urlencode($filename));
|
//header("Location: ".DOL_URL_ROOT.'/document.php?modulepart=agenda&file='.urlencode($filename));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -42,12 +42,22 @@ if ($id!='')
|
|||||||
|
|
||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
|
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=2 WHERE rowid IN (SELECT source_id FROM ".MAIN_DB_PREFIX."mailing_cibles WHERE tag='".$id."')";
|
//Update status communication of thirdparty prospect
|
||||||
dol_syslog("public/emailing/mailing-read.php : Mail read : ".$sql, LOG_DEBUG);
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=3 WHERE rowid IN (SELECT source_id FROM ".MAIN_DB_PREFIX."mailing_cibles WHERE tag='".$id."' AND source_type='thirdparty' AND source_id is not null)";
|
||||||
|
dol_syslog("public/emailing/mailing-read.php : Mail read thirdparty : ".$sql, LOG_DEBUG);
|
||||||
|
|
||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
|
|
||||||
|
//Update status communication of contact prospect
|
||||||
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=3 WHERE rowid IN (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX."socpeople AS sc INNER JOIN ".MAIN_DB_PREFIX."mailing_cibles AS mc ON mc.tag = '".$id."' AND mc.source_type = 'contact' AND mc.source_id = sc.rowid)";
|
||||||
|
dol_syslog("public/emailing/mailing-read.php : Mail read contact : ".$sql, LOG_DEBUG);
|
||||||
|
|
||||||
|
$resql=$db->query($sql);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file scripts/emailings/mailing-read.php
|
* \file scripts/emailings/mailing-usubscribe.php
|
||||||
* \ingroup mailing
|
* \ingroup mailing
|
||||||
* \brief Script use to update unsubcribe contact to prospect mailing list
|
* \brief Script use to update unsubcribe contact to prospect mailing list
|
||||||
*/
|
*/
|
||||||
@ -45,13 +45,19 @@ if (($id!='') && ($unsuscrib=='1'))
|
|||||||
//Udate status of mail in Destinaries maling list
|
//Udate status of mail in Destinaries maling list
|
||||||
$statut='3';
|
$statut='3';
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."mailing_cibles SET statut=".$statut." WHERE tag='".$id."'";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."mailing_cibles SET statut=".$statut." WHERE tag='".$id."'";
|
||||||
dol_syslog("public/emailing/mailing-read.php : Mail unsubcribe : ".$sql, LOG_DEBUG);
|
dol_syslog("public/emailing/mailing-usubscribe.php : Mail unsubcribe : ".$sql, LOG_DEBUG);
|
||||||
|
|
||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
|
|
||||||
//Update status communication of prospect
|
//Update status communication of thirdparty prospect
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=-1 WHERE rowid IN (SELECT source_id FROM ".MAIN_DB_PREFIX."mailing_cibles WHERE tag='".$id."' AND source_type='thirdparty')";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=-1 WHERE rowid IN (SELECT source_id FROM ".MAIN_DB_PREFIX."mailing_cibles WHERE tag='".$id."' AND source_type='thirdparty' AND source_id is not null)";
|
||||||
dol_syslog("public/emailing/mailing-read.php : Mail unsubcribe : ".$sql, LOG_DEBUG);
|
dol_syslog("public/emailing/mailing-unsubscribe.php : Mail unsubcribe thirdparty : ".$sql, LOG_DEBUG);
|
||||||
|
|
||||||
|
$resql=$db->query($sql);
|
||||||
|
|
||||||
|
//Update status communication of contact prospect
|
||||||
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=-1 WHERE rowid IN (SELECT fk_soc FROM ".MAIN_DB_PREFIX."socpeople AS sc INNER JOIN ".MAIN_DB_PREFIX."mailing_cibles AS mc ON mc.tag = '".$id."' AND mc.source_type = 'contact' AND mc.source_id = sc.rowid)";
|
||||||
|
dol_syslog("public/emailing/mailing-unsubscribe.php : Mail unsubcribe contact : ".$sql, LOG_DEBUG);
|
||||||
|
|
||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
|
|
||||||
|
|||||||
@ -136,7 +136,7 @@ if ($resql)
|
|||||||
$substitutionarray=array(
|
$substitutionarray=array(
|
||||||
'__ID__' => $obj->source_id,
|
'__ID__' => $obj->source_id,
|
||||||
'__EMAIL__' => $obj->email,
|
'__EMAIL__' => $obj->email,
|
||||||
'__CHECK_READ__' => '<img src="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-read.php?tag='.$obj->tag.'" style="width:0px;height:0px" border="0"/>',
|
'__CHECK_READ__' => '<img src="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-read.php?tag='.$obj->tag.'" width="0" height="0" style="width:0px;height:0px" border="0"/>',
|
||||||
'__UNSUSCRIBE__' => '<a href="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-usubscribe.php?tag='.$obj->tag.'&unsuscrib=1" target="_blank"/>'.$langs->trans("MailUnsubcribe").'</a>',
|
'__UNSUSCRIBE__' => '<a href="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-usubscribe.php?tag='.$obj->tag.'&unsuscrib=1" target="_blank"/>'.$langs->trans("MailUnsubcribe").'</a>',
|
||||||
'__LASTNAME__' => $obj->lastname,
|
'__LASTNAME__' => $obj->lastname,
|
||||||
'__FIRSTNAME__' => $obj->firstname,
|
'__FIRSTNAME__' => $obj->firstname,
|
||||||
@ -199,6 +199,31 @@ if ($resql)
|
|||||||
{
|
{
|
||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//if cheack read is use then update prospect contact status
|
||||||
|
if (strpos($message, '__CHECK_READ__') !== false)
|
||||||
|
{
|
||||||
|
//Update status communication of thirdparty prospect
|
||||||
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=2 WHERE rowid IN (SELECT source_id FROM ".MAIN_DB_PREFIX."mailing_cibles WHERE rowid=".$obj->rowid.")";
|
||||||
|
dol_syslog("fiche.php: set prospect thirdparty status sql=".$sql, LOG_DEBUG);
|
||||||
|
$resql2=$db->query($sql);
|
||||||
|
if (! $resql2)
|
||||||
|
{
|
||||||
|
dol_print_error($db);
|
||||||
|
}
|
||||||
|
|
||||||
|
//Update status communication of contact prospect
|
||||||
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=2 WHERE rowid IN (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX."socpeople AS sc INNER JOIN ".MAIN_DB_PREFIX."mailing_cibles AS mc ON mc.rowid=".$obj->rowid." AND mc.source_type = 'contact' AND mc.source_id = sc.rowid)";
|
||||||
|
dol_syslog("fiche.php: set prospect contact status sql=".$sql, LOG_DEBUG);
|
||||||
|
|
||||||
|
$resql2=$db->query($sql);
|
||||||
|
if (! $resql2)
|
||||||
|
{
|
||||||
|
dol_print_error($db);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user