Hi all,

thanks for the insights. What I'm leaning towards at this point is to have a tabular entry form with different simple actions that can be performed on different fields. The individual actions would be grouped to make a rule. (The rules I need to create bundle specific groups of items together, each at various discounts or set prices)

So, when the user chooses to enter a new rule, I start adding rows to my rules table with the same group_id value. The user would provide values for field, comparison/action, and value. The action could be a comparison to establish whether the rule may be applied, and an assignment, to set different fields to a certain value.

I guess my question was more about how to best achieve the above syntactically, or if I should use a slightly different entry structure.

I'm assuming that the people entering the rules are fairly smart (dangerous, I know) and also have a strong knowledge of the conditions they want their rules to work under.

Further feedback on this would be, of course, very welcome.

Thanks all you Monks,

Andy


In reply to Re: Writing a Billing System by Anonymous Monk
in thread Writing a Billing System 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.