Present Work order time receipts
TimeReceipt
Property |
Description |
Table |
BEAS_ARBZEIT |
Primary key |
SystemNumber/i |
$transaction |
no |
$branch |
no |
$mask |
no |
Name |
Type |
Description |
|
SystemNumber |
Edm.Int32 |
|
|
DocEntry |
Edm.Int32 |
|
|
LineNumber |
Edm.Int32 |
|
|
LineNumber2 |
Edm.Int32 |
|
|
LineNumber3 |
Edm.Int32 |
|
|
Canceled |
Edm.Boolean |
|
|
CloseEntry |
Edm.Boolean |
|
|
TimeType |
Edm.String(1) |
|
|
PersonnelId |
Edm.String(20) |
|
|
ResourceId |
Edm.String(20) |
|
|
StartDateTime |
Edm.DateTimeOffset |
|
|
EndDateTime |
Edm.DateTimeOffset |
|
|
Duration |
Edm.Decimal |
|
|
QuantityGood |
Edm.Decimal |
|
|
QuantityScrap |
Edm.Decimal |
|
|
QuantityGoodRUoM |
Edm.Decimal |
|
|
QuantityScrapRUoM |
Edm.Decimal |
|
|
RUoMFactor |
Edm.Decimal |
|
|
RUoM |
Edm.String(20) |
|
|
ExternalCosts |
Edm.Decimal |
|
|
Remarks |
Edm.String(255) |
|
|
ExternalWork |
Edm.Boolean |
|
|
CostElementId |
Edm.String(20) |
|
|
CostCenter |
Edm.String(20) |
|
|
ToolId |
Edm.String(20) |
|
|
StationId |
Edm.String(50) |
|
|
UDF1 |
Edm.String(50) |
|
|
UDF2 |
Edm.String(50) |
|
|
UDF3 |
Edm.String(50) |
|
|
UDF4 |
Edm.String(50) |
|
|
UDF5 |
Edm.String(50) |
|
|
UDF6 |
Edm.String(50) |
|
|
UDF7 |
Edm.String(50) |
|
|
UDF8 |
Edm.String(50) |
|
|
UDF9 |
Edm.String(50) |
|
|
UDF10 |
Edm.String(50) |
|
|
UDF11 |
Edm.String(50) |
|
|
UDF12 |
Edm.String(50) |
|
|
UDF13 |
Edm.String(50) |
|
|
UDF14 |
Edm.String(50) |
|
|
UDF15 |
Edm.String(50) |
|
|
TimeReceiptRunningId |
Edm.Decimal |
|
|
DontDeleteTimeReceiptRunning |
Edm.Decimal |
|
|
Barcode |
Edm.Decimal |
|
Join to Entiy Object |
Relation |
Resource |
ResourceId |
Employee |
PersonnelId |
WorkorderRouting |
DocEntry,LineNumber,LineNumber2 |
WorkorderRoutingParallel |
DocEntry,LineNumber,LineNumber2,LineNumber3 |
Function |
Parameter |
Description |
|
TimeCalculation |
Json Parameter/j |
|
A Time Receipt is a summary of many objects - The Time Receipt self - Time Receipt Scrap information - Issue Document - Receipt Document In background - Post Calculation - Additional Warehouse transaction - Quality Control Order - Close Document request
It's possible to create a time receipt with automatic backflush process But it's possible to create a time receipt with all information about Issue and Receipt document
Example Create Time Receipt for work order 1314, Line 10, Routing Position 10 and PersonnelId 14 for 2 Pcs from 8 to current time (Assembly: If Stock and Production unit not the same or Consume Unit is defined: See "Confirm Units" With Scrap Definition With Issue Document With Reciept Document
[ {"DocEntry":1314,"LineNumber":10,"LineNumber2":10,"PersonnelId":"14","QuantityGoodRUoM":2,"FromTime":"8:00", "TimeReceiptScrap": [ {"ScrapId":"DontCheckQty","Quantity":3,"UDF1":"test"}, {"ScrapId":"Scrap-001","Quantity":3,"UDF1":"test"} ], "Issue":{"Lines":[{"ItemCode":"RM","WhsCode":"01","Quantity":1,"BaseLineNumber2":10}]}, "Receipt":{"Lines":[{"ItemCode":"FP","WhsCode":"01","Quantity":2}]} } ]
Result { "value": 1, // 1 = ok, otherwise the error message "SystemNumber": [ 2581 // the created Time Receipt number, can be a list of Numbers ] }
All properties available from TimeReceipt, TimeReceiptScrap, Issue and ReceiptDocument In Receipt and Issue document you don't need to define BaseDocentry/BaseLineNumber, only LineNumber2 for BoM Position
The System don't check, if the defined Material is ok. If wrong Material defined, the system book the wrong Material The System book Items only for not closed Positions. If position is closed or position number is wrong, the system ignore the Information without error message
Additional Properties are Available
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Examples
POST |
---|
beas script Create simple time receipt setvar=ls_json=&
Note: You must convert all fields in correct form PersonnelId is a string. We use convert to "bsl" format: "PersonnelId":<dw_1.item.pers_id.value,bsl> Quantity in international format with "..,num(6)>" Date in JSON Format yyyy/mm/dd and time in hh:mm, always as String |
beas script Create time receipt from TimeReceiptRunning setvar=ls_json=&
Note: You must define the document from Start Time Receipt (table: BEAS_FTSTMP.BUCHNR_ID, BSL TimeReceiptRunning.DocEntry) In beas window "Logoff Time Receipt" the information is saved in variable "e_ftstmp_buchnr_id" |
HTTP Post time receipt Create simple time receipt odata4/TimeReceipt [ |
HTTP Post time receipt: wtith Issue and receipt document
odata4/TimeReceipt
[ |