Import parameters

Directory

/data/item-planning-internal-purchases

Files reference

  • filename : header

Other parameters

Context (companyCode)

The import is set by a context defined by the company code (companyCode).

The start and arrival internal purchase is either related to an establishment or a deposit.

A list of parameters can be passed to the parameterType field.

Files content

Data structure

Field Column Data type Required Business rules

Item code

itemCode

String

X

20 characters max

Company code

companyCode

String

X

2 characters max

Establishment code départ

startEstablishmentCode

String

X

2 characters max

Start deposit code

startDepositCode

String

10 characters max

Arrival establishment code

arrivalEstablishmentCode

String

X

2 characters max

Arrival deposit code

arrivalDepositCode

String

10 characters max

Parameter code

parameterCode

String

X

Within (MINIMUM_REPLENISHMENT, MULTIPLE_REPLENISHMENT, REPLENISHMENT_DELAY)

Parameter unit

parameterUnit

String

X

if MINIMUM_REPLENISHMENT or MULTIPLE_REPLENISHMENT, it is a unit code
if REPLENISHMENT_DELAY, parameterUnit = "WEEK" or it is null if a transfer time code is used

Parameter value

parameterValue

Double

if REPLENISHMENT_DELAY, it is null

Transfer time code

transferTimeCode

String

Required if REPLENISHMENT_DELAY

Example

itemCode;companyCode;startEstablishmentCode;startDepositCode;arrivalEstablishmentCode;arrivalDepositCode;parameterCode;parameterValue;parameterUnit;transferTimeCode
01;02;03;D1;04;D2;MINIMUM_REPLENISHMENT;15.5;KG;
01;02;04;D2;05;D3;MINIMUM_REPLENISHMENT;16.2;G;
01;02;05;;06;;MINIMUM_REPLENISHMENT;2.3;MG;
01;02;05;;06;;REPLENISHMENT_DELAY;5;WEEK;
01;02;06;;07;;REPLENISHMENT_DELAY;;TRANSFER_TIME;TT1