Fix PHPCS
This commit is contained in:
parent
3d247abe79
commit
8f6e756249
@ -924,11 +924,10 @@ class BookKeeping extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* Update object into database
|
* Update object into database
|
||||||
*
|
*
|
||||||
* @param User $user User that modifies
|
* @param User $user User that modifies
|
||||||
* @param bool $notrigger false=launch triggers after, true=disable triggers
|
* @param bool $notrigger false=launch triggers after, true=disable triggers
|
||||||
* @param string $mode Mode
|
* @param string $mode Mode
|
||||||
*
|
* @return int <0 if KO, >0 if OK
|
||||||
* @return int <0 if KO, >0 if OK
|
|
||||||
*/
|
*/
|
||||||
public function update(User $user, $notrigger = false, $mode='') {
|
public function update(User $user, $notrigger = false, $mode='') {
|
||||||
$error = 0;
|
$error = 0;
|
||||||
@ -956,6 +955,7 @@ class BookKeeping extends CommonObject
|
|||||||
}
|
}
|
||||||
if (isset($this->subledger_label)) {
|
if (isset($this->subledger_label)) {
|
||||||
$this->subledger_label = trim($this->subledger_label);
|
$this->subledger_label = trim($this->subledger_label);
|
||||||
|
}
|
||||||
if (isset($this->numero_compte)) {
|
if (isset($this->numero_compte)) {
|
||||||
$this->numero_compte = trim($this->numero_compte);
|
$this->numero_compte = trim($this->numero_compte);
|
||||||
}
|
}
|
||||||
@ -1054,11 +1054,11 @@ class BookKeeping extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* Update movement
|
* Update movement
|
||||||
*
|
*
|
||||||
* @param string $piece_num
|
* @param string $piece_num Piece num
|
||||||
* @param string $field
|
* @param string $field Field
|
||||||
* @param string $value
|
* @param string $value Value
|
||||||
* @param string $mode
|
* @param string $mode Mode
|
||||||
* @return number
|
* @return number <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
public function upddateByMvt($piece_num='', $field='', $value='', $mode='') {
|
public function upddateByMvt($piece_num='', $field='', $value='', $mode='') {
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
@ -1382,8 +1382,9 @@ class BookKeeping extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* Load all informations of accountancy document
|
* Load all informations of accountancy document
|
||||||
*
|
*
|
||||||
* @param int $piecenum id of line to get
|
* @param int $piecenum Id of line to get
|
||||||
* @return int <0 if KO, >0 if OK
|
* @param string $mode Mode
|
||||||
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function fetchAllPerMvt($piecenum, $mode='') {
|
function fetchAllPerMvt($piecenum, $mode='') {
|
||||||
global $conf;
|
global $conf;
|
||||||
@ -1498,8 +1499,9 @@ class BookKeeping extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* Transform transaction
|
* Transform transaction
|
||||||
*
|
*
|
||||||
* @param number $direction if 0 tmp => real, if 1 real => tmp
|
* @param number $direction If 0 tmp => real, if 1 real => tmp
|
||||||
* @param unknown $piecenum
|
* @param string $piece_num Piece num
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function transformTransaction($direction=0,$piece_num='') {
|
public function transformTransaction($direction=0,$piece_num='') {
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user