home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 16.1 Record customer payment - version 1
- Author: Joe Booth
- Excerpted from "Clipper 5: A Developer's Guide"
- Copyright (c) 1991 M&T Books
- 501 Galveston Drive
- Redwood City, CA 94063-4728
- (415) 366-3600
- */
-
- memvar chk_amount
- select CUSTOMER
- if rec_lock(15) // Lock the current record
- replace CUSTOMER->balance with ;
- CUSTOMER->balance - chk_amount
- unlock
- endif
- select INVOICE
- if rec_lock(15) // Lock the current record
- replace INVOICE->paid with ;
- INVOICE->paid + chk_amount
- unlock
- endif
- select PAYMENT
- if rec_lock(15) // Lock the current record
- replace PAYMENT->posted with .T.
- unlock
- endif
-
- // end of file CHP1601.PRG
-