Offer 3 months of Resource overusage

Discussion in 'Installation and "How-To" Questions' started by parallelsbox, Jul 10, 2013.

  1. parallelsbox

    parallelsbox Kilo Poster

    Messages:
    65
    How do we offer 3 months of Resource Overusage in a plan/promotion?

    We tried the Promotions -> Percent Discount -> Discount period (3 months).

    But when we enter there 100%, after saving it reverts to 99.99% so we can never offer 100% of Resource overusage.
     
  2. parallelsbox

    parallelsbox Kilo Poster

    Messages:
    65
    Screenshots of the problem:

    promo1.png promo2.png
     
  3. vbatraev

    vbatraev Odin Team

    Messages:
    346
    Sounds strange to me. I cannot reproduce the issue on PBAS demo set. My screen shot:
    100discount.png

    Could you please enable debug level for logs with SQL queries logging, try to save 100% discount again and check in /var/log/hspc/hspc.log what is put in DB?
    In my case, I see that '100.00' is saved:
    [2013/07/10 15:05:21] [DEBUG] [13416] [HSPC::WebDB::select_run] INSERT INTO `promo_percent_discount` (`promo_comp_id`,`res_overusage`,`app_setup_fee`,`setup_fee`,`app_subscr_fee`,`subscr_fee`,`attr_subscr_fee`,`subscr_period`,`discount_period`,`attr_setup_fee`) VALUES ('34','100.00','0.00','0.00','100','100','100','7776000','2592000','0.00')
     
  4. CarlosSantos

    CarlosSantos Bit Poster

    Messages:
    6
    Hi Victor,

    This is the result:
    [2013/07/10 14:26:10] [DEBUG] [12613] [HSPC::WebDB::select_run] DELETE FROM `promo_percent_discount` WHERE `promo_comp_id`='10'
    [2013/07/10 14:26:10] [DEBUG] [12613] [HSPC::WebDB::select_run] INSERT INTO `promo_percent_discount` (`promo_comp_id`,`res_overusage`,`app_setup_fee`,`setup_fee`,`app_subscr_fee`,`subscr_fee`,`attr_subscr_fee`,`subscr_period`,`discount_period`,`attr_setup_fee`) VALUES ('10','100','0.00','0.00','100','100','100','7776000','7776000','0.00')

    Record is deleted and reinserted with the right value = 100.
    But the interface shows 99.99%

    Thanks
    Carlos Santos
     

Share This Page