• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

birdsafe
#1 Posted : Thursday, December 10, 2009 12:31:55 PM(UTC)
birdsafe

Rank: Member

Joined: 2/21/2007(UTC)
Posts: 1,113

The Inventory email is something I need to use on a weekly basis -- however it shows inactive products, even products that don't track inventory, it seems. Is there some code we can insert somewhere that would at least filter out inactive products?
Narrowpath
#2 Posted : Friday, December 11, 2009 12:47:50 AM(UTC)
Narrowpath

Rank: Member

Joined: 9/20/2006(UTC)
Posts: 92

Joe,



I have not tested this, but you should be able to exclude inactive items by making a small change (shown in red) below to the SQL stored proceedure "bvc_ProductInventory_AllLowStock_s"





Code:


BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;

BEGIN TRY
SELECT
a.bvin,
a.ProductBvin,
a.QuantityAvailable,
a.QuantityOutOfStockPoint,
a.ReorderPoint,
a.QuantityReserved,
a.Status,
a.LastUpdated
FROM bvc_ProductInventory AS a JOIN bvc_Product AS b ON a.ProductBvin = b.bvin
WHERE a.ReorderLevel <= 0 AND b.TrackInventory = 1 [b][color=red>AND][/b]
END TRY
BEGIN CATCH
EXEC bvc_EventLog_SQL_i
END CATCH
END




[/code]
[color=gray>
<HR align=left][1]
[/color]

Wallace Miller -- Narrowpath Design
Providing installation, custom development, and design services for BVC5 sites
<FONT color=red>24/7 tech support and consultation service available for BVSoftware E-Commerce[/1][/color]
760.728.8679 (phone)
sales at narrowpathdesign.com
birdsafe
#3 Posted : Saturday, December 12, 2009 3:25:29 PM(UTC)
birdsafe

Rank: Member

Joined: 2/21/2007(UTC)
Posts: 1,113

Thanks Wallace!
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012