display "Customer to apply 10% discount? "
move ws-cust-code to cust-code
invalid key display message "Customer not found"
move ws-date to cust-last-date-discount
move ws-cust-code to inv-cust-code
start invoices key = inv-cust-code
invalid key set end-of-invoices to true
not invalid key set end-of-invoices to false
perform until end-of-invoices
read invoices next at end exit perform
if inv-cust-code not = ws-cust-code
display "Changes applied, confirm Commit: (Y/N)"
commit *> All changes are definitely applied
rollback *> All changes get undone
|