osbzr/gooderp_addons

View on GitHub
web_export_view_good/static/src/js/web_export_view_good.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function button_export_action has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function button_export_action () {
    var self = this;
    var view = self;
    var export_columns_keys = [];
    var export_columns_names = [];
Severity: Major
Found in web_export_view_good/static/src/js/web_export_view_good.js - About 2 hrs to fix

    Function compute_main_data has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function compute_main_data(rows,export_columns_keys){
        var export_rows = []
    
        $.each(rows, function () {
            var $row = $(this);
    Severity: Minor
    Found in web_export_view_good/static/src/js/web_export_view_good.js - About 1 hr to fix

      Function compute_footer_data has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function compute_footer_data(amount,export_columns_keys) {
          var export_rows = []
          var footer = 0;
          $.each(amount, function () {
              var $row = $(this);
      Severity: Minor
      Found in web_export_view_good/static/src/js/web_export_view_good.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status