<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Thomas,</p>
    <p>I know how to do it for MYSQL, if you are using REDIS it will be
      a little bit different.</p>
    <p>Also if you rerate your CDR, also customer balance will be
      updated again and will not be useful anymore, unless you reset it
      to zero before. You can find the customer balance in table
      billing.contract_balances, column cash_balance_interval. This
      balance is also used for the build-in invoice function to display
      the totals! You can also update this balance manually afterwards.<br>
    </p>
    <p>To rerate on date e.g. July you can use this SQL (first stop
      rate-o-mat and it's advised to make a backup of the database)<br>
    </p>
    <p>update accounting.cdr set rating_status = 'unrated' where
      start_time > UNIX_TIMESTAMP('2019-07-01') and start_time <
      UNIX_TIMESTAMP('2019-08-01');</p>
    <p>Finally restart rate-o-mat and check the customer balances after
      some time.<br>
    </p>
    <p>Regards,</p>
    <p>Henk<br>
    </p>
    <div class="moz-cite-prefix">On 20-8-2019 17:19, Thomas Georg wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:4137125D652D824496063CCC4506C9B31BDE77E8@KRONOS.MSG-Shop.local">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi list,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">we had an error in one of our billing
          profiles an uploaded new fees today.<o:p></o:p></p>
        <p class="MsoNormal">Is there any way to create a new invoice
          with the new blling fees for the calls in the past?<o:p></o:p></p>
        <p class="MsoNormal"><br>
          Regards<o:p></o:p></p>
        <p class="MsoNormal">Thomas<o:p></o:p></p>
        <p class="MsoNormal"><span style="mso-fareast-language:DE"><o:p> </o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
    </blockquote>
  </body>
</html>