Fix phpcs
This commit is contained in:
parent
e5f0c8e0e7
commit
abdc2aa21a
@ -108,7 +108,7 @@ class Propal extends CommonObject
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see date_creation
|
* @see $date_creation
|
||||||
*/
|
*/
|
||||||
public $datec;
|
public $datec;
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ class Propal extends CommonObject
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see date_validation
|
* @see $date_validation
|
||||||
*/
|
*/
|
||||||
public $datev;
|
public $datev;
|
||||||
|
|
||||||
@ -138,7 +138,7 @@ class Propal extends CommonObject
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see date
|
* @see $date
|
||||||
*/
|
*/
|
||||||
public $datep;
|
public $datep;
|
||||||
public $date_livraison;
|
public $date_livraison;
|
||||||
@ -150,17 +150,17 @@ class Propal extends CommonObject
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see total_ht
|
* @see $total_ht
|
||||||
*/
|
*/
|
||||||
public $price;
|
public $price;
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see total_tva
|
* @see $total_tva
|
||||||
*/
|
*/
|
||||||
public $tva;
|
public $tva;
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see total_ttc
|
* @see $total_ttc
|
||||||
*/
|
*/
|
||||||
public $total;
|
public $total;
|
||||||
|
|
||||||
@ -432,7 +432,7 @@ class Propal extends CommonObject
|
|||||||
* @param double $pu_ht_devise Unit price in currency
|
* @param double $pu_ht_devise Unit price in currency
|
||||||
* @param int $fk_remise_except Id discount if line is from a discount
|
* @param int $fk_remise_except Id discount if line is from a discount
|
||||||
* @return int >0 if OK, <0 if KO
|
* @return int >0 if OK, <0 if KO
|
||||||
* @see add_product
|
* @see add_product()
|
||||||
*/
|
*/
|
||||||
public function addline($desc, $pu_ht, $qty, $txtva, $txlocaltax1 = 0.0, $txlocaltax2 = 0.0, $fk_product = 0, $remise_percent = 0.0, $price_base_type = 'HT', $pu_ttc = 0.0, $info_bits = 0, $type = 0, $rang = -1, $special_code = 0, $fk_parent_line = 0, $fk_fournprice = 0, $pa_ht = 0, $label = '', $date_start = '', $date_end = '', $array_options = 0, $fk_unit = null, $origin = '', $origin_id = 0, $pu_ht_devise = 0, $fk_remise_except = 0)
|
public function addline($desc, $pu_ht, $qty, $txtva, $txlocaltax1 = 0.0, $txlocaltax2 = 0.0, $fk_product = 0, $remise_percent = 0.0, $price_base_type = 'HT', $pu_ttc = 0.0, $info_bits = 0, $type = 0, $rang = -1, $special_code = 0, $fk_parent_line = 0, $fk_fournprice = 0, $pa_ht = 0, $label = '', $date_start = '', $date_end = '', $array_options = 0, $fk_unit = null, $origin = '', $origin_id = 0, $pu_ht_devise = 0, $fk_remise_except = 0)
|
||||||
{
|
{
|
||||||
@ -1199,7 +1199,7 @@ class Propal extends CommonObject
|
|||||||
*
|
*
|
||||||
* @param User $user User that create
|
* @param User $user User that create
|
||||||
* @return int Id of the new object if ok, <0 if ko
|
* @return int Id of the new object if ok, <0 if ko
|
||||||
* @see create
|
* @see create()
|
||||||
*/
|
*/
|
||||||
public function create_from($user)
|
public function create_from($user)
|
||||||
{
|
{
|
||||||
@ -3649,7 +3649,7 @@ class PropaleLigne extends CommonObjectLine
|
|||||||
public $fk_product; // Id produit predefini
|
public $fk_product; // Id produit predefini
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see product_type
|
* @see $product_type
|
||||||
*/
|
*/
|
||||||
public $fk_product_type;
|
public $fk_product_type;
|
||||||
/**
|
/**
|
||||||
@ -3677,7 +3677,7 @@ class PropaleLigne extends CommonObjectLine
|
|||||||
// 2: ecotaxe
|
// 2: ecotaxe
|
||||||
// 3: option line (when qty = 0)
|
// 3: option line (when qty = 0)
|
||||||
|
|
||||||
public $info_bits = 0; // Liste d'options cumulables:
|
public $info_bits = 0; // Some other info:
|
||||||
// Bit 0: 0 si TVA normal - 1 si TVA NPR
|
// Bit 0: 0 si TVA normal - 1 si TVA NPR
|
||||||
// Bit 1: 0 ligne normale - 1 si ligne de remise fixe
|
// Bit 1: 0 ligne normale - 1 si ligne de remise fixe
|
||||||
|
|
||||||
@ -3692,14 +3692,14 @@ class PropaleLigne extends CommonObjectLine
|
|||||||
public $remise;
|
public $remise;
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see subprice
|
* @see $subprice
|
||||||
*/
|
*/
|
||||||
public $price;
|
public $price;
|
||||||
|
|
||||||
// From llx_product
|
// From llx_product
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see product_ref
|
* @see $product_ref
|
||||||
*/
|
*/
|
||||||
public $ref;
|
public $ref;
|
||||||
/**
|
/**
|
||||||
@ -3709,7 +3709,7 @@ class PropaleLigne extends CommonObjectLine
|
|||||||
public $product_ref;
|
public $product_ref;
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see product_label
|
* @see $product_label
|
||||||
*/
|
*/
|
||||||
public $libelle;
|
public $libelle;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -7900,13 +7900,15 @@ function roundUpToNextMultiple($n, $x = 5)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Function dolGetBadge
|
||||||
|
*
|
||||||
* @param string $label label of badge no html : use in alt attribute for accessibility
|
* @param string $label label of badge no html : use in alt attribute for accessibility
|
||||||
* @param string $html optional : label of badge with html
|
* @param string $html optional : label of badge with html
|
||||||
* @param string $type type of badge : Primary Secondary Success Danger Warning Info Light Dark status0 status1 status2 status3 status4 status5 status6 status7 status8 status9
|
* @param string $type type of badge : Primary Secondary Success Danger Warning Info Light Dark status0 status1 status2 status3 status4 status5 status6 status7 status8 status9
|
||||||
* @param string $mode default '' , pill, dot
|
* @param string $mode default '' , pill, dot
|
||||||
* @param string $url the url for link
|
* @param string $url the url for link
|
||||||
* @param array $params various params for future : recommended rather than adding more fuction arguments
|
* @param array $params various params for future : recommended rather than adding more fuction arguments
|
||||||
* @return string html badge
|
* @return string Html badge
|
||||||
*/
|
*/
|
||||||
function dolGetBadge($label, $html = '', $type = 'primary', $mode = '', $url = '', $params = array())
|
function dolGetBadge($label, $html = '', $type = 'primary', $mode = '', $url = '', $params = array())
|
||||||
{
|
{
|
||||||
@ -7957,14 +7959,16 @@ function dolGetBadge($label, $html = '', $type = 'primary', $mode = '', $url = '
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $statusLabel label of badge no html : use in alt attribute for accessibility
|
* Function dolGetStatus
|
||||||
* @param string $statusLabelShort short label of badge no html
|
*
|
||||||
* @param string $html optional : label of badge with html
|
* @param string $statusLabel Label of badge no html : use in alt attribute for accessibility
|
||||||
|
* @param string $statusLabelShort Short label of badge no html
|
||||||
|
* @param string $html Optional : label of badge with html
|
||||||
* @param string $statusType status0 status1 status2 status3 status4 status5 status6 status7 status8 status9 : image name or badge name
|
* @param string $statusType status0 status1 status2 status3 status4 status5 status6 status7 status8 status9 : image name or badge name
|
||||||
* @param int $displayMode for retrocompatibility 0=Long label, 1=Short label, 2=Picto + Short label, 3=Picto, 4=Picto + Long label, 5=Short label + Picto, 6=Long label + Picto
|
* @param int $displayMode 0=Long label, 1=Short label, 2=Picto + Short label, 3=Picto, 4=Picto + Long label, 5=Short label + Picto, 6=Long label + Picto
|
||||||
* @param string $url the url for link
|
* @param string $url The url for link
|
||||||
* @param array $params various params for future : recommended rather than adding more function arguments
|
* @param array $params Various params for future : recommended rather than adding more function arguments
|
||||||
* @return string html status
|
* @return string Html status string
|
||||||
*/
|
*/
|
||||||
function dolGetStatus($statusLabel = '', $statusLabelShort = '', $html = '', $statusType = 'status0', $displayMode = 0, $url = '', $params = array())
|
function dolGetStatus($statusLabel = '', $statusLabelShort = '', $html = '', $statusType = 'status0', $displayMode = 0, $url = '', $params = array())
|
||||||
{
|
{
|
||||||
@ -8004,7 +8008,6 @@ function dolGetStatus($statusLabel = '', $statusLabelShort = '', $html = '', $st
|
|||||||
$htmlImg = img_picto($statusLabel, $statusType);
|
$htmlImg = img_picto($statusLabel, $statusType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($displayMode === 2) {
|
if ($displayMode === 2) {
|
||||||
$return = $htmlImg .' '. $htmlLabel;
|
$return = $htmlImg .' '. $htmlLabel;
|
||||||
}
|
}
|
||||||
@ -8023,7 +8026,6 @@ function dolGetStatus($statusLabel = '', $statusLabelShort = '', $html = '', $st
|
|||||||
}
|
}
|
||||||
// Use new badge
|
// Use new badge
|
||||||
elseif (!empty($conf->global->MAIN_STATUS_USES_CSS) && !empty($displayMode)) {
|
elseif (!empty($conf->global->MAIN_STATUS_USES_CSS) && !empty($displayMode)) {
|
||||||
|
|
||||||
$statusLabelShort = !empty($statusLabelShort)?$statusLabelShort:$statusLabel;
|
$statusLabelShort = !empty($statusLabelShort)?$statusLabelShort:$statusLabel;
|
||||||
|
|
||||||
if($displayMode == 3){
|
if($displayMode == 3){
|
||||||
@ -8042,6 +8044,8 @@ function dolGetStatus($statusLabel = '', $statusLabelShort = '', $html = '', $st
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Function dolGetButtonAction
|
||||||
|
*
|
||||||
* @param string $label label of button no html : use in alt attribute for accessibility $html is not empty
|
* @param string $label label of button no html : use in alt attribute for accessibility $html is not empty
|
||||||
* @param string $html optional : content with html
|
* @param string $html optional : content with html
|
||||||
* @param string $actionType default, delete, danger
|
* @param string $actionType default, delete, danger
|
||||||
@ -8053,8 +8057,6 @@ function dolGetStatus($statusLabel = '', $statusLabelShort = '', $html = '', $st
|
|||||||
*/
|
*/
|
||||||
function dolGetButtonAction($label, $html = '', $actionType = 'default', $url = '', $id = '', $userRight = 1, $params = array())
|
function dolGetButtonAction($label, $html = '', $actionType = 'default', $url = '', $id = '', $userRight = 1, $params = array())
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$class = 'butAction' ;
|
$class = 'butAction' ;
|
||||||
if($actionType == 'danger' || $actionType == 'delete'){
|
if($actionType == 'danger' || $actionType == 'delete'){
|
||||||
$class = 'butActionDelete' ;
|
$class = 'butActionDelete' ;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user