Ajout mode_reglement dans le fetch
This commit is contained in:
parent
997e9b112a
commit
f9e2b56530
@ -275,8 +275,14 @@ class Facture
|
||||
*/
|
||||
function fetch($rowid, $societe_id=0)
|
||||
{
|
||||
$sql = "SELECT f.fk_soc,f.facnumber,f.amount,f.tva,f.total,f.total_ttc,f.remise,f.remise_percent,".$this->db->pdate("f.datef")." as df,f.fk_projet,".$this->db->pdate("f.date_lim_reglement")." as dlr, c.rowid as cond_regl_id, c.libelle, c.libelle_facture, f.note, f.paye, f.fk_statut, f.fk_user_author";
|
||||
$sql .= " , fk_mode_reglement";
|
||||
dolibarr_syslog("Facture::Fetch");
|
||||
|
||||
$sql = "SELECT f.fk_soc,f.facnumber,f.amount,f.tva,f.total,f.total_ttc,f.remise,f.remise_percent";
|
||||
$sql .= ",".$this->db->pdate("f.datef")." as df,f.fk_projet";
|
||||
$sql .= ",".$this->db->pdate("f.date_lim_reglement")." as dlr";
|
||||
$sql .= ", c.rowid as cond_regl_id, c.libelle, c.libelle_facture";
|
||||
$sql .= ", f.note, f.paye, f.fk_statut, f.fk_user_author";
|
||||
$sql .= ", fk_mode_reglement";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."facture as f, ".MAIN_DB_PREFIX."cond_reglement as c";
|
||||
$sql .= " WHERE f.rowid=$rowid AND c.rowid = f.fk_cond_reglement";
|
||||
|
||||
@ -313,6 +319,8 @@ class Facture
|
||||
$this->user_author = $obj->fk_user_author;
|
||||
$this->lignes = array();
|
||||
|
||||
$this->mode_reglement = $obj->fk_mode_reglement;
|
||||
|
||||
if ($this->statut == 0)
|
||||
{
|
||||
$this->brouillon = 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user