Subversion Repositories SmartDukaan

Rev

Rev 37523 | Rev 37561 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37523 Rev 37533
Line 2864... Line 2864...
2864
        $("#rdrrDdPct").text("—");
2864
        $("#rdrrDdPct").text("—");
2865
      }
2865
      }
2866
      $("#rdrrDdBrands").html('<div class="loading"><div class="spinner"></div>Loading brand mix&hellip;</div>');
2866
      $("#rdrrDdBrands").html('<div class="loading"><div class="spinner"></div>Loading brand mix&hellip;</div>');
2867
      $("#rdrrDdFlow").html('<div class="loading"><div class="spinner"></div>Loading&hellip;</div>');
2867
      $("#rdrrDdFlow").html('<div class="loading"><div class="spinner"></div>Loading&hellip;</div>');
2868
 
2868
 
-
 
2869
      var salesQs = CURRENT_SALES_ROLE ? ("&hierarchy=SALES&role=" + encodeURIComponent(CURRENT_SALES_ROLE)) : "";
2869
      fetch("/rbm-drr/rbm-detail?authId=" + authId + "&warehouseId=" + warehouseId +
2870
      fetch("/rbm-drr/rbm-detail?authId=" + authId + "&warehouseId=" + warehouseId +
2870
              "&startDate=" + startDate + "&endDate=" + endDate, {credentials: "same-origin"})
2871
              "&startDate=" + startDate + "&endDate=" + endDate + salesQs, {credentials: "same-origin"})
2871
              .then(function (r) {
2872
              .then(function (r) {
2872
                return r.json();
2873
                return r.json();
2873
              })
2874
              })
2874
              .then(function (data) {
2875
              .then(function (data) {
2875
                renderBrands(data);
2876
                renderBrands(data);