Ajout execution de trigger sur ADDLINE
This commit is contained in:
parent
dca558b1f2
commit
68b554c10e
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2002-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2006 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>
|
||||||
@ -1103,8 +1103,8 @@ class Facture extends CommonObject
|
|||||||
/*
|
/*
|
||||||
* Tope les lignes de remises fixes avec id des lignes de facture de remise
|
* Tope les lignes de remises fixes avec id des lignes de facture de remise
|
||||||
*/
|
*/
|
||||||
// Plus necessaire car deja topé des état brouillon
|
// Plus necessaire car deja topé des état brouillon
|
||||||
/*
|
/*
|
||||||
foreach($this->lignes as $i => $line)
|
foreach($this->lignes as $i => $line)
|
||||||
{
|
{
|
||||||
if (($this->lignes[$i]->info_bits & 2) == 2 && $this->lignes[$i]->fk_remise_except)
|
if (($this->lignes[$i]->info_bits & 2) == 2 && $this->lignes[$i]->fk_remise_except)
|
||||||
@ -1159,7 +1159,7 @@ class Facture extends CommonObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// On vérifie si la facture était une provisoire
|
// On vérifie si la facture était une provisoire
|
||||||
if (! $error && $facref == 'PROV')
|
if (! $error && $facref == 'PROV')
|
||||||
@ -2846,6 +2846,14 @@ class FactureLigne
|
|||||||
{
|
{
|
||||||
$this->rowid=$this->db->last_insert_id(MAIN_DB_PREFIX.'facturedet');
|
$this->rowid=$this->db->last_insert_id(MAIN_DB_PREFIX.'facturedet');
|
||||||
|
|
||||||
|
// Appel des triggers
|
||||||
|
include_once(DOL_DOCUMENT_ROOT . "/interfaces.class.php");
|
||||||
|
$interface=new Interfaces($this->db);
|
||||||
|
$result = $interface->run_triggers('LINEBILL_INSERT',$this,$user,$langs,$conf);
|
||||||
|
// Fin appel triggers
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$this->db->commit();
|
$this->db->commit();
|
||||||
return $this->rowid;
|
return $this->rowid;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user