Use a simple date in the form of next-bill: 22-02-2002 - when the billing run is started it will just compare todays date with that of the next-run column, if a match is made the transaction will be processed. (problem here, is that if the billing isnt run for that day, the transactions will be missed)

So, you have setup a new field with the next-billing-date and you're afraid that if the program is not run that day then the transaction will be missed? How about adding a billed flag? When you establish the next-billing-date also make sure to set the billed flag to 0. That way when your program runs even if it runs after that billing date you will still bill the account because the flag has not been set. This is a simple solution but you can probably fit it to your needs with additional modifications depending upon your constraints.

metadoktor

"The doktor is in."


In reply to Re: Credit Card Billing by metadoktor
in thread Credit Card Billing by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.