Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PK and deleted records
Message
From
16/01/2002 03:09:54
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00605083
Message ID:
00605260
Views:
21
>>I think I will follow McCalland sugestion to recall the deleted record, because the PK is my invoice-number (The invoicenr. should be unique and it should be a numeric sequential number [1,2,3,4,5,6] or else the IRS will complain.)
>
>If that is the case, why was the record deleted in the first place? Was the invoice voided? In such case, our IRS would be most upset if we voided an invoice then re-used the invoice number for a different/new sale or transaction. By recalling the deleted record or re-using an invoice number, we would in effect be erasing the electronic paper trail the IRS requires of our businesses.

The user can delete an invoice when he hasn't send the invoices to the client but already printed the invoice. If he then finds out that he has forgotten something, he can delete the invoice reset the invoice-counter and recreate the invoice with the same number?

Maybe I can do the following :
Before I delete the invoice I can relpace the invoicenr with sys(3).
after this the original number is available .
Should this strategy get me into problems ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform