Inventory File Management - Sam4s SPS-500 Series Reference Manual

Hide thumbs Also See for SPS-500 Series:
Table of Contents

Advertisement

Inventory File Management

If SAM500 is tracking inventory, it will create a file called INVZ1.POL, when polling PLUs.
This file is created in the Store Name folder.
\SAM500\Stores\Mystore\INVZ1.POL
This file is a text file that consists of all PLUs that were polled. Each PLU will have its own
line that is structured as follows:
(YYMMDD) (PLU# - 14 characters) (Quantity Sold – 11 characters ) (Dollars – 11
characters).
Each line is 42 characters long.
Positions
1 to 6
7 to 20
21 to 31
32 to 42
Each line has a carriage return and line feed appended to the end.
When SAM500 is finished polling a store, if the INVZ1.POL file exists, SAM500 will do the
following:
1. Open the INVZ1.POL file
2. Read each PLU line
3. Lookup the PLU in the PLU database
4. Enter the totals into the Sales history file
5. Deduct the totals from inventory.
If everything goes perfect, this routine will work 100%. However, problems can pop-up.
Data in this file can become corrupt. PLU lines could have garbage characters in them or the
lines could be shorter or longer than the 42 character length. When SAM500 reads a PLU
line from the INVZ1.POL file, it must be a 42 character line in order to update. If the line is
not 42 characters, then SAM500 saves this PLU line in a file call BADINVZ1.POL. This file
is also located in the Store Name folder.
If a BADINVZ1.POL file is created, a red message box will appear in the Polling Screen
after polling. If the user clicks this red message box, a screen will appear that shows any
store(s) file path for the BADINVZ1.POL file.
Example: If you were polling 2 stores, and both had a bad PLU in INVZ1.POL
You would see 2 entries:
\SAM500\Stores\Mystore1\BADINVZ1.POL
\SAM500\Stores\Mystore2\BADINVZ1.POL
102  Appendices
Date. No "/" separation. First 2 characters is the year.
PLU# ( filled with leading zeros )
Quantity amount, with decimal and 2 places right of decimal.
Dollar amount, with decimal and 2 places right of decimal.
SAM500 Reference Manual V1.0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents