Examining Order history

Last post 07-01-2008 1:28 AM by kaushalparik. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-21-2008 6:13 PM

    Examining Order history

    Hi,

    I want to examine the order history in the database to verify that a customer doesn’t have any outstanding payments before I allow an invoice to continue. To increase performance I need to avoiding an extra round-trip or tightensecurity, I need to choose to perform this check on the server instead of the client. I need idea from someone. Please give me some tips. 

    Regards
    Rajesh Kumar Chauhan
    New Delhi
    India
  •  Advertisement

    Featured Advertisement

     
  • 07-01-2008 1:28 AM In reply to

    Re: Examining Order history

    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
Page 1 of 1 (2 items)