Download Updating product prices

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Updating product prices
You can follow these instructions to increase your product prices by the amount of the tax rate
increase using a SQL statement.
PLEASE NOTE:
You must follow the instructions to backup your EPOS database and ‘Checkout’ folder before
proceeding.
You must not run the SQL statement more than once, as it will reduce the prices by more than the
TAX rate decrease.
The SQL statement updates all the product prices that fall into the 'Standard' sales tax band, and
all such prices are rounded to the nearest penny.
1. First make a backup of your EPOS system ( Select ‘Backup’ from the ‘Data’ menu)
2. Also make a backup of your ‘Checkout’ folder. This can usually be found at location
‘C:\Checkout’. Save a copy of it to a safe location
3. Open Windows Explorer
4. Browse to: ‘C:\Checkout’
5. To open ‘data.mdb’ in Access, right click on it and select ‘Open with’, then ‘Microsoft Access’
6. In Access go to the 'View’ menu and select ‘Database Objects’, then ‘Queries’
7. Click 'New'
8. Select 'Design' view
9. Click 'Close' on the 'Show Table' window
10. Go to 'View’, then ‘SQL view'
11. Copy and paste the SQL statement below into the page, replacing ‘SELECT;’ if that is already
there:
UPDATE tblProduct INNER JOIN tblProduct_BarCode ON tblProduct.ProductCode =
tblProduct_BarCode.ProductCode SET
Region1 = Round(Region1/1150*1175,2),
Region2 = Round(Region2/1150*1175,2),
Region3 = Round(Region3/1150*1175,2),
Region4 = Round(Region4/1150*1175,2),
Region5 = Round(Region5/1150*1175,2),
Region6 = Round(Region6/1150*1175,2),
tblProduct.ListPrice = Round(tblProduct.ListPrice/1150*1175,2),
tblProduct_Barcode.ListPrice =
Round(tblProduct_Barcode.ListPrice/1150*1175,2),
Trade = Round(Trade/1150*1175,2),
WholeSale = Round(WholeSale/1150*1175,2),
tblProduct.NewPrice = Round(tblProduct.NewPrice/1150*1175,2),
tblProduct_Barcode.NewPrice =
Round(tblProduct_Barcode.NewPrice/1150*1175,2),
[Used Buy] = Round([Used Buy]/1150*1175,2),
[Used Sell] = Round([Used Sell]/1150*1175,2),
tblProduct.CashBuy = Round(tblProduct.CashBuy/1150*1175,2),
tblProduct_Barcode.CashBuy =
Round(tblProduct_Barcode.CashBuy/1150*1175,2),
OnlinePrice = Round(OnlinePrice/1150*1175,2) WHERE
tblProduct.SalesTaxCode="S"
Related documents