Fixing style errors.

This commit is contained in:
stickler-ci 2020-08-29 14:08:42 +00:00
parent d3024fdd1c
commit e18b85ea87

View File

@ -69,13 +69,13 @@ if ($action == 'getProducts') {
echo 'Failed to load category with id='.$category; echo 'Failed to load category with id='.$category;
} }
} elseif ($action == 'search' && $term != '') { } elseif ($action == 'search' && $term != '') {
// Change thirdparty with barcode // Change thirdparty with barcode
require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php'; require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
$thirdparty = new Societe($db); $thirdparty = new Societe($db);
$result = $thirdparty->fetch('', '', '', $term); $result = $thirdparty->fetch('', '', '', $term);
if( $result && $thirdparty->id > 0) { if ( $result && $thirdparty->id > 0) {
$rows = array(); $rows = array();
$rows[] = array( $rows[] = array(
'rowid' => $thirdparty->id, 'rowid' => $thirdparty->id,
@ -83,9 +83,9 @@ if ($action == 'getProducts') {
'barcode' => $thirdparty->barcode, 'barcode' => $thirdparty->barcode,
'object' => 'thirdparty' 'object' => 'thirdparty'
); );
echo json_encode($rows); echo json_encode($rows);
exit; exit;
} }
// Define $filteroncategids, the filter on category ID if there is a Root category defined. // Define $filteroncategids, the filter on category ID if there is a Root category defined.
$filteroncategids = ''; $filteroncategids = '';
@ -121,7 +121,7 @@ if ($action == 'getProducts') {
'tobuy' => $obj->tobuy, 'tobuy' => $obj->tobuy,
'barcode' => $obj->barcode, 'barcode' => $obj->barcode,
'price' => $obj->price, 'price' => $obj->price,
'object' => 'product' 'object' => 'product'
//'price_formated' => price(price2num($obj->price, 'MU'), 1, $langs, 1, -1, -1, $conf->currency) //'price_formated' => price(price2num($obj->price, 'MU'), 1, $langs, 1, -1, -1, $conf->currency)
); );
} }