Fix: Checkstyle
This commit is contained in:
parent
f07c416f76
commit
ea93e62e91
@ -303,6 +303,8 @@ class Propal extends CommonObject
|
|||||||
* @param int $rang Position of line
|
* @param int $rang Position of line
|
||||||
* @param int $special_code Special code
|
* @param int $special_code Special code
|
||||||
* @param int $fk_parent_line Id of parent line
|
* @param int $fk_parent_line Id of parent line
|
||||||
|
* @param int $fk_fournprice Id supplier price
|
||||||
|
* @param int $pa_ht Buying price without tax
|
||||||
* @return int >0 if OK, <0 if KO
|
* @return int >0 if OK, <0 if KO
|
||||||
*
|
*
|
||||||
* @see add_product
|
* @see add_product
|
||||||
@ -456,13 +458,15 @@ class Propal extends CommonObject
|
|||||||
* @param int $special_code Set special code ('' = we don't change it)
|
* @param int $special_code Set special code ('' = we don't change it)
|
||||||
* @param int $fk_parent_line Id of line parent
|
* @param int $fk_parent_line Id of line parent
|
||||||
* @param int $skip_update_total Skip update total
|
* @param int $skip_update_total Skip update total
|
||||||
|
* @param int $fk_fournprice Id supplier price
|
||||||
|
* @param int $pa_ht Buying price without tax
|
||||||
* @return int 0 if OK, <0 if KO
|
* @return int 0 if OK, <0 if KO
|
||||||
*/
|
*/
|
||||||
function updateline($rowid, $pu, $qty, $remise_percent=0, $txtva, $txlocaltax1=0, $txlocaltax2=0, $desc='', $price_base_type='HT', $info_bits=0, $special_code=0, $fk_parent_line=0, $skip_update_total=0, $fk_fournprice=null, $pa_ht = 0)
|
function updateline($rowid, $pu, $qty, $remise_percent, $txtva, $txlocaltax1=0, $txlocaltax2=0, $desc='', $price_base_type='HT', $info_bits=0, $special_code=0, $fk_parent_line=0, $skip_update_total=0, $fk_fournprice=null, $pa_ht=0)
|
||||||
{
|
{
|
||||||
global $conf,$user,$langs;
|
global $conf,$user,$langs;
|
||||||
|
|
||||||
dol_syslog("Propal::UpdateLine $rowid, $pu, $qty, $remise_percent, $txtva, $desc, $price_base_type, $info_bits");
|
dol_syslog(get_class($this)."::updateLine $rowid, $pu, $qty, $remise_percent, $txtva, $desc, $price_base_type, $info_bits");
|
||||||
include_once(DOL_DOCUMENT_ROOT.'/core/lib/price.lib.php');
|
include_once(DOL_DOCUMENT_ROOT.'/core/lib/price.lib.php');
|
||||||
|
|
||||||
// Clean parameters
|
// Clean parameters
|
||||||
|
|||||||
@ -996,6 +996,8 @@ class Commande extends CommonOrder
|
|||||||
* @param int $rang Position of line
|
* @param int $rang Position of line
|
||||||
* @param int $special_code Special code
|
* @param int $special_code Special code
|
||||||
* @param int $fk_parent_line Parent line
|
* @param int $fk_parent_line Parent line
|
||||||
|
* @param int $fk_fournprice Id supplier price
|
||||||
|
* @param int $pa_ht Buying price (without tax)
|
||||||
* @return int >0 if OK, <0 if KO
|
* @return int >0 if OK, <0 if KO
|
||||||
*
|
*
|
||||||
* @see add_product
|
* @see add_product
|
||||||
@ -2151,9 +2153,11 @@ class Commande extends CommonOrder
|
|||||||
* @param int $type Type of line (0=product, 1=service)
|
* @param int $type Type of line (0=product, 1=service)
|
||||||
* @param int $fk_parent_line Parent line id
|
* @param int $fk_parent_line Parent line id
|
||||||
* @param int $skip_update_total Skip update of total
|
* @param int $skip_update_total Skip update of total
|
||||||
|
* @param int $fk_fournprice Id supplier price
|
||||||
|
* @param int $pa_ht Buying price (without tax)
|
||||||
* @return int < 0 if KO, > 0 if OK
|
* @return int < 0 if KO, > 0 if OK
|
||||||
*/
|
*/
|
||||||
function updateline($rowid, $desc, $pu, $qty, $remise_percent=0, $txtva, $txlocaltax1=0,$txlocaltax2=0, $price_base_type='HT', $info_bits=0, $date_start='', $date_end='', $type=0, $fk_parent_line=0, $skip_update_total=0, $fk_fournprice=null, $pa_ht = 0)
|
function updateline($rowid, $desc, $pu, $qty, $remise_percent, $txtva, $txlocaltax1=0,$txlocaltax2=0, $price_base_type='HT', $info_bits=0, $date_start='', $date_end='', $type=0, $fk_parent_line=0, $skip_update_total=0, $fk_fournprice=null, $pa_ht=0)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
|
|||||||
@ -21,11 +21,11 @@
|
|||||||
* \file /marges/lib/commissions.lib.php
|
* \file /marges/lib/commissions.lib.php
|
||||||
* \ingroup marges
|
* \ingroup marges
|
||||||
* \brief Library for common commissions functions
|
* \brief Library for common commissions functions
|
||||||
* \version $Id:$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define head array for tabs of marges tools setup pages
|
* Define head array for tabs of marges tools setup pages
|
||||||
|
*
|
||||||
* @return Array of head
|
* @return Array of head
|
||||||
*/
|
*/
|
||||||
function commissions_admin_prepare_head()
|
function commissions_admin_prepare_head()
|
||||||
|
|||||||
@ -36,12 +36,13 @@ include_once(DOL_DOCUMENT_ROOT ."/core/modules/DolibarrModules.class.php");
|
|||||||
class modCommissions extends DolibarrModules
|
class modCommissions extends DolibarrModules
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* \brief Constructor. Define names, constants, directories, boxes, permissions
|
* Constructor. Define names, constants, directories, boxes, permissions
|
||||||
* \param DB Database handler
|
*
|
||||||
|
* @param DoliDB $db Database handler
|
||||||
*/
|
*/
|
||||||
function modCommissions($DB)
|
function modCommissions($db)
|
||||||
{
|
{
|
||||||
$this->db = $DB;
|
$this->db = $db;
|
||||||
|
|
||||||
// Id for module (must be unique).
|
// Id for module (must be unique).
|
||||||
// Use here a free id (See in Home -> System information -> Dolibarr for list of used modules id).
|
// Use here a free id (See in Home -> System information -> Dolibarr for list of used modules id).
|
||||||
@ -141,10 +142,11 @@ class modCommissions extends DolibarrModules
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Function called when module is enabled.
|
* Function called when module is enabled.
|
||||||
* The init function add constants, boxes, permissions and menus (defined in constructor) into Dolibarr database.
|
* The init function add constants, boxes, permissions and menus (defined in constructor) into Dolibarr database.
|
||||||
* It also creates data directories.
|
* It also creates data directories.
|
||||||
* \return int 1 if OK, 0 if KO
|
*
|
||||||
|
* @return int 1 if OK, 0 if KO
|
||||||
*/
|
*/
|
||||||
function init()
|
function init()
|
||||||
{
|
{
|
||||||
@ -156,10 +158,11 @@ class modCommissions extends DolibarrModules
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Function called when module is disabled.
|
* Function called when module is disabled.
|
||||||
* Remove from database constants, boxes and permissions from Dolibarr database.
|
* Remove from database constants, boxes and permissions from Dolibarr database.
|
||||||
* Data directories are not deleted.
|
* Data directories are not deleted.
|
||||||
* \return int 1 if OK, 0 if KO
|
*
|
||||||
|
* @return int 1 if OK, 0 if KO
|
||||||
*/
|
*/
|
||||||
function remove()
|
function remove()
|
||||||
{
|
{
|
||||||
@ -170,11 +173,12 @@ class modCommissions extends DolibarrModules
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Create tables and keys required by module
|
* Create tables and keys required by module
|
||||||
* Files mymodule.sql and mymodule.key.sql with create table and create keys
|
* Files mymodule.sql and mymodule.key.sql with create table and create keys
|
||||||
* commands must be stored in directory /mymodule/sql/
|
* commands must be stored in directory /mymodule/sql/
|
||||||
* This function is called by this->init.
|
* This function is called by this->init.
|
||||||
* \return int <=0 if KO, >0 if OK
|
*
|
||||||
|
* @return int <=0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function load_tables()
|
function load_tables()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user