Merge branch '3.4' of git@github.com:Dolibarr/dolibarr.git into 3.4

Conflicts:
	ChangeLog
This commit is contained in:
Laurent Destailleur 2013-09-08 21:51:37 +02:00
commit afe58abdcd
5 changed files with 15 additions and 0 deletions

View File

@ -22,6 +22,7 @@ Fix: Localtaxes balance not showing
Fix: Intervention box links to contracts id Fix: Intervention box links to contracts id
Fix: Compatiblity with multicompany module Fix: Compatiblity with multicompany module
Fix: Edit propal line was losing product supplier price id Fix: Edit propal line was losing product supplier price id
Fix: Delete linked element to supplier invoice when deleted
***** ChangeLog for 3.4 compared to 3.3.* ***** ***** ChangeLog for 3.4 compared to 3.3.* *****
For users: For users:
@ -79,6 +80,7 @@ For users:
- Fix: [Bug #958] LocalTax2 for Spain fails on Suppliers - Fix: [Bug #958] LocalTax2 for Spain fails on Suppliers
- Fix: [ bug #972 ] Auto completion contact field do not take account the min caract number before search - Fix: [ bug #972 ] Auto completion contact field do not take account the min caract number before search
- Fix: [ bug #971 ] html.form.class.php select_contact with autocomplete do not exclude id from exclude array - Fix: [ bug #971 ] html.form.class.php select_contact with autocomplete do not exclude id from exclude array
- Fix: Expedition creation, can retreive product from other expedition
For translators: For translators:
- Update language files. - Update language files.

View File

@ -224,6 +224,7 @@ class Expedition extends CommonObject
$sql.= ", ".(!empty($this->model_pdf)?"'".$this->db->escape($this->model_pdf)."'":"null"); $sql.= ", ".(!empty($this->model_pdf)?"'".$this->db->escape($this->model_pdf)."'":"null");
$sql.= ")"; $sql.= ")";
dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
$resql=$this->db->query($sql); $resql=$this->db->query($sql);
if ($resql) if ($resql)
{ {
@ -323,6 +324,7 @@ class Expedition extends CommonObject
$sql.= ", ".$qty; $sql.= ", ".$qty;
$sql.= ")"; $sql.= ")";
dol_syslog(get_class($this)."::create_line sql=".$sql, LOG_DEBUG);
if (! $this->db->query($sql)) if (! $this->db->query($sql))
{ {
$error++; $error++;

View File

@ -87,6 +87,8 @@ if ($id > 0 || ! empty($ref))
if ($action == 'add') if ($action == 'add')
{ {
$error=0; $error=0;
$object = new Expedition($db);
$db->begin(); $db->begin();

View File

@ -629,6 +629,13 @@ class FactureFournisseur extends CommonInvoice
// Fin appel triggers // Fin appel triggers
} }
if (! $error)
{
// Delete linked object
$res = $this->deleteObjectLinked();
if ($res < 0) $error++;
}
if (! $error) if (! $error)
{ {
// We remove directory // We remove directory

View File

@ -168,6 +168,8 @@ if (GETPOST("search_montant_ttc"))
$sql.= $db->order($sortfield,$sortorder); $sql.= $db->order($sortfield,$sortorder);
$sql.= $db->plimit($limit+1, $offset); $sql.= $db->plimit($limit+1, $offset);
dol_syslog("fourn/facture/index.php::list sql=".$sql, LOG_DEBUG);
$resql = $db->query($sql); $resql = $db->query($sql);
if ($resql) if ($resql)
{ {