Add information on bank payment tab

Need fk_user_modif and dater in 6.0
This commit is contained in:
aspangaro 2016-12-10 21:52:33 +01:00
parent 2dda1d7c74
commit 14ce1bf3a6

View File

@ -1931,7 +1931,7 @@ class AccountLine extends CommonObject
*/
function info($id)
{
$sql = 'SELECT b.rowid, b.datec,';
$sql = 'SELECT b.rowid, b.datec, b.tms as datem,';
$sql.= ' b.fk_user_author, b.fk_user_rappro';
$sql.= ' FROM '.MAIN_DB_PREFIX.'bank as b';
$sql.= ' WHERE b.rowid = '.$id;
@ -1958,6 +1958,7 @@ class AccountLine extends CommonObject
}
$this->date_creation = $this->db->jdate($obj->datec);
$this->date_modification = $this->db->jdate($obj->datem);
//$this->date_rappro = $obj->daterappro; // Not yet managed
}
$this->db->free($result);