POST

It's possible to add/change BoM position for a work order

 

- if work order not closed

- if "changeable" - flag is not disabled

 

The POST command allow to create or update existing entries

For creation the Document Number, Line Number, Item Code and Quantity is mandatory

Variant generator:  The system ignore this, if started as service.

POST
{"DocEntry":Numeric,"LineNumber":Numeric,"ItemCode":String,"Quantity":Numerc}

 

Example:

Add a BoM Line to Work order 3012 Line Number 10 with ItemCode "RM", Quantity 3

POST WorkorderBom

{"DocEntry":3012,"LineNumber":10,"ItemCode":"RM","Quantity":3}

 

Example:

Change existing entry with

POST
{"DocEntry":3012,"LineNumber":10,"LineNumber2":10,"Quantity":3}

 

Change existing entry with PUT

PUT WorkorderBom(3012,10,10)

{"Quantity":3}

 

 

Property

Type

Description

DocEntry

Edm.Int32

Work order Number

LineNumber

Edm.Int32

Work order position

LineNumber2

Edm.Int32

Bill of Material Position

ItemCode

Edm.String(50)

Material Id
Define this at beginning of the json definition

It read all item information as Item Version, Description, Drawing number and many more

If item not available, the system stop the process with an error

 

Only changeable, if no linked document (example issue) available and if not order related item

Quantity

Edm.Decimal

The quantity in input unit

The quantity in production unit and warehouse unit is calculated automatically




CreateSubAssembly

Edm.Boolean

The system create a subassemlby only, if Bill of Material is order related

UoM

Edm.String

Input UoM

Input_factor

Edm.Decimal

Define the conversion factor between Input unit and production unit. If not defined, the system use 1 as conversion factor

Sort_id

Edm.Int32

The sorting inside the BoM List

Round_type

Edm.Int32

define the rounding

Round_dec

Edm.Int32

count of decimal places or multple per for rounding

Color

Edm.Int32

color of the BoM in desctop application

Bitmap

Edm.String

the bitmap for display in desctop application

QuantityPer

Edm.Decimal

define the quantity per

if 0 the system use the quantity as fix quantity

iversion

Edm.String

define item version.

Note: the system don't check, if the value is correct.

The system overwrite the Item name and Drawing number from item version

 

Only changeable, if no linked document (example issue) available and if not order related item

DrawingNumber

Edm.String

define drawing number

Position

Edm.String

the position text, if not same as line number

RoutingPosition

Edm.Int32

define the linked routing position

Note: Don't check it. Use "0" to delete the link

Close

Edm.Boolean

Close the position or reopen the Bill of Material position.

All related userevents called

Length

Edm.Decimal

Length

Height

Edm.Decimal

Height

Width

Edm.Decimal

Width

WarehouseId

Edm.String

Related warehosue. Note: The system don't check it

BinCode

Edm.String

default Bin code

Project

Edm.String

Link to project

PrjUid

Edm.Int32

Project Task

DeliveryDate

Edm.DateTime

Planned Delivery Date

MateiralCosts

Edm.Decimal

Define planned material price if you don't want to use the standard price

Din

Edm.String

DIN

MatchCode

Edm.String

Match code

Wst_id

Edm.String

Wst_id