#SKENARIO Transfer Journal ## REQUEST : { "request": { "company": "DLI", "lines": [ { "JournalName": "BoM", "IdentityDMS" : "26300027" //Hanya sebagai indentitas dalam 1 Journal dan digunakan untuk indentitas RESPONSE nya "Description": "BOM Journal Cutting - Batch 26300027", "Lines": [ { "ItemId": "GWCBL26300027", "Qty": 100.0, "Unit": "PCS", "InventSiteId": "GARMENT", "InventLocationId": "GM-WIP-CUT", "wMSLocationId": "0000", "BOMLine": "No", "inventBatchId": "26300027", "A_UNIT": "GMT", "C_TEAM": "GARMEN" }, { "ItemId": "GBB00000003", "Qty": -150.0, "Unit": "MT", "InventSiteId": "GARMENT", "InventLocationId": "GM-WIP-CUT", "wMSLocationId": "0000", "BOMLine": "Yes", "inventBatchId": "26300027", "A_UNIT": "GMT", "C_TEAM": "GARMEN" } ] } ] } } ## RESPONSE YANG DIHARAPKAN: ### Ketika Gagal hanya tampilkan lines yang kena validasi { "code": 500, "message": "Processed: 1. Success: 0. Errors: 1.", "data": [ { "journalName": "BoM", "identityDMS": "26300027", "success": false, "lines": [ { "lineNo": 2, "itemId": "GBB00000003", "message": "BOM Journal: Batch number 26300027 is not created for item number GBB00000003. | Update has been canceled." } ] } ] } ### Ketika Berhasil Bentuk RESPONSE sama seperti yang sekarang hanya saja tambahkan field "identityDMS" untuk setiap Journal yang dikirim: misal identityDMS : "26300027",