Views:

We had a few instances recently where old remittance lines where printing even though the box to Print Previously Applied Documents was unmarked. To ensure old lines are not printed I added the following trigger to the PM20100 table. This will delete any remittance lines to ensure they won't print.

CREATE TRIGGER V_Delete_Remittance ON [dbo].[PM20100]
FOR INSERT AS
DELETE PM20100 WHERE KEYSOURC='REMITTANCE'