diff --git a/view/manager/config/distribution_proportion.html b/view/manager/config/distribution_proportion.html index 540c328..e8380e0 100644 --- a/view/manager/config/distribution_proportion.html +++ b/view/manager/config/distribution_proportion.html @@ -60,7 +60,7 @@ $("#price").text(0); return false; } - if(agency>0 || consumer>0){ + if(agency>0 && consumer>0){ if (agency < consumer) { $("#price").text( {$minPrice}+"*"+"(100/"+agency+")" +"="+({$minPrice}*(100/agency))); }else{ diff --git a/view/manager/config/distribution_proportion_user.html b/view/manager/config/distribution_proportion_user.html index d1b8d52..2bdfdb5 100644 --- a/view/manager/config/distribution_proportion_user.html +++ b/view/manager/config/distribution_proportion_user.html @@ -58,7 +58,7 @@ $("#price").text(0); return false; } - if(distribution>0 || distributed>0){ + if(distribution>0 && distributed>0){ if (distribution < distributed) { $("#price").text( {$minPrice}+"*"+"(100/"+distribution+")" +"="+({$minPrice}*(100/distribution))); }else{