Merge remote-tracking branch 'origin/3.3' into develop
Conflicts: ChangeLog htdocs/compta/prelevement/bons.php htdocs/compta/prelevement/fiche-stat.php htdocs/contact/class/contact.class.php htdocs/contrat/class/contrat.class.php htdocs/core/menus/standard/eldy.lib.php htdocs/core/modules/modSociete.class.php htdocs/projet/fiche.php test/phpunit/FilesLibTest.php
This commit is contained in:
commit
fc0d5abd14
@ -111,6 +111,10 @@ WARNING: If you used external modules, some of them may need to be upgraded due
|
|||||||
- Fix: [ bug #855 ] Holiday approval email in French
|
- Fix: [ bug #855 ] Holiday approval email in French
|
||||||
- Fix: [ bug #856 ] (Holidays module) Mail error if destination user doesn't have an email
|
- Fix: [ bug #856 ] (Holidays module) Mail error if destination user doesn't have an email
|
||||||
- Fix: [ bug #857 ] Invoice created from shipment does not have the order discount
|
- Fix: [ bug #857 ] Invoice created from shipment does not have the order discount
|
||||||
|
- Fix: [ bug #861 ] Impossible to create a new event in agenda
|
||||||
|
- Fix: [ bug #827 ] AJAX search does not respect multiprice level
|
||||||
|
- Fix: [ bug #865 ] Dolibarr navigation array in project/task do not work
|
||||||
|
- Fix: [ bug #788 ] Date of linked interventions are not shown
|
||||||
|
|
||||||
|
|
||||||
***** ChangeLog for 3.3.1 compared to 3.3 *****
|
***** ChangeLog for 3.3.1 compared to 3.3 *****
|
||||||
|
|||||||
@ -140,6 +140,8 @@ if ($resql)
|
|||||||
$num = $db->num_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
|
$langs->load('commercial');
|
||||||
|
|
||||||
print_barre_liste($langs->trans("ListOfCustomers"), $page, $_SERVER["PHP_SELF"],"",$sortfield,$sortorder,'',$num);
|
print_barre_liste($langs->trans("ListOfCustomers"), $page, $_SERVER["PHP_SELF"],"",$sortfield,$sortorder,'',$num);
|
||||||
|
|
||||||
print '<form method="GET" action="'.$_SERVER["PHP_SELF"].'">';
|
print '<form method="GET" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
|
|||||||
@ -35,6 +35,7 @@ $langs->load("banks");
|
|||||||
$langs->load("categories");
|
$langs->load("categories");
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
$langs->load('withdrawals');
|
$langs->load('withdrawals');
|
||||||
|
$langs->load('bills');
|
||||||
|
|
||||||
// Securite acces client
|
// Securite acces client
|
||||||
if ($user->societe_id > 0) accessforbidden();
|
if ($user->societe_id > 0) accessforbidden();
|
||||||
|
|||||||
@ -34,6 +34,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
|
|||||||
$langs->load("banks");
|
$langs->load("banks");
|
||||||
$langs->load("categories");
|
$langs->load("categories");
|
||||||
$langs->load('withdrawals');
|
$langs->load('withdrawals');
|
||||||
|
$langs->load('bills');
|
||||||
|
|
||||||
// Securite acces client
|
// Securite acces client
|
||||||
if ($user->societe_id > 0) accessforbidden();
|
if ($user->societe_id > 0) accessforbidden();
|
||||||
|
|||||||
@ -39,6 +39,7 @@ $langs->load("categories");
|
|||||||
if ($user->societe_id > 0) accessforbidden();
|
if ($user->societe_id > 0) accessforbidden();
|
||||||
|
|
||||||
$langs->load('withdrawals');
|
$langs->load('withdrawals');
|
||||||
|
$langs->load('bills');
|
||||||
|
|
||||||
// Get supervariables
|
// Get supervariables
|
||||||
$prev_id = GETPOST('id','int');
|
$prev_id = GETPOST('id','int');
|
||||||
|
|||||||
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
require('../../../main.inc.php');
|
require('../../../main.inc.php');
|
||||||
require_once DOL_DOCUMENT_ROOT.'/compta/prelevement/class/rejetprelevement.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/compta/prelevement/class/rejetprelevement.class.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/compta/prelevement/class/ligneprelevement.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
|
||||||
|
|
||||||
@ -58,6 +59,7 @@ if ($sortorder == "") $sortorder="DESC";
|
|||||||
if ($sortfield == "") $sortfield="p.datec";
|
if ($sortfield == "") $sortfield="p.datec";
|
||||||
|
|
||||||
$rej = new RejetPrelevement($db, $user);
|
$rej = new RejetPrelevement($db, $user);
|
||||||
|
$ligne = new LignePrelevement($db);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Liste des factures
|
* Liste des factures
|
||||||
@ -86,7 +88,7 @@ if ($result)
|
|||||||
print"\n<!-- debut table -->\n";
|
print"\n<!-- debut table -->\n";
|
||||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre($langs->trans("Nb"),"rejets.php","p.ref",'',$urladd);
|
print_liste_field_titre($langs->trans("Line"),"rejets.php","p.ref",'',$urladd);
|
||||||
print_liste_field_titre($langs->trans("ThirdParty"),"rejets.php","s.nom",'',$urladd);
|
print_liste_field_titre($langs->trans("ThirdParty"),"rejets.php","s.nom",'',$urladd);
|
||||||
print_liste_field_titre($langs->trans("Reason"),"rejets.php","pr.motif","",$urladd);
|
print_liste_field_titre($langs->trans("Reason"),"rejets.php","pr.motif","",$urladd);
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
@ -100,7 +102,7 @@ if ($result)
|
|||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
|
|
||||||
print "<tr $bc[$var]><td>";
|
print "<tr $bc[$var]><td>";
|
||||||
print '<img border="0" src="./img/statut'.$obj->statut.'.png"></a> ';
|
print $ligne->LibStatut($obj->statut,2).' ';
|
||||||
print '<a href="'.DOL_URL_ROOT.'/compta/prelevement/ligne.php?id='.$obj->rowid.'">';
|
print '<a href="'.DOL_URL_ROOT.'/compta/prelevement/ligne.php?id='.$obj->rowid.'">';
|
||||||
|
|
||||||
print substr('000000'.$obj->rowid, -6)."</a></td>";
|
print substr('000000'.$obj->rowid, -6)."</a></td>";
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerker@telenet.be>
|
* Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerker@telenet.be>
|
||||||
* Copyright (C) 2008 Raphael Bertrand (Resultic) <raphael.bertrand@resultic.fr>
|
* Copyright (C) 2008 Raphael Bertrand (Resultic) <raphael.bertrand@resultic.fr>
|
||||||
@ -219,9 +219,10 @@ class Contact extends CommonObject
|
|||||||
$this->phone_pro=trim($this->phone_pro);
|
$this->phone_pro=trim($this->phone_pro);
|
||||||
$this->phone_perso=trim($this->phone_perso);
|
$this->phone_perso=trim($this->phone_perso);
|
||||||
$this->phone_mobile=trim($this->phone_mobile);
|
$this->phone_mobile=trim($this->phone_mobile);
|
||||||
|
$this->jabberid=trim($this->jabberid);
|
||||||
$this->fax=trim($this->fax);
|
$this->fax=trim($this->fax);
|
||||||
$this->zip=($this->zip?$this->zip:$this->zip);
|
$this->zip=(empty($this->zip)?'':$this->zip);
|
||||||
$this->town=($this->town?$this->town:$this->town);
|
$this->town=(empty($this->town)?'':$this->town);
|
||||||
$this->country_id=($this->country_id > 0?$this->country_id:$this->country_id);
|
$this->country_id=($this->country_id > 0?$this->country_id:$this->country_id);
|
||||||
$this->state_id=($this->state_id > 0?$this->state_id:$this->fk_departement);
|
$this->state_id=($this->state_id > 0?$this->state_id:$this->fk_departement);
|
||||||
|
|
||||||
@ -248,8 +249,8 @@ class Contact extends CommonObject
|
|||||||
$sql .= ", phone_mobile = '".$this->db->escape($this->phone_mobile)."'";
|
$sql .= ", phone_mobile = '".$this->db->escape($this->phone_mobile)."'";
|
||||||
$sql .= ", jabberid = '".$this->db->escape($this->jabberid)."'";
|
$sql .= ", jabberid = '".$this->db->escape($this->jabberid)."'";
|
||||||
$sql .= ", priv = '".$this->priv."'";
|
$sql .= ", priv = '".$this->priv."'";
|
||||||
$sql .= ", fk_user_modif=".($user->id > 0 ? "'".$user->id."'":"null");
|
$sql .= ", fk_user_modif=".($user->id > 0 ? "'".$user->id."'":"NULL");
|
||||||
$sql .= ", default_lang=".($this->default_lang?"'".$this->default_lang."'":"null");
|
$sql .= ", default_lang=".($this->default_lang?"'".$this->default_lang."'":"NULL");
|
||||||
$sql .= ", no_email=".($this->no_email?"'".$this->no_email."'":"0");
|
$sql .= ", no_email=".($this->no_email?"'".$this->no_email."'":"0");
|
||||||
$sql .= " WHERE rowid=".$id;
|
$sql .= " WHERE rowid=".$id;
|
||||||
|
|
||||||
|
|||||||
@ -547,7 +547,7 @@ class Contrat extends CommonObject
|
|||||||
$objp = $this->db->fetch_object($result);
|
$objp = $this->db->fetch_object($result);
|
||||||
|
|
||||||
$line = new ContratLigne($this->db);
|
$line = new ContratLigne($this->db);
|
||||||
$line->id = $objp->rowid;
|
$line->id = $objp->rowid;
|
||||||
$line->fk_contrat = $objp->fk_contrat;
|
$line->fk_contrat = $objp->fk_contrat;
|
||||||
$line->libelle = $objp->description;
|
$line->libelle = $objp->description;
|
||||||
$line->desc = $objp->description;
|
$line->desc = $objp->description;
|
||||||
@ -560,7 +560,7 @@ class Contrat extends CommonObject
|
|||||||
$line->subprice = $objp->subprice;
|
$line->subprice = $objp->subprice;
|
||||||
$line->remise_percent = $objp->remise_percent;
|
$line->remise_percent = $objp->remise_percent;
|
||||||
$line->price_ht = $objp->price_ht;
|
$line->price_ht = $objp->price_ht;
|
||||||
$line->price = $objp->price; // For backward compatibility
|
$line->price = (isset($objp->price)?$objp->price:null); // For backward compatibility
|
||||||
$line->total_ht = $objp->total_ht;
|
$line->total_ht = $objp->total_ht;
|
||||||
$line->total_tva = $objp->total_tva;
|
$line->total_tva = $objp->total_tva;
|
||||||
$line->total_localtax1= $objp->total_localtax1;
|
$line->total_localtax1= $objp->total_localtax1;
|
||||||
|
|||||||
@ -43,6 +43,7 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
|
|||||||
|
|
||||||
var $prefixcustomer='CU';
|
var $prefixcustomer='CU';
|
||||||
var $prefixsupplier='SU';
|
var $prefixsupplier='SU';
|
||||||
|
var $prefixIsRequired; // Le champ prefix du tiers doit etre renseigne quand on utilise {pre}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -57,6 +58,7 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
|
|||||||
$this->code_modifiable_invalide = 1;
|
$this->code_modifiable_invalide = 1;
|
||||||
$this->code_modifiable_null = 1;
|
$this->code_modifiable_null = 1;
|
||||||
$this->code_auto = 1;
|
$this->code_auto = 1;
|
||||||
|
$this->prefixIsRequired = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -559,10 +559,10 @@ class PEAR
|
|||||||
$ec = 'PEAR_Error';
|
$ec = 'PEAR_Error';
|
||||||
}
|
}
|
||||||
if ($skipmsg) {
|
if ($skipmsg) {
|
||||||
$a = &new $ec($code, $mode, $options, $userinfo);
|
$a = new $ec($code, $mode, $options, $userinfo);
|
||||||
return $a;
|
return $a;
|
||||||
} else {
|
} else {
|
||||||
$a = &new $ec($message, $code, $mode, $options, $userinfo);
|
$a = new $ec($message, $code, $mode, $options, $userinfo);
|
||||||
return $a;
|
return $a;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -307,7 +307,7 @@ class Mail_mimeDecode extends PEAR
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'message/rfc822':
|
case 'message/rfc822':
|
||||||
$obj = &new Mail_mimeDecode($body);
|
$obj = new Mail_mimeDecode($body);
|
||||||
$return->parts[] = $obj->decode(array('include_bodies' => $this->_include_bodies,
|
$return->parts[] = $obj->decode(array('include_bodies' => $this->_include_bodies,
|
||||||
'decode_bodies' => $this->_decode_bodies,
|
'decode_bodies' => $this->_decode_bodies,
|
||||||
'decode_headers' => $this->_decode_headers));
|
'decode_headers' => $this->_decode_headers));
|
||||||
|
|||||||
@ -666,8 +666,8 @@ Permission1002=Crear/modificar stocks
|
|||||||
Permission1003=Eliminar stocks
|
Permission1003=Eliminar stocks
|
||||||
Permission1004=Consultar movimientos de stock
|
Permission1004=Consultar movimientos de stock
|
||||||
Permission1005=Crear/modificar movimientos de stock
|
Permission1005=Crear/modificar movimientos de stock
|
||||||
Permission1101=Consultar ordenes de envío
|
Permission1101=Consultar órdenes de envío
|
||||||
Permission1102=Crear/modificar ordenes de envío
|
Permission1102=Crear/modificar órdenes de envío
|
||||||
Permission1104=Validar orden de envío
|
Permission1104=Validar orden de envío
|
||||||
Permission1109=Eliminar orden de envío
|
Permission1109=Eliminar orden de envío
|
||||||
Permission1181=Consultar proveedores
|
Permission1181=Consultar proveedores
|
||||||
|
|||||||
@ -9,7 +9,7 @@ StandingOrderToProcess=A procesar
|
|||||||
StandingOrderProcessed=Procesados
|
StandingOrderProcessed=Procesados
|
||||||
Withdrawals=Reintegros
|
Withdrawals=Reintegros
|
||||||
Withdrawal=Reintegro
|
Withdrawal=Reintegro
|
||||||
WithdrawalsReceipts=Ordenes domiciliadas
|
WithdrawalsReceipts=Órdenes domiciliadas
|
||||||
WithdrawalReceipt=Orden domiciliación
|
WithdrawalReceipt=Orden domiciliación
|
||||||
WithdrawalReceiptShort=Orden
|
WithdrawalReceiptShort=Orden
|
||||||
LastWithdrawalReceipts=Las %s últimas órdenes de domiciliación
|
LastWithdrawalReceipts=Las %s últimas órdenes de domiciliación
|
||||||
|
|||||||
@ -157,7 +157,7 @@ else
|
|||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
if (empty($mode) || $mode == 1)
|
if (empty($mode) || $mode == 1)
|
||||||
{
|
{
|
||||||
$arrayresult=$form->select_produits_do("",$htmlname,$type,"",$pricelevel,$searchkey,$status,2,$outjson);
|
$arrayresult=$form->select_produits_do("",$htmlname,$type,"",$price_level,$searchkey,$status,2,$outjson);
|
||||||
}
|
}
|
||||||
elseif ($mode == 2)
|
elseif ($mode == 2)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -431,7 +431,7 @@ class Product extends CommonObject
|
|||||||
$this->ref = dol_string_nospecial(trim($this->ref));
|
$this->ref = dol_string_nospecial(trim($this->ref));
|
||||||
$this->libelle = trim($this->libelle);
|
$this->libelle = trim($this->libelle);
|
||||||
$this->description = trim($this->description);
|
$this->description = trim($this->description);
|
||||||
$this->note = trim($this->note);
|
$this->note = (isset($this->note)? trim($this->note):"null");
|
||||||
$this->weight = price2num($this->weight);
|
$this->weight = price2num($this->weight);
|
||||||
$this->weight_units = trim($this->weight_units);
|
$this->weight_units = trim($this->weight_units);
|
||||||
$this->length = price2num($this->length);
|
$this->length = price2num($this->length);
|
||||||
|
|||||||
@ -254,6 +254,7 @@ foreach ($listofreferent as $key => $value)
|
|||||||
$date=$element->date;
|
$date=$element->date;
|
||||||
if (empty($date)) $date=$element->datep;
|
if (empty($date)) $date=$element->datep;
|
||||||
if (empty($date)) $date=$element->date_contrat;
|
if (empty($date)) $date=$element->date_contrat;
|
||||||
|
if (empty($date)) $date=$element->datev; //Fiche inter
|
||||||
print '<td align="center">'.dol_print_date($date,'day').'</td>';
|
print '<td align="center">'.dol_print_date($date,'day').'</td>';
|
||||||
|
|
||||||
// Third party
|
// Third party
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user