/updateCompletion

Consume sqs messages. Update row via GraphQL server

Primary LanguageJavaScriptMIT LicenseMIT

updateCompletion AWS Lambda 3 of 3

Consume sqs messages. Update completions table with work order completion internalid. rm completed

AWSAPI Gateway -> SQS -> updateTaskQty -> SQS -> updateNetSuite -> SQS -> updateCompletion

Payload - Completion table columns

{
    "workordercompletion_id": "to be filled workorder completion internailid",
    "operation_sequence": "NetSuite operation sequence",
    "last_completion": "boolean this completion completes build",
    "remaining_qty": "input qty - completed",
    "mfgoptask_id": "NetSuite mfg operation task internalid",
    "completedQty": "Qty completed",
    "workorder_id": "NetSuite workorder internalid",
    "operator_id": "Operators",
    "worktime_id": "Worktime table pk",
    "location_id": "Location completed at internalid",
    "machine_id": "Machine completed on pk",
    "updated_at": "updated at",
    "created_at": "created at",
    "workcenter": "NetSuite entity group",
    "scrapQty": "Qty scrapped in completion",
    "item_id": "NetSuite item internalid",
    "action": "mk or rm",
    "id": "table pk",
}