Next invoice no

Jeff Hoffman JeffHoffman@goconnect.net
Tue, 19 Dec 2000 20:07:30 +1100


At 04:58 PM 19-12-00, you wrote:
>Dear all,
>
>I store my next invoice number in a one-record direct file which will be
updated as the user create new invoice.(seq. no. generation.)But I find out
that the file was never locked when  dup-record error was reported from user.

I would try :

get invoice_cnt record 1

If you can do it with this record type or esle use an Indexed file with a
dummy key.

I would also try :

put invoice_cnt reset



Jeff
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ Jeff Hoffman                          + e-mail: JeffHoffman@goconnect.net +
+ Director          (ABN 93 083 502 630)+                                   +
+ WoniCon Pty Ltd   (ACN 083 502 630)   +                          ,-_|\    +
+ 21 Prices Circuit                     + voice: +61 2 9542 1527  /     \   +
+ Woronora    NSW     2232              +   fax: +61 2 9521 3979  \_,-._*   +
+ AUSTRALIA                             +                              v    +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.