From d4aed0aead1532ba02b683f28c103b11701ea20a Mon Sep 17 00:00:00 2001 From: Sanasol Date: Thu, 22 Mar 2018 12:57:16 +0300 Subject: [PATCH] discount min price fix --- web/src/js/modules/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/js/modules/popup.js b/web/src/js/modules/popup.js index 4f39ad08..feaa8a8a 100644 --- a/web/src/js/modules/popup.js +++ b/web/src/js/modules/popup.js @@ -73,7 +73,7 @@ $(document).ready(function () { } var text = ''; - if(schoolAmountForDiscount >= price) { + if(schoolAmountForDiscount <= price) { text = ''+price+' '+(price-schoolDiscount)+'р.'; } else { text = price+'p.';