RajeshChauhan:verify that a customer doesn’t have any outstanding payments before I allow an invoice to continue
you can do this verification in Stored Procedure in which you are storing the invoice data ( i userderstand that when you allow invoice to continue; you are storing invoice / order data in DB.. pls let me know if this is not the case). Check the OustStanding Payments with IF EXISTS (SELECT Statement in OrderHistoty Table) Query; if there are any outstandings then dont save invoice details in DB; else save the info in DB. pls let me know if this is not the case in your scenario.
hope it helps./.
"I would love to change the world, but they won’t give me the source code"
Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point & mark your thread as Resolved for the sake of Future Readers.
KaushaL ||
BLOG ||
Profile ||
Microsoft MVP