Qual: Enhance codesniffer setup
This commit is contained in:
parent
c41c5bf797
commit
0d6baa4288
@ -75,8 +75,13 @@
|
|||||||
<rule ref="Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma">
|
<rule ref="Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma">
|
||||||
<severity>0</severity>
|
<severity>0</severity>
|
||||||
</rule>
|
</rule>
|
||||||
<rule
|
<rule ref="Generic.Functions.FunctionCallArgumentSpacing.NoSpaceBeforeEquals">
|
||||||
ref="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma">
|
<severity>0</severity>
|
||||||
|
</rule>
|
||||||
|
<rule ref="Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterEquals">
|
||||||
|
<severity>0</severity>
|
||||||
|
</rule>
|
||||||
|
<rule ref="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma">
|
||||||
<severity>0</severity>
|
<severity>0</severity>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ print_fiche_titre($text);
|
|||||||
// Show tabs
|
// Show tabs
|
||||||
$head=marges_prepare_head($user);
|
$head=marges_prepare_head($user);
|
||||||
$titre=$langs->trans("Margins");
|
$titre=$langs->trans("Margins");
|
||||||
$picto='marges@marges';
|
$picto='marges';
|
||||||
dol_fiche_head($head, 'productMargins', $titre, 0, $picto);
|
dol_fiche_head($head, 'productMargins', $titre, 0, $picto);
|
||||||
|
|
||||||
print '<form method="post" name="sel">';
|
print '<form method="post" name="sel">';
|
||||||
@ -89,7 +89,7 @@ if ($id > 0) {
|
|||||||
|
|
||||||
print '<tr><td width="20%">'.$langs->trans('ChooseProduct/Service').'</td>';
|
print '<tr><td width="20%">'.$langs->trans('ChooseProduct/Service').'</td>';
|
||||||
print '<td colspan="4">';
|
print '<td colspan="4">';
|
||||||
print $form->select_produits($selected=$id,$htmlname='id',$filtertype='',$limit=20,$price_level=0,$status=1,$finished=2,$selected_input_value='',$hidelabel=1);
|
print $form->select_produits($selected=$id, $htmlname='id', $filtertype='', $limit=20, $price_level=0, $status=1, $finished=2, $selected_input_value='', $hidelabel=1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr><td width="20%">'.$langs->trans('AllProducts').'</td>';
|
print '<tr><td width="20%">'.$langs->trans('AllProducts').'</td>';
|
||||||
@ -101,7 +101,7 @@ if ($id > 0) {
|
|||||||
else {
|
else {
|
||||||
print '<tr><td width="20%">'.$langs->trans('ChooseProduct/Service').'</td>';
|
print '<tr><td width="20%">'.$langs->trans('ChooseProduct/Service').'</td>';
|
||||||
print '<td colspan="4">';
|
print '<td colspan="4">';
|
||||||
print $form->select_produits($selected='',$htmlname='id',$filtertype='',$limit=20,$price_level=0,$status=1,$finished=2,$selected_input_value='',$hidelabel=1);
|
print $form->select_produits($selected='', $htmlname='id', $filtertype='', $limit=20, $price_level=0, $status=1, $finished=2, $selected_input_value='', $hidelabel=1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
if (! $sortorder) $sortorder="ASC";
|
if (! $sortorder) $sortorder="ASC";
|
||||||
if (! $sortfield) $sortfield="p.ref";
|
if (! $sortfield) $sortfield="p.ref";
|
||||||
@ -206,8 +206,8 @@ if ($result)
|
|||||||
{
|
{
|
||||||
$objp = $db->fetch_object($result);
|
$objp = $db->fetch_object($result);
|
||||||
|
|
||||||
$marginRate = ($objp->buying_price != 0)?(100 * round($objp->marge / $objp->buying_price ,5)):'' ;
|
$marginRate = ($objp->buying_price != 0)?(100 * round($objp->marge / $objp->buying_price, 5)):'' ;
|
||||||
$markRate = ($objp->selling_price != 0)?(100 * round($objp->marge / $objp->selling_price ,5)):'' ;
|
$markRate = ($objp->selling_price != 0)?(100 * round($objp->marge / $objp->selling_price, 5)):'' ;
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user