fanxw 1 gadu atpakaļ
vecāks
revīzija
fbce476eae

+ 6 - 1
src/main/resources/static/app/business/commonUtilService.js

@@ -250,7 +250,12 @@ angular.module('app.business').service("commonUtilService", function($http, $q,
250 250
     	        	}
251 251
     	        }
252 252
     	     }
253
-    	    v = this.getMath1(v);
253
+    	    if (n==2) {
254
+    	    	v = this.getMath(v);
255
+    	    }
256
+    	    if (n==1) {
257
+    	    	v = this.getMath1(v);
258
+    	    }
254 259
     	} else {
255 260
     		v = 0.0
256 261
     	}