From e18b85ea872c5eef72e43b503a791c0b7e87c8a0 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Sat, 29 Aug 2020 14:08:42 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/takepos/ajax/ajax.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/htdocs/takepos/ajax/ajax.php b/htdocs/takepos/ajax/ajax.php index 56a437f2f6a..7f9555c3226 100644 --- a/htdocs/takepos/ajax/ajax.php +++ b/htdocs/takepos/ajax/ajax.php @@ -69,13 +69,13 @@ if ($action == 'getProducts') { echo 'Failed to load category with id='.$category; } } elseif ($action == 'search' && $term != '') { - // Change thirdparty with barcode + // Change thirdparty with barcode require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php'; - $thirdparty = new Societe($db); - $result = $thirdparty->fetch('', '', '', $term); - - if( $result && $thirdparty->id > 0) { + $thirdparty = new Societe($db); + $result = $thirdparty->fetch('', '', '', $term); + + if ( $result && $thirdparty->id > 0) { $rows = array(); $rows[] = array( 'rowid' => $thirdparty->id, @@ -83,9 +83,9 @@ if ($action == 'getProducts') { 'barcode' => $thirdparty->barcode, 'object' => 'thirdparty' ); - echo json_encode($rows); - exit; - } + echo json_encode($rows); + exit; + } // Define $filteroncategids, the filter on category ID if there is a Root category defined. $filteroncategids = ''; @@ -121,7 +121,7 @@ if ($action == 'getProducts') { 'tobuy' => $obj->tobuy, 'barcode' => $obj->barcode, 'price' => $obj->price, - 'object' => 'product' + 'object' => 'product' //'price_formated' => price(price2num($obj->price, 'MU'), 1, $langs, 1, -1, -1, $conf->currency) ); }