Fix travis
This commit is contained in:
parent
4dd56c52d2
commit
50d2665b0e
@ -136,7 +136,7 @@ else if ($action == "add") {
|
|||||||
$book->sens = 'C';
|
$book->sens = 'C';
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $book->create_std($user);
|
$result = $book->createStd($user);
|
||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
setEventMessages($book->error, $book->errors, 'errors');
|
setEventMessages($book->error, $book->errors, 'errors');
|
||||||
} else {
|
} else {
|
||||||
@ -180,7 +180,7 @@ else if ($action == "confirm_create") {
|
|||||||
|
|
||||||
$book->montant = 0;
|
$book->montant = 0;
|
||||||
|
|
||||||
$result = $book->create_std($user);
|
$result = $book->createStd($user);
|
||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
setEventMessages($book->error, $book->errors, 'errors');
|
setEventMessages($book->error, $book->errors, 'errors');
|
||||||
} else {
|
} else {
|
||||||
@ -271,7 +271,7 @@ if ($action == 'create') {
|
|||||||
print '</form>';
|
print '</form>';
|
||||||
} else {
|
} else {
|
||||||
$book = new BookKeeping($db);
|
$book = new BookKeeping($db);
|
||||||
$result = $book->fetch_per_mvt($piece_num);
|
$result = $book->fetchPerMvt($piece_num);
|
||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
setEventMessages($book->error, $book->errors, 'errors');
|
setEventMessages($book->error, $book->errors, 'errors');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,7 +35,8 @@ require_once DOL_DOCUMENT_ROOT . '/core/class/commonobject.class.php';
|
|||||||
*
|
*
|
||||||
* Put here description of your class
|
* Put here description of your class
|
||||||
*/
|
*/
|
||||||
class BookKeeping extends CommonObject {
|
class BookKeeping extends CommonObject
|
||||||
|
{
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @var string Error code (or message)
|
* @var string Error code (or message)
|
||||||
@ -324,7 +325,7 @@ class BookKeeping extends CommonObject {
|
|||||||
*
|
*
|
||||||
* @return int <0 if KO, Id of created object if OK
|
* @return int <0 if KO, Id of created object if OK
|
||||||
*/
|
*/
|
||||||
public function create_std(User $user, $notrigger = false)
|
public function createStd(User $user, $notrigger = false)
|
||||||
{
|
{
|
||||||
dol_syslog(__METHOD__, LOG_DEBUG);
|
dol_syslog(__METHOD__, LOG_DEBUG);
|
||||||
|
|
||||||
@ -980,12 +981,11 @@ class BookKeeping extends CommonObject {
|
|||||||
* @param int $piecenum Accounting document to get
|
* @param int $piecenum Accounting document to get
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
public function fetch_per_mvt($piecenum) {
|
public function fetchPerMvt($piecenum) {
|
||||||
$sql = "SELECT piece_num,doc_date,code_journal,doc_ref,doc_type";
|
$sql = "SELECT piece_num,doc_date,code_journal,doc_ref,doc_type";
|
||||||
$sql .= " FROM " . MAIN_DB_PREFIX . $this->table_element;
|
$sql .= " FROM " . MAIN_DB_PREFIX . $this->table_element;
|
||||||
$sql .= " WHERE piece_num = " . $piecenum;
|
$sql .= " WHERE piece_num = " . $piecenum;
|
||||||
|
|
||||||
dol_syslog(get_class($this) . "fetch_per_mvt sql=" . $sql, LOG_DEBUG);
|
|
||||||
$result = $this->db->query($sql);
|
$result = $this->db->query($sql);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$obj = $this->db->fetch_object($result);
|
$obj = $this->db->fetch_object($result);
|
||||||
@ -997,7 +997,7 @@ class BookKeeping extends CommonObject {
|
|||||||
$this->doc_type = $obj->doc_type;
|
$this->doc_type = $obj->doc_type;
|
||||||
} else {
|
} else {
|
||||||
$this->error = "Error " . $this->db->lasterror();
|
$this->error = "Error " . $this->db->lasterror();
|
||||||
dol_syslog(get_class($this) . "::fetch_per_mvt " . $this->error, LOG_ERR);
|
dol_syslog(get_class($this) . "::".__METHOD__ . $this->error, LOG_ERR);
|
||||||
return - 1;
|
return - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1136,7 +1136,8 @@ class BookKeeping extends CommonObject {
|
|||||||
/**
|
/**
|
||||||
* Class BookKeepingLine
|
* Class BookKeepingLine
|
||||||
*/
|
*/
|
||||||
class BookKeepingLine {
|
class BookKeepingLine
|
||||||
|
{
|
||||||
public $id;
|
public $id;
|
||||||
public $doc_date = '';
|
public $doc_date = '';
|
||||||
public $doc_type;
|
public $doc_type;
|
||||||
|
|||||||
@ -27,7 +27,8 @@
|
|||||||
/**
|
/**
|
||||||
* Class to manage generation of HTML components for bank module
|
* Class to manage generation of HTML components for bank module
|
||||||
*/
|
*/
|
||||||
class FormVentilation extends Form {
|
class FormVentilation extends Form
|
||||||
|
{
|
||||||
var $db;
|
var $db;
|
||||||
var $error;
|
var $error;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user