Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sales Tax Calcs and I love NY...
Message
De
04/06/2002 11:22:04
 
 
À
04/06/2002 10:18:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00664392
Message ID:
00664512
Vues:
21
Hi Steve,

I've seen this movie before :-)

I was sure of it!

>Here's the basic abstraction: create an interface class, name it say TaxCalculator, and into this interface you pass an object that contains everything known about the item(s) being sold. This provides a stable interface that client-code can use forever without changing. In other words, the TaxCalculator class completely shields the clients from the complexity and evolution of the implementation.
>
>Then later, behind the scenes, the TaxCalculator class can evolve and adapt to whatever the crazy legislators will dream-up in the future. If you build everything with table-based metadata then you can make changes without recompiling.
>
>In our case, behind the scenes, we instantiate separate implementation objects for municipal, state, and federal taxes, and these get combined in series or in parallel depending on whether taxes are additive or whether they piggyback.
>

I suspected a complete rethinking of this would be best for the long term. As this was one of those "kicking and screaming" apps I was dragged into, I was hoping for a quick fix. Thanks for the guidance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform