Fix phpcs
This commit is contained in:
parent
4785e84c43
commit
12b9a73ca5
@ -56,7 +56,6 @@ function dol_convertToWord($num, $langs, $currency = false, $centimes = false)
|
|||||||
$concatWords = $langs->getLabelFromNumber($num, $type);
|
$concatWords = $langs->getLabelFromNumber($num, $type);
|
||||||
return $concatWords;
|
return $concatWords;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$TNum = explode('.', $num);
|
$TNum = explode('.', $num);
|
||||||
$num = (int) $TNum[0];
|
$num = (int) $TNum[0];
|
||||||
$words = array();
|
$words = array();
|
||||||
|
|||||||
@ -29,7 +29,6 @@ if (empty($conf) || !is_object($conf)) {
|
|||||||
|
|
||||||
<!-- BEGIN PHP TEMPLATE STOCKCORRECTION.TPL.PHP -->
|
<!-- BEGIN PHP TEMPLATE STOCKCORRECTION.TPL.PHP -->
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$productref = '';
|
$productref = '';
|
||||||
if ($object->element == 'product') $productref = $object->ref;
|
if ($object->element == 'product') $productref = $object->ref;
|
||||||
|
|
||||||
@ -66,8 +65,7 @@ if (empty($conf) || !is_object($conf)) {
|
|||||||
|
|
||||||
// Warehouse or product
|
// Warehouse or product
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
if ($object->element == 'product')
|
if ($object->element == 'product') {
|
||||||
{
|
|
||||||
print '<td class="fieldrequired">'.$langs->trans("Warehouse").'</td>';
|
print '<td class="fieldrequired">'.$langs->trans("Warehouse").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $formproduct->selectWarehouses((GETPOST("dwid") ?GETPOST("dwid", 'int') : (GETPOST('id_entrepot') ?GETPOST('id_entrepot', 'int') : ($object->element == 'product' && $object->fk_default_warehouse ? $object->fk_default_warehouse : 'ifone'))), 'id_entrepot', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, null, 'minwidth100');
|
print $formproduct->selectWarehouses((GETPOST("dwid") ?GETPOST("dwid", 'int') : (GETPOST('id_entrepot') ?GETPOST('id_entrepot', 'int') : ($object->element == 'product' && $object->fk_default_warehouse ? $object->fk_default_warehouse : 'ifone'))), 'id_entrepot', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, null, 'minwidth100');
|
||||||
@ -77,8 +75,7 @@ if (empty($conf) || !is_object($conf)) {
|
|||||||
print '</select>';
|
print '</select>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
if ($object->element == 'stock')
|
if ($object->element == 'stock') {
|
||||||
{
|
|
||||||
print '<td class="fieldrequired">'.$langs->trans("Product").'</td>';
|
print '<td class="fieldrequired">'.$langs->trans("Product").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$form->select_produits(GETPOST('product_id', 'int'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES) ? '0' : ''), 0, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500');
|
$form->select_produits(GETPOST('product_id', 'int'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES) ? '0' : ''), 0, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500');
|
||||||
|
|||||||
@ -70,15 +70,13 @@ if ($pdluoid)
|
|||||||
|
|
||||||
// Source warehouse or product
|
// Source warehouse or product
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
if ($object->element == 'product')
|
if ($object->element == 'product') {
|
||||||
{
|
|
||||||
print '<td class="fieldrequired">'.$langs->trans("WarehouseSource").'</td>';
|
print '<td class="fieldrequired">'.$langs->trans("WarehouseSource").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $formproduct->selectWarehouses((GETPOST("dwid") ?GETPOST("dwid", 'int') : (GETPOST('id_entrepot') ?GETPOST('id_entrepot', 'int') : ($object->element == 'product' && $object->fk_default_warehouse ? $object->fk_default_warehouse : 'ifone'))), 'id_entrepot', 'warehouseopen,warehouseinternal', 1);
|
print $formproduct->selectWarehouses((GETPOST("dwid") ?GETPOST("dwid", 'int') : (GETPOST('id_entrepot') ?GETPOST('id_entrepot', 'int') : ($object->element == 'product' && $object->fk_default_warehouse ? $object->fk_default_warehouse : 'ifone'))), 'id_entrepot', 'warehouseopen,warehouseinternal', 1);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
if ($object->element == 'stock')
|
if ($object->element == 'stock') {
|
||||||
{
|
|
||||||
print '<td class="fieldrequired">'.$langs->trans("Product").'</td>';
|
print '<td class="fieldrequired">'.$langs->trans("Product").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$form->select_produits(GETPOST('product_id', 'int'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES) ? '0' : ''), 0, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500');
|
$form->select_produits(GETPOST('product_id', 'int'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES) ? '0' : ''), 0, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user