From: Maxim Mamontov Date: Mon, 19 Sep 2011 07:57:28 +0000 (+0300) Subject: Make fee charging rules inclusive (2 includes 0 and 3 includes fee) X-Git-Tag: 2.408-rc1~28 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/355911106bc27f5504eb904a064367ef1b5f0aba?hp=f12f8cc038c4421884a6787e110a517bbaea1953 Make fee charging rules inclusive (2 includes 0 and 3 includes fee) --- diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index 1278afa2..ca2e2cae 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -1243,11 +1243,11 @@ switch (settings->GetFeeChargeType()) property.cash.Set(c - fee, sysAdmin, login, store, "Subscriber fee charge"); break; case 1: - if (c > 0) + if (c >= 0) property.cash.Set(c - fee, sysAdmin, login, store, "Subscriber fee charge"); break; case 2: - if (c > fee) + if (c >= fee) property.cash.Set(c - fee, sysAdmin, login, store, "Subscriber fee charge"); break; } @@ -1297,14 +1297,14 @@ switch (settings->GetFeeChargeType()) SetPrepaidTraff(); break; case 1: - if (c > 0) + if (c >= 0) { property.cash.Set(c - fee, sysAdmin, login, store, "Subscriber fee charge"); SetPrepaidTraff(); } break; case 2: - if (c > fee) + if (c >= fee) { property.cash.Set(c - fee, sysAdmin, login, store, "Subscriber fee charge"); SetPrepaidTraff();