Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sales Tax Calcs and I love NY...
Message
De
04/06/2002 13:01:17
 
 
À
04/06/2002 12:36:43
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00664392
Message ID:
00664593
Vues:
26
The point is that you never have to recalculate - all the calculated values (rates, amounts) are stored in the record. You just add the results. I've spent a few evenings with my customer's accountant because the tax totalled from line items didn't exactly equal the tax totalled from the parent records (it was off by about $0.12 on a $2000 total) until I introduced this rule.

I agree fully, and that is why I designed it that way. My point was about recreating the tax "environment" for that invoice - I have never had the need. As far as chasing rounding errors, I spent 3 days around 5 years ago looking for $.03 out of an annual $350,000+ of sales. I learned my lesson :>) No more snipe hunts for this guy.

>>- the item record has to have the date on it, so if there's some change somewhere in the rules, you can apply them starting with the date the rule is effective
>>
>>On the line item itself? Guess I don't quite understand this point.
>
>I've had a case, but can't remember exactly, so let's make it hypothetical: the $110 rule changes to $135 as of August 14th. What do you do? What do you do when they ask you later for totals on this particular tax case before and after the change? You go by the date on the line item. You can actually store it in the parent record - I was storing this date in the line item because of the incredible speed of the damn 286es in those times (boy, is it more than 10 years already?). It'd also be useful to store the rule key in the line record (for reports on specific taxes, if needed, and for debugging as well), and to have the "rule is effective start-end" dates in the rules table. That way you can, someday, write a rules editor and hand the hassle to your customers and simply forget about taxes.


Great. That is what I needed, a real world case. So far, this client hasn't been overly demanding. I begin every discussion with "I hate users and user interfaces!. Now, what was it that you needed?" and it keeps the BS to a minimum. His accountant is happy, so I am happy.

Hey, what's the point in experience if you don't share it?

Indeed! Good AND bad. Thanks for your time.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform