Home Page link  

RE: How to make items with QTY=0 Inactive ?

 

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

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
RE: How to make items with QTY=0 Inactive ? convoluted 03-27-2007
Posted by convoluted on March 27, 2007, 8:05 pm
Please log in for more thread options
Hi Robert
Keep in mind that setting the item as inactive will also make it inactive
for physical inventory purposes...if this is fine with you, here's the sql
query you need...

In SO administrator, connect to your database
BACKUP FIRST...!
THEN run the following query

UPDATE ITEM
SET INACTIVE = 1
WHERE QUANTITY = 0;

You may want to do this after the store closes just to make sure it affects
the items that you know should be affected....or you may consider adding an
additional constraint to the query, such as adding a specific supplier code
that you know has many items that fit in this category...hope this helps



"Robert" wrote:

> I'm trying to cleanup my database for few reasons.
>
> Is there a way to make all items that On hand QTY of 0 Inactive ?
> This would help me i generating reports and printing labels.
>
> I tired inventory wizard and filters but the On hand qty is not one of the
> filter options.
> Seems this should be easy to run as SQL Query but i do not know the command
>
> Thanks for all help
>
>
> Thanks
> Robert
>

Posted by Robert on March 27, 2007, 8:54 pm
Please log in for more thread options
How can i specify to run this by department name ?
Can i also add a filter last sold before specific date ?
Thanks




"convoluted" wrote:

> Hi Robert
> Keep in mind that setting the item as inactive will also make it inactive
> for physical inventory purposes...if this is fine with you, here's the sql
> query you need...
>
> In SO administrator, connect to your database
> BACKUP FIRST...!
> THEN run the following query
>
> UPDATE ITEM
> SET INACTIVE = 1
> WHERE QUANTITY = 0;
>
> You may want to do this after the store closes just to make sure it affects
> the items that you know should be affected....or you may consider adding an
> additional constraint to the query, such as adding a specific supplier code
> that you know has many items that fit in this category...hope this helps
>
>
>
> "Robert" wrote:
>
> > I'm trying to cleanup my database for few reasons.
> >
> > Is there a way to make all items that On hand QTY of 0 Inactive ?
> > This would help me i generating reports and printing labels.
> >
> > I tired inventory wizard and filters but the On hand qty is not one of the
> > filter options.
> > Seems this should be easy to run as SQL Query but i do not know the command
> >
> > Thanks for all help
> >
> >
> > Thanks
> > Robert
> >

Posted by convoluted on March 27, 2007, 9:44 pm
Please log in for more thread options
The item table references things like supplier ID and department ID
let's say you wanted to specify a specific supplier and a specific
department in your update query.

