Import Stock (of a Product)
Use
Stock Import, a product has multiple stock records, each record should have a unique rotation number.
Limitations
The following has to exist already
Customer
Product
Optionally the following may be needed
Reserve Customer
Notes
This import originated from an older system so some of the fields are not relevant but remain as part of the standard import tables.       Â
Â
[Item could be derived from Product if needed]
[Item only optional not mandatory]
Â
You can copy the section below and paste this into an excel spreadsheet to populate the columns, any additional columns shown when pasting which are not in the definition below are surplus to requirement and not needed, you can leave those or simply remove them from the spreadsheet.
SiteCode | CustomerCode | ProductCode | RotationNumber | RotationLineNo | DateReceived | FKReceiptCode | ProductCostperUnit | ProductCostCurrency | InsuranceCostperUnit | InsuranceCostCurrency | FreightCostperUnit | FreightCostCurrency | StrengthABV | UnitsPerPallet | ISFreeCirculation | RentDate | SinglesPerUnit | HasOwnerChangeinUK | ISExciseDutyPaidinUK | CustomsDutyPaidUK | QuotaNumber | CWC | ReceiptDetails1 | ReceiptDetails2 | ReceiptDetails3 | ReserveCustomer | BestBeforeDate | FKDeliveryType | TaxCode | DutyStampsApplied | CommodityCode | CustomerBatchNo | GrossWeight | Vintage | TradeTerm | CigarettesPerUnit | FreeRent | ProductionDate | PackagingType | DegreePlato | OriginalReceiptDate | FirstDateReceivedToStore | Currency_VATValueAdjustment | NilVATApplicable | VATValueAdjustment | SingleSize |
Fields
Field Name | Field Type | Nulls | Notes |
---|---|---|---|
SiteCode | nvarchar(2) | Mandatory | Must be one of the pre-agreed site codes |
CustomerCode | nvarchar(6) | Mandatory | Must exist in the customer table |
ProductCode | nvarchar(50) | Mandatory | Must exist in the product table |
RotationNumber | nvarchar(10) | Mandatory | The format of the rotation number is YY/D000000 YY is the year D is the duty indicator at the time of receipt D = Duty Paid 0 = Underbond 000000 is a sequential number starting at 0 |
RotationLineNo | int | Â | Line number can be blank and then starting from 1 upwards. If using rotation lines the underlying Product must be the same |
DateReceived | date | Mandatory | Format dd/mm/yyyy or dd/mm/yy |
FKReceiptCode | nvarchar(2) | Mandatory | Receipt Type we are looking for the CODE in RED |
ProductCostperUnit | decimal(8.2) | Conditional | Must be provided for underbond goods but optional for all others |
ProductCostCurrency | nvarchar(3) | Conditional | VW Import - References | Currencies we are looking for the CODE in RED |
InsuranceCostperUnit | decimal(8.2) | NULL | Â |
InsuranceCostCurrency | nvarchar(3) | NULL | VW Import - References | Currencies we are looking for the CODE in RED |
FreightCostperUnit | decimal(8.2) | NULL | Â |
FreightCostCurrency | nvarchar(3) | NULL | VW Import - References | Currencies we are looking for the CODE in RED |
StrengthABV | decimal (3.2) | NULL | ABV% |
UnitsPerPallet | int | Conditional | Integer field whole numbers only, needed if your using pallets otherwise set to 1 |
ISFreeCirculation | bit | Mandatory | Has customs duty been paid, if yes then 1 otherwise 0 |
RentDate | date |  | Rent start date. Only applicable if an advanced date is required for the start of rent charging |
SinglesPerUnit | int | Mandatory | must be > 1 (Unit = Case) |
HasOwnerChangeinUK | bit | Mandatory | 1 is YES and 0 is NO |
ISExciseDutyPaidinUK | bit | Mandatory | 1 is YES and 0 is NO |
CustomsDutyPaidUK | bit | Mandatory | 1 is YES and 0 is NO |
QuotaNumber | nvarchar(50) | Â | Â |
CWC | nvarchar(2) | Mandatory | ISO 3166 alpha-2 code required for the country whence consigned |
ReceiptDetails1 | nvarchar(50) | Â | Header Level - Free Text -Arc or Warrant |
ReceiptDetails2 | nvarchar(50) |  | Header Level Free Text – Ship |
ReceiptDetails3 | nvarchar(50) | Â | Header Level Free Text |
ReserveCustomer | nvarchar(8) | Â | Must exist in the reserve customers table |
BestBeforeDate | date | Â | Â |
FKDeliveryType | nvarchar(3) | Mandatory | Receipt Delivery Types we are looking for the CODE in RED |
TaxCode | nvarchar(3) | Â | Â |
DutyStampsApplied | bit | Mandatory | 1 is YES and 0 is NO |
CommodityCode | nvarchar(20) | Mandatory | Â |
CustomerBatchNo | nvarchar(50) | Â | Batch number |
GrossWeight | decimal(8,2) | Â | Â Weight in kg for the case |
Vintage | nvarchar(10) | Mandatory | Â Options are one of
|
TradeTerm | nvarchar(5) | Mandatory | Customs or Excise Goods - Usually A or B |
CigarettesPerUnit | int | Conditional | Â Cigarettes only - depends on what unit of measure you intend to use for this type of product. |
FreeRent | bit | Mandatory | Â |
ProductionDate | date | Â | Â |
PackagingType | nvarchar(8) | Mandatory | Â Packaging Types we are looking for the CODE in RED |
DegreePlato | decimal(5,2) | Â | Â |
OriginalReceiptDate | date | Â | Â |
FirstDateReceivedToStore | date | Â | Â |
Currency_VATValueAdjustment | nvarchar(3) | Â | VW Import - References | Currencies we are looking for the CODE in RED |
NilVATApplicable | nvarchar(50) | Mandatory | Â |
VATValueAdjustment | decimal (8.2) | Â | Â |
SingleSize | decimal(8.5) | Mandatory | Where no applicable use 1.00 otherwise Single size, in LITRES, must be greater than 0 |
Copyright Ontech Solutions 2017-2024. All rights reserved, no part may be replicated or distributed without the express permission of the owner.