<?php
	/*
	** File: CLEAR_SALES
	** Description: set all sales prices to zero
	** Version: $Revision: 1.4 $
	** Created: 08/13/1999
	** Author: Leon Atkinson
	** Email: leon@clearink.com
	** CVS Author: $Author: leon $
	** Last Revised: $Date: 1999/12/09 23:23:19 $
	** Log : $Log: CLEAR_SALES,v $
	** Log : Revision 1.4  1999/12/09 23:23:19  leon
	** Log : Changed ActionResults use so that it's an array instead of a
	** Log : continually-growing string.  Note the little function in standard_library
	** Log : for printing out all the action results.
	** Log :
	** Log : Revision 1.3  1999/11/09 22:21:13  leon
	** Log : More localization work.
	** Log :
	** Log : Revision 1.2  1999/08/18 22:31:47  leon
	** Log : Returning opening PHP tag to XML-friendly tag
	** Log :
	** Log : Revision 1.1  1999/08/13 18:19:59  leon
	** Log : Added interface for setting sales prices per the requirements specification.
	** Log : (See "Add promotion/discount offers").  Since admin_sales needs to use
	** Log : DepartmentSelector, I tweaked it a bit.
	** Log :
	**
	** Copyright (c) 1999 Working Dogs.  All rights reserved.
	*/

	if($UserInfo["Permission"]["Administrate"])
	{
		$Query = "UPDATE sku ";
		$Query .= "SET SalePrice = 0.00 ";
		if(!mysql_query($Query, $DatabaseLink))
		{
			$ActionResults[] =  mysql_errno() . ": " . mysql_error();
		}
		else
		{
			$ActionResults[] =  L_CLEARSALES_SUCCESS;
		}

	}

?>