deisy vor 6 Jahren
Ursprung
Commit
62ca2d12ff

+ 7 - 0
static/src/js/reports/report_crm.js

@@ -294,6 +294,13 @@ function report_crm(reporting) {
       return defer;
     },
 
+    getResCompany: function (id) {
+      var self = this;
+      return _.filter(self.ResCompany,function (item) {
+        return item.id == id;
+      })
+    },
+
     /*====================================================================
           RES STORE
       ====================================================================*/

+ 7 - 0
static/src/js/reports/report_crm_claim.js

@@ -360,6 +360,13 @@ function report_crm_claim(reporting){
       return defer;
     },
 
+    getResCompany: function (id) {
+      var self = this;
+      return _.filter(self.ResCompany,function (item) {
+        return item.id == id;
+      })
+    },
+
     updateUser: function () {
       var self = this;
       var store = self.$el.find('#current-store').val();

+ 7 - 0
static/src/js/reports/report_crm_task.js

@@ -294,6 +294,13 @@ function report_crm_task(reporting) {
       return defer;
     },
 
+    getResCompany: function (id) {
+      var self = this;
+      return _.filter(self.ResCompany,function (item) {
+        return item.id == id;
+      })
+    },
+
     fetchCrmTask: function() {
       var self = this;
       var defer = $.Deferred();