Home Page link  

removing old quotes

 

Point-Of-Sale Software - - MS Point Of Sale software discussed here

 Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
removing old quotes Dover 08-13-2008
Posted by Dover on August 13, 2008, 9:48 am
Please log in for more thread options


how can I remove old quotes that were not been removed after there experation
date?

Posted by Afshin on August 13, 2008, 6:37 pm
Please log in for more thread options


You can use this query - ALWAYS MAKE A BACKUP OF DATABASE. In this query
you can change the DayBefore = 30 to the number you want like 60 or 90.



Declare @DayBefore Int
Set @DayBefore = 30

Begin Transaction

Update [OrderEntry] Set QuantityOnOrder = 0 Where OrderID In
(Select ID From [Order]
Where Type = 3 And Closed = 0 And Datediff(Day,[Time],Getdate()) >
@DayBefore)

Update [Order] Set Closed = 1 Where ID In
(Select ID From [Order]
Where Type = 3 And Closed = 0 And Datediff(Day,[Time],Getdate()) >
@DayBefore)

Commit Transaction


Afshin Alikhani - afshin@retailrealm.co.uk
Retail Realm
= = = = = = =

> how can I remove old quotes that were not been removed after there
> experation
> date?



Similar ThreadsPosted
Deleting Quotes January 4, 2007, 9:42 am
Deleting Quotes January 8, 2007, 7:43 pm
Quotes - Deleting March 11, 2008, 4:51 pm
Open quotes by Sales Rep June 13, 2005, 11:20 am
Suppressing Print on Quotes June 30, 2005, 3:16 pm
Custom Quotes and Receipts March 6, 2006, 3:09 pm
Email Quotes or Invoices June 3, 2006, 12:45 am
Re: QUOTES AND QUANTITIES COMMITTED July 13, 2007, 2:09 pm
Expiration date on Layaways and Quotes August 25, 2005, 1:20 pm
Item Comments on quotes not saving in POS March 10, 2006, 12:56 pm

Contact Us | Privacy Policy
This site is not affiliated with Intuit - makers of Quickbooks and Quicken software
This site is not affiliated with Sage Software - makers of Peachtree accounting software
XML SitemapXML Sitemap