BTS Letter Head

advertisement
Order File Format for A F Blakemore
Version 1.01
1.0
File Definitions - Orders
1.1
Filename format
The filename format for orders is as follows:
pcmrrrrrss.txt
The pcm indicates that the order is a main grocery delivery. The rrrrr is the customer account number.
The ss represents a sequence number that together with the customer account number creates the unique
filename for each store.
If the order was for frozen goods, the pcm prefix is replaced with pcf. If the order is for chilled goods then
the pcm prefix is replaced with pcc.
1.2
The Header Record
The top line of the order contains the header record that determines who the order is for, the order type, and
when the order is for. The header is required before the order can be imported into the AFB System.
The Order Header Record
12345699999121/09/9912:00:59R991250004863
123456
99999
1
21/09/99
12:00:59
R
99
1
25
000486
3
Can be 6 voids or spaces (6)
5-digit AFB Customer Code
void or space (1)
Order Generation Date (dd/mm/yy)
Order Generation Time (hh:mm:ss)
2 void or spaces
Order type 1 = main 5 = chilled 2 = frozen
Delivery Week Number (2)
customer own reference 6(x)
Delivery Day number: Mon = 2, Tue = 3, Wed = 4, etc
The above header record indicates that the order is for account 99999 and is a main delivery for week 25 on
a Tuesday. The customer reference number is 486.
Where 123456, we generally use the roll number/ sequence number of the filename preceded by a space.
The week number refers to the AFB Financial Year that ends around the last Sunday in April unless there is
a 53-week financial year.
NOTE: The Day and Week number are important when determining when the order is to be
delivered.
1.3
Order file content
The following is an extract of a typical main order file
12345699999121/10/9912:00:59R991250004863
"M999992521/10/99 486"
"4328690001+000Y"
"1034660003+000Y"
"3162050001+000Y"
"3034620001-000Y"
"4429630001-000Y"
"12478700010000Y"
"17046300010000Y"
1.4
The reference record
The second line is used for reference purposes.
"M999992517/10/99 486"
“
M
99999
25
17/10/99
2 spaces
486
“
Quote
M = Main, C = Chilled, F = Frozen
5-digit AFB Customer Code
Delivery Week Number
Order Generation Date
Customer own order reference
Quote
1.5
Order details
The main order content consists of a 6-digit product code of the
AF Blakemore product file. The next 4 digits are used to indicate the quantities required. The product
code at the store should correspond with the main AFB product file.
The next four digits are used for in store price adjustments. Use + or – to indicate the adjustment.
Leave four spaces or zeros to indicate no adjustment. This is an adjustment to the standard RSP
specifically for this store. The invoice shows the expected retail sales value and margin based on
this data.
New product lines (unless part of a promotion) are not automatically sent to store via the PLU file
(detailed in section 2). Therefore, the store needs the ability to add a 6-digit product code for new
product lines, indicating whether they wish to stock this product in future. This will generate a request
on the AF Blakemore database requesting that a Type 1 addition is sent to store via the PLU file. This
should then be used to populate the store database with the necessary product details. The Y/N
Indicator is used to do this.
The Y & N indicate that the product has been manually added to the stock sheet or the equivalent. It is
important to set it to Y if the product has manually been added to the stock sheet or their equivalent.
We do not send a type 1 (addition) down to the store until we either see this flag set to Y or we put a
new product on promotion.
Each line of the order with the exception of the header record needs to be enclosed by quotes.
"1034660003+001N"
"3162050001+000N"
"1952780001-020N"
"6024470001-000Y"
"30346200010000Y"
"44296300010000Y"
Download