Skip to content

Commit

Permalink
FIX user that modify not set
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 7, 2017
1 parent 0a7a092 commit c459d3a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions htdocs/compta/tva/class/tva.class.php
Expand Up @@ -173,7 +173,6 @@ function update($user=null, $notrigger=0)

// Update request
$sql = "UPDATE ".MAIN_DB_PREFIX."tva SET";

$sql.= " tms=".$this->db->idate($this->tms).",";
$sql.= " datep=".$this->db->idate($this->datep).",";
$sql.= " datev=".$this->db->idate($this->datev).",";
Expand All @@ -182,9 +181,7 @@ function update($user=null, $notrigger=0)
$sql.= " note='".$this->db->escape($this->note)."',";
$sql.= " fk_bank=".$this->fk_bank.",";
$sql.= " fk_user_creat=".$this->fk_user_creat.",";
$sql.= " fk_user_modif=".$this->fk_user_modif."";


$sql.= " fk_user_modif=".($this->fk_user_modif>0?$this->fk_user_modif:$user->id)."";
$sql.= " WHERE rowid=".$this->id;

dol_syslog(get_class($this)."::update", LOG_DEBUG);
Expand Down Expand Up @@ -580,7 +577,7 @@ function addPayment($user)
} else {
$bank_line_id = $acc->addline($this->datep, $this->type_payment, $this->label, abs($this->amount), '', '', $user);
}

// Update fk_bank into llx_tva. So we know vat line used to generate bank transaction
if ($bank_line_id > 0)
{
Expand Down Expand Up @@ -731,7 +728,7 @@ function getLibStatut($mode=0)
{
return $this->LibStatut($this->statut,$mode);
}

/**
* Renvoi le libelle d'un statut donne
*
Expand Down

0 comments on commit c459d3a

Please sign in to comment.