mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-12 04:21:30 +01:00
Fix: phpcs
This commit is contained in:
@@ -778,11 +778,12 @@ class FormCompany
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a select with localtax values for thirds
|
||||
* Return a HTML select with localtax values for thirdparties
|
||||
*
|
||||
* @param int $local LocalTax
|
||||
* @param int $selected Preselected value
|
||||
* @param varchar $htmlname HTML select name
|
||||
* @return void
|
||||
*/
|
||||
function select_localtax($local, $selected, $htmlname)
|
||||
{
|
||||
@@ -798,10 +799,14 @@ class FormCompany
|
||||
{
|
||||
//montar select
|
||||
print '<select class="flat" name="'.$htmlname.'">';
|
||||
while($i <= (count($valors))-1){
|
||||
if ($selected == $valors[$i]){
|
||||
while ($i <= (count($valors))-1)
|
||||
{
|
||||
if ($selected == $valors[$i])
|
||||
{
|
||||
print '<option value="'.$valors[$i].'" selected="selected">';
|
||||
}else{
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<option value="'.$valors[$i].'">';
|
||||
}
|
||||
print $valors[$i];
|
||||
@@ -809,7 +814,6 @@ class FormCompany
|
||||
$i++;
|
||||
}
|
||||
print'</select>';
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3058,7 +3058,8 @@ function get_localtax_by_third($local)
|
||||
*
|
||||
* @param float $vatrate VAT Rate
|
||||
* @param int $local Number of localtax (1 or 2, or 0 to return 1 & 2)
|
||||
* @param int $thirdparty Company object
|
||||
* @param int $buyer Company object
|
||||
* @param int $seller Company object
|
||||
* @return array array(localtax_type1(1-6 / 0 if not found), rate of localtax1, ...)
|
||||
*/
|
||||
function getLocalTaxesFromRate($vatrate, $local, $buyer, $seller)
|
||||
|
||||
Reference in New Issue
Block a user