forked from Wavyzz/dolibarr
Fix code comment
This commit is contained in:
@@ -2426,9 +2426,9 @@ function img_printer($titlealt = "default", $other='')
|
|||||||
/**
|
/**
|
||||||
* Show help logo with cursor "?"
|
* Show help logo with cursor "?"
|
||||||
*
|
*
|
||||||
* @param string $usehelpcursor Use help cursor
|
* @param int $usehelpcursor Use help cursor
|
||||||
* @param string $usealttitle Text to use as alt title
|
* @param int|string $usealttitle Text to use as alt title
|
||||||
* @return string Retourne tag img
|
* @return string Return tag img
|
||||||
*/
|
*/
|
||||||
function img_help($usehelpcursor = 1, $usealttitle = 1)
|
function img_help($usehelpcursor = 1, $usealttitle = 1)
|
||||||
{
|
{
|
||||||
@@ -3823,7 +3823,7 @@ function getLocalTaxesFromRate($vatrate, $local, $buyer, $seller, $firstparamisi
|
|||||||
* @param int $idprod Id of product or 0 if not a predefined product
|
* @param int $idprod Id of product or 0 if not a predefined product
|
||||||
* @param Societe $thirdparty_seller Thirdparty with a ->country_code defined (FR, US, IT, ...)
|
* @param Societe $thirdparty_seller Thirdparty with a ->country_code defined (FR, US, IT, ...)
|
||||||
* @param int $idprodfournprice Id product_fournisseur_price (for "supplier" order/invoice)
|
* @param int $idprodfournprice Id product_fournisseur_price (for "supplier" order/invoice)
|
||||||
* @return int <0 if KO, Vat rate if OK
|
* @return float Vat rate
|
||||||
* @see get_product_localtax_for_country
|
* @see get_product_localtax_for_country
|
||||||
*/
|
*/
|
||||||
function get_product_vat_for_country($idprod, $thirdparty_seller, $idprodfournprice=0)
|
function get_product_vat_for_country($idprod, $thirdparty_seller, $idprodfournprice=0)
|
||||||
@@ -3973,7 +3973,7 @@ function get_product_localtax_for_country($idprod, $local, $thirdparty_seller)
|
|||||||
* @param Societe $thirdparty_buyer Objet societe acheteuse
|
* @param Societe $thirdparty_buyer Objet societe acheteuse
|
||||||
* @param int $idprod Id product
|
* @param int $idprod Id product
|
||||||
* @param int $idprodfournprice Id product_fournisseur_price (for supplier order/invoice)
|
* @param int $idprodfournprice Id product_fournisseur_price (for supplier order/invoice)
|
||||||
* @return float Taux de tva a appliquer, -1 si ne peut etre determine
|
* @return float Vat rate to use, -1 if we can't guess it
|
||||||
* @see get_default_npr, get_default_localtax
|
* @see get_default_npr, get_default_localtax
|
||||||
*/
|
*/
|
||||||
function get_default_tva(Societe $thirdparty_seller, Societe $thirdparty_buyer, $idprod=0, $idprodfournprice=0)
|
function get_default_tva(Societe $thirdparty_seller, Societe $thirdparty_buyer, $idprod=0, $idprodfournprice=0)
|
||||||
@@ -4522,7 +4522,7 @@ function dol_nboflines_bis($text,$maxlinesize=0,$charset='UTF-8')
|
|||||||
else $pattern = '/(<br[^>]*>)/U'; // /U is to have UNGREEDY regex to limit to one html tag.
|
else $pattern = '/(<br[^>]*>)/U'; // /U is to have UNGREEDY regex to limit to one html tag.
|
||||||
$a = preg_split($pattern, $text, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
|
$a = preg_split($pattern, $text, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
|
||||||
|
|
||||||
$nblines = floor((count($a)+1)/2);
|
$nblines = (int) floor((count($a)+1)/2);
|
||||||
// count possible auto line breaks
|
// count possible auto line breaks
|
||||||
if($maxlinesize)
|
if($maxlinesize)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user