On Tue, 23 Apr 2019, at 5:04 PM, Fletcher Johnson wrote:

> The second is much more critical.  If the price of an item changes, 
> when an invoice is printed, it needs to show the price in effect when 
> it was printed.  If I sell something today, the current price is 
> usually appropriate.  But if I re-print an invoice from last month, I 
> need to know the price (and quite likely, other values) in effect at 
> that time.  In other words, time is just one more critical data point 
> used to identify the correct data.
> 
> The downside to the first is that, unless you re-write your code, the 
> solution requires either triggers or stored procs - both of which 
> require a DBA (in most work environments.)
> 
> The downside to the second is that not only will it require a dba 
> (structure changes), 

In the case of re-printing an invoice, store the price at the time of initial 
creation in your invoice line details table and use that when reprinting. Or 
store a PDF of the emailed\printed invoice, and re-use that.


-- 
  Alan Bourke
  alanpbourke (at) fastmail (dot) fm

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/76694c44-0711-4202-a55b-0f0758a8a...@www.fastmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to