Stocks inputs
Endpoints
Create / update stock inputs
/companies/{companycode}/establishments/{establishmentcode}/stock-inputs |
Parameters
Type | Name | Description | Schema | Associated rules |
---|---|---|---|---|
Path |
companyCode |
Current context company code |
string |
|
Path |
establishmentCode |
Current context establishment code |
string |
|
Body |
body |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Successfully created |
No Content |
400 |
Functionnal error |
No Content |
500 |
Internal server error |
No Content |
Rules
R2
at should be before the call.
There should be only one final quantity for these companyCode, establishmentCode, moNb and at.
R3
MO with moNb as external MO number should exist for companyCode and establishmentCode.
This MO should be started, suspended or finished (it can’t be in awaiting state).
If the MO state is "awaiting", it is impossible to set final quantities.
Delete stock inputs
/companies/{companycode}/establishments/{establishmentcode}/stock-inputs |
Parameters
Type | Name | Description | Schema | Associated rules |
---|---|---|---|---|
Path |
companyCode |
Current context company code |
string |
|
Path |
establishmentCode |
Current context establishment code |
string |
|
Body |
body |
Data structure
QuantityFinal (Create / Update)
Name | Description | Value | Associated rules |
---|---|---|---|
companyCode |
Company code |
string |
|
establishmentCode |
Establishment code |
string |
|
at |
The date of the quantity |
string |
|
moNb |
The manufacturing order number |
string |
|
quantity |
Stock inputs quantity |