first run the following statement
select * from supplier
(you will see a list of your suppliers; jot down the supplier ID(s) of
suppliers that you know have items that you want to make inactive

then run the following statement
select * from department
(you will see a list of your departments; jot down the department ID that
should contain items that you want to make inactive

say you want to run the update query for supplier id 4 and department id 8

the query will be
UPDATE ITEM
SET INACTIVE = 1
WHERE QUANTITY = 0
AND DEPARTMENTID = 8
AND SUPPLIERID = 4

You can also run this same query but using the SELECT command, to preview
the items that would be affected by the UPDATE command; run
SELECT * FROM ITEM
WHERE QUANTITY = 0
AND DEPARTMENTID = 8
AND SUPPLIERID = 4

Hope this helps....remember BACKUP FIRST...!
"Robert" wrote:

> How can i specify to run this by department name ?
> Can i also add a filter last sold before specific date ?
> Thanks
>
>
>
>
> "convoluted" wrote:
>
> > Hi Robert
> > Keep in mind that setting the item as inactive will also make it inactive
> > for physical inventory purposes...if this is fine with you, here's the sql
> > query you need...
> >
> > In SO administrator, connect to your database
> > BACKUP FIRST...!
> > THEN run the following query
> >
> > UPDATE ITEM
> > SET INACTIVE = 1
> > WHERE QUANTITY = 0;
> >
> > You may want to do this after the store closes just to make sure it affects
> > the items that you know should be affected....or you may consider adding an
> > additional constraint to the query, such as adding a specific supplier code
> > that you know has many items that fit in this category...hope this helps
> >
> >
> >
> > "Robert" wrote:
> >
> > > I'm trying to cleanup my database for few reasons.
> > >
> > > Is there a way to make all items that On hand QTY of 0 Inactive ?
> > > This would help me i generating reports and printing labels.
> > >
> > > I tired inventory wizard and filters but the On hand qty is not one of
the
> > > filter options.
> > > Seems this should be easy to run as SQL Query but i do not know the command
> > >
> > > Thanks for all help
> > >
> > >
> > > Thanks
> > > Robert
> > >

Posted by Robert on March 28, 2007, 4:46 pm
Please log in for more thread options
Hello

This worked well but the end result is not what i had in mind.
Once i made the item inactive there seems to be no way to find the item
again , other than run the item QTY report for inactive items.
If i try to add a new item with the same UPC it tells me the item exists but
still does not show me the items details.

I can still sell those items, but i can't easily find and edit them.

The main reason why i was trying to make items with 0 QTY inactive was so i
would not print labels for items we currently do not have in stock.
There is no filter for item QTY in label wizard so this seemed like a good
idea.

Is there another/ better way to do this.?

Thanks for all your Help





"convoluted" wrote:

> The item table references things like supplier ID and department ID
> let's say you wanted to specify a specific supplier and a specific
> department in your update query.
>
> first run the following statement
> select * from supplier
> (you will see a list of your suppliers; jot down the supplier ID(s) of
> suppliers that you know have items that you want to make inactive
>
> then run the following statement
> select * from department
> (you will see a list of your departments; jot down the department ID that
> should contain items that you want to make inactive
>
> say you want to run the update query for supplier id 4 and department id 8
>
> the query will be
> UPDATE ITEM
> SET INACTIVE = 1
> WHERE QUANTITY = 0
> AND DEPARTMENTID = 8
> AND SUPPLIERID = 4
>
> You can also run this same query but using the SELECT command, to preview
> the items that would be affected by the UPDATE command; run
> SELECT * FROM ITEM
> WHERE QUANTITY = 0
> AND DEPARTMENTID = 8
> AND SUPPLIERID = 4
>
> Hope this helps....remember BACKUP FIRST...!
> "Robert" wrote:
>
> > How can i specify to run this by department name ?
> > Can i also add a filter last sold before specific date ?
> > Thanks
> >
> >
> >
> >
> > "convoluted" wrote:
> >
> > > Hi Robert
> > > Keep in mind that setting the item as inactive will also make it inactive
> > > for physical inventory purposes...if this is fine with you, here's the sql
> > > query you need...
> > >
> > > In SO administrator, connect to your database
> > > BACKUP FIRST...!
> > > THEN run the following query
> > >
> > > UPDATE ITEM
> > > SET INACTIVE = 1
> > > WHERE QUANTITY = 0;
> > >
> > > You may want to do this after the store closes just to make sure it
affects
> > > the items that you know should be affected....or you may consider adding
an
> > > additional constraint to the query, such as adding a specific supplier
code
> > > that you know has many items that fit in this category...hope this helps
> > >
> > >
> > >
> > > "Robert" wrote:
> > >
> > > > I'm trying to cleanup my database for few reasons.
> > > >
> > > > Is there a way to make all items that On hand QTY of 0 Inactive ?
> > > > This would help me i generating reports and printing labels.
> > > >
> > > > I tired inventory wizard and filters but the On hand qty is not one of
the
> > > > filter options.
> > > > Seems this should be easy to run as SQL Query but i do not know the
command
> > > >
> > > > Thanks for all help
> > > >
> > > >
> > > > Thanks
> > > > Robert
> > > >

Posted by Jeff @ Check Point Software on March 28, 2007, 5:29 pm
Please log in for more thread options
: quoted-printable

Robert,

Maybe you should have asked THAT question first! ;-)

Wizards | Label wizard | select your boxes in Print labels for all of =
these type | Next | select Stock on Hand | select the items you wish to =
print labels for, if All of them, select Add All button | click the Set =
Quantity button in the upper right | Next to select your label format | =
next to print them.


--=20

Jeff=20
Check Point Software

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

You must be using Outlook Express/Windows Mail or some other type of =
newsgroup reader to
see and download the file attachment(s). If you are not using a reader, =
follow
the link below to setup Outlook Express. Click on "Open with =
newsreader"
under the MS Retail Management System on the right.

http://tinyurl.com/75bgz
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

Hello

This worked well but the end result is not what i had in mind.
Once i made the item inactive there seems to be no way to find the =
item=20
again , other than run the item QTY report for inactive items.
If i try to add a new item with the same UPC it tells me the item =
exists but=20
still does not show me the items details.

I can still sell those items, but i can't easily find and edit them.

The main reason why i was trying to make items with 0 QTY inactive was =
so i=20
would not print labels for items we currently do not have in stock.
There is no filter for item QTY in label wizard so this seemed like a =
good=20
idea.

Is there another/ better way to do this.?

Thanks for all your Help





"convoluted" wrote:

> The item table references things like supplier ID and department ID
> let's say you wanted to specify a specific supplier and a specific=20
> department in your update query.
>=20
> first run the following statement
> select * from supplier
> (you will see a list of your suppliers; jot down the supplier ID(s) =
of=20
> suppliers that you know have items that you want to make inactive
>=20
> then run the following statement
> select * from department
> (you will see a list of your departments; jot down the department ID =
that=20
> should contain items that you want to make inactive
>=20
> say you want to run the update query for supplier id 4 and =
department id 8
>=20
> the query will be
> UPDATE ITEM
> SET INACTIVE =3D 1
> WHERE QUANTITY =3D 0
> AND DEPARTMENTID =3D 8
> AND SUPPLIERID =3D 4
>=20
> You can also run this same query but using the SELECT command, to =
preview=20
> the items that would be affected by the UPDATE command; run
> SELECT * FROM ITEM
> WHERE QUANTITY =3D 0
> AND DEPARTMENTID =3D 8
> AND SUPPLIERID =3D 4
>=20
> Hope this helps....remember BACKUP FIRST...!
> "Robert" wrote:
>=20
> > How can i specify to run this by department name ?
> > Can i also add a filter last sold before specific date ?
> > Thanks
> >=20
> >=20
> >=20
> >=20
> > "convoluted" wrote:
> >=20
> > > Hi Robert
> > > Keep in mind that setting the item as inactive will also make it =
inactive=20
> > > for physical inventory purposes...if this is fine with you, =
here's the sql=20
> > > query you need...
> > >=20
> > > In SO administrator, connect to your database
> > > BACKUP FIRST...!
> > > THEN run the following query
> > >=20
> > > UPDATE ITEM
> > > SET INACTIVE =3D 1
> > > WHERE QUANTITY =3D 0;
> > >=20
> > > You may want to do this after the store closes just to make sure =
it affects=20
> > > the items that you know should be affected....or you may =
consider adding an=20
> > > additional constraint to the query, such as adding a specific =
supplier code=20
> > > that you know has many items that fit in this category...hope =
this helps
> > >=20
> > >=20
> > >=20
> > > "Robert" wrote:
> > >=20
> > > > I'm trying to cleanup my database for few reasons.
> > > >=20
> > > > Is there a way to make all items that On hand QTY of 0 =
Inactive ?
> > > > This would help me i generating reports and printing labels.
> > > >=20
> > > > I tired inventory wizard and filters but the On hand qty is =
not one of the=20
> > > > filter options.
> > > > Seems this should be easy to run as SQL Query but i do not =
know the command
> > > >=20
> > > > Thanks for all help
> > > >=20
> > > >=20
> > > > Thanks
> > > > Robert
> > > >
------=_NextPart_000_061C_01C77145.8DCF6590
Content-Type: text/html;
        charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#008000>Robert,</FONT></DIV>
<DIV><FONT color=3D#008000></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#008000>Maybe you should have asked THAT question =
first!=20
;-)</FONT></DIV>
<DIV><FONT color=3D#008000></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#008000>Wizards | Label wizard | select your boxes in =
Print=20
labels for all of these type | Next | select Stock on Hand | select the =
items=20
you wish to print labels for, if All of them, select Add All button | =
click the=20
Set Quantity button in the upper right | Next to select your label =
format | next=20
to print them.</FONT></DIV>
<DIV><FONT color=3D#008000></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#008000></FONT><FONT color=3D#008000></FONT><FONT=20
color=3D#008000></FONT><FONT color=3D#008000></FONT><BR>-- <BR><BR>Jeff =
<BR>Check=20
Point Software</DIV>
<DIV><FONT color=3D#008000></FONT>&nbsp;</DIV>
<DIV>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D</DIV>
<DIV><FONT color=3D#008000></FONT>&nbsp;</DIV>
<DIV>You must be using Outlook Express/Windows Mail or some other type =
of=20
newsgroup reader to<BR>see and download the file attachment(s).&nbsp; If =
you are=20
not using a reader, follow<BR>the link below to setup Outlook =
Express.&nbsp;=20
Click on "Open with newsreader"<BR>under the MS Retail Management System =
on the=20
right.</DIV>
<DIV><FONT color=3D#008000></FONT>&nbsp;</DIV>
<DIV><A=20
href=3D"http://tinyurl.com/75bgz">http://tinyurl.com/75bgz</A><BR>=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
<BR></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #008000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Robert" &lt;<A=20
=
soft.com</A>&gt;=20
wrote in message <A=20
=
17C16-FAA7-457D-A587-11D73073FF09@microsoft.com</A>...</DIV>Hello<BR><BR>=
This=20
worked well but the end result&nbsp; is not what i had in =
mind.<BR>Once i made=20
the item inactive there seems to be no way to find the item <BR>again =
,&nbsp;=20
other than run the item QTY report for inactive items.<BR>If i try to =
add a=20
new item with the same UPC it tells me the item exists but <BR>still =
does not=20
show me the items details.<BR><BR>I can still sell those items, but i =
can't=20
easily find and edit them.<BR><BR>The main reason why i was trying to =
make=20
items with 0 QTY inactive was so i <BR>would not print&nbsp; labels =
for items=20
we currently do not have in stock.<BR>There is no filter for item QTY =
in label=20
wizard so this seemed like a good <BR>idea.<BR><BR>Is there another/ =
better=20
way to do this.?<BR><BR>Thanks for all your=20
Help<BR><BR><BR><BR><BR><BR>"convoluted" wrote:<BR><BR>&gt; The item =
table=20
references things like supplier ID and department ID<BR>&gt; let's say =
you=20
wanted to specify a specific supplier and a specific <BR>&gt; =
department in=20
your update query.<BR>&gt; <BR>&gt; first run the following =
statement<BR>&gt;=20
select * from supplier<BR>&gt; (you will see a list of your suppliers; =
jot=20
down the supplier ID(s) of <BR>&gt; suppliers that you know have items =
that=20
you want to make inactive<BR>&gt; <BR>&gt; then run the following=20
statement<BR>&gt; select * from department<BR>&gt; (you will see a =
list of=20
your departments; jot down the department ID that <BR>&gt; should =
contain=20
items that you want to make inactive<BR>&gt; <BR>&gt; say you want to =
run the=20
update query for supplier id 4 and department id 8<BR>&gt; <BR>&gt; =
the query=20
will be<BR>&gt; UPDATE ITEM<BR>&gt; SET INACTIVE =3D 1<BR>&gt; WHERE =
QUANTITY =3D=20
0<BR>&gt; AND DEPARTMENTID =3D 8<BR>&gt; AND SUPPLIERID =3D 4<BR>&gt; =
<BR>&gt; You=20
can also run this same query but using the SELECT command, to preview =
<BR>&gt;=20
the items that would be affected by the UPDATE command; run<BR>&gt; =
SELECT *=20
FROM ITEM<BR>&gt; WHERE QUANTITY =3D 0<BR>&gt; AND DEPARTMENTID =3D =
8<BR>&gt; AND=20
SUPPLIERID =3D 4<BR>&gt; <BR>&gt; Hope this helps....remember BACKUP=20
FIRST...!<BR>&gt; "Robert" wrote:<BR>&gt; <BR>&gt; &gt; How can i =
specify to=20
run this by department name ?<BR>&gt; &gt; Can i also add a filter =
last sold=20
before specific date ?<BR>&gt; &gt; Thanks<BR>&gt; &gt; <BR>&gt; &gt; =
<BR>&gt;=20
&gt; <BR>&gt; &gt; <BR>&gt; &gt; "convoluted" wrote:<BR>&gt; &gt; =
<BR>&gt;=20
&gt; &gt; Hi Robert<BR>&gt; &gt; &gt; Keep in mind that setting the =
item as=20
inactive will also make it inactive <BR>&gt; &gt; &gt; for physical =
inventory=20
purposes...if this is fine with you, here's the sql <BR>&gt; &gt; &gt; =
query=20
you need...<BR>&gt; &gt; &gt; <BR>&gt; &gt; &gt; In SO administrator, =
connect=20
to your database<BR>&gt; &gt; &gt; BACKUP FIRST...!<BR>&gt; &gt; &gt; =
THEN run=20
the following query<BR>&gt; &gt; &gt; <BR>&gt; &gt; &gt; UPDATE =
ITEM<BR>&gt;=20
&gt; &gt; SET INACTIVE =3D 1<BR>&gt; &gt; &gt; WHERE QUANTITY =3D =
0;<BR>&gt; &gt;=20
&gt; <BR>&gt; &gt; &gt; You may want to do this after the store closes =
just to=20
make sure it affects <BR>&gt; &gt; &gt; the items that you know should =
be=20
affected....or you may consider adding an <BR>&gt; &gt; &gt; =
additional=20
constraint to the query, such as adding a specific supplier code =
<BR>&gt; &gt;=20
&gt; that you know has many items that fit in this category...hope =
this=20
helps<BR>&gt; &gt; &gt; <BR>&gt; &gt; &gt; <BR>&gt; &gt; &gt; <BR>&gt; =
&gt;=20
&gt; "Robert" wrote:<BR>&gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; I'm =
trying to=20
cleanup my database for few reasons.<BR>&gt; &gt; &gt; &gt; <BR>&gt; =
&gt; &gt;=20
&gt; Is there a way to make all items that On hand QTY of&nbsp; 0 =
Inactive=20
?<BR>&gt; &gt; &gt; &gt; This would help me i generating reports and =
printing=20
labels.<BR>&gt; &gt; &gt; &gt; <BR>&gt; &gt; &gt; &gt; I tired =
inventory=20
wizard and filters&nbsp; but the On hand qty is not one of the =
<BR>&gt; &gt;=20
&gt; &gt; filter options.<BR>&gt; &gt; &gt; &gt; Seems this should be =
easy to=20
run as SQL Query but i do not know the command<BR>&gt; &gt; &gt; &gt; =
<BR>&gt;=20
&gt; &gt; &gt; Thanks for all help<BR>&gt; &gt; &gt; &gt; <BR>&gt; =
&gt; &gt;=20
&gt; <BR>&gt; &gt; &gt; &gt; Thanks<BR>&gt; &gt; &gt; &gt; =
Robert<BR>&gt; &gt;=20
&gt; &gt;</BLOCKQUOTE></BODY></HTML>

------=
Similar ThreadsPosted
RE: How to make items with QTY=0 Inactive ? March 27, 2007, 7:55 pm
How to make items with QTY=0 Inactive ? March 27, 2007, 10:07 pm
make items inactive November 9, 2007, 1:38 pm
sql - make items inactive May 15, 2008, 11:27 am
Delete Items and Make Items Inactive January 27, 2009, 10:57 am
Make Inactive & May Not Be Placed on PO September 22, 2008, 3:37 pm
make item inactive January 12, 2008, 3:20 am
Inactive Items May 16, 2007, 6:47 pm
Making Items Inactive October 18, 2006, 2:27 pm
Delete inactive items November 3, 2006, 4: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