Debug v15
This commit is contained in:
parent
3e1fa44657
commit
7d07da527d
@ -318,14 +318,14 @@ abstract class DoliDB implements Database
|
|||||||
/**
|
/**
|
||||||
* Return first result from query as object
|
* Return first result from query as object
|
||||||
* Note : This method executes a given SQL query and retrieves the first row of results as an object. It should only be used with SELECT queries
|
* Note : This method executes a given SQL query and retrieves the first row of results as an object. It should only be used with SELECT queries
|
||||||
* Dont add LIMIT to your query, it will be added by this method
|
* Dont add LIMIT to your query, it will be added by this method.
|
||||||
* @param string $sql the sql query string
|
*
|
||||||
* @return bool| object
|
* @param string $sql The sql query string
|
||||||
* @deprecated
|
* @return bool|object Result of fetch_object
|
||||||
*/
|
*/
|
||||||
public function getRow($sql)
|
public function getRow($sql)
|
||||||
{
|
{
|
||||||
$sql .= ' LIMIT 1;';
|
$sql .= ' LIMIT 1';
|
||||||
|
|
||||||
$res = $this->query($sql);
|
$res = $this->query($sql);
|
||||||
if ($res) {
|
if ($res) {
|
||||||
@ -338,9 +338,10 @@ abstract class DoliDB implements Database
|
|||||||
/**
|
/**
|
||||||
* return all results from query as an array of objects
|
* return all results from query as an array of objects
|
||||||
* Note : This method executes a given SQL query and retrieves all row of results as an array of objects. It should only be used with SELECT queries
|
* Note : This method executes a given SQL query and retrieves all row of results as an array of objects. It should only be used with SELECT queries
|
||||||
* be carefull with this method use it only with some limit of results to avoid performences loss
|
* be carefull with this method use it only with some limit of results to avoid performences loss.
|
||||||
* @param string $sql the sql query string
|
*
|
||||||
* @return bool| array
|
* @param string $sql The sql query string
|
||||||
|
* @return bool|array Result
|
||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
public function getRows($sql)
|
public function getRows($sql)
|
||||||
|
|||||||
@ -256,10 +256,13 @@ $fk_usergroup1 = GETPOST('fk_usergroup1');
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
dol_fiche_end();
|
|
||||||
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Return a html list element with diff between required rank and user rank
|
* Return a html list element with diff between required rank and user rank
|
||||||
|
|||||||
@ -581,7 +581,7 @@ if ($action == "freezone") {
|
|||||||
if ($action == "addnote") {
|
if ($action == "addnote") {
|
||||||
$desc = GETPOST('addnote', 'alpha');
|
$desc = GETPOST('addnote', 'alpha');
|
||||||
if ($idline==0) {
|
if ($idline==0) {
|
||||||
$invoice->update_note_public($desc);
|
$invoice->update_note($desc, '_public');
|
||||||
} else foreach ($invoice->lines as $line) {
|
} else foreach ($invoice->lines as $line) {
|
||||||
if ($line->id == $idline) {
|
if ($line->id == $idline) {
|
||||||
$result = $invoice->updateline($line->id, $desc, $line->subprice, $line->qty, $line->remise_percent, $line->date_start, $line->date_end, $line->tva_tx, $line->localtax1_tx, $line->localtax2_tx, 'HT', $line->info_bits, $line->product_type, $line->fk_parent_line, 0, $line->fk_fournprice, $line->pa_ht, $line->label, $line->special_code, $line->array_options, $line->situation_percent, $line->fk_unit);
|
$result = $invoice->updateline($line->id, $desc, $line->subprice, $line->qty, $line->remise_percent, $line->date_start, $line->date_end, $line->tva_tx, $line->localtax1_tx, $line->localtax2_tx, 'HT', $line->info_bits, $line->product_type, $line->fk_parent_line, 0, $line->fk_fournprice, $line->pa_ht, $line->label, $line->special_code, $line->array_options, $line->situation_percent, $line->fk_unit);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user