CORE-POS/IS4C

View on GitHub

Showing 8,683 of 8,684 total issues

Function updateDays has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    mod.updateDays = function() {
        clearIncoming();
        var week = $('#modProj').html();
        if (week == 0) {
            week = $('#projSales').html().replace(',', '');
Severity: Major
Found in fannie/modules/plugins2.0/RP/rpDual.js - About 2 hrs to fix

    Function chainSubs has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        mod.chainSubs = function(store_id) {
            chainSubDepartments(
                '../ws/',
                {
                    super_id: '#super-dept'+store_id,
    Severity: Major
    Found in fannie/item/modules/baseItem.js - About 2 hrs to fix

      Method body_content has 52 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function body_content()
          {
              $this->addOnloadCommand("selectSubmit('#search', '#selectform', '#filter-span')\n");
      
              // originally 390
      Severity: Major
      Found in pos/is4c-nf/plugins/B2B/B2BListPage.php - About 2 hrs to fix

        Method body_content has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function body_content()
            {
                ?>
                <div class="baseHeight">
                <div class="listbox">
        Severity: Major
        Found in pos/is4c-nf/gui-modules/rplist.php - About 2 hrs to fix

          Method create has 52 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function create()
              { 
                  if ($this->connection->isView($this->name)) {
                      return true;
                  }
          Severity: Major
          Found in pos/is4c-nf/lib/models/trans/StaffDiscountRemoveModel.php - About 2 hrs to fix

            Method listModules has 52 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                static public function listModules($baseClass, $includeBase=False)
                {
                    $ret = array();
                    
                    // lookup plugin modules, then standard modules
            Severity: Major
            Found in pos/is4c-nf/lib/AutoLoader.php - About 2 hrs to fix

              Method create has 52 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function create()
                  { 
                      if ($this->connection->isView($this->name)) {
                          return true;
                      }
              Severity: Major
              Found in pos/is4c-nf/lib/models/trans/MemDiscountRemoveModel.php - About 2 hrs to fix

                Method fetch_report_data has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function fetch_report_data()
                    {
                        $dbc = $this->connection;
                        $dbc->selectDB($this->config->get('OP_DB'));
                        $super = FormLib::get('super');
                Severity: Major
                Found in fannie/reports/PluSkuReport/PluSkuReport.php - About 2 hrs to fix

                  Method form_content has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function form_content()
                      {
                          global $FANNIE_URL;
                          $stores = FormLib::storePicker();
                          ob_start();
                  Severity: Major
                  Found in fannie/reports/ProductMovement/ProductPerCashier.php - About 2 hrs to fix

                    Method ajaxItemSales has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        private function ajaxItemSales()
                        {
                            $upc = BarcodeLib::padUPC(FormLib::get('upc'));
                            $date1 = FormLib::get('date1');
                            $date2 = FormLib::get('date2');
                    Severity: Major
                    Found in fannie/reports/BatchReport/BatchReport.php - About 2 hrs to fix

                      Method fetch_report_data has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function fetch_report_data()
                          {
                              $dbc = $this->connection;
                              $dbc->selectDB($this->config->get('OP_DB'));
                      
                      
                      Severity: Major
                      Found in fannie/reports/from-search/ProductPerStore/ProductPerStoreReport.php - About 2 hrs to fix

                        Method fetch_report_data has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function fetch_report_data()
                            {
                                $dbc = $this->connection;
                                $dbc->selectDB($this->config->get('OP_DB'));
                        
                        
                        Severity: Major
                        Found in fannie/reports/Equity/EquityReport.php - About 2 hrs to fix

                          Method toTable has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              private function toTable($dbc, $result, $dlog)
                              {
                                  $this->addScript('../../src/javascript/tablesorter/jquery.tablesorter.js');
                                  $this->addOnloadCommand("\$('.tablesorter').tablesorter();\n");
                                  $ret = "<b>Matching receipts</b>:<br />";
                          Severity: Major
                          Found in fannie/admin/LookupReceipt/ReprintReceiptPage.php - About 2 hrs to fix

                            Method get_view has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function get_view()
                                {
                                    $storeID = COREPOS\Fannie\API\lib\Store::getIdByIp();
                                    $ret = "";
                            
                            
                            Severity: Major
                            Found in fannie/admin/labels/MovementTagTracker.php - About 2 hrs to fix

                              Method get_list_handler has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  protected function get_list_handler()
                                  {
                                      global $FANNIE_OP_DB;
                                      $dbc = FannieDB::get($FANNIE_OP_DB);
                              
                              
                              Severity: Major
                              Found in fannie/admin/labels/QueueTagsByLC.php - About 2 hrs to fix

                                Method __construct has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function __construct($custdata, $meminfo, $tax_id, $tax_year, $fields, $account_number='')
                                    {
                                        global $FANNIE_PLUGIN_SETTINGS;
                                        $dbc = FannieDB::get($FANNIE_PLUGIN_SETTINGS['GiveUsMoneyDB']);
                                        $settings = new GumSettingsModel($dbc);

                                  Method __construct has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function __construct($custdata, $meminfo, $tax_id, $tax_year, $fields, $account_number='')
                                      {
                                          global $FANNIE_PLUGIN_SETTINGS;
                                          $dbc = FannieDB::get($FANNIE_PLUGIN_SETTINGS['GiveUsMoneyDB']);
                                          $settings = new GumSettingsModel($dbc);
                                  Severity: Major
                                  Found in fannie/modules/plugins2.0/GiveUsMoneyPlugin/GumTaxFormTemplate.php - About 2 hrs to fix

                                    Method salesTable has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        private function salesTable($store, $ts)
                                        {
                                            $segP = $this->connection->prepare("SELECT * FROM RpSegments WHERE storeID=? AND startDate=?");
                                            if (date('N') == 1) {
                                                $ts = mktime(0, 0, 0, date('n', $ts), date('j',$ts) - 7, date('Y',$ts));
                                    Severity: Major
                                    Found in fannie/modules/plugins2.0/RP/RpDailyPage.php - About 2 hrs to fix

                                      Method __construct has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function __construct($custdata, $meminfo, $tax_id, $tax_year, $fields, $account_number='')
                                          {
                                              global $FANNIE_PLUGIN_SETTINGS;
                                              $dbc = FannieDB::get($FANNIE_PLUGIN_SETTINGS['GiveUsMoneyDB']);
                                              $settings = new GumSettingsModel($dbc);

                                        Method get_id_view has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function get_id_view()
                                            {
                                                global $FANNIE_URL;
                                                $ret = '';
                                        
                                        
                                        Severity: Major
                                        Found in fannie/modules/plugins2.0/GiveUsMoneyPlugin/GumSchedulePage.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language