/* Delete a payment from the database */
/* This does NOT subtract the payment from MasterAccounts.Balance */
/* Or modify the expiration, paidthru, last-received dates */
DECLARE @PaymentID int
SELECT @PaymentID = /* Enter PaymentID to be deleted */
UPDATE InvoiceItems
SET PaymentID = NULL
WHERE PaymentID = @PaymentID
DELETE FROM Payments
WHERE PaymentID = @PaymentID
Josh Hillman
hillman@talstar.com